godown 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -35
- package/conf.d.ts +18 -18
- package/conf.js +22 -22
- package/deps.d.ts +7 -7
- 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.d.ts.map +1 -1
- package/effect/ov-effect.js +299 -275
- package/effect/ro-effect.d.ts +19 -19
- package/effect/ro-effect.d.ts.map +1 -1
- package/effect/ro-effect.js +125 -120
- package/effect/std.d.ts +3 -3
- package/effect/std.d.ts.map +1 -1
- package/effect/std.js +3 -3
- package/effect/tw-effect.d.ts +21 -21
- package/effect/tw-effect.d.ts.map +1 -1
- package/effect/tw-effect.js +108 -107
- package/glob.d.ts +8 -8
- package/glob.d.ts.map +1 -1
- package/glob.js +25 -24
- package/group/avatar-group.d.ts +20 -20
- package/group/avatar-group.d.ts.map +1 -1
- package/group/avatar-group.js +112 -88
- package/group/button-group.d.ts +12 -12
- package/group/button-group.d.ts.map +1 -1
- package/group/button-group.js +79 -74
- package/group/details-group.d.ts +16 -16
- package/group/details-group.d.ts.map +1 -1
- package/group/details-group.js +55 -53
- package/group/index.d.ts +3 -3
- package/group/index.js +3 -3
- package/group/std.d.ts +3 -3
- package/group/std.d.ts.map +1 -1
- package/group/std.js +3 -3
- package/index.d.ts +7 -7
- package/index.js +7 -7
- package/input-form/base-input.d.ts +32 -32
- package/input-form/base-input.d.ts.map +1 -1
- package/input-form/base-input.js +229 -226
- package/input-form/exp-input.d.ts +22 -22
- package/input-form/exp-input.d.ts.map +1 -1
- package/input-form/exp-input.js +218 -205
- package/input-form/index.d.ts +8 -8
- package/input-form/index.js +8 -8
- package/input-form/label-input.d.ts +21 -21
- package/input-form/label-input.d.ts.map +1 -1
- package/input-form/label-input.js +150 -137
- package/input-form/search-input.d.ts +36 -36
- package/input-form/search-input.d.ts.map +1 -1
- package/input-form/search-input.js +311 -297
- package/input-form/select-input.d.ts +31 -31
- package/input-form/select-input.d.ts.map +1 -1
- package/input-form/select-input.js +354 -330
- package/input-form/sign-form.d.ts +25 -23
- package/input-form/sign-form.d.ts.map +1 -1
- package/input-form/sign-form.js +165 -160
- package/input-form/split-input.d.ts +26 -26
- package/input-form/split-input.d.ts.map +1 -1
- package/input-form/split-input.js +181 -173
- package/input-form/std.d.ts +19 -19
- package/input-form/std.d.ts.map +1 -1
- package/input-form/std.js +72 -68
- package/input-form/switch-input.d.ts +22 -22
- package/input-form/switch-input.d.ts.map +1 -1
- package/input-form/switch-input.js +181 -175
- package/items/alert-item.d.ts +16 -16
- package/items/alert-item.d.ts.map +1 -1
- package/items/alert-item.js +143 -142
- package/items/avatar-anchor.d.ts +19 -19
- package/items/avatar-anchor.d.ts.map +1 -1
- package/items/avatar-anchor.js +150 -148
- package/items/base-button.d.ts +16 -16
- package/items/base-button.d.ts.map +1 -1
- package/items/base-button.js +170 -167
- package/items/dialog-item.d.ts +24 -24
- package/items/dialog-item.d.ts.map +1 -1
- package/items/dialog-item.js +157 -156
- 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.d.ts.map +1 -1
- package/items/link-a.js +98 -97
- package/items/load-track.d.ts +20 -20
- package/items/load-track.d.ts.map +1 -1
- package/items/load-track.js +115 -109
- package/items/std.d.ts +3 -3
- package/items/std.d.ts.map +1 -1
- package/items/std.js +3 -3
- package/items/super-a.d.ts +15 -15
- package/items/super-a.d.ts.map +1 -1
- package/items/super-a.js +99 -88
- package/layout/div-line.d.ts +15 -15
- package/layout/div-line.d.ts.map +1 -1
- package/layout/div-line.js +71 -65
- package/layout/drag-box.d.ts +25 -25
- package/layout/drag-box.d.ts.map +1 -1
- package/layout/drag-box.js +95 -94
- package/layout/flex-flow.d.ts +13 -13
- package/layout/flex-flow.d.ts.map +1 -1
- package/layout/flex-flow.js +39 -34
- package/layout/index.d.ts +5 -5
- package/layout/index.js +5 -5
- package/layout/nav-aside.d.ts +13 -13
- package/layout/nav-aside.d.ts.map +1 -1
- package/layout/nav-aside.js +61 -54
- package/layout/nav-layout.d.ts +16 -16
- package/layout/nav-layout.d.ts.map +1 -1
- package/layout/nav-layout.js +167 -146
- package/layout/std.d.ts +4 -4
- package/layout/std.d.ts.map +1 -1
- package/layout/std.js +10 -8
- package/package.json +48 -40
- 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 +18 -18
- package/view/details-expand.d.ts.map +1 -1
- package/view/details-expand.js +85 -80
- package/view/down-drop.d.ts +18 -18
- package/view/down-drop.d.ts.map +1 -1
- package/view/down-drop.js +98 -94
- package/view/index.d.ts +5 -5
- package/view/index.js +5 -5
- package/view/menu-list.d.ts +16 -16
- package/view/menu-list.d.ts.map +1 -1
- package/view/menu-list.js +77 -72
- package/view/route-view.d.ts +57 -57
- package/view/route-view.d.ts.map +1 -1
- package/view/route-view.js +261 -258
- package/view/scroll-x.d.ts +14 -14
- package/view/scroll-x.d.ts.map +1 -1
- package/view/scroll-x.js +77 -72
- package/view/std.d.ts +4 -4
- package/view/std.d.ts.map +1 -1
- package/view/std.js +37 -37
- package/with.d.ts +27 -27
- package/with.d.ts.map +1 -1
- package/with.js +77 -78
- package/view/react/effect.d.ts +0 -10
- package/view/react/effect.d.ts.map +0 -1
- package/view/react/effect.js +0 -32
- package/view/react/group.d.ts +0 -5
- package/view/react/group.d.ts.map +0 -1
- package/view/react/group.js +0 -18
- package/view/react/index.d.ts +0 -7
- package/view/react/index.d.ts.map +0 -1
- package/view/react/index.js +0 -6
- package/view/react/input-form.d.ts +0 -33
- package/view/react/input-form.d.ts.map +0 -1
- package/view/react/input-form.js +0 -64
- package/view/react/items.d.ts +0 -9
- package/view/react/items.d.ts.map +0 -1
- package/view/react/items.js +0 -38
- package/view/react/layout.d.ts +0 -7
- package/view/react/layout.d.ts.map +0 -1
- package/view/react/layout.js +0 -28
- package/view/react/view.d.ts +0 -7
- package/view/react/view.d.ts.map +0 -1
- package/view/react/view.js +0 -28
package/README.md
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
# Godown
|
2
|
-
|
3
|
-
The **simple, sylized, semantic components** for standard HTML and other frameworks.
|
4
|
-
|
5
|
-
## Install
|
6
|
-
|
7
|
-
```sh
|
8
|
-
npm i godown
|
9
|
-
```
|
10
|
-
|
11
|
-
## Useages
|
12
|
-
|
13
|
-
html
|
14
|
-
|
15
|
-
```html
|
16
|
-
<alert-item title="Alert"></alert-item>
|
17
|
-
```
|
18
|
-
|
19
|
-
js
|
20
|
-
|
21
|
-
```js
|
22
|
-
import { AlertItem } from "godown";
|
23
|
-
const item = new AlertItem();
|
24
|
-
item.title = "Alert";
|
25
|
-
document.body.appendChild(item);
|
26
|
-
```
|
27
|
-
|
28
|
-
react
|
29
|
-
|
30
|
-
```jsx
|
31
|
-
import { AlertItem } from "godown/react";
|
32
|
-
export default function () {
|
33
|
-
return <AlertItem title="Alert" />;
|
34
|
-
}
|
35
|
-
```
|
1
|
+
# Godown
|
2
|
+
|
3
|
+
The **simple, sylized, semantic components** for standard HTML and other frameworks.
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
```sh
|
8
|
+
npm i godown
|
9
|
+
```
|
10
|
+
|
11
|
+
## Useages
|
12
|
+
|
13
|
+
html
|
14
|
+
|
15
|
+
```html
|
16
|
+
<alert-item title="Alert"></alert-item>
|
17
|
+
```
|
18
|
+
|
19
|
+
js
|
20
|
+
|
21
|
+
```js
|
22
|
+
import { AlertItem } from "godown";
|
23
|
+
const item = new AlertItem();
|
24
|
+
item.title = "Alert";
|
25
|
+
document.body.appendChild(item);
|
26
|
+
```
|
27
|
+
|
28
|
+
react
|
29
|
+
|
30
|
+
```jsx
|
31
|
+
import { AlertItem } from "godown/react";
|
32
|
+
export default function () {
|
33
|
+
return <AlertItem title="Alert" />;
|
34
|
+
}
|
35
|
+
```
|
package/conf.d.ts
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
declare const conf: conftype;
|
2
|
-
declare function init(CONFObject: conftype, source?: conftype): conftype;
|
3
|
-
export { conf, init };
|
4
|
-
export default conf;
|
5
|
-
declare global {
|
6
|
-
interface globalThis {
|
7
|
-
GodownWebComponentsCONF: conftype;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
type conftype = {
|
11
|
-
prefix?: string;
|
12
|
-
suffix?: string;
|
13
|
-
tag?: (origin: string) => string;
|
14
|
-
enabled?: any[];
|
15
|
-
namemap?: Map<string, string>;
|
16
|
-
reflect?: boolean;
|
17
|
-
cssvar?: string;
|
18
|
-
};
|
1
|
+
declare const conf: conftype;
|
2
|
+
declare function init(CONFObject: conftype, source?: conftype): conftype;
|
3
|
+
export { conf, init };
|
4
|
+
export default conf;
|
5
|
+
declare global {
|
6
|
+
interface globalThis {
|
7
|
+
GodownWebComponentsCONF: conftype;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
type conftype = {
|
11
|
+
prefix?: string;
|
12
|
+
suffix?: string;
|
13
|
+
tag?: (origin: string) => string;
|
14
|
+
enabled?: any[];
|
15
|
+
namemap?: Map<string, string>;
|
16
|
+
reflect?: boolean;
|
17
|
+
cssvar?: string;
|
18
|
+
};
|
19
19
|
//# sourceMappingURL=conf.d.ts.map
|
package/conf.js
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
const defconf = {
|
2
|
-
prefix: "",
|
3
|
-
suffix: "",
|
4
|
-
tag(origin) {
|
5
|
-
return this.prefix + origin + this.suffix;
|
6
|
-
},
|
7
|
-
enabled: [],
|
8
|
-
namemap: new Map(),
|
9
|
-
reflect: false,
|
10
|
-
cssvar: "godown-c",
|
11
|
-
};
|
12
|
-
const conf = init(globalThis.GodownWebComponentsCONF, defconf);
|
13
|
-
function init(CONFObject, source = conf) {
|
14
|
-
Object.assign(source, CONFObject);
|
15
|
-
if (source.reflect) {
|
16
|
-
// Reflect conf to globalThis
|
17
|
-
globalThis.GodownWebComponentsCONF = source;
|
18
|
-
}
|
19
|
-
return source;
|
20
|
-
}
|
21
|
-
export { conf, init };
|
22
|
-
export default conf;
|
1
|
+
const defconf = {
|
2
|
+
prefix: "",
|
3
|
+
suffix: "",
|
4
|
+
tag(origin) {
|
5
|
+
return this.prefix + origin + this.suffix;
|
6
|
+
},
|
7
|
+
enabled: [],
|
8
|
+
namemap: new Map(),
|
9
|
+
reflect: false,
|
10
|
+
cssvar: "godown-c",
|
11
|
+
};
|
12
|
+
const conf = init(globalThis.GodownWebComponentsCONF, defconf);
|
13
|
+
function init(CONFObject, source = conf) {
|
14
|
+
Object.assign(source, CONFObject);
|
15
|
+
if (source.reflect) {
|
16
|
+
// Reflect conf to globalThis
|
17
|
+
globalThis.GodownWebComponentsCONF = source;
|
18
|
+
}
|
19
|
+
return source;
|
20
|
+
}
|
21
|
+
export { conf, init };
|
22
|
+
export default conf;
|
package/deps.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
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
|
-
export { append, create, define, retag } from "./with.js";
|
5
|
-
export { ifDefined } from "lit/directives/if-defined.js";
|
6
|
-
export { classMap } from "lit/directives/class-map.js";
|
7
|
-
export { GLOBSTD, cssvar } from "./glob.js";
|
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
|
+
export { append, create, define, retag } from "./with.js";
|
5
|
+
export { ifDefined } from "lit/directives/if-defined.js";
|
6
|
+
export { classMap } from "lit/directives/class-map.js";
|
7
|
+
export { GLOBSTD, cssvar } from "./glob.js";
|
8
8
|
//# sourceMappingURL=deps.d.ts.map
|
package/deps.js
CHANGED
@@ -1,7 +1,7 @@
|
|
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
|
-
export { append, create, define, retag } from "./with.js";
|
5
|
-
export { ifDefined } from "lit/directives/if-defined.js";
|
6
|
-
export { classMap } from "lit/directives/class-map.js";
|
7
|
-
export { GLOBSTD, cssvar } from "./glob.js";
|
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
|
+
export { append, create, define, retag } from "./with.js";
|
5
|
+
export { ifDefined } from "lit/directives/if-defined.js";
|
6
|
+
export { classMap } from "lit/directives/class-map.js";
|
7
|
+
export { GLOBSTD, cssvar } from "./glob.js";
|
package/effect/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from "./ov-effect.js";
|
2
|
-
export * from "./ro-effect.js";
|
3
|
-
export * from "./tw-effect.js";
|
1
|
+
export * from "./ov-effect.js";
|
2
|
+
export * from "./ro-effect.js";
|
3
|
+
export * from "./tw-effect.js";
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/effect/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from "./ov-effect.js";
|
2
|
-
export * from "./ro-effect.js";
|
3
|
-
export * from "./tw-effect.js";
|
1
|
+
export * from "./ov-effect.js";
|
2
|
+
export * from "./ro-effect.js";
|
3
|
+
export * from "./tw-effect.js";
|
package/effect/ov-effect.d.ts
CHANGED
@@ -1,24 +1,24 @@
|
|
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
|
-
}
|
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-html").TemplateResult<1>;
|
8
|
+
}
|
9
|
+
export declare class OVPort extends STD {
|
10
|
+
static styles: import("lit").CSSResult[];
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
12
|
+
}
|
13
|
+
export declare class OVButton extends STD {
|
14
|
+
static styles: import("lit").CSSResult[];
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
16
|
+
}
|
17
|
+
declare global {
|
18
|
+
interface HTMLElementTagNameMap {
|
19
|
+
"ov-text": OVText;
|
20
|
+
"ov-port": OVPort;
|
21
|
+
"ov-button": OVButton;
|
22
|
+
}
|
23
|
+
}
|
24
24
|
//# sourceMappingURL=ov-effect.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ov-effect.d.ts","sourceRoot":"","sources":["../../src/effect/ov-effect.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;
|
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"}
|