godown 1.0.48 → 1.1.1
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 +1 -4
- package/conf.d.ts +1 -1
- package/conf.d.ts.map +1 -1
- package/deps.d.ts +4 -4
- package/deps.d.ts.map +1 -1
- package/deps.js +4 -4
- package/effect/index.d.ts.map +1 -1
- package/effect/ov-effect.d.ts +3 -3
- package/effect/ov-effect.d.ts.map +1 -1
- package/effect/ro-effect.d.ts.map +1 -1
- package/effect/ro-effect.js +6 -6
- package/effect/std.d.ts.map +1 -1
- package/effect/tw-effect.d.ts.map +1 -1
- package/effect/tw-effect.js +6 -6
- package/glob.d.ts.map +1 -1
- package/group/avatar-group.d.ts +3 -3
- package/group/avatar-group.d.ts.map +1 -1
- package/group/avatar-group.js +12 -23
- package/group/button-group.d.ts.map +1 -1
- package/group/details-group.d.ts.map +1 -1
- package/group/index.d.ts.map +1 -1
- package/group/std.d.ts.map +1 -1
- package/index.d.ts.map +1 -1
- package/input-form/base-input.d.ts +3 -3
- package/input-form/base-input.d.ts.map +1 -1
- package/input-form/base-input.js +13 -13
- package/input-form/exp-input.d.ts +4 -4
- package/input-form/exp-input.d.ts.map +1 -1
- package/input-form/exp-input.js +5 -4
- package/input-form/index.d.ts.map +1 -1
- package/input-form/label-input.d.ts +4 -4
- package/input-form/label-input.d.ts.map +1 -1
- package/input-form/label-input.js +5 -5
- package/input-form/search-input.d.ts +2 -2
- package/input-form/search-input.d.ts.map +1 -1
- package/input-form/search-input.js +23 -18
- package/input-form/select-input.d.ts +1 -1
- package/input-form/select-input.d.ts.map +1 -1
- package/input-form/select-input.js +1 -1
- package/input-form/sign-form.d.ts +1 -1
- package/input-form/sign-form.d.ts.map +1 -1
- package/input-form/split-input.d.ts +1 -1
- package/input-form/split-input.d.ts.map +1 -1
- package/input-form/split-input.js +5 -2
- package/input-form/std.d.ts +1 -1
- package/input-form/std.d.ts.map +1 -1
- package/input-form/std.js +1 -1
- package/input-form/switch-input.d.ts +2 -2
- package/input-form/switch-input.d.ts.map +1 -1
- package/input-form/switch-input.js +12 -15
- package/items/alert-item.d.ts.map +1 -1
- package/items/alert-item.js +1 -1
- package/items/avatar-anchor.d.ts +1 -1
- package/items/avatar-anchor.d.ts.map +1 -1
- package/items/avatar-anchor.js +8 -7
- package/items/base-button.d.ts.map +1 -1
- package/items/dialog-item.d.ts.map +1 -1
- package/items/dialog-item.js +8 -8
- package/items/index.d.ts.map +1 -1
- package/items/link-a.d.ts +1 -1
- package/items/link-a.d.ts.map +1 -1
- package/items/link-a.js +1 -1
- package/items/load-track.d.ts +2 -2
- package/items/load-track.d.ts.map +1 -1
- package/items/load-track.js +1 -1
- 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 +3 -1
- package/layout/div-line.d.ts +2 -2
- package/layout/div-line.d.ts.map +1 -1
- package/layout/div-line.js +3 -3
- package/layout/drag-box.d.ts +2 -2
- package/layout/drag-box.d.ts.map +1 -1
- package/layout/drag-box.js +13 -13
- package/layout/flex-flow.d.ts.map +1 -1
- package/layout/index.d.ts.map +1 -1
- package/layout/nav-aside.d.ts +3 -3
- package/layout/nav-aside.d.ts.map +1 -1
- package/layout/nav-aside.js +3 -3
- package/layout/nav-layout.d.ts +3 -3
- package/layout/nav-layout.d.ts.map +1 -1
- package/layout/nav-layout.js +6 -6
- package/layout/std.d.ts.map +1 -1
- package/layout/std.js +1 -1
- package/package.json +8 -4
- package/react/effect.d.ts.map +1 -1
- package/react/effect.js +7 -7
- package/react/group.d.ts.map +1 -1
- package/react/group.js +5 -5
- package/react/index.d.ts.map +1 -1
- package/react/input-form.d.ts.map +1 -1
- package/react/input-form.js +14 -14
- package/react/items.d.ts.map +1 -1
- package/react/items.js +9 -9
- package/react/layout.d.ts.map +1 -1
- package/react/layout.js +7 -7
- package/react/view.d.ts.map +1 -1
- package/react/view.js +7 -7
- package/view/details-expand.d.ts +1 -1
- package/view/details-expand.d.ts.map +1 -1
- package/view/details-expand.js +1 -1
- package/view/down-drop.d.ts +3 -3
- package/view/down-drop.d.ts.map +1 -1
- package/view/down-drop.js +7 -7
- package/view/index.d.ts.map +1 -1
- package/view/menu-list.d.ts +1 -2
- package/view/menu-list.d.ts.map +1 -1
- package/view/menu-list.js +12 -11
- package/view/react/effect.d.ts +10 -0
- package/view/react/effect.d.ts.map +1 -0
- package/view/react/effect.js +32 -0
- package/view/react/group.d.ts +5 -0
- package/view/react/group.d.ts.map +1 -0
- package/view/react/group.js +18 -0
- package/view/react/index.d.ts +7 -0
- package/view/react/index.d.ts.map +1 -0
- package/view/react/index.js +6 -0
- package/view/react/input-form.d.ts +33 -0
- package/view/react/input-form.d.ts.map +1 -0
- package/view/react/input-form.js +64 -0
- package/view/react/items.d.ts +9 -0
- package/view/react/items.d.ts.map +1 -0
- package/view/react/items.js +38 -0
- package/view/react/layout.d.ts +7 -0
- package/view/react/layout.d.ts.map +1 -0
- package/view/react/layout.js +28 -0
- package/view/react/view.d.ts +7 -0
- package/view/react/view.d.ts.map +1 -0
- package/view/react/view.js +28 -0
- package/view/route-view.d.ts +4 -4
- package/view/route-view.d.ts.map +1 -1
- package/view/route-view.js +1 -1
- package/view/scroll-x.d.ts.map +1 -1
- package/view/scroll-x.js +18 -9
- package/view/std.d.ts.map +1 -1
- package/with.d.ts +7 -2
- package/with.d.ts.map +1 -1
- package/with.js +6 -6
package/README.md
CHANGED
@@ -19,9 +19,7 @@ html
|
|
19
19
|
js
|
20
20
|
|
21
21
|
```js
|
22
|
-
import {
|
23
|
-
AlertItem
|
24
|
-
} from "godown";
|
22
|
+
import { AlertItem } from "godown";
|
25
23
|
const item = new AlertItem();
|
26
24
|
item.title = "Alert";
|
27
25
|
document.body.appendChild(item);
|
@@ -31,7 +29,6 @@ react
|
|
31
29
|
|
32
30
|
```jsx
|
33
31
|
import { AlertItem } from "godown/react";
|
34
|
-
|
35
32
|
export default function () {
|
36
33
|
return <AlertItem title="Alert" />;
|
37
34
|
}
|
package/conf.d.ts
CHANGED
package/conf.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conf.d.ts","sourceRoot":"","sources":["../conf.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,IAAI,EAAE,QAA4D,CAAC;AACzE,iBAAS,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAO,YAOhD;AACD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACtB,eAAe,IAAI,CAAC;AACpB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB,uBAAuB,EAAE,QAAQ,CAAC;KACnC;CACF;AACD,
|
1
|
+
{"version":3,"file":"conf.d.ts","sourceRoot":"","sources":["../src/conf.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,IAAI,EAAE,QAA4D,CAAC;AACzE,iBAAS,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAO,YAOhD;AACD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACtB,eAAe,IAAI,CAAC;AACpB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB,uBAAuB,EAAE,QAAQ,CAAC;KACnC;CACF;AACD,KAAK,QAAQ,GAAG;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
package/deps.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
export { CSSResultGroup, html, css, LitElement } from
|
2
|
-
export { query, queryAll, property, state, customElement } from
|
3
|
-
export { conf } from
|
1
|
+
export { CSSResultGroup, html, css, LitElement } from "lit";
|
2
|
+
export { query, queryAll, property, state, customElement } from "lit/decorators.js";
|
3
|
+
export { conf } from "./conf.js";
|
4
4
|
export { append, create, define, retag } from "./with.js";
|
5
|
-
export { ifDefined } from
|
5
|
+
export { ifDefined } from "lit/directives/if-defined.js";
|
6
6
|
export { classMap } from "lit/directives/class-map.js";
|
7
7
|
export { GLOBSTD, cssvar } from "./glob.js";
|
8
8
|
//# sourceMappingURL=deps.d.ts.map
|
package/deps.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../deps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
|
1
|
+
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../src/deps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
|
package/deps.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
export { html, css, LitElement } from
|
2
|
-
export { query, queryAll, property, state, customElement } from
|
3
|
-
export { conf } from
|
1
|
+
export { html, css, LitElement } from "lit";
|
2
|
+
export { query, queryAll, property, state, customElement } from "lit/decorators.js";
|
3
|
+
export { conf } from "./conf.js";
|
4
4
|
export { append, create, define, retag } from "./with.js";
|
5
|
-
export { ifDefined } from
|
5
|
+
export { ifDefined } from "lit/directives/if-defined.js";
|
6
6
|
export { classMap } from "lit/directives/class-map.js";
|
7
7
|
export { GLOBSTD, cssvar } from "./glob.js";
|
package/effect/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../effect/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effect/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
package/effect/ov-effect.d.ts
CHANGED
@@ -16,9 +16,9 @@ export declare class OVButton extends STD {
|
|
16
16
|
}
|
17
17
|
declare global {
|
18
18
|
interface HTMLElementTagNameMap {
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
"ov-text": OVText;
|
20
|
+
"ov-port": OVPort;
|
21
|
+
"ov-button": OVButton;
|
22
22
|
}
|
23
23
|
}
|
24
24
|
//# sourceMappingURL=ov-effect.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ov-effect.d.ts","sourceRoot":"","sources":["../../effect/ov-effect.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAyC3B,qBACa,MAAO,SAAQ,GAAG;IAC7B,MAAM,CAAC,MAAM,4BA6IX;IACU,EAAE,SAAe;IACjB,EAAE,SAAgB;IAClB,EAAE,SAAiB;IAC/B,MAAM;CAGP;AACD,qBACa,MAAO,SAAQ,GAAG;IAC7B,MAAM,CAAC,MAAM,4BAYX;IACF,MAAM;CAGP;AACD,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,4BA6BX;IACF,MAAM;CAGP;AACD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
1
|
+
{"version":3,"file":"ov-effect.d.ts","sourceRoot":"","sources":["../../src/effect/ov-effect.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAyC3B,qBACa,MAAO,SAAQ,GAAG;IAC7B,MAAM,CAAC,MAAM,4BA6IX;IACU,EAAE,SAAe;IACjB,EAAE,SAAgB;IAClB,EAAE,SAAiB;IAC/B,MAAM;CAGP;AACD,qBACa,MAAO,SAAQ,GAAG;IAC7B,MAAM,CAAC,MAAM,4BAYX;IACF,MAAM;CAGP;AACD,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,4BA6BX;IACF,MAAM;CAGP;AACD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ro-effect.d.ts","sourceRoot":"","sources":["../../effect/ro-effect.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,MAAO,SAAQ,GAAG;IACD,KAAK,SAAK;IACV,UAAU,SAAK;IAC3C,MAAM,CAAC,MAAM,0BAwCX;IACF,OAAO,SAAK;IACZ,IAAI,QAAQ,IAAI,GAAG,CAElB;IACD,MAAM;IAON,YAAY;IAeZ,IAAI,CAAC,CAAC,KAAA;IAYN,IAAI;IAKJ,IAAI;CAKL;AACD,eAAe,MAAM,CAAC;AACtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
1
|
+
{"version":3,"file":"ro-effect.d.ts","sourceRoot":"","sources":["../../src/effect/ro-effect.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,MAAO,SAAQ,GAAG;IACD,KAAK,SAAK;IACV,UAAU,SAAK;IAC3C,MAAM,CAAC,MAAM,0BAwCX;IACF,OAAO,SAAK;IACZ,IAAI,QAAQ,IAAI,GAAG,CAElB;IACD,MAAM;IAON,YAAY;IAeZ,IAAI,CAAC,CAAC,KAAA;IAYN,IAAI;IAKJ,IAAI;CAKL;AACD,eAAe,MAAM,CAAC;AACtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
package/effect/ro-effect.js
CHANGED
@@ -14,7 +14,7 @@ let ROPort = class ROPort extends STD {
|
|
14
14
|
this.current = 0;
|
15
15
|
}
|
16
16
|
get assigned() {
|
17
|
-
return this.shadowRoot.querySelector(
|
17
|
+
return this.shadowRoot.querySelector("slot").assignedElements();
|
18
18
|
}
|
19
19
|
render() {
|
20
20
|
return html `<div>
|
@@ -26,10 +26,10 @@ let ROPort = class ROPort extends STD {
|
|
26
26
|
firstUpdated() {
|
27
27
|
if (this.assigned.length == 0)
|
28
28
|
return;
|
29
|
-
this.shadowRoot.querySelector(
|
29
|
+
this.shadowRoot.querySelector("div").style.width = `${this.assigned[0].offsetWidth}px`;
|
30
30
|
this.assigned.forEach(e => {
|
31
|
-
e.style.overflowX =
|
32
|
-
e.style.transition =
|
31
|
+
e.style.overflowX = "hidden";
|
32
|
+
e.style.transition = "width 0s";
|
33
33
|
});
|
34
34
|
this.show(this.index);
|
35
35
|
if (this.autochange)
|
@@ -41,11 +41,11 @@ let ROPort = class ROPort extends STD {
|
|
41
41
|
}, this.autochange);
|
42
42
|
}
|
43
43
|
show(i) {
|
44
|
-
this.shadowRoot.querySelector(
|
44
|
+
this.shadowRoot.querySelector("section").style.width = "100%";
|
45
45
|
this.assigned.forEach((e, index) => {
|
46
46
|
if (index == i) {
|
47
47
|
e.style.width = `100%`;
|
48
|
-
e.style.transition =
|
48
|
+
e.style.transition = "";
|
49
49
|
}
|
50
50
|
else {
|
51
51
|
e.style.width = 0;
|
package/effect/std.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../effect/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,OAAO;CAAI"}
|
1
|
+
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/effect/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,OAAO;CAAI"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tw-effect.d.ts","sourceRoot":"","sources":["../../effect/tw-effect.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,MAAO,SAAQ,GAAG;IACjB,IAAI,EAAE,MAAM,CAAa;IACR,OAAO,UAAS;IACjB,UAAU,SAAK;IACf,GAAG,SAAM;IACT,GAAG,SAAO;IAC7B,GAAG,SAAK;IACR,MAAM,QAAM;IACrB,MAAM,CAAC,MAAM,0BAiBV;IACH,MAAM;IAGN,YAAY;IAOZ,OAAO;IAyBP,IAAI;CAML;AAID,eAAe,MAAM,CAAC;AACtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
1
|
+
{"version":3,"file":"tw-effect.d.ts","sourceRoot":"","sources":["../../src/effect/tw-effect.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,MAAO,SAAQ,GAAG;IACjB,IAAI,EAAE,MAAM,CAAa;IACR,OAAO,UAAS;IACjB,UAAU,SAAK;IACf,GAAG,SAAM;IACT,GAAG,SAAO;IAC7B,GAAG,SAAK;IACR,MAAM,QAAM;IACrB,MAAM,CAAC,MAAM,0BAiBV;IACH,MAAM;IAGN,YAAY;IAOZ,OAAO;IAyBP,IAAI;CAML;AAID,eAAe,MAAM,CAAC;AACtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
package/effect/tw-effect.js
CHANGED
@@ -23,7 +23,7 @@ let TWText = class TWText extends STD {
|
|
23
23
|
firstUpdated() {
|
24
24
|
var _a;
|
25
25
|
if (!this.text)
|
26
|
-
this.text = ((_a = this.shadowRoot.querySelector(
|
26
|
+
this.text = ((_a = this.shadowRoot.querySelector("slot").assignedNodes()[0]) === null || _a === void 0 ? void 0 : _a.textContent.trim()) || "";
|
27
27
|
this.len = this.text.length;
|
28
28
|
if (!this.stopped && this.len)
|
29
29
|
this.rewrite();
|
@@ -33,16 +33,16 @@ let TWText = class TWText extends STD {
|
|
33
33
|
clearTimeout(timer);
|
34
34
|
}
|
35
35
|
this._timer = [];
|
36
|
-
const text = this.shadowRoot.querySelector(
|
37
|
-
text.textContent =
|
36
|
+
const text = this.shadowRoot.querySelector("slot").assignedNodes()[0];
|
37
|
+
text.textContent = "";
|
38
38
|
let delay = 0;
|
39
39
|
let autochange = this.autochange ? this.autochange : random(this.min, this.max);
|
40
|
-
this.text.split(
|
40
|
+
this.text.split("").forEach((char) => {
|
41
41
|
this._timer.push(setTimeout(() => {
|
42
42
|
text.textContent += char;
|
43
|
-
this.dispatchEvent(new CustomEvent(
|
43
|
+
this.dispatchEvent(new CustomEvent("change"));
|
44
44
|
if (this.len === text.textContent.length) {
|
45
|
-
this.dispatchEvent(new CustomEvent(
|
45
|
+
this.dispatchEvent(new CustomEvent("done", { detail: delay }));
|
46
46
|
}
|
47
47
|
}, delay));
|
48
48
|
delay += autochange;
|
package/glob.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../glob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACjE;;GAEG;AACH,eAAO,MAAM,MAAM,yBAA+D,CAAC;AACnF,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iBAeQ;CACtB"}
|
1
|
+
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACjE;;GAEG;AACH,eAAO,MAAM,MAAM,yBAA+D,CAAC;AACnF,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iBAeQ;CACtB"}
|
package/group/avatar-group.d.ts
CHANGED
@@ -5,12 +5,12 @@ export declare class AvatarGroup extends STD {
|
|
5
5
|
more: number;
|
6
6
|
usefresh: () => Promise<void>;
|
7
7
|
static styles: import("lit").CSSResult;
|
8
|
-
get assigned():
|
8
|
+
get assigned(): HTMLElement[];
|
9
9
|
render(): import("lit-html").TemplateResult<1>;
|
10
10
|
firstUpdated(): void;
|
11
|
-
append(args
|
11
|
+
append(args?: string): void;
|
12
12
|
subtract(): void;
|
13
|
-
fresh(): void
|
13
|
+
fresh(): Promise<void>;
|
14
14
|
}
|
15
15
|
export default AvatarGroup;
|
16
16
|
declare global {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../group/avatar-group.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IACL,IAAI,UAAS;IACd,GAAG,SAAK;IACR,IAAI,SAAK;
|
1
|
+
{"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../src/group/avatar-group.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IACL,IAAI,UAAS;IACd,GAAG,SAAK;IACR,IAAI,SAAK;IACL,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAG3D;IACF,MAAM,CAAC,MAAM,0BAAyI;IACtJ,IAAI,QAAQ,kBAEX;IACD,MAAM;IAMN,YAAY;IASZ,MAAM,CAAC,IAAI,SAAkB;IAgB7B,QAAQ;IAWF,KAAK;CAGZ;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
package/group/avatar-group.js
CHANGED
@@ -18,16 +18,16 @@ let AvatarGroup = class AvatarGroup extends STD {
|
|
18
18
|
};
|
19
19
|
}
|
20
20
|
get assigned() {
|
21
|
-
return this.shadowRoot.querySelector(
|
21
|
+
return this.shadowRoot.querySelector("slot").assignedElements();
|
22
22
|
}
|
23
23
|
render() {
|
24
24
|
if (this.rank)
|
25
|
-
return html `<div style="display: flex;flex-direction: row;"><slot></slot><avatar-anchor style="display:${this.more > 0 ? "" : "none"}" more=${this.more || 0}></avatar-anchor></div>`;
|
25
|
+
return html `<div style="display: flex;flex-direction: row;"><slot></slot><avatar-anchor style="display:${this.more > 0 ? "" : "none"}" more=${this.more || 0}></avatar-anchor><style>slot::slotted(:nth-of-type(n+${this.max + 1})) { display: none; }</style></div>`;
|
26
26
|
else
|
27
27
|
return html `<div style="display:contents"><slot></slot></div>`;
|
28
28
|
}
|
29
29
|
firstUpdated() {
|
30
|
-
if (!this.more) {
|
30
|
+
if (this.rank && !this.more) {
|
31
31
|
let more = 0;
|
32
32
|
if (this.max && this.assigned.length > this.max) {
|
33
33
|
more = this.assigned.length - this.max;
|
@@ -35,16 +35,16 @@ let AvatarGroup = class AvatarGroup extends STD {
|
|
35
35
|
this.more = more;
|
36
36
|
}
|
37
37
|
}
|
38
|
-
append(args) {
|
38
|
+
append(args = "avatar-anchor") {
|
39
39
|
if (this.max && this.assigned.length == this.max) {
|
40
|
-
this.assigned.pop().style.display =
|
40
|
+
this.assigned.pop().style.display = "none";
|
41
41
|
append(this, args);
|
42
|
-
this.assigned.pop().style.display =
|
42
|
+
this.assigned.pop().style.display = "none";
|
43
43
|
this.more = 2;
|
44
44
|
}
|
45
45
|
else if (this.max && this.assigned.length > this.max) {
|
46
46
|
append(this, args);
|
47
|
-
this.assigned.pop().style.display =
|
47
|
+
this.assigned.pop().style.display = "none";
|
48
48
|
this.more += 1;
|
49
49
|
}
|
50
50
|
else {
|
@@ -54,7 +54,7 @@ let AvatarGroup = class AvatarGroup extends STD {
|
|
54
54
|
}
|
55
55
|
subtract() {
|
56
56
|
if (this.more == 2) {
|
57
|
-
this.assigned.pop().style.display =
|
57
|
+
this.assigned.pop().style.display = "";
|
58
58
|
this.more = 0;
|
59
59
|
return;
|
60
60
|
}
|
@@ -64,22 +64,11 @@ let AvatarGroup = class AvatarGroup extends STD {
|
|
64
64
|
if (this.assigned.length)
|
65
65
|
this.assigned.pop().remove();
|
66
66
|
}
|
67
|
-
fresh() {
|
68
|
-
this.usefresh();
|
67
|
+
async fresh() {
|
68
|
+
await this.usefresh();
|
69
69
|
}
|
70
70
|
};
|
71
|
-
AvatarGroup.styles = css
|
72
|
-
:host{
|
73
|
-
display: flex;
|
74
|
-
flex-direction: column;
|
75
|
-
width: 100%;
|
76
|
-
height: 100%;
|
77
|
-
overflow-y: auto;
|
78
|
-
overflow-x: hidden;
|
79
|
-
}
|
80
|
-
div{
|
81
|
-
display:contents;
|
82
|
-
}`;
|
71
|
+
AvatarGroup.styles = css `:host{display: flex;flex-direction: column;width: 100%;height: 100%;overflow-y: auto; overflow-x: hidden;}div{display:contents;}`;
|
83
72
|
__decorate([
|
84
73
|
property({ type: Boolean })
|
85
74
|
], AvatarGroup.prototype, "rank", void 0);
|
@@ -90,7 +79,7 @@ __decorate([
|
|
90
79
|
property({ type: Number })
|
91
80
|
], AvatarGroup.prototype, "more", void 0);
|
92
81
|
__decorate([
|
93
|
-
property({
|
82
|
+
property({ attribute: false })
|
94
83
|
], AvatarGroup.prototype, "usefresh", void 0);
|
95
84
|
AvatarGroup = __decorate([
|
96
85
|
define("avatar-group")
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../group/button-group.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IACL,CAAC,UAAS;IACvC,MAAM,CAAC,MAAM,0BAyCX;IACF,MAAM;CAUP;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
1
|
+
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../src/group/button-group.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IACL,CAAC,UAAS;IACvC,MAAM,CAAC,MAAM,0BAyCX;IACF,MAAM;CAUP;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"details-group.d.ts","sourceRoot":"","sources":["../../group/details-group.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,YAAa,SAAQ,GAAG;IACP,KAAK,SAAM;IACV,IAAI,UAAS;IAC1C,MAAM,CAAC,MAAM,0BAEV;IACH,MAAM;IAGN,IAAI,QAAQ,cAEX;IACK,YAAY;IAOlB,YAAY,CAAC,CAAC,KAAA;CAUf;AACD,eAAe,YAAY,CAAC;AAC5B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
|
1
|
+
{"version":3,"file":"details-group.d.ts","sourceRoot":"","sources":["../../src/group/details-group.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,YAAa,SAAQ,GAAG;IACP,KAAK,SAAM;IACV,IAAI,UAAS;IAC1C,MAAM,CAAC,MAAM,0BAEV;IACH,MAAM;IAGN,IAAI,QAAQ,cAEX;IACK,YAAY;IAOlB,YAAY,CAAC,CAAC,KAAA;CAUf;AACD,eAAe,YAAY,CAAC;AAC5B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
|
package/group/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../group/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/group/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
package/group/std.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../group/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;CAAI"}
|
1
|
+
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/group/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;CAAI"}
|
package/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import STD from
|
2
|
-
|
1
|
+
import STD from "./std.js";
|
2
|
+
type inputtype = "hidden" | "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "checkbox" | "radio" | "file" | "image";
|
3
3
|
export declare class BaseInput extends STD {
|
4
4
|
_input: HTMLInputElement;
|
5
5
|
_ranged: HTMLElement;
|
@@ -15,7 +15,7 @@ export declare class BaseInput extends STD {
|
|
15
15
|
max: number;
|
16
16
|
step: number;
|
17
17
|
autofocus: boolean;
|
18
|
-
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag").CSSResultGroup[])[];
|
18
|
+
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
19
19
|
render(): import("lit-html").TemplateResult<1>;
|
20
20
|
connectedCallback(): void;
|
21
21
|
firstUpdated(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["../../input-form/base-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,
|
1
|
+
{"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["../../src/input-form/base-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,SAAU,SAAQ,GAAG;IAChB,MAAM,EAAE,gBAAgB,CAAC;IACtB,OAAO,EAAE,WAAW,CAAC;IAC5B,MAAM,MAAa;IACnB,KAAK,SAAM;IACX,IAAI,SAAM;IACV,GAAG,MAAa;IAChB,IAAI,EAAE,SAAS,CAAU;IACzB,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAa;IAC5C,GAAG,EAAE,MAAM,CAAM;IACA,IAAI,UAAS;IACd,GAAG,SAAK;IACR,GAAG,SAAO;IACV,IAAI,SAAK;IACR,SAAS,UAAS;IAC/C,MAAM,CAAC,MAAM,4FA+FV;IACH,MAAM;IASN,iBAAiB,IAAI,IAAI;IAKzB,YAAY;IAUZ,YAAY,CAAC,CAAC,KAAA;IAKd,WAAW,CAAC,CAAC,KAAA;IAIb,KAAK;IAUL,aAAa;CAUd;AACD,eAAe,SAAS,CAAC;AACzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
package/input-form/base-input.js
CHANGED
@@ -4,18 +4,18 @@ 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, query, ifDefined, define, cssvar } from
|
8
|
-
import STD from
|
7
|
+
import { html, css, property, query, ifDefined, define, cssvar } from "../deps.js";
|
8
|
+
import STD from "./std.js";
|
9
9
|
let BaseInput = class BaseInput extends STD {
|
10
10
|
constructor() {
|
11
11
|
super(...arguments);
|
12
12
|
this.accept = undefined;
|
13
|
-
this.label =
|
14
|
-
this.name =
|
13
|
+
this.label = "";
|
14
|
+
this.name = "";
|
15
15
|
this.pla = undefined;
|
16
|
-
this.type =
|
16
|
+
this.type = "text";
|
17
17
|
this.value = undefined;
|
18
|
-
this.def =
|
18
|
+
this.def = "";
|
19
19
|
this.only = false;
|
20
20
|
this.min = 0;
|
21
21
|
this.max = 100;
|
@@ -42,9 +42,9 @@ let BaseInput = class BaseInput extends STD {
|
|
42
42
|
}
|
43
43
|
firstUpdated() {
|
44
44
|
if (this.type === "range") {
|
45
|
-
this._ranged.style.width = 100 * (parseInt(this.value) / (this.max - this.min)) +
|
45
|
+
this._ranged.style.width = 100 * (parseInt(this.value) / (this.max - this.min)) + "%";
|
46
46
|
if (this.childNodes.length) {
|
47
|
-
this.shadowRoot.querySelector(
|
47
|
+
this.shadowRoot.querySelector("div").style.margin = "0";
|
48
48
|
}
|
49
49
|
}
|
50
50
|
this._focusCheck();
|
@@ -52,18 +52,18 @@ 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) +
|
56
|
-
this.dispatchEvent(new CustomEvent(
|
55
|
+
this._ranged.style.width = 100 * parseInt(e.target.value) / (this.max - this.min) + "%";
|
56
|
+
this.dispatchEvent(new CustomEvent("input", { detail: this.value }));
|
57
57
|
}
|
58
58
|
_handleFile(e) {
|
59
59
|
this.value = !this.only ? e.target.files : e.target.files[0];
|
60
|
-
this.dispatchEvent(new CustomEvent(
|
60
|
+
this.dispatchEvent(new CustomEvent("change", { detail: this.value }));
|
61
61
|
}
|
62
62
|
reset() {
|
63
63
|
if (this.type === "range") {
|
64
64
|
this._input.value = this.def || ((this.max - this.min) / 2).toString();
|
65
65
|
this.value = this._input.value;
|
66
|
-
this._ranged.style.width = 100 * (parseInt(this.value) / (this.max - this.min)) +
|
66
|
+
this._ranged.style.width = 100 * (parseInt(this.value) / (this.max - this.min)) + "%";
|
67
67
|
}
|
68
68
|
else {
|
69
69
|
this._input.value = this.def.toString();
|
@@ -220,7 +220,7 @@ __decorate([
|
|
220
220
|
property({ type: Boolean })
|
221
221
|
], BaseInput.prototype, "autofocus", void 0);
|
222
222
|
BaseInput = __decorate([
|
223
|
-
define(
|
223
|
+
define("base-input")
|
224
224
|
], BaseInput);
|
225
225
|
export { BaseInput };
|
226
226
|
export default BaseInput;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import STD from
|
2
|
-
|
1
|
+
import STD from "./std.js";
|
2
|
+
type inputtype = "hidden" | "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "checkbox" | "radio" | "file" | "image";
|
3
3
|
export declare class ExpInput extends STD {
|
4
|
-
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag").CSSResultGroup[])[];
|
4
|
+
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
5
5
|
label: string;
|
6
6
|
name: string;
|
7
7
|
pla: any;
|
@@ -17,7 +17,7 @@ export declare class ExpInput extends STD {
|
|
17
17
|
export default ExpInput;
|
18
18
|
declare global {
|
19
19
|
interface HTMLElementTagNameMap {
|
20
|
-
|
20
|
+
"exp-input": ExpInput;
|
21
21
|
}
|
22
22
|
}
|
23
23
|
//# sourceMappingURL=exp-input.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"exp-input.d.ts","sourceRoot":"","sources":["../../input-form/exp-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,
|
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,4FAwIX;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;CASP;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
@@ -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, query, define, cssvar, classMap } from
|
8
|
-
import STD from
|
7
|
+
import { html, css, property, query, define, cssvar, classMap } from "../deps.js";
|
8
|
+
import STD from "./std.js";
|
9
9
|
let ExpInput = class ExpInput extends STD {
|
10
10
|
constructor() {
|
11
11
|
super(...arguments);
|
@@ -33,6 +33,7 @@ let ExpInput = class ExpInput extends STD {
|
|
33
33
|
};
|
34
34
|
ExpInput.styles = [STD.styles, css `
|
35
35
|
:host{
|
36
|
+
line-height: normal;
|
36
37
|
display: inline-block;
|
37
38
|
width: var(${cssvar}--input-width);
|
38
39
|
color: var(${cssvar}--text);
|
@@ -195,10 +196,10 @@ __decorate([
|
|
195
196
|
property({ type: Boolean })
|
196
197
|
], ExpInput.prototype, "autofocus", void 0);
|
197
198
|
__decorate([
|
198
|
-
query(
|
199
|
+
query(".input")
|
199
200
|
], ExpInput.prototype, "_input", void 0);
|
200
201
|
ExpInput = __decorate([
|
201
|
-
define(
|
202
|
+
define("exp-input")
|
202
203
|
], ExpInput);
|
203
204
|
export { ExpInput };
|
204
205
|
export default ExpInput;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../input-form/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/input-form/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import STD from
|
2
|
-
|
1
|
+
import STD from "./std.js";
|
2
|
+
type inputtype = "hidden" | "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "checkbox" | "radio" | "file" | "image";
|
3
3
|
export declare class LabelInput extends STD {
|
4
4
|
type: inputtype;
|
5
5
|
label: string;
|
@@ -9,14 +9,14 @@ export declare class LabelInput extends STD {
|
|
9
9
|
value: string;
|
10
10
|
autofocus: boolean;
|
11
11
|
_input: HTMLInputElement;
|
12
|
-
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag").CSSResultGroup[])[];
|
12
|
+
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
13
13
|
render(): import("lit-html").TemplateResult<1>;
|
14
14
|
_passwordSwitcher(): void;
|
15
15
|
}
|
16
16
|
export default LabelInput;
|
17
17
|
declare global {
|
18
18
|
interface HTMLElementTagNameMap {
|
19
|
-
|
19
|
+
"label-input": LabelInput;
|
20
20
|
}
|
21
21
|
}
|
22
22
|
//# sourceMappingURL=label-input.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"label-input.d.ts","sourceRoot":"","sources":["../../input-form/label-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,
|
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,4FAkET;IACJ,MAAM;IAWN,iBAAiB;CAOlB;AACD,eAAe,UAAU,CAAC;AAC1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
|
@@ -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, query, define, cssvar } from
|
8
|
-
import STD from
|
7
|
+
import { html, css, property, query, define, cssvar } from "../deps.js";
|
8
|
+
import STD from "./std.js";
|
9
9
|
let LabelInput = class LabelInput extends STD {
|
10
10
|
constructor() {
|
11
11
|
super(...arguments);
|
@@ -26,7 +26,7 @@ let LabelInput = class LabelInput extends STD {
|
|
26
26
|
<i><slot name="pre"></slot></i>
|
27
27
|
<input @input=${this._handleInput} @change=${this._handleChange} id=${this.name} type=${this.type} placeholder=${this.pla} class=${this.type} />
|
28
28
|
<i><slot name="suf"></slot></i>
|
29
|
-
${this.type === "password" && !this.querySelector(
|
29
|
+
${this.type === "password" && !this.querySelector(`[slot="suf"]`) ? html `<i @mousedown=${this._passwordSwitcher} @mouseup=${() => this._input.type = "password"} @mouseleave=${() => this._input.type = "password"} ><svg viewBox="0 0 48 48" fill="none"><path d="M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M42 42L6 6" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg></i>` : undefined}
|
30
30
|
</fieldset>
|
31
31
|
</label>`;
|
32
32
|
}
|
@@ -128,10 +128,10 @@ __decorate([
|
|
128
128
|
property({ type: Boolean })
|
129
129
|
], LabelInput.prototype, "autofocus", void 0);
|
130
130
|
__decorate([
|
131
|
-
query(
|
131
|
+
query("input")
|
132
132
|
], LabelInput.prototype, "_input", void 0);
|
133
133
|
LabelInput = __decorate([
|
134
|
-
define(
|
134
|
+
define("label-input")
|
135
135
|
], LabelInput);
|
136
136
|
export { LabelInput };
|
137
137
|
export default LabelInput;
|
@@ -13,13 +13,13 @@ export declare class SearchInput extends STD {
|
|
13
13
|
list: any[];
|
14
14
|
autofocus: boolean;
|
15
15
|
useinfer: (x: string) => Promise<string[]>;
|
16
|
-
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag").CSSResultGroup[])[];
|
16
|
+
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
17
17
|
render(): import("lit-html").TemplateResult<1>;
|
18
18
|
_handleSubmit(e: any): void;
|
19
19
|
_handleInput(e: any): Promise<void>;
|
20
20
|
}
|
21
21
|
export declare class SearchW extends STD {
|
22
|
-
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag").CSSResultGroup[])[];
|
22
|
+
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
23
23
|
action: string;
|
24
24
|
name: string;
|
25
25
|
pla: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../input-form/search-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IAClB,MAAM,EAAG,gBAAgB,CAAC;IAC9B,KAAK,SAAM;IACX,MAAM,SAAM;IACK,KAAK,UAAS;IACd,MAAM,UAAS;IAChC,MAAM,SAAQ;IACd,MAAM,EAAE,KAAK,GAAG,MAAM,CAAS;IAC/B,IAAI,SAAO;IACX,KAAK,SAAM;IACX,GAAG,MAAa;IACD,IAAI,EAAE,GAAG,EAAE,CAAM;IACf,SAAS,UAAS;
|
1
|
+
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/input-form/search-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IAClB,MAAM,EAAG,gBAAgB,CAAC;IAC9B,KAAK,SAAM;IACX,MAAM,SAAM;IACK,KAAK,UAAS;IACd,MAAM,UAAS;IAChC,MAAM,SAAQ;IACd,MAAM,EAAE,KAAK,GAAG,MAAM,CAAS;IAC/B,IAAI,SAAO;IACX,KAAK,SAAM;IACX,GAAG,MAAa;IACD,IAAI,EAAE,GAAG,EAAE,CAAM;IACf,SAAS,UAAS;IACf,QAAQ,MAAa,MAAM,uBAKzD;IACF,MAAM,CAAC,MAAM,4FAqDX;IACF,MAAM;IAcN,aAAa,CAAC,CAAC,KAAA;IAIT,YAAY,CAAC,CAAC,KAAA;CA8BrB;AASD,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,4FA2EV;IACS,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;;IAK3B,MAAM;CAYP;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;QAC5B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|