godown 1.1.5 → 1.2.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/LICENSE +9 -9
- package/conf.d.ts +17 -18
- package/conf.d.ts.map +1 -1
- package/conf.js +24 -22
- package/deps.d.ts +7 -7
- package/deps.d.ts.map +1 -1
- package/deps.js +7 -7
- package/effect/index.d.ts +3 -3
- package/effect/index.js +3 -3
- package/effect/ov-effect.d.ts +23 -23
- package/effect/ov-effect.js +85 -85
- package/effect/ro-effect.d.ts +19 -19
- package/effect/ro-effect.js +76 -76
- package/effect/std.d.ts +3 -3
- package/effect/std.js +3 -3
- package/effect/tw-effect.d.ts +21 -21
- package/effect/tw-effect.js +90 -90
- package/glob.d.ts +11 -8
- package/glob.d.ts.map +1 -1
- package/glob.js +20 -9
- package/group/avatar-group.d.ts +20 -20
- package/group/avatar-group.js +88 -88
- package/group/button-group.d.ts +12 -12
- package/group/button-group.js +26 -26
- package/group/details-group.d.ts +16 -16
- package/group/details-group.js +51 -51
- package/group/index.d.ts +3 -3
- package/group/index.js +3 -3
- package/group/std.d.ts +3 -3
- package/group/std.js +3 -3
- package/index.d.ts +7 -7
- package/index.js +7 -7
- package/input-form/base-input.d.ts +33 -32
- package/input-form/base-input.d.ts.map +1 -1
- package/input-form/base-input.js +129 -129
- package/input-form/exp-input.d.ts +23 -22
- package/input-form/exp-input.d.ts.map +1 -1
- package/input-form/exp-input.js +67 -67
- package/input-form/index.d.ts +8 -8
- package/input-form/index.js +8 -8
- package/input-form/label-input.d.ts +22 -21
- package/input-form/label-input.d.ts.map +1 -1
- package/input-form/label-input.js +69 -69
- package/input-form/search-input.d.ts +37 -36
- package/input-form/search-input.d.ts.map +1 -1
- package/input-form/search-input.js +163 -163
- package/input-form/select-input.d.ts +35 -31
- package/input-form/select-input.d.ts.map +1 -1
- package/input-form/select-input.js +290 -259
- package/input-form/sign-form.d.ts +26 -25
- package/input-form/sign-form.d.ts.map +1 -1
- package/input-form/sign-form.js +147 -147
- package/input-form/split-input.d.ts +27 -26
- package/input-form/split-input.d.ts.map +1 -1
- package/input-form/split-input.js +127 -127
- package/input-form/std.d.ts +20 -19
- package/input-form/std.d.ts.map +1 -1
- package/input-form/std.js +56 -55
- package/input-form/switch-input.d.ts +23 -22
- package/input-form/switch-input.d.ts.map +1 -1
- package/input-form/switch-input.js +73 -73
- package/items/alert-item.d.ts +16 -16
- package/items/alert-item.js +69 -69
- package/items/avatar-anchor.d.ts +19 -19
- package/items/avatar-anchor.js +71 -71
- package/items/base-button.d.ts +16 -16
- package/items/base-button.js +117 -117
- package/items/dialog-item.d.ts +24 -24
- package/items/dialog-item.js +92 -92
- package/items/index.d.ts +7 -7
- package/items/index.js +7 -7
- package/items/link-a.d.ts +19 -19
- package/items/link-a.js +76 -76
- package/items/load-track.d.ts +21 -20
- package/items/load-track.d.ts.map +1 -1
- package/items/load-track.js +76 -76
- package/items/std.d.ts +3 -3
- package/items/std.js +3 -3
- package/items/super-a.d.ts +15 -15
- package/items/super-a.js +46 -46
- package/layout/div-line.d.ts +15 -15
- package/layout/div-line.js +39 -39
- package/layout/drag-box.d.ts +25 -25
- package/layout/drag-box.js +88 -88
- package/layout/flex-flow.d.ts +13 -13
- package/layout/flex-flow.js +32 -32
- package/layout/index.d.ts +5 -5
- package/layout/index.js +5 -5
- package/layout/nav-aside.d.ts +14 -13
- package/layout/nav-aside.d.ts.map +1 -1
- package/layout/nav-aside.js +38 -38
- package/layout/nav-layout.d.ts +17 -16
- package/layout/nav-layout.d.ts.map +1 -1
- package/layout/nav-layout.js +51 -51
- package/layout/std.d.ts +4 -4
- package/layout/std.js +4 -4
- package/package.json +17 -13
- package/react/effect.d.ts +9 -9
- package/react/effect.d.ts.map +1 -1
- package/react/effect.js +33 -33
- package/react/group.d.ts +4 -4
- package/react/group.d.ts.map +1 -1
- package/react/group.js +19 -19
- package/react/index.d.ts +7 -7
- package/react/index.d.ts.map +1 -1
- package/react/index.js +7 -7
- package/react/input-form.d.ts +32 -32
- package/react/input-form.d.ts.map +1 -1
- package/react/input-form.js +65 -65
- package/react/items.d.ts +8 -8
- package/react/items.d.ts.map +1 -1
- package/react/items.js +39 -39
- package/react/layout.d.ts +6 -6
- package/react/layout.d.ts.map +1 -1
- package/react/layout.js +29 -29
- package/react/view.d.ts +6 -6
- package/react/view.d.ts.map +1 -1
- package/react/view.js +29 -29
- package/view/details-expand.d.ts +19 -18
- package/view/details-expand.d.ts.map +1 -1
- package/view/details-expand.js +53 -53
- package/view/down-drop.d.ts +19 -18
- package/view/down-drop.d.ts.map +1 -1
- package/view/down-drop.js +71 -71
- package/view/index.d.ts +5 -5
- package/view/index.js +5 -5
- package/view/menu-list.d.ts +17 -16
- package/view/menu-list.d.ts.map +1 -1
- package/view/menu-list.js +48 -48
- package/view/route-view.d.ts +46 -57
- package/view/route-view.d.ts.map +1 -1
- package/view/route-view.js +256 -257
- package/view/scroll-x.d.ts +14 -14
- package/view/scroll-x.js +47 -47
- package/view/std.d.ts +4 -4
- package/view/std.js +4 -4
- package/with.d.ts +23 -27
- package/with.d.ts.map +1 -1
- package/with.js +70 -77
- package/items/no-support.d.ts +0 -7
- package/items/no-support.d.ts.map +0 -1
- package/items/no-support.js +0 -23
package/react/items.js
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as React from "react";
|
3
|
-
import * as X from "../items/index.js";
|
4
|
-
import { createComponent } from "@lit
|
5
|
-
export const AvatarAnchor = createComponent({
|
6
|
-
tagName: "avatar-anchor",
|
7
|
-
elementClass: X.AvatarAnchor,
|
8
|
-
react: React,
|
9
|
-
});
|
10
|
-
export const BaseButton = createComponent({
|
11
|
-
tagName: "base-button",
|
12
|
-
elementClass: X.BaseButton,
|
13
|
-
react: React,
|
14
|
-
});
|
15
|
-
export const AlertItem = createComponent({
|
16
|
-
tagName: "alert-item",
|
17
|
-
elementClass: X.AlertItem,
|
18
|
-
react: React,
|
19
|
-
});
|
20
|
-
export const DialogItem = createComponent({
|
21
|
-
tagName: "dialog-item",
|
22
|
-
elementClass: X.DialogItem,
|
23
|
-
react: React,
|
24
|
-
});
|
25
|
-
export const LinkAnchor = createComponent({
|
26
|
-
tagName: "link-a",
|
27
|
-
elementClass: X.LinkAnchor,
|
28
|
-
react: React,
|
29
|
-
});
|
30
|
-
export const LoadTrack = createComponent({
|
31
|
-
tagName: "load-track",
|
32
|
-
elementClass: X.LoadTrack,
|
33
|
-
react: React,
|
34
|
-
});
|
35
|
-
export const SuperAnchor = createComponent({
|
36
|
-
tagName: "super-a",
|
37
|
-
elementClass: X.SuperAnchor,
|
38
|
-
react: React,
|
39
|
-
});
|
1
|
+
"use client";
|
2
|
+
import * as React from "react";
|
3
|
+
import * as X from "../items/index.js";
|
4
|
+
import { createComponent } from "@lit/react";
|
5
|
+
export const AvatarAnchor = createComponent({
|
6
|
+
tagName: "avatar-anchor",
|
7
|
+
elementClass: X.AvatarAnchor,
|
8
|
+
react: React,
|
9
|
+
});
|
10
|
+
export const BaseButton = createComponent({
|
11
|
+
tagName: "base-button",
|
12
|
+
elementClass: X.BaseButton,
|
13
|
+
react: React,
|
14
|
+
});
|
15
|
+
export const AlertItem = createComponent({
|
16
|
+
tagName: "alert-item",
|
17
|
+
elementClass: X.AlertItem,
|
18
|
+
react: React,
|
19
|
+
});
|
20
|
+
export const DialogItem = createComponent({
|
21
|
+
tagName: "dialog-item",
|
22
|
+
elementClass: X.DialogItem,
|
23
|
+
react: React,
|
24
|
+
});
|
25
|
+
export const LinkAnchor = createComponent({
|
26
|
+
tagName: "link-a",
|
27
|
+
elementClass: X.LinkAnchor,
|
28
|
+
react: React,
|
29
|
+
});
|
30
|
+
export const LoadTrack = createComponent({
|
31
|
+
tagName: "load-track",
|
32
|
+
elementClass: X.LoadTrack,
|
33
|
+
react: React,
|
34
|
+
});
|
35
|
+
export const SuperAnchor = createComponent({
|
36
|
+
tagName: "super-a",
|
37
|
+
elementClass: X.SuperAnchor,
|
38
|
+
react: React,
|
39
|
+
});
|
package/react/layout.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import * as X from "../layout/index.js";
|
2
|
-
export declare const NavLayout: import("@lit
|
3
|
-
export declare const AsideNav: import("@lit
|
4
|
-
export declare const DivLine: import("@lit
|
5
|
-
export declare const FlexFlow: import("@lit
|
6
|
-
export declare const DragBox: import("@lit
|
1
|
+
import * as X from "../layout/index.js";
|
2
|
+
export declare const NavLayout: import("@lit/react").ReactWebComponent<X.NavLayout, {}>;
|
3
|
+
export declare const AsideNav: import("@lit/react").ReactWebComponent<X.NavAside, {}>;
|
4
|
+
export declare const DivLine: import("@lit/react").ReactWebComponent<X.DivLine, {}>;
|
5
|
+
export declare const FlexFlow: import("@lit/react").ReactWebComponent<X.FlexFlow, {}>;
|
6
|
+
export declare const DragBox: import("@lit/react").ReactWebComponent<X.DragBox, {}>;
|
7
7
|
//# sourceMappingURL=layout.d.ts.map
|
package/react/layout.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
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,
|
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,yDAIpB,CAAC;AACH,eAAO,MAAM,QAAQ,wDAInB,CAAC;AACH,eAAO,MAAM,OAAO,uDAIlB,CAAC;AACH,eAAO,MAAM,QAAQ,wDAInB,CAAC;AACH,eAAO,MAAM,OAAO,uDAIlB,CAAC"}
|
package/react/layout.js
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as React from "react";
|
3
|
-
import * as X from "../layout/index.js";
|
4
|
-
import { createComponent } from "@lit
|
5
|
-
export const NavLayout = createComponent({
|
6
|
-
tagName: "nav-layout",
|
7
|
-
elementClass: X.NavLayout,
|
8
|
-
react: React,
|
9
|
-
});
|
10
|
-
export const AsideNav = createComponent({
|
11
|
-
tagName: "nav-aside",
|
12
|
-
elementClass: X.NavAside,
|
13
|
-
react: React,
|
14
|
-
});
|
15
|
-
export const DivLine = createComponent({
|
16
|
-
tagName: "div-line",
|
17
|
-
elementClass: X.DivLine,
|
18
|
-
react: React,
|
19
|
-
});
|
20
|
-
export const FlexFlow = createComponent({
|
21
|
-
tagName: "flex-flow",
|
22
|
-
elementClass: X.FlexFlow,
|
23
|
-
react: React,
|
24
|
-
});
|
25
|
-
export const DragBox = createComponent({
|
26
|
-
tagName: "drag-box",
|
27
|
-
elementClass: X.DragBox,
|
28
|
-
react: React,
|
29
|
-
});
|
1
|
+
"use client";
|
2
|
+
import * as React from "react";
|
3
|
+
import * as X from "../layout/index.js";
|
4
|
+
import { createComponent } from "@lit/react";
|
5
|
+
export const NavLayout = createComponent({
|
6
|
+
tagName: "nav-layout",
|
7
|
+
elementClass: X.NavLayout,
|
8
|
+
react: React,
|
9
|
+
});
|
10
|
+
export const AsideNav = createComponent({
|
11
|
+
tagName: "nav-aside",
|
12
|
+
elementClass: X.NavAside,
|
13
|
+
react: React,
|
14
|
+
});
|
15
|
+
export const DivLine = createComponent({
|
16
|
+
tagName: "div-line",
|
17
|
+
elementClass: X.DivLine,
|
18
|
+
react: React,
|
19
|
+
});
|
20
|
+
export const FlexFlow = createComponent({
|
21
|
+
tagName: "flex-flow",
|
22
|
+
elementClass: X.FlexFlow,
|
23
|
+
react: React,
|
24
|
+
});
|
25
|
+
export const DragBox = createComponent({
|
26
|
+
tagName: "drag-box",
|
27
|
+
elementClass: X.DragBox,
|
28
|
+
react: React,
|
29
|
+
});
|
package/react/view.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import * as X from "../view/index.js";
|
2
|
-
export declare const DetailsExpand: import("@lit
|
3
|
-
export declare const DownDrop: import("@lit
|
4
|
-
export declare const MenuList: import("@lit
|
5
|
-
export declare const RouteView: import("@lit
|
6
|
-
export declare const ScrollX: import("@lit
|
1
|
+
import * as X from "../view/index.js";
|
2
|
+
export declare const DetailsExpand: import("@lit/react").ReactWebComponent<X.DetailsExpand, {}>;
|
3
|
+
export declare const DownDrop: import("@lit/react").ReactWebComponent<X.DownDrop, {}>;
|
4
|
+
export declare const MenuList: import("@lit/react").ReactWebComponent<X.MenuList, {}>;
|
5
|
+
export declare const RouteView: import("@lit/react").ReactWebComponent<X.RouteView, {}>;
|
6
|
+
export declare const ScrollX: import("@lit/react").ReactWebComponent<X.ScrollX, {}>;
|
7
7
|
//# sourceMappingURL=view.d.ts.map
|
package/react/view.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
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,
|
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,6DAIxB,CAAC;AACH,eAAO,MAAM,QAAQ,wDAInB,CAAC;AACH,eAAO,MAAM,QAAQ,wDAInB,CAAC;AACH,eAAO,MAAM,SAAS,yDAIpB,CAAC;AACH,eAAO,MAAM,OAAO,uDAIlB,CAAC"}
|
package/react/view.js
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as React from "react";
|
3
|
-
import * as X from "../view/index.js";
|
4
|
-
import { createComponent } from "@lit
|
5
|
-
export const DetailsExpand = createComponent({
|
6
|
-
tagName: "details-expand",
|
7
|
-
elementClass: X.DetailsExpand,
|
8
|
-
react: React,
|
9
|
-
});
|
10
|
-
export const DownDrop = createComponent({
|
11
|
-
tagName: "down-drop",
|
12
|
-
elementClass: X.DownDrop,
|
13
|
-
react: React,
|
14
|
-
});
|
15
|
-
export const MenuList = createComponent({
|
16
|
-
tagName: "menu-list",
|
17
|
-
elementClass: X.MenuList,
|
18
|
-
react: React,
|
19
|
-
});
|
20
|
-
export const RouteView = createComponent({
|
21
|
-
tagName: "route-view",
|
22
|
-
elementClass: X.RouteView,
|
23
|
-
react: React,
|
24
|
-
});
|
25
|
-
export const ScrollX = createComponent({
|
26
|
-
tagName: "scroll-x",
|
27
|
-
elementClass: X.ScrollX,
|
28
|
-
react: React,
|
29
|
-
});
|
1
|
+
"use client";
|
2
|
+
import * as React from "react";
|
3
|
+
import * as X from "../view/index.js";
|
4
|
+
import { createComponent } from "@lit/react";
|
5
|
+
export const DetailsExpand = createComponent({
|
6
|
+
tagName: "details-expand",
|
7
|
+
elementClass: X.DetailsExpand,
|
8
|
+
react: React,
|
9
|
+
});
|
10
|
+
export const DownDrop = createComponent({
|
11
|
+
tagName: "down-drop",
|
12
|
+
elementClass: X.DownDrop,
|
13
|
+
react: React,
|
14
|
+
});
|
15
|
+
export const MenuList = createComponent({
|
16
|
+
tagName: "menu-list",
|
17
|
+
elementClass: X.MenuList,
|
18
|
+
react: React,
|
19
|
+
});
|
20
|
+
export const RouteView = createComponent({
|
21
|
+
tagName: "route-view",
|
22
|
+
elementClass: X.RouteView,
|
23
|
+
react: React,
|
24
|
+
});
|
25
|
+
export const ScrollX = createComponent({
|
26
|
+
tagName: "scroll-x",
|
27
|
+
elementClass: X.ScrollX,
|
28
|
+
react: React,
|
29
|
+
});
|
package/view/details-expand.d.ts
CHANGED
@@ -1,19 +1,20 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
1
|
+
import { CSSResultGroup } from "../deps.js";
|
2
|
+
import STD from "./std.js";
|
3
|
+
export declare class DetailsExpand extends STD {
|
4
|
+
summary: string;
|
5
|
+
reverse: boolean;
|
6
|
+
open: boolean;
|
7
|
+
fill: boolean;
|
8
|
+
float: boolean;
|
9
|
+
static styles: CSSResultGroup[];
|
10
|
+
render(): import("lit").TemplateResult<1>;
|
11
|
+
firstUpdated(): void;
|
12
|
+
toggle(to?: boolean): void;
|
13
|
+
}
|
14
|
+
export default DetailsExpand;
|
15
|
+
declare global {
|
16
|
+
interface HTMLElementTagNameMap {
|
17
|
+
"details-expand": DetailsExpand;
|
18
|
+
}
|
19
|
+
}
|
19
20
|
//# sourceMappingURL=details-expand.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"details-expand.d.ts","sourceRoot":"","sources":["../../src/view/details-expand.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"details-expand.d.ts","sourceRoot":"","sources":["../../src/view/details-expand.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,cAAc,EAAE,MAAM,YAAY,CAAC;AACzE,OAAO,GAAmB,MAAM,UAAU,CAAC;AAC3C,qBACa,aAAc,SAAQ,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IACC,OAAO,UAAS;IACD,IAAI,UAAS;IAC5B,IAAI,UAAS;IACb,KAAK,UAAS;IAC3C,MAAM,CAAC,MAAM,mBA4BS;IACtB,MAAM;IAWN,YAAY;IAGZ,MAAM,CAAC,EAAE,UAAa;CAIvB;AACD,eAAe,aAAa,CAAC;AAC7B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAC;KACjC;CACF"}
|
package/view/details-expand.js
CHANGED
@@ -1,20 +1,20 @@
|
|
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 { html, css, property, define } from "../deps.js";
|
8
|
-
import STD, { DLsharecss } from "./std.js";
|
9
|
-
let DetailsExpand = class DetailsExpand extends STD {
|
10
|
-
constructor() {
|
11
|
-
super(...arguments);
|
12
|
-
this.reverse = false;
|
13
|
-
this.open = false;
|
14
|
-
this.fill = false;
|
15
|
-
this.float = false;
|
16
|
-
}
|
17
|
-
render() {
|
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 { html, css, property, define } from "../deps.js";
|
8
|
+
import STD, { DLsharecss } from "./std.js";
|
9
|
+
let DetailsExpand = class DetailsExpand extends STD {
|
10
|
+
constructor() {
|
11
|
+
super(...arguments);
|
12
|
+
this.reverse = false;
|
13
|
+
this.open = false;
|
14
|
+
this.fill = false;
|
15
|
+
this.float = false;
|
16
|
+
}
|
17
|
+
render() {
|
18
18
|
return html `<dl>
|
19
19
|
<dt ?open=${this.open} @click=${() => this.toggle()} style="flex-direction:row${this.reverse ? "-reverse" : ""}">
|
20
20
|
<span>${this.summary}<slot name="summary"></slot></span>
|
@@ -23,20 +23,20 @@ let DetailsExpand = class DetailsExpand extends STD {
|
|
23
23
|
<dd ?open=${this.open} ?float=${this.float}>
|
24
24
|
<section><slot></slot></section>
|
25
25
|
</dd>
|
26
|
-
</dl>`;
|
27
|
-
}
|
28
|
-
firstUpdated() {
|
29
|
-
if (this.fill)
|
30
|
-
this.shadowRoot.querySelector("dd").addEventListener("click", () => this.toggle());
|
31
|
-
}
|
32
|
-
toggle(to = !this.open) {
|
33
|
-
this.open = to;
|
34
|
-
this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
|
35
|
-
}
|
36
|
-
};
|
37
|
-
DetailsExpand.styles = [
|
38
|
-
STD.styles,
|
39
|
-
DLsharecss,
|
26
|
+
</dl>`;
|
27
|
+
}
|
28
|
+
firstUpdated() {
|
29
|
+
if (this.fill)
|
30
|
+
this.shadowRoot.querySelector("dd").addEventListener("click", () => this.toggle());
|
31
|
+
}
|
32
|
+
toggle(to = !this.open) {
|
33
|
+
this.open = to;
|
34
|
+
this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
|
35
|
+
}
|
36
|
+
};
|
37
|
+
DetailsExpand.styles = [
|
38
|
+
STD.styles,
|
39
|
+
DLsharecss,
|
40
40
|
css `
|
41
41
|
dl {
|
42
42
|
height: 100%;
|
@@ -61,25 +61,25 @@ DetailsExpand.styles = [
|
|
61
61
|
top: 100%;
|
62
62
|
position: absolute;
|
63
63
|
}
|
64
|
-
`,
|
65
|
-
];
|
66
|
-
__decorate([
|
67
|
-
property()
|
68
|
-
], DetailsExpand.prototype, "summary", void 0);
|
69
|
-
__decorate([
|
70
|
-
property({ type: Boolean })
|
71
|
-
], DetailsExpand.prototype, "reverse", void 0);
|
72
|
-
__decorate([
|
73
|
-
property({ type: Boolean, reflect: true })
|
74
|
-
], DetailsExpand.prototype, "open", void 0);
|
75
|
-
__decorate([
|
76
|
-
property({ type: Boolean })
|
77
|
-
], DetailsExpand.prototype, "fill", void 0);
|
78
|
-
__decorate([
|
79
|
-
property({ type: Boolean })
|
80
|
-
], DetailsExpand.prototype, "float", void 0);
|
81
|
-
DetailsExpand = __decorate([
|
82
|
-
define("details-expand")
|
83
|
-
], DetailsExpand);
|
84
|
-
export { DetailsExpand };
|
85
|
-
export default DetailsExpand;
|
64
|
+
`,
|
65
|
+
];
|
66
|
+
__decorate([
|
67
|
+
property()
|
68
|
+
], DetailsExpand.prototype, "summary", void 0);
|
69
|
+
__decorate([
|
70
|
+
property({ type: Boolean })
|
71
|
+
], DetailsExpand.prototype, "reverse", void 0);
|
72
|
+
__decorate([
|
73
|
+
property({ type: Boolean, reflect: true })
|
74
|
+
], DetailsExpand.prototype, "open", void 0);
|
75
|
+
__decorate([
|
76
|
+
property({ type: Boolean })
|
77
|
+
], DetailsExpand.prototype, "fill", void 0);
|
78
|
+
__decorate([
|
79
|
+
property({ type: Boolean })
|
80
|
+
], DetailsExpand.prototype, "float", void 0);
|
81
|
+
DetailsExpand = __decorate([
|
82
|
+
define("details-expand")
|
83
|
+
], DetailsExpand);
|
84
|
+
export { DetailsExpand };
|
85
|
+
export default DetailsExpand;
|
package/view/down-drop.d.ts
CHANGED
@@ -1,19 +1,20 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
1
|
+
import { CSSResultGroup } from "../deps.js";
|
2
|
+
import STD from "../layout/std.js";
|
3
|
+
export declare class DownDrop extends STD {
|
4
|
+
static styles: CSSResultGroup[];
|
5
|
+
_div: HTMLDivElement;
|
6
|
+
_timer: any;
|
7
|
+
render(): import("lit").TemplateResult<1>;
|
8
|
+
firstUpdated(): Promise<void>;
|
9
|
+
resize(): void;
|
10
|
+
close(): void;
|
11
|
+
open(): void;
|
12
|
+
toggle(): void;
|
13
|
+
}
|
14
|
+
export default DownDrop;
|
15
|
+
declare global {
|
16
|
+
interface HTMLElementTagNameMap {
|
17
|
+
"down-drop": DownDrop;
|
18
|
+
}
|
19
|
+
}
|
19
20
|
//# sourceMappingURL=down-drop.d.ts.map
|
package/view/down-drop.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"down-drop.d.ts","sourceRoot":"","sources":["../../src/view/down-drop.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"down-drop.d.ts","sourceRoot":"","sources":["../../src/view/down-drop.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,mBA0BS;IACR,IAAI,EAAE,cAAc,CAAC;IACnC,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM;IAOA,YAAY;IAkBlB,MAAM;IAcN,KAAK;IAIL,IAAI;IAIJ,MAAM;CAGP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/view/down-drop.js
CHANGED
@@ -1,68 +1,68 @@
|
|
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 { html, css, query, define } from "../deps.js";
|
8
|
-
import STD from "../layout/std.js";
|
9
|
-
let DownDrop = class DownDrop extends STD {
|
10
|
-
render() {
|
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 { html, css, query, define } from "../deps.js";
|
8
|
+
import STD from "../layout/std.js";
|
9
|
+
let DownDrop = class DownDrop extends STD {
|
10
|
+
render() {
|
11
11
|
return html `<main>
|
12
12
|
<slot name="hover"></slot>
|
13
13
|
<slot name="focus" @click=${this.toggle}></slot>
|
14
14
|
<div style="transform:translateX(0)"><slot></slot></div>
|
15
|
-
</main>`;
|
16
|
-
}
|
17
|
-
async firstUpdated() {
|
18
|
-
if (this.querySelector(`[slot="focus"]`)) {
|
19
|
-
document.addEventListener("click", (e) => {
|
20
|
-
if (!this.contains(e.target)) {
|
21
|
-
this.close();
|
22
|
-
}
|
23
|
-
});
|
24
|
-
}
|
25
|
-
await this.updateComplete;
|
26
|
-
this.resize();
|
27
|
-
window.addEventListener("resize", () => {
|
28
|
-
clearTimeout(this._timer);
|
29
|
-
this._timer = setTimeout(() => {
|
30
|
-
this._div.style.transform = "translateX(0)";
|
31
|
-
this.resize();
|
32
|
-
}, 250);
|
33
|
-
});
|
34
|
-
}
|
35
|
-
resize() {
|
36
|
-
var _a;
|
37
|
-
const offsets = ((_a = this.offsetParent) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || document.body.getBoundingClientRect();
|
38
|
-
const divLeft = this._div.getBoundingClientRect().left;
|
39
|
-
const divRight = this._div.getBoundingClientRect().right;
|
40
|
-
const RightWidth = offsets.width - (divRight - offsets.x);
|
41
|
-
const LeftWidth = offsets.width - (offsets.right - divLeft);
|
42
|
-
if (divLeft < 0) {
|
43
|
-
this._div.style.transform = `translateX(${-LeftWidth}px)`;
|
44
|
-
}
|
45
|
-
else if (divRight > offsets.right) {
|
46
|
-
this._div.style.transform = `translateX(${RightWidth}px)`;
|
47
|
-
}
|
48
|
-
else {
|
49
|
-
this._div.style.transform = "translateX(0)";
|
50
|
-
}
|
51
|
-
}
|
52
|
-
close() {
|
53
|
-
this._div.style.visibility = "hidden";
|
54
|
-
this.dispatchEvent(new CustomEvent("change", { detail: false }));
|
55
|
-
}
|
56
|
-
open() {
|
57
|
-
this._div.style.visibility = "visible";
|
58
|
-
this.dispatchEvent(new CustomEvent("change", { detail: true }));
|
59
|
-
}
|
60
|
-
toggle() {
|
61
|
-
this._div.style.visibility === "visible" ? this.close() : this.open();
|
62
|
-
}
|
63
|
-
};
|
64
|
-
DownDrop.styles = [
|
65
|
-
STD.styles,
|
15
|
+
</main>`;
|
16
|
+
}
|
17
|
+
async firstUpdated() {
|
18
|
+
if (this.querySelector(`[slot="focus"]`)) {
|
19
|
+
document.addEventListener("click", (e) => {
|
20
|
+
if (!this.contains(e.target)) {
|
21
|
+
this.close();
|
22
|
+
}
|
23
|
+
});
|
24
|
+
}
|
25
|
+
await this.updateComplete;
|
26
|
+
this.resize();
|
27
|
+
window.addEventListener("resize", () => {
|
28
|
+
clearTimeout(this._timer);
|
29
|
+
this._timer = setTimeout(() => {
|
30
|
+
this._div.style.transform = "translateX(0)";
|
31
|
+
this.resize();
|
32
|
+
}, 250);
|
33
|
+
});
|
34
|
+
}
|
35
|
+
resize() {
|
36
|
+
var _a;
|
37
|
+
const offsets = ((_a = this.offsetParent) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || document.body.getBoundingClientRect();
|
38
|
+
const divLeft = this._div.getBoundingClientRect().left;
|
39
|
+
const divRight = this._div.getBoundingClientRect().right;
|
40
|
+
const RightWidth = offsets.width - (divRight - offsets.x);
|
41
|
+
const LeftWidth = offsets.width - (offsets.right - divLeft);
|
42
|
+
if (divLeft < 0) {
|
43
|
+
this._div.style.transform = `translateX(${-LeftWidth}px)`;
|
44
|
+
}
|
45
|
+
else if (divRight > offsets.right) {
|
46
|
+
this._div.style.transform = `translateX(${RightWidth}px)`;
|
47
|
+
}
|
48
|
+
else {
|
49
|
+
this._div.style.transform = "translateX(0)";
|
50
|
+
}
|
51
|
+
}
|
52
|
+
close() {
|
53
|
+
this._div.style.visibility = "hidden";
|
54
|
+
this.dispatchEvent(new CustomEvent("change", { detail: false }));
|
55
|
+
}
|
56
|
+
open() {
|
57
|
+
this._div.style.visibility = "visible";
|
58
|
+
this.dispatchEvent(new CustomEvent("change", { detail: true }));
|
59
|
+
}
|
60
|
+
toggle() {
|
61
|
+
this._div.style.visibility === "visible" ? this.close() : this.open();
|
62
|
+
}
|
63
|
+
};
|
64
|
+
DownDrop.styles = [
|
65
|
+
STD.styles,
|
66
66
|
css `
|
67
67
|
:host {
|
68
68
|
height: 100%;
|
@@ -86,13 +86,13 @@ DownDrop.styles = [
|
|
86
86
|
div:hover {
|
87
87
|
visibility: visible;
|
88
88
|
}
|
89
|
-
`,
|
90
|
-
];
|
91
|
-
__decorate([
|
92
|
-
query("div")
|
93
|
-
], DownDrop.prototype, "_div", void 0);
|
94
|
-
DownDrop = __decorate([
|
95
|
-
define("down-drop")
|
96
|
-
], DownDrop);
|
97
|
-
export { DownDrop };
|
98
|
-
export default DownDrop;
|
89
|
+
`,
|
90
|
+
];
|
91
|
+
__decorate([
|
92
|
+
query("div")
|
93
|
+
], DownDrop.prototype, "_div", void 0);
|
94
|
+
DownDrop = __decorate([
|
95
|
+
define("down-drop")
|
96
|
+
], DownDrop);
|
97
|
+
export { DownDrop };
|
98
|
+
export default DownDrop;
|
package/view/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from "./details-expand.js";
|
2
|
-
export * from "./down-drop.js";
|
3
|
-
export * from "./menu-list.js";
|
4
|
-
export * from "./route-view.js";
|
5
|
-
export * from "./scroll-x.js";
|
1
|
+
export * from "./details-expand.js";
|
2
|
+
export * from "./down-drop.js";
|
3
|
+
export * from "./menu-list.js";
|
4
|
+
export * from "./route-view.js";
|
5
|
+
export * from "./scroll-x.js";
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/view/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from "./details-expand.js";
|
2
|
-
export * from "./down-drop.js";
|
3
|
-
export * from "./menu-list.js";
|
4
|
-
export * from "./route-view.js";
|
5
|
-
export * from "./scroll-x.js";
|
1
|
+
export * from "./details-expand.js";
|
2
|
+
export * from "./down-drop.js";
|
3
|
+
export * from "./menu-list.js";
|
4
|
+
export * from "./route-view.js";
|
5
|
+
export * from "./scroll-x.js";
|