godown 1.1.3 → 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 -36
- package/react/effect.js +6 -6
- package/react/group.js +3 -3
- package/react/input-form.js +11 -11
- package/react/items.js +8 -8
- 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 +10 -7
- 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/input-form/base-input.js
CHANGED
@@ -26,12 +26,12 @@ let BaseInput = class BaseInput extends STD {
|
|
26
26
|
var _a;
|
27
27
|
if (!this.name)
|
28
28
|
this.name = ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || this.type;
|
29
|
-
return html `<label for="input">
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
</label>`;
|
29
|
+
return html `<label for="input">
|
30
|
+
<slot name="pre"></slot>
|
31
|
+
<slot></slot>
|
32
|
+
<div class=${this.type}>${this._typeSwitcher()}</div>
|
33
|
+
<slot name="suf"></slot>
|
34
|
+
</label>`;
|
35
35
|
}
|
36
36
|
connectedCallback() {
|
37
37
|
super.connectedCallback();
|
@@ -52,7 +52,7 @@ let BaseInput = class BaseInput extends STD {
|
|
52
52
|
}
|
53
53
|
_handleRange(e) {
|
54
54
|
this.value = e.target.value;
|
55
|
-
this._ranged.style.width = 100 * parseInt(e.target.value) / (this.max - this.min) + "%";
|
55
|
+
this._ranged.style.width = (100 * parseInt(e.target.value)) / (this.max - this.min) + "%";
|
56
56
|
this.dispatchEvent(new CustomEvent("input", { detail: this.value }));
|
57
57
|
}
|
58
58
|
_handleFile(e) {
|
@@ -73,110 +73,113 @@ let BaseInput = class BaseInput extends STD {
|
|
73
73
|
_typeSwitcher() {
|
74
74
|
switch (this.type) {
|
75
75
|
case "range":
|
76
|
-
return html `<input id="input" type="range" min=${this.min} max=${this.max} step=${this.step} value=${this.value} @input=${this._handleRange} @change=${this._handleChange}
|
76
|
+
return html `<input id="input" type="range" min=${this.min} max=${this.max} step=${this.step} value=${this.value} @input=${this._handleRange} @change=${this._handleChange} /><i></i>`;
|
77
77
|
case "file":
|
78
|
-
return html `<input id="input" type="file" accept=${ifDefined(this.accept)} ?multiple=${!this.only} class="input" @change=${this._handleFile}
|
78
|
+
return html `<input id="input" type="file" accept=${ifDefined(this.accept)} ?multiple=${!this.only} class="input" @change=${this._handleFile} />`;
|
79
79
|
default:
|
80
|
-
return html `<input id="input" class="input" type=${this.type} placeholder=${this.pla} value=${this.value} @input=${this._handleInput} @change=${this._handleChange}/>`;
|
80
|
+
return html `<input id="input" class="input" type=${this.type} placeholder=${this.pla} value=${this.value} @input=${this._handleInput} @change=${this._handleChange} />`;
|
81
81
|
}
|
82
82
|
}
|
83
83
|
};
|
84
|
-
BaseInput.styles = [
|
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
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
84
|
+
BaseInput.styles = [
|
85
|
+
STD.styles,
|
86
|
+
css `
|
87
|
+
:host {
|
88
|
+
width: var(${cssvar}--input-width);
|
89
|
+
height: 1em;
|
90
|
+
display: inline-flex;
|
91
|
+
background-color: var(${cssvar}--input-background);
|
92
|
+
border-radius: 0.2em;
|
93
|
+
outline: 0.18em solid transparent;
|
94
|
+
color: var(${cssvar}--text);
|
95
|
+
}
|
96
|
+
:host(:focus-within) {
|
97
|
+
outline-color: var(${cssvar}--input-outline-focus);
|
98
|
+
}
|
99
|
+
:host([type="range"]) {
|
100
|
+
outline: none;
|
101
|
+
height: auto;
|
102
|
+
}
|
103
|
+
:host([type="file"]) {
|
104
|
+
height: auto;
|
105
|
+
width: auto;
|
106
|
+
min-height: 0.5em;
|
107
|
+
min-width: 0.5em;
|
108
|
+
}
|
109
|
+
div,
|
110
|
+
label {
|
111
|
+
display: flex;
|
112
|
+
flex: 1;
|
113
|
+
}
|
114
|
+
* {
|
115
|
+
border-radius: inherit;
|
116
|
+
cursor: inherit;
|
117
|
+
font-family: inherit;
|
118
|
+
}
|
119
|
+
.input[type="color"] {
|
120
|
+
padding: 0;
|
121
|
+
height: 100% !important;
|
122
|
+
}
|
123
|
+
.input[type="file"] {
|
124
|
+
display: none;
|
125
|
+
}
|
126
|
+
.input {
|
127
|
+
box-sizing: border-box;
|
128
|
+
height: 100%;
|
129
|
+
width: 100%;
|
130
|
+
font-size: 0.8em;
|
131
|
+
outline: 0;
|
132
|
+
border: 0;
|
133
|
+
margin: 0;
|
134
|
+
border: none;
|
135
|
+
color: inherit;
|
136
|
+
background: transparent;
|
137
|
+
padding: 0 0.25em;
|
138
|
+
border-radius: 0.25em;
|
139
|
+
}
|
140
|
+
.range {
|
141
|
+
position: relative;
|
142
|
+
display: inline-flex;
|
143
|
+
justify-content: center;
|
144
|
+
align-items: center;
|
145
|
+
box-shadow: 0 0.5px 0.1em var(${cssvar}--shadow);
|
146
|
+
background-color: var(${cssvar}--input-false);
|
147
|
+
}
|
148
|
+
.range input ~ i {
|
149
|
+
position: absolute;
|
150
|
+
left: 0;
|
151
|
+
width: 50%;
|
152
|
+
pointer-events: none;
|
153
|
+
background-color: var(${cssvar}--input-true);
|
154
|
+
height: calc(0.6em - 1.1px);
|
155
|
+
}
|
156
|
+
.range input {
|
157
|
+
height: 0.6em;
|
158
|
+
margin: 0px -0.5em;
|
159
|
+
width: calc(100% + 0.5em);
|
160
|
+
appearance: none;
|
161
|
+
-webkit-appearance: none;
|
162
|
+
outline: none;
|
163
|
+
background-color: transparent;
|
164
|
+
}
|
165
|
+
.range input::-webkit-slider-runnable-track {
|
166
|
+
height: 0.6em;
|
167
|
+
}
|
168
|
+
.range input::-webkit-slider-thumb {
|
169
|
+
z-index: 1;
|
170
|
+
appearance: none;
|
171
|
+
-webkit-appearance: none;
|
172
|
+
position: relative;
|
173
|
+
height: 1.2em;
|
174
|
+
width: 1.2em;
|
175
|
+
margin-top: -0.3em;
|
176
|
+
background-color: var(${cssvar}--input-control);
|
177
|
+
border-radius: 50%;
|
178
|
+
border: solid 0.125em rgba(0, 221, 255, 0.5);
|
179
|
+
box-shadow: 0 0.1em 0.1em var(${cssvar}--shadow);
|
180
|
+
}
|
181
|
+
`,
|
182
|
+
];
|
180
183
|
__decorate([
|
181
184
|
query("input")
|
182
185
|
], BaseInput.prototype, "_input", void 0);
|
@@ -12,7 +12,7 @@ export declare class ExpInput extends STD {
|
|
12
12
|
offset: string;
|
13
13
|
autofocus: boolean;
|
14
14
|
_input: HTMLInputElement;
|
15
|
-
render(): import("lit").TemplateResult<1>;
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
16
16
|
}
|
17
17
|
export default ExpInput;
|
18
18
|
declare global {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"exp-input.d.ts","sourceRoot":"","sources":["../../src/input-form/exp-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,KAAK,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACnO,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"exp-input.d.ts","sourceRoot":"","sources":["../../src/input-form/exp-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,KAAK,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACnO,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,4FA+IX;IACU,KAAK,SAAM;IACX,IAAI,SAAM;IACV,GAAG,MAAa;IAChB,IAAI,EAAE,SAAS,GAAG,UAAU,CAAU;IACtC,KAAK,SAAM;IACX,GAAG,SAAM;IACT,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAa;IACpD,MAAM,SAAM;IACK,SAAS,UAAS;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IAC1C,MAAM;CAeP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/input-form/exp-input.js
CHANGED
@@ -23,150 +23,163 @@ let ExpInput = class ExpInput extends STD {
|
|
23
23
|
var _a;
|
24
24
|
if (!this.name)
|
25
25
|
this.name = ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || this.type;
|
26
|
-
return html `<div class=${classMap({ [this.base]: true, "no-label": !this.label })}>
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
return html `<div class=${classMap({ [this.base]: true, "no-label": !this.label })}>
|
27
|
+
${this.type !== "textarea" ? html `<input class="input" required title="" value=${this.value} @input=${this._handleInput} @change=${this._handleChange} type=${this.type} placeholder=${this.pla} />` : html `<textarea class="input" required title="" value=${this.value || this.def} @input=${this._handleInput} placeholder=${this.pla}></textarea>`}
|
28
|
+
<fieldset>
|
29
|
+
<legend><span>${this.label}</span></legend>
|
30
|
+
</fieldset>
|
31
|
+
<style>
|
32
|
+
:valid ~ fieldset legend,
|
33
|
+
:focus ~ fieldset legend {
|
34
|
+
margin-left: ${this.offset || 0} !important;
|
35
|
+
}
|
36
|
+
</style>
|
37
|
+
</div>`;
|
32
38
|
}
|
33
39
|
};
|
34
|
-
ExpInput.styles = [
|
35
|
-
|
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
|
-
|
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
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
40
|
+
ExpInput.styles = [
|
41
|
+
STD.styles,
|
42
|
+
css `
|
43
|
+
:host {
|
44
|
+
line-height: normal;
|
45
|
+
display: inline-block;
|
46
|
+
width: var(${cssvar}--input-width);
|
47
|
+
color: var(${cssvar}--text);
|
48
|
+
border-color: var(${cssvar}--input-outline);
|
49
|
+
border-radius: 0.2em;
|
50
|
+
}
|
51
|
+
.input:focus {
|
52
|
+
${cssvar}--input-outline: var(${cssvar}--input-outline-focus) !important;
|
53
|
+
}
|
54
|
+
div:hover {
|
55
|
+
${cssvar}--input-background: var(${cssvar}--input-background-hover) !important;
|
56
|
+
}
|
57
|
+
.underline::after,
|
58
|
+
.underline::before {
|
59
|
+
content: "";
|
60
|
+
position: absolute;
|
61
|
+
left: 0;
|
62
|
+
right: 0;
|
63
|
+
margin: auto;
|
64
|
+
bottom: -0.1em;
|
65
|
+
width: 100%;
|
66
|
+
height: 0.18em;
|
67
|
+
bottom: 0;
|
68
|
+
border-bottom-left-radius: inherit;
|
69
|
+
border-bottom-right-radius: inherit;
|
70
|
+
}
|
71
|
+
.underline:focus-within::before {
|
72
|
+
z-index: 2;
|
73
|
+
width: 100%;
|
74
|
+
}
|
75
|
+
.underline::before {
|
76
|
+
width: 0;
|
77
|
+
transition: all 0.2s;
|
78
|
+
background: var(${cssvar}--input-outline-focus) !important;
|
79
|
+
}
|
80
|
+
.underline::after {
|
81
|
+
background: var(${cssvar}--input-outline);
|
82
|
+
}
|
83
|
+
.underline fieldset {
|
84
|
+
border-color: transparent !important;
|
85
|
+
}
|
86
|
+
.outline fieldset {
|
87
|
+
border-color: inherit !important;
|
88
|
+
border: 0.18em solid;
|
89
|
+
}
|
90
|
+
.outline .input {
|
91
|
+
padding-left: 0.18em;
|
92
|
+
padding-right: 0.18em;
|
93
|
+
}
|
94
|
+
.no-label.filed .input {
|
95
|
+
margin-top: 0;
|
96
|
+
}
|
97
|
+
.filed {
|
98
|
+
background: var(${cssvar}--input-background);
|
99
|
+
outline: 0.18em solid var(${cssvar}--input-outline);
|
100
|
+
height: calc(100% - 0.36em);
|
101
|
+
width: calc(100% - 0.36em);
|
102
|
+
margin: 0.18em;
|
103
|
+
}
|
104
|
+
.filed fieldset {
|
105
|
+
border-color: transparent !important;
|
106
|
+
background: transparent !important;
|
107
|
+
}
|
108
|
+
:focus ~ fieldset,
|
109
|
+
:valid ~ fieldset {
|
110
|
+
border-color: var(${cssvar}--input-outline-focus);
|
111
|
+
}
|
112
|
+
* {
|
113
|
+
border-radius: inherit;
|
114
|
+
font-size: inherit;
|
115
|
+
font-family: inherit;
|
116
|
+
transition:
|
117
|
+
all 0.2s,
|
118
|
+
height 0s;
|
119
|
+
}
|
120
|
+
div {
|
121
|
+
border-color: inherit;
|
122
|
+
position: relative;
|
123
|
+
width: 100%;
|
124
|
+
display: inline-flex;
|
125
|
+
min-height: inherit;
|
126
|
+
}
|
127
|
+
textarea.input {
|
128
|
+
resize: vertical;
|
129
|
+
height: 1.5em;
|
130
|
+
padding-top: 0.3em;
|
131
|
+
}
|
132
|
+
.input {
|
133
|
+
margin-left: 0.18em;
|
134
|
+
margin-right: 0.18em;
|
135
|
+
}
|
136
|
+
.input {
|
137
|
+
width: 100%;
|
138
|
+
padding-top: 0.2em;
|
139
|
+
min-height: 1.7em;
|
140
|
+
margin-top: 0.45em;
|
141
|
+
margin-bottom: 0.2em;
|
142
|
+
border: 0;
|
143
|
+
box-sizing: border-box;
|
144
|
+
font-size: inherit;
|
145
|
+
outline: 0;
|
146
|
+
background: transparent;
|
147
|
+
z-index: 2;
|
148
|
+
overflow-y: hidden;
|
149
|
+
}
|
150
|
+
fieldset {
|
151
|
+
box-sizing: border-box;
|
152
|
+
position: absolute;
|
153
|
+
background: var(${cssvar}--input-background);
|
154
|
+
pointer-events: none;
|
155
|
+
padding: 0px;
|
156
|
+
position: absolute;
|
157
|
+
height: 100%;
|
158
|
+
margin: 0;
|
159
|
+
width: inherit;
|
160
|
+
}
|
161
|
+
legend span {
|
162
|
+
white-space: nowrap;
|
163
|
+
display: inline-block;
|
164
|
+
padding: 0 0.2em;
|
165
|
+
background: var(${cssvar}--input-background);
|
166
|
+
font-size: inherit;
|
167
|
+
border-bottom-left-radius: 0;
|
168
|
+
border-bottom-right-radius: 0;
|
169
|
+
}
|
170
|
+
legend {
|
171
|
+
width: 0;
|
172
|
+
height: 1em;
|
173
|
+
transform: translateY(0.8em);
|
174
|
+
}
|
175
|
+
.filed span {
|
176
|
+
background: transparent;
|
177
|
+
}
|
178
|
+
:focus + fieldset legend,
|
179
|
+
:valid + fieldset legend {
|
180
|
+
transform: translateY(-0.19em) scale(0.7);
|
181
|
+
}
|
182
|
+
`,
|
170
183
|
];
|
171
184
|
__decorate([
|
172
185
|
property()
|
@@ -10,7 +10,7 @@ export declare class LabelInput extends STD {
|
|
10
10
|
autofocus: boolean;
|
11
11
|
_input: HTMLInputElement;
|
12
12
|
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
13
|
-
render(): import("lit").TemplateResult<1>;
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
14
14
|
_passwordSwitcher(): void;
|
15
15
|
}
|
16
16
|
export default LabelInput;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"label-input.d.ts","sourceRoot":"","sources":["../../src/input-form/label-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,KAAK,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACnO,qBACa,UAAW,SAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,CAAU;IACzB,KAAK,SAAM;IACX,GAAG,SAAM;IACT,GAAG,MAAa;IAChB,IAAI,SAAM;IACV,KAAK,SAAM;IACM,SAAS,UAAS;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzC,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"label-input.d.ts","sourceRoot":"","sources":["../../src/input-form/label-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,KAAK,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACnO,qBACa,UAAW,SAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,CAAU;IACzB,KAAK,SAAM;IACX,GAAG,SAAM;IACT,GAAG,MAAa;IAChB,IAAI,SAAM;IACV,KAAK,SAAM;IACM,SAAS,UAAS;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzC,MAAM,CAAC,MAAM,4FAsEX;IACF,MAAM;IAoBN,iBAAiB;CAOlB;AACD,eAAe,UAAU,CAAC;AAC1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
|