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/items/super-a.d.ts
CHANGED
@@ -4,8 +4,8 @@ export declare class SuperAnchor extends STD {
|
|
4
4
|
target: string;
|
5
5
|
arrow: "" | "delta" | "arrow" | "angle" | "hand";
|
6
6
|
static styles: import("lit").CSSResult;
|
7
|
-
render(): import("lit").TemplateResult<1>;
|
8
|
-
_arrowSwitcher(): import("lit").TemplateResult<1>;
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
8
|
+
_arrowSwitcher(): import("lit-html").TemplateResult<1>;
|
9
9
|
}
|
10
10
|
export default SuperAnchor;
|
11
11
|
declare global {
|
package/items/super-a.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"super-a.d.ts","sourceRoot":"","sources":["../../src/items/super-a.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAa;IACzB,MAAM,SAAW;IACjB,KAAK,EAAE,EAAE,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAM;IAClE,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"super-a.d.ts","sourceRoot":"","sources":["../../src/items/super-a.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAa;IACzB,MAAM,SAAW;IACjB,KAAK,EAAE,EAAE,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAM;IAClE,MAAM,CAAC,MAAM,0BA4CX;IACF,MAAM;IAMN,cAAc;CAkBf;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,WAAW,CAAC;KACxB;CACF"}
|
package/items/super-a.js
CHANGED
@@ -14,64 +14,75 @@ let SuperAnchor = class SuperAnchor extends STD {
|
|
14
14
|
this.arrow = "";
|
15
15
|
}
|
16
16
|
render() {
|
17
|
-
return html `<a href=${ifDefined(this.href)} target=${this.target}>
|
18
|
-
|
19
|
-
|
20
|
-
</a>`;
|
17
|
+
return html `<a href=${ifDefined(this.href)} target=${this.target}>
|
18
|
+
<slot name="pre"></slot><slot></slot><slot name="suf"></slot>
|
19
|
+
<i style="font-style:normal"><slot name="icon"></slot>${this._arrowSwitcher()}</i>
|
20
|
+
</a>`;
|
21
21
|
}
|
22
22
|
_arrowSwitcher() {
|
23
23
|
switch (this.arrow) {
|
24
24
|
case "delta":
|
25
|
-
return html `<svg viewBox="0 0 48 48" fill="none"><path d="M20 12L32 24L20 36V12Z" fill="currentColor" stroke="currentColor" stroke-width="3" stroke-linejoin="round"/></svg>`;
|
25
|
+
return html `<svg viewBox="0 0 48 48" fill="none"><path d="M20 12L32 24L20 36V12Z" fill="currentColor" stroke="currentColor" stroke-width="3" stroke-linejoin="round" /></svg>`;
|
26
26
|
case "arrow":
|
27
|
-
return html `<svg width="38" height="38" viewBox="0 0 48 48" fill="none"
|
27
|
+
return html `<svg width="38" height="38" viewBox="0 0 48 48" fill="none">
|
28
|
+
<path d="M36 24.0083H12" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
|
29
|
+
<path d="M24 12L36 24L24 36" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
|
30
|
+
</svg>`;
|
28
31
|
case "angle":
|
29
|
-
return 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>`;
|
32
|
+
return 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>`;
|
30
33
|
case "hand":
|
31
|
-
return html `<svg viewBox="-10 -5 64 58" fill="none"
|
34
|
+
return html `<svg viewBox="-10 -5 64 58" fill="none">
|
35
|
+
<path d="M10.0264 40.9736L10.0264 18.9736H4.02637L4.02637 40.9736H10.0264Z" fill="currentColor" stroke="currentColor" stroke-width="3" stroke-linejoin="round" />
|
36
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0264 18.9738C17.1493 12.4548 21.2772 8.71418 22.4102 7.75192C24.1096 6.30854 26.0304 6.91463 26.0304 10.5268C26.0304 14.139 20.7449 16.2222 20.7449 18.9738C20.7415 18.9902 27.5007 18.9913 41.0223 18.9771C42.6797 18.9753 44.0246 20.3174 44.0264 21.9748L44.0264 21.9779C44.0264 23.6371 42.6814 24.9821 41.0222 24.9821H33.0128C31.8039 32.9549 31.137 37.2894 31.012 37.9858C30.8244 39.0303 29.8274 40.9738 26.9583 40.9738C25.0456 40.9738 20.0683 40.9738 10.0264 40.9738V18.9738Z" stroke="currentColor" stroke-width="3" stroke-linejoin="round" />
|
37
|
+
</svg>`;
|
32
38
|
}
|
33
39
|
}
|
34
40
|
};
|
35
|
-
SuperAnchor.styles = css `
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
41
|
+
SuperAnchor.styles = css `
|
42
|
+
:host {
|
43
|
+
display: inline-block;
|
44
|
+
color: currentColor;
|
45
|
+
text-decoration: none;
|
46
|
+
cursor: default;
|
47
|
+
}
|
48
|
+
:host([href]) {
|
49
|
+
cursor: pointer;
|
50
|
+
}
|
51
|
+
a {
|
52
|
+
width: 100%;
|
53
|
+
display: flex;
|
54
|
+
color: inherit;
|
55
|
+
text-decoration: inherit;
|
56
|
+
justify-content: space-between;
|
57
|
+
align-items: center;
|
58
|
+
}
|
59
|
+
i {
|
60
|
+
display: inline-flex;
|
61
|
+
border-radius: 20%;
|
62
|
+
}
|
63
|
+
i > svg {
|
64
|
+
width: 1em;
|
65
|
+
height: 1em;
|
66
|
+
border-radius: inherit;
|
67
|
+
}
|
68
|
+
:host(:hover) i {
|
69
|
+
animation: arrow 0.3s linear;
|
70
|
+
}
|
71
|
+
i:hover {
|
72
|
+
background-color: rgb(0 0 0 / 0.075);
|
73
|
+
}
|
74
|
+
@keyframes arrow {
|
75
|
+
from {
|
76
|
+
transform: translateX(0);
|
77
|
+
}
|
78
|
+
50% {
|
79
|
+
transform: translateX(0.05em);
|
80
|
+
}
|
81
|
+
to {
|
82
|
+
transform: translateX(0);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
`;
|
75
86
|
__decorate([
|
76
87
|
property()
|
77
88
|
], SuperAnchor.prototype, "href", void 0);
|
package/layout/div-line.d.ts
CHANGED
package/layout/div-line.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"div-line.d.ts","sourceRoot":"","sources":["../../src/layout/div-line.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"div-line.d.ts","sourceRoot":"","sources":["../../src/layout/div-line.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,0BAyBX;IACU,GAAG,SAAU;IACb,GAAG,SAAU;IACI,CAAC,UAAS;IAC3B,CAAC,SAAW;IACxB,MAAM;CAWP;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
package/layout/div-line.js
CHANGED
@@ -15,37 +15,43 @@ let DivLine = class DivLine extends STD {
|
|
15
15
|
this.b = "2.2px";
|
16
16
|
}
|
17
17
|
render() {
|
18
|
-
|
19
|
-
return html `<div class=${this.v ? "v" : "h"}>
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
const hrstyle = `.before{height:${this.b};max-width:${this.pre}}.after{height:${this.b};max-width:${this.suf}}.v .before{width:${this.b};max-height:${this.pre}}.v .after{width:${this.b};max-height:${this.suf}}`;
|
19
|
+
return html `<div class=${this.v ? "v" : "h"}>
|
20
|
+
<hr class="before" />
|
21
|
+
<slot></slot>
|
22
|
+
<hr class="after" />
|
23
|
+
<style>
|
24
|
+
${hrstyle}
|
25
|
+
</style>
|
26
|
+
</div>`;
|
23
27
|
}
|
24
28
|
};
|
25
|
-
DivLine.styles = css
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
29
|
+
DivLine.styles = css `
|
30
|
+
:host {
|
31
|
+
display: block;
|
32
|
+
color: currentColor;
|
33
|
+
background: none;
|
34
|
+
}
|
35
|
+
div {
|
36
|
+
display: flex;
|
37
|
+
align-items: center;
|
38
|
+
border-radius: inherit;
|
39
|
+
width: 100%;
|
40
|
+
height: 100%;
|
41
|
+
}
|
42
|
+
hr {
|
43
|
+
border-radius: inherit;
|
44
|
+
margin: 0;
|
45
|
+
border: 0;
|
46
|
+
flex: 1;
|
47
|
+
background: currentColor;
|
48
|
+
}
|
49
|
+
.v {
|
50
|
+
height: 100%;
|
51
|
+
display: flex;
|
52
|
+
flex-direction: column;
|
53
|
+
}
|
54
|
+
`;
|
49
55
|
__decorate([
|
50
56
|
property()
|
51
57
|
], DivLine.prototype, "pre", void 0);
|
package/layout/drag-box.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare class DragBox extends STD {
|
|
5
5
|
static styles: import("lit").CSSResult;
|
6
6
|
get offsetsWidth(): number;
|
7
7
|
get offsetsHeight(): number;
|
8
|
-
render(): import("lit").TemplateResult<1>;
|
8
|
+
render(): import("lit-html").TemplateResult<1>;
|
9
9
|
firstUpdated(): void;
|
10
10
|
drag: boolean;
|
11
11
|
t: number;
|
package/layout/drag-box.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"drag-box.d.ts","sourceRoot":"","sources":["../../src/layout/drag-box.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAClB,CAAC,SAAU;IACX,CAAC,SAAU;IACvB,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"drag-box.d.ts","sourceRoot":"","sources":["../../src/layout/drag-box.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAClB,CAAC,SAAU;IACX,CAAC,SAAU;IACvB,MAAM,CAAC,MAAM,0BAKX;IACF,IAAI,YAAY,WAEf;IACD,IAAI,aAAa,WAEhB;IACD,MAAM;IAKN,YAAY;IAIZ,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,CAAC,EAAE,UAAU;IAQxB,QAAQ;IAIR,WAAW,CAAC,CAAC,EAAE,UAAU;IAmBzB,KAAK;CAUN;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
package/layout/drag-box.js
CHANGED
@@ -21,9 +21,8 @@ let DragBox = class DragBox extends STD {
|
|
21
21
|
return (_b = (_a = this.offsetParent) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : document.body.offsetHeight;
|
22
22
|
}
|
23
23
|
render() {
|
24
|
-
return html `
|
25
|
-
|
26
|
-
<slot></slot>
|
24
|
+
return html ` <div @mousedown=${this._startDrag} @mouseup=${this._endDrag}>
|
25
|
+
<slot></slot>
|
27
26
|
</div>`;
|
28
27
|
}
|
29
28
|
firstUpdated() {
|
@@ -45,8 +44,8 @@ let DragBox = class DragBox extends STD {
|
|
45
44
|
_handleDrag(e) {
|
46
45
|
if (!this.drag)
|
47
46
|
return;
|
48
|
-
|
49
|
-
|
47
|
+
const nl = e.clientX - (this.cx - this.l);
|
48
|
+
const nt = e.clientY - (this.cy - this.t);
|
50
49
|
if (nl < 0) {
|
51
50
|
this.style.left = "0";
|
52
51
|
}
|
@@ -77,10 +76,12 @@ let DragBox = class DragBox extends STD {
|
|
77
76
|
}
|
78
77
|
}
|
79
78
|
};
|
80
|
-
DragBox.styles = css
|
81
|
-
|
82
|
-
|
83
|
-
|
79
|
+
DragBox.styles = css `
|
80
|
+
:host {
|
81
|
+
position: relative;
|
82
|
+
display: inline-flex;
|
83
|
+
}
|
84
|
+
`;
|
84
85
|
__decorate([
|
85
86
|
property()
|
86
87
|
], DragBox.prototype, "x", void 0);
|
package/layout/flex-flow.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import STD from
|
1
|
+
import STD from "./std.js";
|
2
2
|
export declare class FlexFlow extends STD {
|
3
3
|
flexflow: string;
|
4
4
|
m: string;
|
5
5
|
static styles: import("lit").CSSResult;
|
6
|
-
render(): import("lit").TemplateResult<1>;
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
7
7
|
}
|
8
8
|
export default FlexFlow;
|
9
9
|
declare global {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"flex-flow.d.ts","sourceRoot":"","sources":["../../src/layout/flex-flow.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,QAAS,SAAQ,GAAG;IACnB,QAAQ,SAA8B;IACtC,CAAC,SAAW;IACxB,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"flex-flow.d.ts","sourceRoot":"","sources":["../../src/layout/flex-flow.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,QAAS,SAAQ,GAAG;IACnB,QAAQ,SAA8B;IACtC,CAAC,SAAW;IACxB,MAAM,CAAC,MAAM,0BAIX;IACF,MAAM;CAQP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/layout/flex-flow.js
CHANGED
@@ -4,8 +4,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
6
|
};
|
7
|
-
import { html, css, property, define } from
|
8
|
-
import STD from
|
7
|
+
import { html, css, property, define } from "../deps.js";
|
8
|
+
import STD from "./std.js";
|
9
9
|
let FlexFlow = class FlexFlow extends STD {
|
10
10
|
constructor() {
|
11
11
|
super(...arguments);
|
@@ -15,12 +15,17 @@ let FlexFlow = class FlexFlow extends STD {
|
|
15
15
|
render() {
|
16
16
|
const flexflow = this.flexflow.split(/\s+/);
|
17
17
|
const style = `:host{flex-direction:${flexflow[0] || "row"};flex-wrap:${flexflow[1] || "nowrap"};}@media(max-width: ${this.m || "720px"}){:host{flex-direction:${flexflow[2] || flexflow[0] || "colom"};flex-wrap:${flexflow[3] || flexflow[1] || "nowrap"}}`;
|
18
|
-
return html `<slot></slot
|
18
|
+
return html `<slot></slot>
|
19
|
+
<style>
|
20
|
+
${style}
|
21
|
+
</style>`;
|
19
22
|
}
|
20
23
|
};
|
21
|
-
FlexFlow.styles = css
|
22
|
-
|
23
|
-
|
24
|
+
FlexFlow.styles = css `
|
25
|
+
:host {
|
26
|
+
display: flex !important;
|
27
|
+
}
|
28
|
+
`;
|
24
29
|
__decorate([
|
25
30
|
property()
|
26
31
|
], FlexFlow.prototype, "flexflow", void 0);
|
@@ -28,7 +33,7 @@ __decorate([
|
|
28
33
|
property()
|
29
34
|
], FlexFlow.prototype, "m", void 0);
|
30
35
|
FlexFlow = __decorate([
|
31
|
-
define(
|
36
|
+
define("flex-flow")
|
32
37
|
], FlexFlow);
|
33
38
|
export { FlexFlow };
|
34
39
|
export default FlexFlow;
|
package/layout/nav-aside.d.ts
CHANGED
@@ -3,7 +3,7 @@ export declare class NavAside extends STD {
|
|
3
3
|
m: string;
|
4
4
|
position: string;
|
5
5
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
|
6
|
-
render(): import("lit").TemplateResult<1>;
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
7
7
|
}
|
8
8
|
export default NavAside;
|
9
9
|
declare global {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nav-aside.d.ts","sourceRoot":"","sources":["../../src/layout/nav-aside.ts"],"names":[],"mappings":"AACA,OAAO,GAAiB,MAAM,UAAU,CAAC;AACzC,qBACa,QAAS,SAAQ,GAAG;IACnB,CAAC,SAAW;IACZ,QAAQ,SAAkB;IACtC,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"nav-aside.d.ts","sourceRoot":"","sources":["../../src/layout/nav-aside.ts"],"names":[],"mappings":"AACA,OAAO,GAAiB,MAAM,UAAU,CAAC;AACzC,qBACa,QAAS,SAAQ,GAAG;IACnB,CAAC,SAAW;IACZ,QAAQ,SAAkB;IACtC,MAAM,CAAC,MAAM,8DAwBX;IACF,MAAM;CAUP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/layout/nav-aside.js
CHANGED
@@ -13,33 +13,40 @@ let NavAside = class NavAside extends STD {
|
|
13
13
|
this.position = "sticky fixed";
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
return html `<nav><slot></slot></nav
|
16
|
+
const p = this.position.split(" ")[0] || "sticky";
|
17
|
+
const pm = this.position.split(" ")[1] || "fixed";
|
18
|
+
const m = this.m || "720px";
|
19
|
+
const styled = `:host{position:${p} !important;}@media(min-width:${m}){:host{position:${pm} !important;width:fit-content !important;height:100% !important;}nav{display: flex !important;justify-content: space-between !important;flex-direction: column !important;align-content: flex-start !important;align-items: stretch !important;}}`;
|
20
|
+
return html `<nav><slot></slot></nav>
|
21
|
+
<style>
|
22
|
+
${styled}
|
23
|
+
</style>`;
|
21
24
|
}
|
22
25
|
};
|
23
|
-
NavAside.styles = [
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
26
|
+
NavAside.styles = [
|
27
|
+
STD.styles,
|
28
|
+
navstyle,
|
29
|
+
css `
|
30
|
+
:host {
|
31
|
+
color: var(${cssvar}--nav-text);
|
32
|
+
background: var(${cssvar}--nav-background);
|
33
|
+
top: 0;
|
34
|
+
left: 0;
|
35
|
+
bottom: 0;
|
36
|
+
width: 100%;
|
37
|
+
height: fit-content;
|
38
|
+
display: flex;
|
39
|
+
}
|
40
|
+
nav {
|
41
|
+
height: inherit;
|
42
|
+
width: inherit;
|
43
|
+
display: flex;
|
44
|
+
flex-direction: row;
|
45
|
+
align-items: flex-start;
|
46
|
+
justify-content: space-between;
|
47
|
+
box-sizing: border-box;
|
48
|
+
}
|
49
|
+
`,
|
43
50
|
];
|
44
51
|
__decorate([
|
45
52
|
property()
|
package/layout/nav-layout.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nav-layout.d.ts","sourceRoot":"","sources":["../../src/layout/nav-layout.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,GAAiB,MAAM,UAAU,CAAC;AACzC,qBACa,SAAU,SAAQ,GAAG;IAChC,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"nav-layout.d.ts","sourceRoot":"","sources":["../../src/layout/nav-layout.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,GAAiB,MAAM,UAAU,CAAC;AACzC,qBACa,SAAU,SAAQ,GAAG;IAChC,MAAM,CAAC,MAAM,8DAmGX;IACU,IAAI,SAAM;IACV,OAAO,SAAM;IACG,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAK;IAC/C,MAAM;IAgBN,GAAG;CAOJ;AAcD,eAAe,SAAS,CAAC;AACzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|