godown 1.2.0 → 2.0.0
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/conf.d.ts +6 -6
- package/conf.d.ts.map +1 -1
- package/conf.js +7 -6
- package/conf.js.map +1 -0
- package/deps.d.ts +4 -4
- package/deps.d.ts.map +1 -1
- package/deps.js +5 -4
- package/deps.js.map +1 -0
- package/effect/clip-text.d.ts +13 -0
- package/effect/clip-text.d.ts.map +1 -0
- package/effect/clip-text.js +35 -0
- package/effect/clip-text.js.map +1 -0
- package/effect/index.d.ts +3 -3
- package/effect/index.d.ts.map +1 -1
- package/effect/index.js +4 -3
- package/effect/index.js.map +1 -0
- package/effect/overbreath-text.d.ts +14 -0
- package/effect/overbreath-text.d.ts.map +1 -0
- package/effect/{ov-effect.js → overbreath-text.js} +57 -112
- package/effect/overbreath-text.js.map +1 -0
- package/effect/std.d.ts +2 -2
- package/effect/std.d.ts.map +1 -1
- package/effect/std.js +3 -2
- package/effect/std.js.map +1 -0
- package/effect/typewriter-text.d.ts +27 -0
- package/effect/typewriter-text.d.ts.map +1 -0
- package/effect/typewriter-text.js +121 -0
- package/effect/typewriter-text.js.map +1 -0
- package/glob.d.ts +15 -2
- package/glob.d.ts.map +1 -1
- package/glob.js +101 -5
- package/glob.js.map +1 -0
- package/group/avatar-group.d.ts +5 -7
- package/group/avatar-group.d.ts.map +1 -1
- package/group/avatar-group.js +24 -47
- package/group/avatar-group.js.map +1 -0
- package/group/details-group.d.ts +3 -4
- package/group/details-group.d.ts.map +1 -1
- package/group/details-group.js +7 -8
- package/group/details-group.js.map +1 -0
- package/group/index.d.ts +0 -1
- package/group/index.d.ts.map +1 -1
- package/group/index.js +1 -1
- package/group/index.js.map +1 -0
- package/group/std.d.ts +2 -2
- package/group/std.d.ts.map +1 -1
- package/group/std.js +3 -2
- package/group/std.js.map +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -0
- package/input-form/base-input.d.ts +7 -7
- package/input-form/base-input.d.ts.map +1 -1
- package/input-form/base-input.js +38 -27
- package/input-form/base-input.js.map +1 -0
- package/input-form/index.d.ts +0 -1
- package/input-form/index.d.ts.map +1 -1
- package/input-form/index.js +1 -1
- package/input-form/index.js.map +1 -0
- package/input-form/label-input.d.ts +5 -5
- package/input-form/label-input.d.ts.map +1 -1
- package/input-form/label-input.js +43 -33
- package/input-form/label-input.js.map +1 -0
- package/input-form/search-input.d.ts +6 -16
- package/input-form/search-input.d.ts.map +1 -1
- package/input-form/search-input.js +31 -141
- package/input-form/search-input.js.map +1 -0
- package/input-form/select-input.d.ts +5 -6
- package/input-form/select-input.d.ts.map +1 -1
- package/input-form/select-input.js +44 -50
- package/input-form/select-input.js.map +1 -0
- package/input-form/sign-form.d.ts +6 -11
- package/input-form/sign-form.d.ts.map +1 -1
- package/input-form/sign-form.js +29 -40
- package/input-form/sign-form.js.map +1 -0
- 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 +27 -22
- package/input-form/split-input.js.map +1 -0
- package/input-form/std.d.ts +12 -8
- package/input-form/std.d.ts.map +1 -1
- package/input-form/std.js +58 -16
- package/input-form/std.js.map +1 -0
- 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 +27 -7
- package/input-form/switch-input.js.map +1 -0
- package/items/alert-item.d.ts +3 -3
- package/items/alert-item.d.ts.map +1 -1
- package/items/alert-item.js +91 -95
- package/items/alert-item.js.map +1 -0
- package/items/avatar-a.d.ts +17 -0
- package/items/avatar-a.d.ts.map +1 -0
- package/items/avatar-a.js +102 -0
- package/items/avatar-a.js.map +1 -0
- package/items/base-button.d.ts +23 -6
- package/items/base-button.d.ts.map +1 -1
- package/items/base-button.js +184 -140
- package/items/base-button.js.map +1 -0
- package/items/dialog-item.d.ts +10 -9
- package/items/dialog-item.d.ts.map +1 -1
- package/items/dialog-item.js +69 -43
- package/items/dialog-item.js.map +1 -0
- package/items/index.d.ts +2 -1
- package/items/index.d.ts.map +1 -1
- package/items/index.js +3 -1
- package/items/index.js.map +1 -0
- package/items/link-a.d.ts +6 -5
- package/items/link-a.d.ts.map +1 -1
- package/items/link-a.js +24 -49
- package/items/link-a.js.map +1 -0
- package/items/load-track.d.ts +4 -4
- package/items/load-track.d.ts.map +1 -1
- package/items/load-track.js +17 -13
- package/items/load-track.js.map +1 -0
- package/items/std.d.ts +2 -2
- package/items/std.d.ts.map +1 -1
- package/items/std.js +3 -2
- package/items/std.js.map +1 -0
- package/items/super-a.d.ts +3 -3
- package/items/super-a.d.ts.map +1 -1
- package/items/super-a.js +26 -17
- package/items/super-a.js.map +1 -0
- package/items/time-bar.d.ts +20 -0
- package/items/time-bar.d.ts.map +1 -0
- package/items/time-bar.js +90 -0
- package/items/time-bar.js.map +1 -0
- package/layout/div-line.d.ts +2 -2
- package/layout/div-line.d.ts.map +1 -1
- package/layout/div-line.js +12 -7
- package/layout/div-line.js.map +1 -0
- package/layout/drag-box.d.ts +10 -12
- package/layout/drag-box.d.ts.map +1 -1
- package/layout/drag-box.js +10 -18
- package/layout/drag-box.js.map +1 -0
- package/layout/flex-flow.d.ts +2 -2
- package/layout/flex-flow.d.ts.map +1 -1
- package/layout/flex-flow.js +7 -5
- package/layout/flex-flow.js.map +1 -0
- package/layout/index.d.ts +1 -0
- package/layout/index.d.ts.map +1 -1
- package/layout/index.js +2 -0
- package/layout/index.js.map +1 -0
- package/layout/nav-aside.d.ts +3 -3
- package/layout/nav-aside.d.ts.map +1 -1
- package/layout/nav-aside.js +9 -6
- package/layout/nav-aside.js.map +1 -0
- package/layout/nav-layout.d.ts +2 -4
- package/layout/nav-layout.d.ts.map +1 -1
- package/layout/nav-layout.js +23 -42
- package/layout/nav-layout.js.map +1 -0
- package/layout/std.d.ts +3 -3
- package/layout/std.d.ts.map +1 -1
- package/layout/std.js +4 -3
- package/layout/std.js.map +1 -0
- package/layout/with-wrap.d.ts +13 -0
- package/layout/with-wrap.d.ts.map +1 -0
- package/layout/with-wrap.js +32 -0
- package/layout/with-wrap.js.map +1 -0
- package/package.json +7 -5
- package/react/effect.d.ts +2 -5
- package/react/effect.d.ts.map +1 -1
- package/react/effect.js +8 -22
- package/react/effect.js.map +1 -0
- package/react/group.d.ts +0 -1
- package/react/group.d.ts.map +1 -1
- package/react/group.js +2 -6
- package/react/group.js.map +1 -0
- package/react/index.js +1 -0
- package/react/index.js.map +1 -0
- package/react/input-form.d.ts +0 -5
- package/react/input-form.d.ts.map +1 -1
- package/react/input-form.js +9 -19
- package/react/input-form.js.map +1 -0
- package/react/items.d.ts +2 -1
- package/react/items.d.ts.map +1 -1
- package/react/items.js +9 -3
- package/react/items.js.map +1 -0
- package/react/layout.d.ts.map +1 -1
- package/react/layout.js +2 -1
- package/react/layout.js.map +1 -0
- package/react/view.d.ts +1 -0
- package/react/view.d.ts.map +1 -1
- package/react/view.js +7 -1
- package/react/view.js.map +1 -0
- package/tmpl.d.ts +20 -0
- package/tmpl.d.ts.map +1 -0
- package/tmpl.js +39 -0
- package/tmpl.js.map +1 -0
- package/view/details-expand.d.ts +6 -4
- package/view/details-expand.d.ts.map +1 -1
- package/view/details-expand.js +30 -26
- package/view/details-expand.js.map +1 -0
- package/view/down-drop.d.ts +8 -4
- package/view/down-drop.d.ts.map +1 -1
- package/view/down-drop.js +45 -24
- package/view/down-drop.js.map +1 -0
- package/view/index.d.ts +1 -0
- package/view/index.d.ts.map +1 -1
- package/view/index.js +2 -0
- package/view/index.js.map +1 -0
- package/view/menu-list.d.ts +4 -2
- package/view/menu-list.d.ts.map +1 -1
- package/view/menu-list.js +26 -13
- package/view/menu-list.js.map +1 -0
- package/view/rotation-pool.d.ts +23 -0
- package/view/rotation-pool.d.ts.map +1 -0
- package/{effect/ro-effect.js → view/rotation-pool.js} +74 -41
- package/view/rotation-pool.js.map +1 -0
- package/view/route-view.d.ts +9 -18
- package/view/route-view.d.ts.map +1 -1
- package/view/route-view.js +20 -23
- package/view/route-view.js.map +1 -0
- package/view/scroll-x.d.ts +3 -2
- package/view/scroll-x.d.ts.map +1 -1
- package/view/scroll-x.js +14 -10
- package/view/scroll-x.js.map +1 -0
- package/view/std.d.ts +3 -3
- package/view/std.d.ts.map +1 -1
- package/view/std.js +21 -4
- package/view/std.js.map +1 -0
- package/with.d.ts +17 -5
- package/with.d.ts.map +1 -1
- package/with.js +36 -7
- package/with.js.map +1 -0
- package/effect/ov-effect.d.ts +0 -24
- package/effect/ov-effect.d.ts.map +0 -1
- package/effect/ro-effect.d.ts +0 -20
- package/effect/ro-effect.d.ts.map +0 -1
- package/effect/tw-effect.d.ts +0 -22
- package/effect/tw-effect.d.ts.map +0 -1
- package/effect/tw-effect.js +0 -108
- package/group/button-group.d.ts +0 -13
- package/group/button-group.d.ts.map +0 -1
- package/group/button-group.js +0 -79
- package/input-form/exp-input.d.ts +0 -24
- package/input-form/exp-input.d.ts.map +0 -1
- package/input-form/exp-input.js +0 -218
- package/items/avatar-anchor.d.ts +0 -20
- package/items/avatar-anchor.d.ts.map +0 -1
- package/items/avatar-anchor.js +0 -150
package/view/std.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class ViewSTD extends
|
1
|
+
import { GlobalSTD } from "../deps.js";
|
2
|
+
export default class ViewSTD extends GlobalSTD {
|
3
3
|
}
|
4
|
-
export declare const
|
4
|
+
export declare const dlShareCSS: import("lit").CSSResult;
|
5
5
|
//# sourceMappingURL=std.d.ts.map
|
package/view/std.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/view/std.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/view/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,SAAS;CAAG;AACjD,eAAO,MAAM,UAAU,yBAiDtB,CAAC"}
|
package/view/std.js
CHANGED
@@ -1,17 +1,24 @@
|
|
1
|
-
import {
|
2
|
-
export default class ViewSTD extends
|
1
|
+
import { css, GlobalSTD } from "../deps.js";
|
2
|
+
export default class ViewSTD extends GlobalSTD {
|
3
3
|
}
|
4
|
-
export const
|
4
|
+
export const dlShareCSS = css `
|
5
5
|
:host {
|
6
6
|
display: block;
|
7
7
|
transition: all 0.3s ease-in-out;
|
8
8
|
}
|
9
|
+
|
9
10
|
span {
|
10
11
|
display: inline-flex;
|
11
12
|
align-items: center;
|
12
13
|
flex: 1;
|
13
14
|
white-space: nowrap;
|
14
15
|
}
|
16
|
+
|
17
|
+
dl {
|
18
|
+
height: 100%;
|
19
|
+
position: relative;
|
20
|
+
}
|
21
|
+
|
15
22
|
dt {
|
16
23
|
display: flex;
|
17
24
|
flex-wrap: nowrap;
|
@@ -19,19 +26,29 @@ export const DLsharecss = css `
|
|
19
26
|
background: inherit;
|
20
27
|
align-items: center;
|
21
28
|
}
|
29
|
+
|
22
30
|
* {
|
23
31
|
transition: inherit;
|
24
32
|
}
|
33
|
+
|
25
34
|
dd {
|
26
35
|
overflow: hidden;
|
27
36
|
display: grid;
|
28
37
|
grid-template-rows: 0fr;
|
29
38
|
}
|
39
|
+
|
30
40
|
section {
|
31
41
|
min-height: 0;
|
32
42
|
overflow: hidden;
|
33
43
|
}
|
34
|
-
|
44
|
+
|
45
|
+
:host([open]) dd {
|
35
46
|
grid-template-rows: 1fr;
|
36
47
|
}
|
48
|
+
|
49
|
+
:host([float]) dd {
|
50
|
+
top: 100%;
|
51
|
+
position: absolute;
|
52
|
+
}
|
37
53
|
`;
|
54
|
+
//# sourceMappingURL=std.js.map
|
package/view/std.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"std.js","sourceRoot":"","sources":["../../src/view/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,SAAS;CAAG;AACjD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD5B,CAAC"}
|
package/with.d.ts
CHANGED
@@ -12,13 +12,25 @@ export declare function append(target: string | HTMLElement, args: string | EleA
|
|
12
12
|
export declare function create(args: string | EleArgs | HTMLElement): HTMLElement;
|
13
13
|
/**
|
14
14
|
* Replace elements
|
15
|
-
* @param matched
|
16
|
-
* @param args
|
15
|
+
* @param matched
|
16
|
+
* @param args
|
17
17
|
*/
|
18
18
|
export declare function retag(matched: HTMLElement[], args: string | EleArgs | HTMLElement): void;
|
19
|
-
|
19
|
+
interface EleArgs {
|
20
20
|
tag: string;
|
21
21
|
props?: Record<string, any>;
|
22
|
-
children?:
|
23
|
-
}
|
22
|
+
children?: (string | HTMLElement | EleArgs)[];
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* @param vars css properties key array
|
26
|
+
* @param selectorProperties keys: raw name, as selector. values: css properties value array
|
27
|
+
* @param selectorFunc change raw name to a new selector
|
28
|
+
* @param propertyFunc form key and value into new key:value; pairs.
|
29
|
+
* @returns css text
|
30
|
+
*/
|
31
|
+
export declare function constructCSS(vars: LikeString[], selectorProperties: Record<string, LikeString[]>, selectorFunc?: (raw: LikeString) => string, propertyFunc?: (k: LikeString, v: LikeString) => string): string;
|
32
|
+
interface LikeString {
|
33
|
+
toString(): string;
|
34
|
+
}
|
35
|
+
export {};
|
24
36
|
//# sourceMappingURL=with.d.ts.map
|
package/with.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../src/with.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../src/with.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,SAAU,MAAM,YAAY,wBAAwB,mBAAmB,wBAAwB,SAOjH,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,WAA2B,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,QAKxG;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,WAAW,CAuBxE;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,QAajF;AAED,UAAU,OAAO;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC,EAAE,CAAC;CAC/C;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,KAAK,MAAM,UAoBrM;AAED,UAAU,UAAU;IAClB,QAAQ,IAAI,MAAM,CAAC;CACpB"}
|
package/with.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { conf } from "./conf.js";
|
2
2
|
export const define = (name, options) => (constructor) => {
|
3
|
-
const
|
4
|
-
if (customElements.get(
|
5
|
-
customElements.define(
|
6
|
-
conf.enabled.
|
7
|
-
conf.namemap.set(name,
|
3
|
+
const tagName = conf.tag(name);
|
4
|
+
if (customElements.get(tagName) === undefined) {
|
5
|
+
customElements.define(tagName, constructor, options);
|
6
|
+
conf.enabled.add(name);
|
7
|
+
conf.namemap.set(name, tagName);
|
8
8
|
}
|
9
9
|
};
|
10
10
|
/**
|
@@ -50,8 +50,8 @@ export function create(args) {
|
|
50
50
|
}
|
51
51
|
/**
|
52
52
|
* Replace elements
|
53
|
-
* @param matched
|
54
|
-
* @param args
|
53
|
+
* @param matched
|
54
|
+
* @param args
|
55
55
|
*/
|
56
56
|
export function retag(matched, args) {
|
57
57
|
var _a;
|
@@ -68,3 +68,32 @@ export function retag(matched, args) {
|
|
68
68
|
(_a = element.parentNode) === null || _a === void 0 ? void 0 : _a.replaceChild(newElement, element);
|
69
69
|
}
|
70
70
|
}
|
71
|
+
/**
|
72
|
+
* @param vars css properties key array
|
73
|
+
* @param selectorProperties keys: raw name, as selector. values: css properties value array
|
74
|
+
* @param selectorFunc change raw name to a new selector
|
75
|
+
* @param propertyFunc form key and value into new key:value; pairs.
|
76
|
+
* @returns css text
|
77
|
+
*/
|
78
|
+
export function constructCSS(vars, selectorProperties, selectorFunc, propertyFunc) {
|
79
|
+
let cssString = "";
|
80
|
+
Object.keys(selectorProperties).forEach((sel) => {
|
81
|
+
const classProperties = vars.map((propertyKey, index) => {
|
82
|
+
const propertyValue = selectorProperties[sel][index];
|
83
|
+
if (propertyValue === undefined || propertyValue === null) {
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
if (propertyFunc) {
|
87
|
+
return propertyFunc(propertyKey, propertyValue);
|
88
|
+
}
|
89
|
+
return `${propertyKey}:${propertyValue}`;
|
90
|
+
});
|
91
|
+
const filtedProperties = classProperties.filter((p) => p);
|
92
|
+
if (selectorFunc) {
|
93
|
+
sel = selectorFunc(sel);
|
94
|
+
}
|
95
|
+
cssString = `${cssString}${sel}{${filtedProperties.join(";")}}`;
|
96
|
+
});
|
97
|
+
return cssString;
|
98
|
+
}
|
99
|
+
//# sourceMappingURL=with.js.map
|
package/with.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"with.js","sourceRoot":"","sources":["../src/with.ts"],"names":[],"m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,CAAC;AACnB,CAAC"}
|
package/effect/ov-effect.d.ts
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import STD from "./std.js";
|
2
|
-
export declare class OVText extends STD {
|
3
|
-
static styles: import("lit").CSSResult[];
|
4
|
-
t1: string;
|
5
|
-
t2: string;
|
6
|
-
t3: string;
|
7
|
-
render(): import("lit").TemplateResult<1>;
|
8
|
-
}
|
9
|
-
export declare class OVPort extends STD {
|
10
|
-
static styles: import("lit").CSSResult[];
|
11
|
-
render(): import("lit").TemplateResult<1>;
|
12
|
-
}
|
13
|
-
export declare class OVButton extends STD {
|
14
|
-
static styles: import("lit").CSSResult[];
|
15
|
-
render(): import("lit").TemplateResult<1>;
|
16
|
-
}
|
17
|
-
declare global {
|
18
|
-
interface HTMLElementTagNameMap {
|
19
|
-
"ov-text": OVText;
|
20
|
-
"ov-port": OVPort;
|
21
|
-
"ov-button": OVButton;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=ov-effect.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ov-effect.d.ts","sourceRoot":"","sources":["../../src/effect/ov-effect.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AA6C3B,qBACa,MAAO,SAAQ,GAAG;IAC7B,MAAM,CAAC,MAAM,4BAiJX;IACU,EAAE,SAAe;IACjB,EAAE,SAAgB;IAClB,EAAE,SAAiB;IAC/B,MAAM;CAOP;AACD,qBACa,MAAO,SAAQ,GAAG;IAC7B,MAAM,CAAC,MAAM,4BAgBX;IACF,MAAM;CAIP;AACD,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,4BAiCX;IACF,MAAM;CAMP;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"}
|
package/effect/ro-effect.d.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import STD from "./std.js";
|
2
|
-
export declare class ROPort extends STD {
|
3
|
-
index: number;
|
4
|
-
autochange: number;
|
5
|
-
static styles: import("lit").CSSResult;
|
6
|
-
current: number;
|
7
|
-
get assigned(): any;
|
8
|
-
render(): import("lit").TemplateResult<1>;
|
9
|
-
firstUpdated(): void;
|
10
|
-
show(i: any): void;
|
11
|
-
next(): void;
|
12
|
-
prev(): void;
|
13
|
-
}
|
14
|
-
export default ROPort;
|
15
|
-
declare global {
|
16
|
-
interface HTMLElementTagNameMap {
|
17
|
-
"ro-port": ROPort;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
//# sourceMappingURL=ro-effect.d.ts.map
|
@@ -1 +0,0 @@
|
|
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,0BAyCX;IACF,OAAO,SAAK;IACZ,IAAI,QAAQ,IAAI,GAAG,CAElB;IACD,MAAM;IAWN,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/tw-effect.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import STD from "./std.js";
|
2
|
-
export declare class TWText extends STD {
|
3
|
-
text: string;
|
4
|
-
stopped: boolean;
|
5
|
-
autochange: number;
|
6
|
-
max: number;
|
7
|
-
min: number;
|
8
|
-
len: number;
|
9
|
-
_timer: any[];
|
10
|
-
static styles: import("lit").CSSResult;
|
11
|
-
render(): import("lit").TemplateResult<1>;
|
12
|
-
firstUpdated(): void;
|
13
|
-
rewrite(): void;
|
14
|
-
stop(): void;
|
15
|
-
}
|
16
|
-
export default TWText;
|
17
|
-
declare global {
|
18
|
-
interface HTMLElementTagNameMap {
|
19
|
-
"tw-text": TWText;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
//# sourceMappingURL=tw-effect.d.ts.map
|
@@ -1 +0,0 @@
|
|
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,0BAkBX;IACF,MAAM;IAGN,YAAY;IAKZ,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
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
import { css, define, html, property, state } from "../deps.js";
|
8
|
-
import STD from "./std.js";
|
9
|
-
let TWText = class TWText extends STD {
|
10
|
-
constructor() {
|
11
|
-
super(...arguments);
|
12
|
-
this.text = undefined;
|
13
|
-
this.stopped = false;
|
14
|
-
this.autochange = 0;
|
15
|
-
this.max = 50;
|
16
|
-
this.min = 500;
|
17
|
-
this.len = 0;
|
18
|
-
this._timer = [];
|
19
|
-
}
|
20
|
-
render() {
|
21
|
-
return html `<slot></slot><i></i>`;
|
22
|
-
}
|
23
|
-
firstUpdated() {
|
24
|
-
var _a;
|
25
|
-
if (!this.text)
|
26
|
-
this.text = ((_a = this.shadowRoot.querySelector("slot").assignedNodes()[0]) === null || _a === void 0 ? void 0 : _a.textContent.trim()) || "";
|
27
|
-
this.len = this.text.length;
|
28
|
-
if (!this.stopped && this.len)
|
29
|
-
this.rewrite();
|
30
|
-
}
|
31
|
-
rewrite() {
|
32
|
-
for (const timer of this._timer) {
|
33
|
-
clearTimeout(timer);
|
34
|
-
}
|
35
|
-
this._timer = [];
|
36
|
-
const text = this.shadowRoot.querySelector("slot").assignedNodes()[0];
|
37
|
-
text.textContent = "";
|
38
|
-
let delay = 0;
|
39
|
-
let autochange = this.autochange ? this.autochange : random(this.min, this.max);
|
40
|
-
this.text.split("").forEach((char) => {
|
41
|
-
this._timer.push(setTimeout(() => {
|
42
|
-
text.textContent += char;
|
43
|
-
this.dispatchEvent(new CustomEvent("change"));
|
44
|
-
if (this.len === text.textContent.length) {
|
45
|
-
this.dispatchEvent(new CustomEvent("done", { detail: delay }));
|
46
|
-
}
|
47
|
-
}, delay));
|
48
|
-
delay += autochange;
|
49
|
-
if (!this.autochange) {
|
50
|
-
autochange = random(this.min, this.max);
|
51
|
-
}
|
52
|
-
});
|
53
|
-
}
|
54
|
-
stop() {
|
55
|
-
for (const timer of this._timer) {
|
56
|
-
clearTimeout(timer);
|
57
|
-
}
|
58
|
-
this._timer = [];
|
59
|
-
}
|
60
|
-
};
|
61
|
-
TWText.styles = css `
|
62
|
-
:host {
|
63
|
-
font-family: monospace;
|
64
|
-
white-space: nowrap;
|
65
|
-
}
|
66
|
-
i {
|
67
|
-
border-right: 1px solid;
|
68
|
-
margin: 1px;
|
69
|
-
animation: s 1.5s steps(1) infinite;
|
70
|
-
}
|
71
|
-
@keyframes s {
|
72
|
-
0% {
|
73
|
-
border-color: currentColor;
|
74
|
-
}
|
75
|
-
50% {
|
76
|
-
border-color: transparent;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
`;
|
80
|
-
__decorate([
|
81
|
-
property()
|
82
|
-
], TWText.prototype, "text", void 0);
|
83
|
-
__decorate([
|
84
|
-
property({ type: Boolean })
|
85
|
-
], TWText.prototype, "stopped", void 0);
|
86
|
-
__decorate([
|
87
|
-
property({ type: Number })
|
88
|
-
], TWText.prototype, "autochange", void 0);
|
89
|
-
__decorate([
|
90
|
-
property({ type: Number })
|
91
|
-
], TWText.prototype, "max", void 0);
|
92
|
-
__decorate([
|
93
|
-
property({ type: Number })
|
94
|
-
], TWText.prototype, "min", void 0);
|
95
|
-
__decorate([
|
96
|
-
state()
|
97
|
-
], TWText.prototype, "len", void 0);
|
98
|
-
__decorate([
|
99
|
-
state()
|
100
|
-
], TWText.prototype, "_timer", void 0);
|
101
|
-
TWText = __decorate([
|
102
|
-
define("tw-text")
|
103
|
-
], TWText);
|
104
|
-
export { TWText };
|
105
|
-
function random(m = 0, n = 1) {
|
106
|
-
return Math.random() * (n - m) + m;
|
107
|
-
}
|
108
|
-
export default TWText;
|
package/group/button-group.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import STD from "./std.js";
|
2
|
-
export declare class ButtonGroup extends STD {
|
3
|
-
v: boolean;
|
4
|
-
static styles: import("lit").CSSResult;
|
5
|
-
render(): import("lit").TemplateResult<1>;
|
6
|
-
}
|
7
|
-
export default ButtonGroup;
|
8
|
-
declare global {
|
9
|
-
interface HTMLElementTagNameMap {
|
10
|
-
"button-group": ButtonGroup;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=button-group.d.ts.map
|
@@ -1 +0,0 @@
|
|
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;CAeP;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
package/group/button-group.js
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
import { css, define, html, property } from "../deps.js";
|
8
|
-
import STD from "./std.js";
|
9
|
-
let ButtonGroup = class ButtonGroup extends STD {
|
10
|
-
constructor() {
|
11
|
-
super(...arguments);
|
12
|
-
this.v = false;
|
13
|
-
}
|
14
|
-
render() {
|
15
|
-
return html `
|
16
|
-
<slot name="pre"></slot>
|
17
|
-
<div class=${this.v ? "v" : "h"}>
|
18
|
-
<style>
|
19
|
-
::slotted(*:nth-of-type(1)),
|
20
|
-
::slotted(*:last-of-type) {
|
21
|
-
border-radius: ${getComputedStyle(this).borderRadius};
|
22
|
-
}
|
23
|
-
</style>
|
24
|
-
<slot></slot>
|
25
|
-
</div>
|
26
|
-
<slot name="suf"></slot>
|
27
|
-
`;
|
28
|
-
}
|
29
|
-
};
|
30
|
-
ButtonGroup.styles = css `
|
31
|
-
:host {
|
32
|
-
display: inline-flex;
|
33
|
-
align-items: center;
|
34
|
-
}
|
35
|
-
.v {
|
36
|
-
flex-direction: column;
|
37
|
-
}
|
38
|
-
.h ::slotted(*:nth-of-type(1)) {
|
39
|
-
border-top-right-radius: 0 !important;
|
40
|
-
border-bottom-right-radius: 0 !important;
|
41
|
-
}
|
42
|
-
.h ::slotted(*:last-of-type) {
|
43
|
-
border-top-left-radius: 0 !important;
|
44
|
-
border-bottom-left-radius: 0 !important;
|
45
|
-
}
|
46
|
-
.v ::slotted(*:nth-of-type(1)) {
|
47
|
-
border-bottom-left-radius: 0 !important;
|
48
|
-
border-bottom-right-radius: 0 !important;
|
49
|
-
}
|
50
|
-
.v ::slotted(*:last-of-type) {
|
51
|
-
border-top-left-radius: 0 !important;
|
52
|
-
border-top-right-radius: 0 !important;
|
53
|
-
}
|
54
|
-
.h ::slotted(*) {
|
55
|
-
margin: 0 -0.04em; /* 50% border-width */
|
56
|
-
}
|
57
|
-
.v ::slotted(*) {
|
58
|
-
margin: -0.04em 0; /* 50% border-width */
|
59
|
-
}
|
60
|
-
::slotted(*:hover) {
|
61
|
-
z-index: 2;
|
62
|
-
}
|
63
|
-
.h {
|
64
|
-
margin: 0 0.04em;
|
65
|
-
display: inherit;
|
66
|
-
}
|
67
|
-
.v {
|
68
|
-
margin: 0.04em 0;
|
69
|
-
display: inherit;
|
70
|
-
}
|
71
|
-
`;
|
72
|
-
__decorate([
|
73
|
-
property({ type: Boolean })
|
74
|
-
], ButtonGroup.prototype, "v", void 0);
|
75
|
-
ButtonGroup = __decorate([
|
76
|
-
define("button-group")
|
77
|
-
], ButtonGroup);
|
78
|
-
export { ButtonGroup };
|
79
|
-
export default ButtonGroup;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { CSSResultGroup } from "../deps.js";
|
2
|
-
import type { InputType } from "./std.js";
|
3
|
-
import STD from "./std.js";
|
4
|
-
export declare class ExpInput extends STD {
|
5
|
-
static styles: CSSResultGroup[];
|
6
|
-
label: string;
|
7
|
-
name: string;
|
8
|
-
pla: any;
|
9
|
-
type: InputType | "textarea";
|
10
|
-
value: string;
|
11
|
-
def: string;
|
12
|
-
base: "outline" | "filed" | "underline";
|
13
|
-
offset: string;
|
14
|
-
autofocus: boolean;
|
15
|
-
_input: HTMLInputElement;
|
16
|
-
render(): import("lit").TemplateResult<1>;
|
17
|
-
}
|
18
|
-
export default ExpInput;
|
19
|
-
declare global {
|
20
|
-
interface HTMLElementTagNameMap {
|
21
|
-
"exp-input": ExpInput;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=exp-input.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"exp-input.d.ts","sourceRoot":"","sources":["../../src/input-form/exp-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwD,cAAc,EAAE,MAAM,YAAY,CAAC;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,mBA+IS;IACV,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"}
|