godown 1.1.1 → 1.1.3
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/effect/ov-effect.d.ts +3 -3
- package/effect/ro-effect.d.ts +1 -1
- package/effect/tw-effect.d.ts +1 -1
- package/group/avatar-group.d.ts +1 -1
- package/group/button-group.d.ts +1 -1
- package/group/details-group.d.ts +1 -1
- package/input-form/base-input.d.ts +2 -2
- package/input-form/exp-input.d.ts +1 -1
- package/input-form/label-input.d.ts +1 -1
- package/input-form/search-input.d.ts +2 -2
- package/input-form/select-input.d.ts +1 -1
- package/input-form/sign-form.d.ts +1 -1
- package/input-form/split-input.d.ts +1 -1
- package/input-form/switch-input.d.ts +1 -1
- package/input-form/switch-input.d.ts.map +1 -1
- package/input-form/switch-input.js +10 -3
- package/items/alert-item.d.ts +1 -1
- package/items/avatar-anchor.d.ts +2 -2
- package/items/base-button.d.ts +1 -1
- package/items/dialog-item.d.ts +1 -1
- package/items/load-track.d.ts +1 -1
- package/items/super-a.d.ts +2 -2
- package/layout/div-line.d.ts +1 -1
- package/layout/drag-box.d.ts +1 -1
- package/layout/flex-flow.d.ts +1 -1
- package/layout/nav-aside.d.ts +1 -1
- package/layout/nav-layout.d.ts +1 -1
- package/layout/nav-layout.js +2 -2
- package/package.json +4 -4
- package/react/effect.d.ts.map +1 -1
- package/react/effect.js +1 -0
- package/react/group.d.ts.map +1 -1
- package/react/group.js +1 -0
- package/react/index.d.ts +1 -0
- package/react/index.d.ts.map +1 -1
- package/react/index.js +1 -0
- package/react/input-form.d.ts.map +1 -1
- package/react/input-form.js +1 -0
- package/react/items.d.ts.map +1 -1
- package/react/items.js +2 -1
- package/react/layout.d.ts.map +1 -1
- package/react/layout.js +1 -0
- package/react/view.d.ts.map +1 -1
- package/react/view.js +1 -0
- package/view/details-expand.d.ts +1 -1
- package/view/down-drop.d.ts +1 -1
- package/view/menu-list.d.ts +1 -1
- package/view/route-view.d.ts +4 -4
- package/view/route-view.d.ts.map +1 -1
- package/view/route-view.js +32 -9
- package/view/scroll-x.d.ts +1 -1
package/effect/ov-effect.d.ts
CHANGED
@@ -4,15 +4,15 @@ export declare class OVText extends STD {
|
|
4
4
|
t1: string;
|
5
5
|
t2: string;
|
6
6
|
t3: string;
|
7
|
-
render(): import("lit
|
7
|
+
render(): import("lit").TemplateResult<1>;
|
8
8
|
}
|
9
9
|
export declare class OVPort extends STD {
|
10
10
|
static styles: import("lit").CSSResult[];
|
11
|
-
render(): import("lit
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
12
12
|
}
|
13
13
|
export declare class OVButton extends STD {
|
14
14
|
static styles: import("lit").CSSResult[];
|
15
|
-
render(): import("lit
|
15
|
+
render(): import("lit").TemplateResult<1>;
|
16
16
|
}
|
17
17
|
declare global {
|
18
18
|
interface HTMLElementTagNameMap {
|
package/effect/ro-effect.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare class ROPort extends STD {
|
|
5
5
|
static styles: import("lit").CSSResult;
|
6
6
|
current: number;
|
7
7
|
get assigned(): any;
|
8
|
-
render(): import("lit
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
9
9
|
firstUpdated(): void;
|
10
10
|
show(i: any): void;
|
11
11
|
next(): void;
|
package/effect/tw-effect.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare class TWText extends STD {
|
|
8
8
|
len: number;
|
9
9
|
_timer: any[];
|
10
10
|
static styles: import("lit").CSSResult;
|
11
|
-
render(): import("lit
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
12
12
|
firstUpdated(): void;
|
13
13
|
rewrite(): void;
|
14
14
|
stop(): void;
|
package/group/avatar-group.d.ts
CHANGED
@@ -6,7 +6,7 @@ export declare class AvatarGroup extends STD {
|
|
6
6
|
usefresh: () => Promise<void>;
|
7
7
|
static styles: import("lit").CSSResult;
|
8
8
|
get assigned(): HTMLElement[];
|
9
|
-
render(): import("lit
|
9
|
+
render(): import("lit").TemplateResult<1>;
|
10
10
|
firstUpdated(): void;
|
11
11
|
append(args?: string): void;
|
12
12
|
subtract(): void;
|
package/group/button-group.d.ts
CHANGED
@@ -2,7 +2,7 @@ import STD from "./std.js";
|
|
2
2
|
export declare class ButtonGroup extends STD {
|
3
3
|
v: boolean;
|
4
4
|
static styles: import("lit").CSSResult;
|
5
|
-
render(): import("lit
|
5
|
+
render(): import("lit").TemplateResult<1>;
|
6
6
|
}
|
7
7
|
export default ButtonGroup;
|
8
8
|
declare global {
|
package/group/details-group.d.ts
CHANGED
@@ -3,7 +3,7 @@ export declare class DetailsGroup extends STD {
|
|
3
3
|
index: number;
|
4
4
|
only: boolean;
|
5
5
|
static styles: import("lit").CSSResult;
|
6
|
-
render(): import("lit
|
6
|
+
render(): import("lit").TemplateResult<1>;
|
7
7
|
get assigned(): Element[];
|
8
8
|
firstUpdated(): Promise<void>;
|
9
9
|
_handleClick(e: any): void;
|
@@ -16,13 +16,13 @@ export declare class BaseInput extends STD {
|
|
16
16
|
step: number;
|
17
17
|
autofocus: boolean;
|
18
18
|
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
19
|
-
render(): import("lit
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
20
20
|
connectedCallback(): void;
|
21
21
|
firstUpdated(): void;
|
22
22
|
_handleRange(e: any): void;
|
23
23
|
_handleFile(e: any): void;
|
24
24
|
reset(): void;
|
25
|
-
_typeSwitcher(): import("lit
|
25
|
+
_typeSwitcher(): import("lit").TemplateResult<1>;
|
26
26
|
}
|
27
27
|
export default BaseInput;
|
28
28
|
declare global {
|
@@ -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
|
15
|
+
render(): import("lit").TemplateResult<1>;
|
16
16
|
}
|
17
17
|
export default ExpInput;
|
18
18
|
declare global {
|
@@ -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
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
14
14
|
_passwordSwitcher(): void;
|
15
15
|
}
|
16
16
|
export default LabelInput;
|
@@ -14,7 +14,7 @@ export declare class SearchInput extends STD {
|
|
14
14
|
autofocus: boolean;
|
15
15
|
useinfer: (x: string) => Promise<string[]>;
|
16
16
|
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
17
|
-
render(): import("lit
|
17
|
+
render(): import("lit").TemplateResult<1>;
|
18
18
|
_handleSubmit(e: any): void;
|
19
19
|
_handleInput(e: any): Promise<void>;
|
20
20
|
}
|
@@ -25,7 +25,7 @@ export declare class SearchW extends STD {
|
|
25
25
|
pla: string;
|
26
26
|
origin: string;
|
27
27
|
constructor();
|
28
|
-
render(): import("lit
|
28
|
+
render(): import("lit").TemplateResult<1>;
|
29
29
|
}
|
30
30
|
export default SearchInput;
|
31
31
|
declare global {
|
@@ -13,7 +13,7 @@ export declare class SelectInput extends STD {
|
|
13
13
|
get assigned(): any;
|
14
14
|
_input: HTMLInputElement;
|
15
15
|
_aside: HTMLInputElement;
|
16
|
-
render(): import("lit
|
16
|
+
render(): import("lit").TemplateResult<1>;
|
17
17
|
lists(): any[];
|
18
18
|
_focusCheck(): void;
|
19
19
|
focus(options?: FocusOptions): void;
|
@@ -5,7 +5,7 @@ export declare class SignForm extends STD {
|
|
5
5
|
set: 0 | 1 | 2;
|
6
6
|
static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
|
7
7
|
_form: HTMLFormElement;
|
8
|
-
render(): import("lit
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
9
9
|
opt(): any[];
|
10
10
|
reset(): void;
|
11
11
|
namevalue(): {}[];
|
@@ -10,7 +10,7 @@ export declare class SplitInput extends STD {
|
|
10
10
|
_spans: NodeListOf<HTMLSpanElement>;
|
11
11
|
current: number;
|
12
12
|
currentValue: Array<string | null>;
|
13
|
-
render(): import("lit
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
14
14
|
firstUpdated(): void;
|
15
15
|
_handleInput(e: InputEvent): void;
|
16
16
|
focus(): void;
|
@@ -8,7 +8,7 @@ export declare class SwitchInput extends STD {
|
|
8
8
|
name: string;
|
9
9
|
value: string;
|
10
10
|
_input: HTMLInputElement;
|
11
|
-
render(): import("lit
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
12
12
|
reset(): void;
|
13
13
|
connectedCallback(): void;
|
14
14
|
_handleChange(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"switch-input.d.ts","sourceRoot":"","sources":["../../src/input-form/switch-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IAClC,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"switch-input.d.ts","sourceRoot":"","sources":["../../src/input-form/switch-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IAClC,MAAM,CAAC,MAAM,4FAmGP;IACuB,OAAO,UAAS;IAChB,QAAQ,UAAS;IAClC,IAAI,EAAE,KAAK,GAAG,MAAM,CAAU;IAC9B,GAAG,SAAW;IACd,IAAI,SAAc;IAClB,KAAK,SAAQ;IACT,MAAM,EAAE,gBAAgB,CAAC;IACzC,MAAM;IASN,KAAK;IAIL,iBAAiB;IAQjB,aAAa;IAKb,SAAS;CAGV;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
@@ -47,14 +47,21 @@ let SwitchInput = class SwitchInput extends STD {
|
|
47
47
|
return [this.name, this.checked];
|
48
48
|
}
|
49
49
|
};
|
50
|
-
SwitchInput.styles = [STD.styles, css
|
50
|
+
SwitchInput.styles = [STD.styles, css `
|
51
|
+
:host{
|
52
|
+
width: 3em;
|
53
|
+
height: 1.5em;
|
54
|
+
}
|
55
|
+
:host,span {
|
51
56
|
display: inline-flex;
|
52
57
|
font-size: inherit;
|
53
58
|
position: relative;
|
54
59
|
align-items: center;
|
55
60
|
border-radius: inherit;
|
56
|
-
|
57
|
-
|
61
|
+
}
|
62
|
+
span{
|
63
|
+
width: inherit;
|
64
|
+
height: inherit;
|
58
65
|
}
|
59
66
|
input {
|
60
67
|
width:inherit;
|
package/items/alert-item.d.ts
CHANGED
package/items/avatar-anchor.d.ts
CHANGED
@@ -8,8 +8,8 @@ export declare class AvatarAnchor extends STD {
|
|
8
8
|
gap: boolean;
|
9
9
|
static styles: import("lit").CSSResult;
|
10
10
|
constructor();
|
11
|
-
render(): import("lit
|
12
|
-
ava(): import("lit
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
12
|
+
ava(): import("lit").TemplateResult<1>;
|
13
13
|
}
|
14
14
|
export default AvatarAnchor;
|
15
15
|
declare global {
|
package/items/base-button.d.ts
CHANGED
@@ -6,7 +6,7 @@ export declare class BaseButton extends STD {
|
|
6
6
|
href: string;
|
7
7
|
target: string;
|
8
8
|
color: "black" | "white" | "yellow" | "gary" | "red" | "blue" | "green";
|
9
|
-
render(): import("lit
|
9
|
+
render(): import("lit").TemplateResult<1>;
|
10
10
|
}
|
11
11
|
export default BaseButton;
|
12
12
|
declare global {
|
package/items/dialog-item.d.ts
CHANGED
@@ -7,7 +7,7 @@ export declare class DialogItem extends STD {
|
|
7
7
|
modal: boolean;
|
8
8
|
call: "left" | "center" | "right" | "top" | "bottom";
|
9
9
|
get _div(): HTMLDivElement;
|
10
|
-
render(): import("lit
|
10
|
+
render(): import("lit").TemplateResult<1>;
|
11
11
|
firstUpdated(): void;
|
12
12
|
show(): void;
|
13
13
|
showModal(): void;
|
package/items/load-track.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare class LoadTrack extends STD {
|
|
8
8
|
modify: boolean;
|
9
9
|
set value(val: string);
|
10
10
|
get value(): string;
|
11
|
-
render(): import("lit
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
12
12
|
parsePercent(s?: string | number): number;
|
13
13
|
_handleClick(e: any): void;
|
14
14
|
}
|
package/items/super-a.d.ts
CHANGED
@@ -4,8 +4,8 @@ export declare class SuperAnchor extends STD {
|
|
4
4
|
target: string;
|
5
5
|
arrow: "" | "delta" | "arrow" | "angle" | "hand";
|
6
6
|
static styles: import("lit").CSSResult;
|
7
|
-
render(): import("lit
|
8
|
-
_arrowSwitcher(): import("lit
|
7
|
+
render(): import("lit").TemplateResult<1>;
|
8
|
+
_arrowSwitcher(): import("lit").TemplateResult<1>;
|
9
9
|
}
|
10
10
|
export default SuperAnchor;
|
11
11
|
declare global {
|
package/layout/div-line.d.ts
CHANGED
package/layout/drag-box.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare class DragBox extends STD {
|
|
5
5
|
static styles: import("lit").CSSResult;
|
6
6
|
get offsetsWidth(): number;
|
7
7
|
get offsetsHeight(): number;
|
8
|
-
render(): import("lit
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
9
9
|
firstUpdated(): void;
|
10
10
|
drag: boolean;
|
11
11
|
t: number;
|
package/layout/flex-flow.d.ts
CHANGED
package/layout/nav-aside.d.ts
CHANGED
@@ -3,7 +3,7 @@ export declare class NavAside extends STD {
|
|
3
3
|
m: string;
|
4
4
|
position: string;
|
5
5
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
|
6
|
-
render(): import("lit
|
6
|
+
render(): import("lit").TemplateResult<1>;
|
7
7
|
}
|
8
8
|
export default NavAside;
|
9
9
|
declare global {
|
package/layout/nav-layout.d.ts
CHANGED
package/layout/nav-layout.js
CHANGED
@@ -39,6 +39,7 @@ let NavLayout = class NavLayout extends STD {
|
|
39
39
|
NavLayout.styles = [STD.styles, css `:host{
|
40
40
|
${navstyle}
|
41
41
|
${cssvar}--nav-height:2.4em;
|
42
|
+
${cssvar}--nav-h1-size:calc(var(${cssvar}--nav-height)/2);
|
42
43
|
color: var(${cssvar}--nav-text);
|
43
44
|
width: 100%;display: flex;flex-flow: column nowrap;justify-content: space-between;align-items: center;min-height: 100%;
|
44
45
|
}
|
@@ -66,7 +67,7 @@ NavLayout.styles = [STD.styles, css `:host{
|
|
66
67
|
}
|
67
68
|
h1 {
|
68
69
|
font-weight: normal;
|
69
|
-
font-size:
|
70
|
+
font-size: var(${cssvar}--nav-h1-size);
|
70
71
|
margin: 0;
|
71
72
|
display: flex;
|
72
73
|
align-items: center;
|
@@ -79,7 +80,6 @@ NavLayout.styles = [STD.styles, css `:host{
|
|
79
80
|
}
|
80
81
|
h1>*{
|
81
82
|
white-space: nowrap;
|
82
|
-
font-size: 145%;
|
83
83
|
}
|
84
84
|
main{
|
85
85
|
flex: 1;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "godown",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.3",
|
4
4
|
"main": "./index.js",
|
5
5
|
"type": "module",
|
6
6
|
"scripts": {
|
@@ -21,9 +21,9 @@
|
|
21
21
|
"url": "https://github.com/startracex/godown.git"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@lit-labs/react": "
|
25
|
-
"lit": "
|
26
|
-
"react": "
|
24
|
+
"@lit-labs/react": "*",
|
25
|
+
"lit": "*",
|
26
|
+
"react": "*"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
29
|
"@rollup/plugin-terser": "^0.4.0",
|
package/react/effect.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"effect.d.ts","sourceRoot":"","sources":["../../src/react/effect.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"effect.d.ts","sourceRoot":"","sources":["../../src/react/effect.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AAExC,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,MAAM;;;EAQjB,CAAC"}
|
package/react/effect.js
CHANGED
package/react/group.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../src/react/group.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../src/react/group.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,mBAAmB,CAAC;AAEvC,eAAO,MAAM,WAAW,gEAItB,CAAC;AACH,eAAO,MAAM,WAAW,gEAItB,CAAC;AACH,eAAO,MAAM,YAAY,iEAIvB,CAAC"}
|
package/react/group.js
CHANGED
package/react/index.d.ts
CHANGED
package/react/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
package/react/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input-form.d.ts","sourceRoot":"","sources":["../../src/react/input-form.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"input-form.d.ts","sourceRoot":"","sources":["../../src/react/input-form.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,wBAAwB,CAAC;AAM5C,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,SAAS;;;EAKpB,CAAC;AACH,eAAO,MAAM,QAAQ;;;EAKnB,CAAC;AACH,eAAO,MAAM,UAAU;;;EAKrB,CAAC;AACH,eAAO,MAAM,WAAW;;;EAKtB,CAAC;AACH,eAAO,MAAM,OAAO,4DAIlB,CAAC;AACH,eAAO,MAAM,WAAW;;;EAKtB,CAAC;AACH,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,UAAU;;;EAKrB,CAAC;AACH,eAAO,MAAM,WAAW;;;EAKtB,CAAC"}
|
package/react/input-form.js
CHANGED
package/react/items.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/react/items.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/react/items.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,mBAAmB,CAAC;AAEvC,eAAO,MAAM,YAAY,iEAIvB,CAAC;AACH,eAAO,MAAM,UAAU,+DAIrB,CAAC;AACH,eAAO,MAAM,SAAS,8DAIpB,CAAC;AACH,eAAO,MAAM,UAAU,+DAIrB,CAAC;AACH,eAAO,MAAM,UAAU,+DAIrB,CAAC;AACH,eAAO,MAAM,SAAS,8DAIpB,CAAC;AACH,eAAO,MAAM,WAAW,gEAItB,CAAC"}
|
package/react/items.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
"use client";
|
1
2
|
import * as React from "react";
|
2
3
|
import * as X from "../items/index.js";
|
3
4
|
import { createComponent } from "@lit-labs/react";
|
4
5
|
export const AvatarAnchor = createComponent({
|
5
|
-
tagName: "avatar-
|
6
|
+
tagName: "avatar-anchor",
|
6
7
|
elementClass: X.AvatarAnchor,
|
7
8
|
react: React
|
8
9
|
});
|
package/react/layout.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/react/layout.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/react/layout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AAExC,eAAO,MAAM,SAAS,8DAIpB,CAAC;AACH,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,OAAO,4DAIlB,CAAC;AACH,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,OAAO,4DAIlB,CAAC"}
|
package/react/layout.js
CHANGED
package/react/view.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/react/view.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/react/view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,kBAAkB,CAAC;AAEtC,eAAO,MAAM,aAAa,kEAIxB,CAAC;AACH,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,SAAS,8DAIpB,CAAC;AACH,eAAO,MAAM,OAAO,4DAIlB,CAAC"}
|
package/react/view.js
CHANGED
package/view/details-expand.d.ts
CHANGED
@@ -6,7 +6,7 @@ export declare class DetailsExpand extends STD {
|
|
6
6
|
fill: boolean;
|
7
7
|
float: boolean;
|
8
8
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
|
9
|
-
render(): import("lit
|
9
|
+
render(): import("lit").TemplateResult<1>;
|
10
10
|
firstUpdated(): void;
|
11
11
|
toggle(to?: boolean): void;
|
12
12
|
}
|
package/view/down-drop.d.ts
CHANGED
@@ -3,7 +3,7 @@ export declare class DownDrop extends STD {
|
|
3
3
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
|
4
4
|
_div: HTMLDivElement;
|
5
5
|
_timer: any;
|
6
|
-
render(): import("lit
|
6
|
+
render(): import("lit").TemplateResult<1>;
|
7
7
|
firstUpdated(): Promise<void>;
|
8
8
|
resize(): void;
|
9
9
|
close(): void;
|
package/view/menu-list.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare class MenuList extends STD {
|
|
5
5
|
def: boolean;
|
6
6
|
_section: HTMLElement;
|
7
7
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
|
8
|
-
render(): import("lit
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
9
9
|
toggle(to?: boolean): void;
|
10
10
|
}
|
11
11
|
export default MenuList;
|
package/view/route-view.d.ts
CHANGED
@@ -21,15 +21,15 @@ export declare class RouteView extends LitElement {
|
|
21
21
|
path: string;
|
22
22
|
}[];
|
23
23
|
static styles: import("lit").CSSResult;
|
24
|
-
render(): TemplateResult<
|
24
|
+
render(): TemplateResult<2 | 1>;
|
25
25
|
useRouter(): {
|
26
26
|
path: string;
|
27
27
|
params: Record<string, string>;
|
28
28
|
};
|
29
29
|
connectedCallback(): void;
|
30
|
-
render_united(): TemplateResult<
|
31
|
-
render_slotted(): TemplateResult<
|
32
|
-
render_field(): TemplateResult<
|
30
|
+
render_united(): TemplateResult<2 | 1>;
|
31
|
+
render_slotted(): TemplateResult<2 | 1>;
|
32
|
+
render_field(): TemplateResult<2 | 1>;
|
33
33
|
fieldComponent(usedRouteTemplate: string): null | TemplateResult;
|
34
34
|
slottedCompoent(usedRouteTemplate: string, ObjectArrayIncludePath: Array<{
|
35
35
|
path: string;
|
package/view/route-view.d.ts.map
CHANGED
@@ -1 +1 @@
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E,CAAC,GAAG,IAAI,GAAG,cAAc;IAQ5J,MAAM,CAAC,eAAe,CAAC,sBAAsB,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAA,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC,GAAG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;KAAE,CAAC;IA+BrH,MAAM,CAAC,aAAa,CAAC,sBAAsB,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAA,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAW;IA4C5H,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAoB3F,MAAM,CAAC,SAAS;CAOjB;AACD,eAAe,SAAS,CAAC;AACzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
package/view/route-view.js
CHANGED
@@ -156,26 +156,49 @@ let RouteView = RouteView_1 = class RouteView extends LitElement {
|
|
156
156
|
}
|
157
157
|
static useWhichRoute(ObjectArrayIncludePath, path, baseURL = "") {
|
158
158
|
const originpath = baseURL + path;
|
159
|
+
const originsplits = originpath.split("/").slice(1);
|
159
160
|
const routes = ObjectArrayIncludePath;
|
160
161
|
const pathTemplateArray = routes.map((r) => r.path);
|
161
162
|
for (const pathTemplate of pathTemplateArray) {
|
162
163
|
const pathsplits = pathTemplate.split("/").slice(1);
|
163
|
-
const
|
164
|
-
|
165
|
-
|
164
|
+
const ifmatched = pathsplits.every((pathsplit, index) => {
|
165
|
+
const originsplit = originsplits[index];
|
166
|
+
if (pathsplit.startsWith(":")) {
|
167
|
+
return originsplits.length <= pathsplits.length;
|
166
168
|
}
|
167
|
-
else if (
|
168
|
-
return
|
169
|
+
else if (pathsplit.startsWith("...")) {
|
170
|
+
return originsplits.length >= pathsplits.length;
|
169
171
|
}
|
170
172
|
else {
|
171
|
-
return
|
173
|
+
return originsplits.length === pathsplits.length && originsplit === pathsplit;
|
172
174
|
}
|
173
|
-
})
|
174
|
-
if (
|
175
|
+
});
|
176
|
+
if (ifmatched) {
|
175
177
|
return pathTemplate;
|
176
178
|
}
|
177
179
|
}
|
178
180
|
return null;
|
181
|
+
/*
|
182
|
+
const originpath: string = baseURL + path;
|
183
|
+
const routes = ObjectArrayIncludePath as Array<{ path?: string; }>;
|
184
|
+
const pathTemplateArray = routes.map((r) => r.path) as Array<string>;
|
185
|
+
for (const pathTemplate of pathTemplateArray) {
|
186
|
+
const pathsplits = pathTemplate.split("/").slice(1);
|
187
|
+
const reg = new RegExp(pathsplits.map((s: string) => {
|
188
|
+
if (s.startsWith(":")) {
|
189
|
+
return "^\/[^\/]+$";
|
190
|
+
} else if (s.startsWith("...") || s.startsWith("*")) {
|
191
|
+
return ".*";
|
192
|
+
} else {
|
193
|
+
return s;
|
194
|
+
}
|
195
|
+
}).join("/") + "$");
|
196
|
+
if (reg.test(originpath)) {
|
197
|
+
return pathTemplate;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
return null;
|
201
|
+
*/
|
179
202
|
}
|
180
203
|
static parseRouterParams(routeTemplate, originpath) {
|
181
204
|
if (!routeTemplate || !originpath)
|
@@ -191,7 +214,7 @@ let RouteView = RouteView_1 = class RouteView extends LitElement {
|
|
191
214
|
params[path.slice(1)] = originpathArray.slice(index).join("/");
|
192
215
|
}
|
193
216
|
else if (path.startsWith("...")) {
|
194
|
-
params[path.slice(
|
217
|
+
params[path.slice(3)] = originpathArray.slice(index).join("/");
|
195
218
|
}
|
196
219
|
else {
|
197
220
|
if (path !== originpathArray[index]) {
|
package/view/scroll-x.d.ts
CHANGED
@@ -2,7 +2,7 @@ import STD from "./std.js";
|
|
2
2
|
export declare class ScrollX extends STD {
|
3
3
|
static styles: import("lit").CSSResult;
|
4
4
|
get _section(): HTMLElement;
|
5
|
-
render(): import("lit
|
5
|
+
render(): import("lit").TemplateResult<1>;
|
6
6
|
firstUpdated(): void;
|
7
7
|
resize(): void;
|
8
8
|
}
|