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/layout/nav-layout.js
CHANGED
@@ -15,18 +15,20 @@ let NavLayout = class NavLayout extends STD {
|
|
15
15
|
this.set = 0;
|
16
16
|
}
|
17
17
|
render() {
|
18
|
-
return html `<nav>
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
18
|
+
return html `<nav>
|
19
|
+
<h1>
|
20
|
+
<slot name="host"></slot>
|
21
|
+
<a href="/">${this.host}</a>${this.subhead &&
|
22
|
+
html `<span></span>
|
23
|
+
<div>${this.subhead}</div>`}
|
24
|
+
</h1>
|
25
|
+
<div>
|
26
|
+
${this.opt()}
|
27
|
+
<slot name="opt"></slot>
|
28
|
+
</div>
|
29
|
+
</nav>
|
30
|
+
<main><slot></slot></main>
|
31
|
+
<slot name="footer"></slot>`;
|
30
32
|
}
|
31
33
|
opt() {
|
32
34
|
const result = [];
|
@@ -36,96 +38,106 @@ let NavLayout = class NavLayout extends STD {
|
|
36
38
|
return result;
|
37
39
|
}
|
38
40
|
};
|
39
|
-
NavLayout.styles = [
|
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
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
41
|
+
NavLayout.styles = [
|
42
|
+
STD.styles,
|
43
|
+
navstyle,
|
44
|
+
css `
|
45
|
+
:host {
|
46
|
+
${cssvar}--nav-height:2.4em;
|
47
|
+
${cssvar}--nav-h1-size:calc(var(${cssvar}--nav-height)/2);
|
48
|
+
width: 100%;
|
49
|
+
display: flex;
|
50
|
+
flex-flow: column nowrap;
|
51
|
+
justify-content: space-between;
|
52
|
+
align-items: center;
|
53
|
+
min-height: 100%;
|
54
|
+
}
|
55
|
+
nav,
|
56
|
+
.option {
|
57
|
+
color: var(${cssvar}--nav-text);
|
58
|
+
background: var(${cssvar}--nav-background);
|
59
|
+
}
|
60
|
+
.option a:hover {
|
61
|
+
background: var(${cssvar}--nav-super-background);
|
62
|
+
}
|
63
|
+
nav {
|
64
|
+
height: var(${cssvar}--nav-height);
|
65
|
+
display: flex;
|
66
|
+
justify-content: space-between;
|
67
|
+
align-items: center;
|
68
|
+
width: 100%;
|
69
|
+
padding: 0 2.5%;
|
70
|
+
box-sizing: border-box;
|
71
|
+
margin: auto;
|
72
|
+
position: relative;
|
73
|
+
z-index: 2;
|
74
|
+
}
|
75
|
+
a {
|
76
|
+
text-decoration: none;
|
77
|
+
color: currentColor;
|
78
|
+
}
|
79
|
+
h1 {
|
80
|
+
font-weight: normal;
|
81
|
+
font-size: var(${cssvar}--nav-h1-size);
|
82
|
+
margin: 0;
|
83
|
+
display: flex;
|
84
|
+
align-items: center;
|
85
|
+
}
|
86
|
+
h1 span {
|
87
|
+
height: 1em;
|
88
|
+
width: 0.1em;
|
89
|
+
background: currentColor;
|
90
|
+
margin: 0.24em;
|
91
|
+
}
|
92
|
+
h1 > * {
|
93
|
+
white-space: nowrap;
|
94
|
+
}
|
95
|
+
main {
|
96
|
+
flex: 1;
|
97
|
+
width: inherit;
|
98
|
+
display: flex;
|
99
|
+
flex-direction: column;
|
100
|
+
z-index: 1;
|
101
|
+
}
|
102
|
+
nav > div {
|
103
|
+
height: 100%;
|
104
|
+
display: flex;
|
105
|
+
flex-direction: row;
|
106
|
+
}
|
107
|
+
.option {
|
108
|
+
overflow: hidden;
|
109
|
+
}
|
110
|
+
.option a {
|
111
|
+
height: 2.4em;
|
112
|
+
line-height: 2.4em;
|
113
|
+
display: block;
|
114
|
+
white-space: nowrap;
|
115
|
+
padding: 0 0.9em;
|
116
|
+
text-align: center;
|
117
|
+
transition: background-color 152ms;
|
118
|
+
}
|
119
|
+
.option a:hover {
|
120
|
+
transform: scale(1.025);
|
121
|
+
}
|
122
|
+
down-drop a {
|
123
|
+
display: flex;
|
124
|
+
padding: 0.15em;
|
125
|
+
box-sizing: border-box;
|
126
|
+
height: 100%;
|
127
|
+
justify-content: center;
|
128
|
+
align-items: center;
|
129
|
+
}
|
130
|
+
down-drop a::selection {
|
131
|
+
color: var(${cssvar}--text-selection);
|
132
|
+
background: var(${cssvar}--text-selection-background);
|
133
|
+
}
|
134
|
+
@media screen and (max-width: 540px) {
|
135
|
+
h1 a ~ * {
|
136
|
+
display: none;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
`,
|
140
|
+
];
|
129
141
|
__decorate([
|
130
142
|
property()
|
131
143
|
], NavLayout.prototype, "host", void 0);
|
@@ -140,7 +152,16 @@ NavLayout = __decorate([
|
|
140
152
|
], NavLayout);
|
141
153
|
export { NavLayout };
|
142
154
|
const opts = [
|
143
|
-
html `<down-drop
|
144
|
-
|
155
|
+
html `<down-drop>
|
156
|
+
<a slot="hover">
|
157
|
+
<svg viewBox="0 0 1024 1024" width="1.8em" height="1.8em"><path fill="currentColor" d="M588.8 128l12 83.2 4.8 34.4 31.2 14.4c12.8 6.4 26.4 13.6 38.4 21.6l28 18.4 31.2-12 81.6-32 76 127.2-67.2 51.2-28 21.6 3.2 35.2c0.8 7.2 0.8 14.4 0.8 20.8s0 13.6-0.8 20.8l-3.2 35.2 28 21.6 67.2 51.2-75.2 127.2-82.4-32-31.2-12-28 18.4c-12.8 8.8-25.6 16-38.4 21.6l-31.2 14.4-4.8 33.6-12 84H435.2l-12-83.2-4.8-34.4-31.2-14.4c-12.8-6.4-26.4-13.6-38.4-21.6l-28-18.4-31.2 12L208 768l-76-127.2 67.2-51.2 28-21.6-3.2-35.2c-0.8-7.2-0.8-14.4-0.8-20.8s0-13.6 0.8-20.8l3.2-35.2-28-21.6-67.2-51.2L207.2 256l82.4 32 31.2 12 28-18.4c12.8-8.8 25.6-16 38.4-21.6l31.2-14.4 4.8-33.6L435.2 128h153.6m8.8-64H426.4c-27.2 0-49.6 19.2-53.6 44.8L360 201.6c-16 7.2-31.2 16-47.2 26.4l-90.4-35.2c-6.4-2.4-12.8-3.2-19.2-3.2-19.2 0-37.6 9.6-46.4 26.4L71.2 360c-13.6 22.4-8 52 12.8 68l76 57.6c-0.8 9.6-1.6 18.4-1.6 26.4s0 16.8 1.6 26.4l-76 57.6c-20.8 16-26.4 44-12.8 68l84.8 143.2c9.6 16.8 28 27.2 47.2 27.2 6.4 0 12-0.8 18.4-3.2L312 796c15.2 10.4 31.2 19.2 47.2 26.4l13.6 92c3.2 25.6 26.4 45.6 53.6 45.6h171.2c27.2 0 49.6-19.2 53.6-44.8l13.6-92.8c16-7.2 31.2-16 47.2-26.4l90.4 35.2c6.4 2.4 12.8 3.2 19.2 3.2 19.2 0 37.6-9.6 46.4-26.4l85.6-144.8c12.8-23.2 7.2-51.2-13.6-67.2l-76-57.6c0.8-8 1.6-16.8 1.6-26.4 0-9.6-0.8-18.4-1.6-26.4l76-57.6c20.8-16 26.4-44 12.8-68l-84.8-143.2c-9.6-16.8-28-27.2-47.2-27.2-6.4 0-12 0.8-18.4 3.2L712 228c-15.2-10.4-31.2-19.2-47.2-26.4l-13.6-92c-4-26.4-26.4-45.6-53.6-45.6zM512 384c70.4 0 128 57.6 128 128s-57.6 128-128 128-128-57.6-128-128 57.6-128 128-128m0-64c-105.6 0-192 86.4-192 192s86.4 192 192 192 192-86.4 192-192-86.4-192-192-192z"></path></svg>
|
158
|
+
</a>
|
159
|
+
<div class="option"><a href="/zh">简体中文</a><a href="/en">English</a><a href="/ru">Русский</a></div>
|
160
|
+
</down-drop>`,
|
161
|
+
html `<down-drop>
|
162
|
+
<a href="/account" slot="hover">
|
163
|
+
<svg viewBox="0 0 1024 1024" width="1.8em" height="1.8em"><path fill="currentColor" d="M870.314 877.39C777.938 967.975 651.552 1024 512 1024 229.24 1024 0.018 794.742 0.018 511.981 0.018 229.221 229.24 0 512 0s511.982 229.222 511.982 511.982c0 143.21-58.914 272.485-153.668 365.41zM512 950.86c103.932 0 199.307-36.314 274.496-96.728C746.45 740.398 639.447 658.262 512 658.262c-127.447 0-234.451 82.136-274.496 195.87C312.693 914.546 408.068 950.86 512 950.86z m0-877.684c-242.35 0-438.842 196.492-438.842 438.842 0 109.528 40.374 209.4 106.712 286.308C237.724 672.597 364.513 585.158 512 585.158c147.45 0 274.276 87.44 332.13 213.168 66.338-76.87 106.712-176.78 106.712-286.308 0-242.35-196.492-438.842-438.842-438.842z m0 475.412c-101.007 0-182.85-81.88-182.85-182.85 0-101.007 81.843-182.851 182.85-182.851 100.97 0 182.85 81.844 182.85 182.85 0 100.97-81.88 182.851-182.85 182.851z m0-292.561c-60.597 0-109.71 49.114-109.71 109.674 0 60.596 49.113 109.71 109.71 109.71 60.597 0 109.71-49.114 109.71-109.71 0-60.56-49.113-109.674-109.71-109.674z"></path></svg>
|
164
|
+
</a>
|
165
|
+
</down-drop>`,
|
145
166
|
];
|
146
167
|
export default NavLayout;
|
package/layout/std.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/layout/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,YAAY,CAAC;AAClD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,OAAO;
|
1
|
+
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/layout/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,YAAY,CAAC;AAClD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,OAAO;CAAG;AACjD,eAAO,MAAM,QAAQ,yBAMpB,CAAC"}
|
package/layout/std.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
import { GLOBSTD, css, cssvar } from "../deps.js";
|
2
2
|
export default class LayoutSTD extends GLOBSTD {
|
3
3
|
}
|
4
|
-
export const navstyle = css `
|
5
|
-
|
6
|
-
${cssvar}--nav-
|
7
|
-
${cssvar}--nav-
|
4
|
+
export const navstyle = css `
|
5
|
+
:host {
|
6
|
+
${cssvar}--nav-text: rgb(240 240 240);
|
7
|
+
${cssvar}--nav-background: rgb(28 28 30);
|
8
|
+
${cssvar}--nav-super-background: rgb(16 136 138);
|
9
|
+
}
|
8
10
|
`;
|
package/package.json
CHANGED
@@ -1,40 +1,47 @@
|
|
1
|
-
{
|
2
|
-
"name": "godown",
|
3
|
-
"version": "1.1.
|
4
|
-
"main": "./index.js",
|
5
|
-
"type": "module",
|
6
|
-
"scripts": {
|
7
|
-
"dev": "node ./dev.js",
|
8
|
-
"build": "tsc --watch",
|
9
|
-
"pub": "node ./pub.js",
|
10
|
-
"roll": "rollup -c"
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"
|
23
|
-
"
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"react": "*"
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
"@
|
36
|
-
"@
|
37
|
-
"
|
38
|
-
"
|
39
|
-
|
40
|
-
|
1
|
+
{
|
2
|
+
"name": "godown",
|
3
|
+
"version": "1.1.5",
|
4
|
+
"main": "./index.js",
|
5
|
+
"type": "module",
|
6
|
+
"scripts": {
|
7
|
+
"dev": "node ./dev.js",
|
8
|
+
"build": "tsc --watch",
|
9
|
+
"pub": "node ./pub.js",
|
10
|
+
"roll": "tsc && rollup -c",
|
11
|
+
"fmt": "prettier --write .",
|
12
|
+
"lint": "eslint --ext .ts ./src/"
|
13
|
+
},
|
14
|
+
"keywords": [
|
15
|
+
"godown",
|
16
|
+
"components",
|
17
|
+
"lit",
|
18
|
+
"html",
|
19
|
+
"react",
|
20
|
+
"custom elements"
|
21
|
+
],
|
22
|
+
"author": "startracex",
|
23
|
+
"license": "MIT",
|
24
|
+
"description": "simple,sylized,semantic components",
|
25
|
+
"repository": {
|
26
|
+
"type": "git",
|
27
|
+
"url": "https://github.com/startracex/godown.git"
|
28
|
+
},
|
29
|
+
"dependencies": {
|
30
|
+
"@lit-labs/react": "*",
|
31
|
+
"lit": "*",
|
32
|
+
"react": "*"
|
33
|
+
},
|
34
|
+
"devDependencies": {
|
35
|
+
"@rollup/plugin-node-resolve": "^15.2.1",
|
36
|
+
"@rollup/plugin-terser": "^0.4.3",
|
37
|
+
"@types/react": "^18.0.28",
|
38
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
39
|
+
"@typescript-eslint/parser": "^6.7.3",
|
40
|
+
"@web/dev-server": "^0.1.35",
|
41
|
+
"@web/rollup-plugin-html": "^1.11.0",
|
42
|
+
"eslint": "^8.50.0",
|
43
|
+
"prettier": "^3.0.3",
|
44
|
+
"rollup": "^3.29.4",
|
45
|
+
"rollup-plugin-minify-html-literals": "^1.2.6"
|
46
|
+
}
|
47
|
+
}
|
package/react/effect.js
CHANGED
@@ -5,22 +5,22 @@ import { createComponent } from "@lit-labs/react";
|
|
5
5
|
export const OVText = createComponent({
|
6
6
|
tagName: "ov-text",
|
7
7
|
elementClass: X.OVText,
|
8
|
-
react: React
|
8
|
+
react: React,
|
9
9
|
});
|
10
10
|
export const OVPort = createComponent({
|
11
11
|
tagName: "ov-port",
|
12
12
|
elementClass: X.OVPort,
|
13
|
-
react: React
|
13
|
+
react: React,
|
14
14
|
});
|
15
15
|
export const OVButton = createComponent({
|
16
16
|
tagName: "ov-button",
|
17
17
|
elementClass: X.OVButton,
|
18
|
-
react: React
|
18
|
+
react: React,
|
19
19
|
});
|
20
20
|
export const ROPort = createComponent({
|
21
21
|
tagName: "ro-port",
|
22
22
|
elementClass: X.ROPort,
|
23
|
-
react: React
|
23
|
+
react: React,
|
24
24
|
});
|
25
25
|
export const TWText = createComponent({
|
26
26
|
tagName: "tw-text",
|
@@ -28,6 +28,6 @@ export const TWText = createComponent({
|
|
28
28
|
react: React,
|
29
29
|
events: {
|
30
30
|
onChange: "change",
|
31
|
-
onDone: "done"
|
32
|
-
}
|
31
|
+
onDone: "done",
|
32
|
+
},
|
33
33
|
});
|
package/react/group.js
CHANGED
@@ -5,15 +5,15 @@ import { createComponent } from "@lit-labs/react";
|
|
5
5
|
export const AvatarGroup = createComponent({
|
6
6
|
tagName: "avatar-group",
|
7
7
|
elementClass: X.AvatarGroup,
|
8
|
-
react: React
|
8
|
+
react: React,
|
9
9
|
});
|
10
10
|
export const ButtonGroup = createComponent({
|
11
11
|
tagName: "button-group",
|
12
12
|
elementClass: X.ButtonGroup,
|
13
|
-
react: React
|
13
|
+
react: React,
|
14
14
|
});
|
15
15
|
export const DetailsGroup = createComponent({
|
16
16
|
tagName: "details-group",
|
17
17
|
elementClass: X.DetailsGroup,
|
18
|
-
react: React
|
18
|
+
react: React,
|
19
19
|
});
|
package/react/input-form.js
CHANGED
@@ -4,62 +4,62 @@ import * as X from "../input-form/index.js";
|
|
4
4
|
import { createComponent } from "@lit-labs/react";
|
5
5
|
const stdevent = {
|
6
6
|
onInput: "input",
|
7
|
-
onChange: "change"
|
7
|
+
onChange: "change",
|
8
8
|
};
|
9
9
|
export const BaseForm = createComponent({
|
10
10
|
tagName: "base-form",
|
11
11
|
elementClass: X.BaseForm,
|
12
|
-
react: React
|
12
|
+
react: React,
|
13
13
|
});
|
14
14
|
export const BaseInput = createComponent({
|
15
15
|
tagName: "base-input",
|
16
16
|
elementClass: X.BaseInput,
|
17
17
|
react: React,
|
18
|
-
events: stdevent
|
18
|
+
events: stdevent,
|
19
19
|
});
|
20
20
|
export const ExpInput = createComponent({
|
21
21
|
tagName: "exp-input",
|
22
22
|
elementClass: X.ExpInput,
|
23
23
|
react: React,
|
24
|
-
events: stdevent
|
24
|
+
events: stdevent,
|
25
25
|
});
|
26
26
|
export const LabelInput = createComponent({
|
27
27
|
tagName: "label-input",
|
28
28
|
elementClass: X.LabelInput,
|
29
29
|
react: React,
|
30
|
-
events: stdevent
|
30
|
+
events: stdevent,
|
31
31
|
});
|
32
32
|
export const SearchInput = createComponent({
|
33
33
|
tagName: "search-input",
|
34
34
|
elementClass: X.SearchInput,
|
35
35
|
react: React,
|
36
|
-
events: stdevent
|
36
|
+
events: stdevent,
|
37
37
|
});
|
38
38
|
export const SearchW = createComponent({
|
39
39
|
tagName: "search-w",
|
40
40
|
elementClass: X.SearchW,
|
41
|
-
react: React
|
41
|
+
react: React,
|
42
42
|
});
|
43
43
|
export const SelectInput = createComponent({
|
44
44
|
tagName: "select-input",
|
45
45
|
elementClass: X.SelectInput,
|
46
46
|
react: React,
|
47
|
-
events: stdevent
|
47
|
+
events: stdevent,
|
48
48
|
});
|
49
49
|
export const SignForm = createComponent({
|
50
50
|
tagName: "sign-form",
|
51
51
|
elementClass: X.SignForm,
|
52
|
-
react: React
|
52
|
+
react: React,
|
53
53
|
});
|
54
54
|
export const SplitInput = createComponent({
|
55
55
|
tagName: "split-input",
|
56
56
|
elementClass: X.SplitInput,
|
57
57
|
react: React,
|
58
|
-
events: stdevent
|
58
|
+
events: stdevent,
|
59
59
|
});
|
60
60
|
export const SwitchInput = createComponent({
|
61
61
|
tagName: "switch-input",
|
62
62
|
elementClass: X.SwitchInput,
|
63
63
|
react: React,
|
64
|
-
events: stdevent
|
64
|
+
events: stdevent,
|
65
65
|
});
|
package/react/items.js
CHANGED
@@ -5,35 +5,35 @@ import { createComponent } from "@lit-labs/react";
|
|
5
5
|
export const AvatarAnchor = createComponent({
|
6
6
|
tagName: "avatar-anchor",
|
7
7
|
elementClass: X.AvatarAnchor,
|
8
|
-
react: React
|
8
|
+
react: React,
|
9
9
|
});
|
10
10
|
export const BaseButton = createComponent({
|
11
11
|
tagName: "base-button",
|
12
12
|
elementClass: X.BaseButton,
|
13
|
-
react: React
|
13
|
+
react: React,
|
14
14
|
});
|
15
15
|
export const AlertItem = createComponent({
|
16
16
|
tagName: "alert-item",
|
17
17
|
elementClass: X.AlertItem,
|
18
|
-
react: React
|
18
|
+
react: React,
|
19
19
|
});
|
20
20
|
export const DialogItem = createComponent({
|
21
21
|
tagName: "dialog-item",
|
22
22
|
elementClass: X.DialogItem,
|
23
|
-
react: React
|
23
|
+
react: React,
|
24
24
|
});
|
25
25
|
export const LinkAnchor = createComponent({
|
26
26
|
tagName: "link-a",
|
27
27
|
elementClass: X.LinkAnchor,
|
28
|
-
react: React
|
28
|
+
react: React,
|
29
29
|
});
|
30
30
|
export const LoadTrack = createComponent({
|
31
31
|
tagName: "load-track",
|
32
32
|
elementClass: X.LoadTrack,
|
33
|
-
react: React
|
33
|
+
react: React,
|
34
34
|
});
|
35
35
|
export const SuperAnchor = createComponent({
|
36
36
|
tagName: "super-a",
|
37
37
|
elementClass: X.SuperAnchor,
|
38
|
-
react: React
|
38
|
+
react: React,
|
39
39
|
});
|
package/react/layout.js
CHANGED
@@ -5,25 +5,25 @@ import { createComponent } from "@lit-labs/react";
|
|
5
5
|
export const NavLayout = createComponent({
|
6
6
|
tagName: "nav-layout",
|
7
7
|
elementClass: X.NavLayout,
|
8
|
-
react: React
|
8
|
+
react: React,
|
9
9
|
});
|
10
10
|
export const AsideNav = createComponent({
|
11
11
|
tagName: "nav-aside",
|
12
12
|
elementClass: X.NavAside,
|
13
|
-
react: React
|
13
|
+
react: React,
|
14
14
|
});
|
15
15
|
export const DivLine = createComponent({
|
16
16
|
tagName: "div-line",
|
17
17
|
elementClass: X.DivLine,
|
18
|
-
react: React
|
18
|
+
react: React,
|
19
19
|
});
|
20
20
|
export const FlexFlow = createComponent({
|
21
21
|
tagName: "flex-flow",
|
22
22
|
elementClass: X.FlexFlow,
|
23
|
-
react: React
|
23
|
+
react: React,
|
24
24
|
});
|
25
25
|
export const DragBox = createComponent({
|
26
26
|
tagName: "drag-box",
|
27
27
|
elementClass: X.DragBox,
|
28
|
-
react: React
|
28
|
+
react: React,
|
29
29
|
});
|
package/react/view.js
CHANGED
@@ -5,25 +5,25 @@ import { createComponent } from "@lit-labs/react";
|
|
5
5
|
export const DetailsExpand = createComponent({
|
6
6
|
tagName: "details-expand",
|
7
7
|
elementClass: X.DetailsExpand,
|
8
|
-
react: React
|
8
|
+
react: React,
|
9
9
|
});
|
10
10
|
export const DownDrop = createComponent({
|
11
11
|
tagName: "down-drop",
|
12
12
|
elementClass: X.DownDrop,
|
13
|
-
react: React
|
13
|
+
react: React,
|
14
14
|
});
|
15
15
|
export const MenuList = createComponent({
|
16
16
|
tagName: "menu-list",
|
17
17
|
elementClass: X.MenuList,
|
18
|
-
react: React
|
18
|
+
react: React,
|
19
19
|
});
|
20
20
|
export const RouteView = createComponent({
|
21
21
|
tagName: "route-view",
|
22
22
|
elementClass: X.RouteView,
|
23
|
-
react: React
|
23
|
+
react: React,
|
24
24
|
});
|
25
25
|
export const ScrollX = createComponent({
|
26
26
|
tagName: "scroll-x",
|
27
27
|
elementClass: X.ScrollX,
|
28
|
-
react: React
|
28
|
+
react: React,
|
29
29
|
});
|
package/view/details-expand.d.ts
CHANGED
@@ -6,7 +6,7 @@ export declare class DetailsExpand extends STD {
|
|
6
6
|
fill: boolean;
|
7
7
|
float: boolean;
|
8
8
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
|
9
|
-
render(): import("lit").TemplateResult<1>;
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
10
10
|
firstUpdated(): void;
|
11
11
|
toggle(to?: boolean): void;
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"details-expand.d.ts","sourceRoot":"","sources":["../../src/view/details-expand.ts"],"names":[],"mappings":"AACA,OAAO,GAAmB,MAAM,UAAU,CAAC;AAC3C,qBACa,aAAc,SAAQ,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IACC,OAAO,UAAS;IACD,IAAI,UAAS;IAC5B,IAAI,UAAS;IACb,KAAK,UAAS;IAC3C,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"details-expand.d.ts","sourceRoot":"","sources":["../../src/view/details-expand.ts"],"names":[],"mappings":"AACA,OAAO,GAAmB,MAAM,UAAU,CAAC;AAC3C,qBACa,aAAc,SAAQ,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IACC,OAAO,UAAS;IACD,IAAI,UAAS;IAC5B,IAAI,UAAS;IACb,KAAK,UAAS;IAC3C,MAAM,CAAC,MAAM,8DA4BX;IACF,MAAM;IAWN,YAAY;IAGZ,MAAM,CAAC,EAAE,UAAa;CAIvB;AACD,eAAe,aAAa,CAAC;AAC7B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAC;KACjC;CACF"}
|