godown 3.0.0-canary.1 → 3.0.0-canary.11
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 +38 -9
- package/components/alert.d.ts +6 -3
- package/components/alert.d.ts.map +1 -1
- package/components/alert.js +22 -14
- package/components/alert.js.map +1 -1
- package/components/avatar.d.ts +7 -2
- package/components/avatar.d.ts.map +1 -1
- package/components/avatar.js +13 -6
- package/components/avatar.js.map +1 -1
- package/components/breath.d.ts +4 -2
- package/components/breath.d.ts.map +1 -1
- package/components/breath.js +8 -6
- package/components/breath.js.map +1 -1
- package/components/button.d.ts +20 -11
- package/components/button.d.ts.map +1 -1
- package/components/button.js +23 -20
- package/components/button.js.map +1 -1
- package/components/card.d.ts +2 -2
- package/components/card.d.ts.map +1 -1
- package/components/card.js +8 -13
- package/components/card.js.map +1 -1
- package/components/carousel.d.ts +8 -5
- package/components/carousel.d.ts.map +1 -1
- package/components/carousel.js +18 -11
- package/components/carousel.js.map +1 -1
- package/components/details.d.ts +7 -3
- package/components/details.d.ts.map +1 -1
- package/components/details.js +7 -3
- package/components/details.js.map +1 -1
- package/components/dialog.d.ts +9 -5
- package/components/dialog.d.ts.map +1 -1
- package/components/dialog.js +20 -14
- package/components/dialog.js.map +1 -1
- package/components/divider.d.ts +3 -4
- package/components/divider.d.ts.map +1 -1
- package/components/divider.js +6 -7
- package/components/divider.js.map +1 -1
- package/components/dragbox.d.ts +9 -8
- package/components/dragbox.d.ts.map +1 -1
- package/components/dragbox.js +3 -2
- package/components/dragbox.js.map +1 -1
- package/components/flex.d.ts +3 -1
- package/components/flex.d.ts.map +1 -1
- package/components/flex.js +13 -4
- package/components/flex.js.map +1 -1
- package/components/form.d.ts +2 -3
- package/components/form.d.ts.map +1 -1
- package/components/form.js +0 -2
- package/components/form.js.map +1 -1
- package/components/grid.d.ts +9 -3
- package/components/grid.d.ts.map +1 -1
- package/components/grid.js +6 -4
- package/components/grid.js.map +1 -1
- package/components/input.d.ts +4 -4
- package/components/input.d.ts.map +1 -1
- package/components/input.js +5 -7
- package/components/input.js.map +1 -1
- package/components/layout.d.ts +4 -6
- package/components/layout.d.ts.map +1 -1
- package/components/layout.js +23 -12
- package/components/layout.js.map +1 -1
- package/components/link.d.ts +3 -1
- package/components/link.d.ts.map +1 -1
- package/components/link.js +3 -1
- package/components/link.js.map +1 -1
- package/components/progress.d.ts +4 -12
- package/components/progress.d.ts.map +1 -1
- package/components/progress.js +9 -17
- package/components/progress.js.map +1 -1
- package/components/range.d.ts +45 -18
- package/components/range.d.ts.map +1 -1
- package/components/range.js +133 -62
- package/components/range.js.map +1 -1
- package/components/rotate.d.ts +3 -2
- package/components/rotate.d.ts.map +1 -1
- package/components/rotate.js +1 -1
- package/components/rotate.js.map +1 -1
- package/components/router.d.ts +15 -17
- package/components/router.d.ts.map +1 -1
- package/components/router.js +10 -10
- package/components/router.js.map +1 -1
- package/components/select.d.ts +6 -9
- package/components/select.d.ts.map +1 -1
- package/components/select.js +48 -43
- package/components/select.js.map +1 -1
- package/components/skeleton.d.ts +2 -1
- package/components/skeleton.d.ts.map +1 -1
- package/components/skeleton.js +5 -5
- package/components/skeleton.js.map +1 -1
- package/components/split.d.ts +20 -2
- package/components/split.d.ts.map +1 -1
- package/components/split.js +54 -20
- package/components/split.js.map +1 -1
- package/components/switch.d.ts +6 -5
- package/components/switch.d.ts.map +1 -1
- package/components/switch.js +7 -6
- package/components/switch.js.map +1 -1
- package/components/text.d.ts +2 -1
- package/components/text.d.ts.map +1 -1
- package/components/text.js +5 -6
- package/components/text.js.map +1 -1
- package/components/time.d.ts +6 -22
- package/components/time.d.ts.map +1 -1
- package/components/time.js +7 -67
- package/components/time.js.map +1 -1
- package/components/tooltip.d.ts +13 -2
- package/components/tooltip.d.ts.map +1 -1
- package/components/tooltip.js +24 -5
- package/components/tooltip.js.map +1 -1
- package/components/typewriter.d.ts +4 -4
- package/components/typewriter.d.ts.map +1 -1
- package/components/typewriter.js +4 -5
- package/components/typewriter.js.map +1 -1
- package/core/global-style.d.ts.map +1 -1
- package/core/global-style.js +9 -2
- package/core/global-style.js.map +1 -1
- package/core/super-anchor.d.ts +2 -1
- package/core/super-anchor.d.ts.map +1 -1
- package/core/super-anchor.js +4 -3
- package/core/super-anchor.js.map +1 -1
- package/core/super-input.d.ts +5 -5
- package/core/super-input.d.ts.map +1 -1
- package/core/super-input.js +3 -6
- package/core/super-input.js.map +1 -1
- package/core/super-openable.d.ts.map +1 -1
- package/core/super-openable.js +1 -1
- package/core/super-openable.js.map +1 -1
- package/custom-elements.json +1 -1
- package/dev/components/alert.d.ts +6 -3
- package/dev/components/alert.d.ts.map +1 -1
- package/dev/components/alert.js +38 -25
- package/dev/components/alert.js.map +1 -1
- package/dev/components/avatar.d.ts +7 -2
- package/dev/components/avatar.d.ts.map +1 -1
- package/dev/components/avatar.js +28 -13
- package/dev/components/avatar.js.map +1 -1
- package/dev/components/breath.d.ts +4 -2
- package/dev/components/breath.d.ts.map +1 -1
- package/dev/components/breath.js +20 -6
- package/dev/components/breath.js.map +1 -1
- package/dev/components/button.d.ts +20 -11
- package/dev/components/button.d.ts.map +1 -1
- package/dev/components/button.js +34 -25
- package/dev/components/button.js.map +1 -1
- package/dev/components/card.d.ts +2 -2
- package/dev/components/card.d.ts.map +1 -1
- package/dev/components/card.js +25 -30
- package/dev/components/card.js.map +1 -1
- package/dev/components/carousel.d.ts +8 -5
- package/dev/components/carousel.d.ts.map +1 -1
- package/dev/components/carousel.js +35 -20
- package/dev/components/carousel.js.map +1 -1
- package/dev/components/details.d.ts +7 -3
- package/dev/components/details.d.ts.map +1 -1
- package/dev/components/details.js +12 -4
- package/dev/components/details.js.map +1 -1
- package/dev/components/dialog.d.ts +9 -5
- package/dev/components/dialog.d.ts.map +1 -1
- package/dev/components/dialog.js +30 -24
- package/dev/components/dialog.js.map +1 -1
- package/dev/components/divider.d.ts +3 -4
- package/dev/components/divider.d.ts.map +1 -1
- package/dev/components/divider.js +20 -8
- package/dev/components/divider.js.map +1 -1
- package/dev/components/dragbox.d.ts +9 -8
- package/dev/components/dragbox.d.ts.map +1 -1
- package/dev/components/dragbox.js +8 -1
- package/dev/components/dragbox.js.map +1 -1
- package/dev/components/flex.d.ts +3 -1
- package/dev/components/flex.d.ts.map +1 -1
- package/dev/components/flex.js +24 -4
- package/dev/components/flex.js.map +1 -1
- package/dev/components/form.d.ts +2 -3
- package/dev/components/form.d.ts.map +1 -1
- package/dev/components/form.js +0 -2
- package/dev/components/form.js.map +1 -1
- package/dev/components/grid.d.ts +9 -3
- package/dev/components/grid.d.ts.map +1 -1
- package/dev/components/grid.js +17 -4
- package/dev/components/grid.js.map +1 -1
- package/dev/components/input.d.ts +4 -4
- package/dev/components/input.d.ts.map +1 -1
- package/dev/components/input.js +3 -21
- package/dev/components/input.js.map +1 -1
- package/dev/components/layout.d.ts +4 -6
- package/dev/components/layout.d.ts.map +1 -1
- package/dev/components/layout.js +33 -13
- package/dev/components/layout.js.map +1 -1
- package/dev/components/link.d.ts +3 -1
- package/dev/components/link.d.ts.map +1 -1
- package/dev/components/link.js +3 -1
- package/dev/components/link.js.map +1 -1
- package/dev/components/progress.d.ts +4 -12
- package/dev/components/progress.d.ts.map +1 -1
- package/dev/components/progress.js +14 -18
- package/dev/components/progress.js.map +1 -1
- package/dev/components/range.d.ts +45 -18
- package/dev/components/range.d.ts.map +1 -1
- package/dev/components/range.js +164 -109
- package/dev/components/range.js.map +1 -1
- package/dev/components/rotate.d.ts +3 -2
- package/dev/components/rotate.d.ts.map +1 -1
- package/dev/components/rotate.js +1 -1
- package/dev/components/rotate.js.map +1 -1
- package/dev/components/router.d.ts +15 -17
- package/dev/components/router.d.ts.map +1 -1
- package/dev/components/router.js +10 -10
- package/dev/components/router.js.map +1 -1
- package/dev/components/select.d.ts +6 -9
- package/dev/components/select.d.ts.map +1 -1
- package/dev/components/select.js +58 -45
- package/dev/components/select.js.map +1 -1
- package/dev/components/skeleton.d.ts +2 -1
- package/dev/components/skeleton.d.ts.map +1 -1
- package/dev/components/skeleton.js +6 -6
- package/dev/components/skeleton.js.map +1 -1
- package/dev/components/split.d.ts +20 -2
- package/dev/components/split.d.ts.map +1 -1
- package/dev/components/split.js +69 -32
- package/dev/components/split.js.map +1 -1
- package/dev/components/switch.d.ts +6 -5
- package/dev/components/switch.d.ts.map +1 -1
- package/dev/components/switch.js +23 -20
- package/dev/components/switch.js.map +1 -1
- package/dev/components/text.d.ts +2 -1
- package/dev/components/text.d.ts.map +1 -1
- package/dev/components/text.js +7 -7
- package/dev/components/text.js.map +1 -1
- package/dev/components/time.d.ts +6 -22
- package/dev/components/time.d.ts.map +1 -1
- package/dev/components/time.js +9 -67
- package/dev/components/time.js.map +1 -1
- package/dev/components/tooltip.d.ts +13 -2
- package/dev/components/tooltip.d.ts.map +1 -1
- package/dev/components/tooltip.js +55 -20
- package/dev/components/tooltip.js.map +1 -1
- package/dev/components/typewriter.d.ts +4 -4
- package/dev/components/typewriter.d.ts.map +1 -1
- package/dev/components/typewriter.js +11 -5
- package/dev/components/typewriter.js.map +1 -1
- package/dev/core/global-style.d.ts.map +1 -1
- package/dev/core/global-style.js +18 -10
- package/dev/core/global-style.js.map +1 -1
- package/dev/core/super-anchor.d.ts +2 -1
- package/dev/core/super-anchor.d.ts.map +1 -1
- package/dev/core/super-anchor.js +8 -5
- package/dev/core/super-anchor.js.map +1 -1
- package/dev/core/super-input.d.ts +5 -5
- package/dev/core/super-input.d.ts.map +1 -1
- package/dev/core/super-input.js +21 -20
- package/dev/core/super-input.js.map +1 -1
- package/dev/core/super-openable.d.ts.map +1 -1
- package/dev/core/super-openable.js +1 -1
- package/dev/core/super-openable.js.map +1 -1
- package/dev/range.d.ts +1 -1
- package/dev/range.d.ts.map +1 -1
- package/index.js +13 -13
- package/package.json +11 -8
- package/range.d.ts +1 -1
- package/range.d.ts.map +1 -1
- package/src/alert.ts +11 -0
- package/src/avatar.ts +11 -0
- package/src/breath.ts +13 -0
- package/src/button.ts +11 -0
- package/src/card.ts +11 -0
- package/src/carousel.ts +11 -0
- package/src/components/alert.ts +284 -0
- package/src/components/avatar.ts +109 -0
- package/src/components/breath.ts +165 -0
- package/src/components/button.ts +292 -0
- package/src/components/card.ts +83 -0
- package/src/components/carousel.ts +183 -0
- package/src/components/details.ts +121 -0
- package/src/components/dialog.ts +166 -0
- package/src/components/divider.ts +56 -0
- package/src/components/dragbox.ts +134 -0
- package/src/components/flex.ts +82 -0
- package/src/components/form.ts +82 -0
- package/src/components/grid.ts +87 -0
- package/src/components/input.ts +73 -0
- package/src/components/layout.ts +89 -0
- package/src/components/link.ts +38 -0
- package/src/components/progress.ts +100 -0
- package/src/components/range.ts +399 -0
- package/src/components/rotate.ts +95 -0
- package/src/components/router.ts +281 -0
- package/src/components/select.ts +281 -0
- package/src/components/skeleton.ts +119 -0
- package/src/components/split.ts +225 -0
- package/src/components/switch.ts +184 -0
- package/src/components/text.ts +93 -0
- package/src/components/time.ts +84 -0
- package/src/components/tooltip.ts +150 -0
- package/src/components/typewriter.ts +159 -0
- package/src/core/global-style.ts +105 -0
- package/src/core/super-anchor.ts +55 -0
- package/src/core/super-input.ts +230 -0
- package/src/core/super-openable.ts +51 -0
- package/src/details.ts +11 -0
- package/src/dialog.ts +11 -0
- package/src/divider.ts +11 -0
- package/src/dragbox.ts +11 -0
- package/src/flex.ts +11 -0
- package/src/form.ts +11 -0
- package/src/grid.ts +11 -0
- package/src/index.ts +28 -0
- package/src/input.ts +13 -0
- package/src/layout.ts +12 -0
- package/src/link.ts +13 -0
- package/src/progress.ts +12 -0
- package/src/range.ts +13 -0
- package/src/rotate.ts +13 -0
- package/src/router.ts +12 -0
- package/src/select.ts +13 -0
- package/src/skeleton.ts +13 -0
- package/src/split.ts +13 -0
- package/src/switch.ts +13 -0
- package/src/text.ts +13 -0
- package/src/time.ts +13 -0
- package/src/tooltip.ts +13 -0
- package/src/typewriter.ts +11 -0
- package/vscode.html-custom-data.json +1 -1
- package/web-types.json +1 -1
package/components/divider.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
|
-
* {@linkcode Divider} similar to
|
4
|
-
*
|
5
|
-
* This component does not render content.
|
4
|
+
* {@linkcode Divider} similar to `<hr>`.
|
6
5
|
*
|
7
6
|
* @category layout
|
8
7
|
*/
|
@@ -11,7 +10,7 @@ declare class Divider extends GlobalStyle {
|
|
11
10
|
* Vertical display.
|
12
11
|
*/
|
13
12
|
vertical: boolean;
|
14
|
-
|
13
|
+
protected render(): TemplateResult<1>;
|
15
14
|
}
|
16
15
|
export default Divider;
|
17
16
|
//# sourceMappingURL=divider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../src/components/divider.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../src/components/divider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAIM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IAEH,QAAQ,UAAS;IAEjB,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAGtC;AAED,eAAe,OAAO,CAAC"}
|
package/components/divider.js
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
import { __decorate } from 'tslib';
|
2
2
|
import { godown, styles } from '@godown/element/decorators/index.js';
|
3
|
-
import {
|
3
|
+
import { attr } from '@godown/element/directives/attr.js';
|
4
|
+
import { html, css } from 'lit';
|
4
5
|
import { property } from 'lit/decorators.js';
|
5
6
|
import { GlobalStyle } from '../core/global-style.js';
|
6
7
|
|
7
8
|
const protoName = "divider";
|
8
9
|
/**
|
9
|
-
* {@linkcode Divider} similar to
|
10
|
-
*
|
11
|
-
* This component does not render content.
|
10
|
+
* {@linkcode Divider} similar to `<hr>`.
|
12
11
|
*
|
13
12
|
* @category layout
|
14
13
|
*/
|
@@ -20,8 +19,8 @@ let Divider = class Divider extends GlobalStyle {
|
|
20
19
|
*/
|
21
20
|
this.vertical = false;
|
22
21
|
}
|
23
|
-
|
24
|
-
this.
|
22
|
+
render() {
|
23
|
+
return html `<div part="root" ${attr(this.observedRecord)}></div>`;
|
25
24
|
}
|
26
25
|
};
|
27
26
|
__decorate([
|
@@ -29,7 +28,7 @@ __decorate([
|
|
29
28
|
], Divider.prototype, "vertical", void 0);
|
30
29
|
Divider = __decorate([
|
31
30
|
godown(protoName),
|
32
|
-
styles(css `:host{width:100%;height:.05em;margin:auto;display:block;background:currentColor}:host([vertical]){width:.05em;height:max(1em,100%)}`)
|
31
|
+
styles(css `:host{width:100%;height:.05em;margin:auto;display:block;background:currentColor}:host([vertical]){width:.05em;height:max(1em,100%)}:host([contents]) [part=root]{width:100%;height:.05em;margin:auto;display:block;background:currentColor}[part=root]{display:contents}`)
|
33
32
|
], Divider);
|
34
33
|
var Divider$1 = Divider;
|
35
34
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"divider.js","sources":["../src/components/divider.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"divider.js","sources":["../src/components/divider.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;AAOA,MAAM,SAAS,GAAG,SAAS;AAE3B;;;;AAIE;AAKF,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,WAAW,CAAA;AAAjC,IAAA,WAAA,GAAA;;AACE;;AAEE;QAEF,IAAQ,CAAA,QAAA,GAAG,KAAK;;IAEN,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAA,iBAAA,EAAoB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA,OAAA,CAAS;;CAErE;AALE,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAC1B,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AALZ,OAAO,GAAA,UAAA,CAAA;IAJZ,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,wQAAA,CAA0Q;AAEzQ,CAAA,EAAA,OAAO,CAUb;AAEA,gBAAe,OAAO;;;;"}
|
package/components/dragbox.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { EventListenerFunc } from "@godown/element/tools/events.js";
|
2
|
+
import { type TemplateResult } from "lit";
|
2
3
|
import { GlobalStyle } from "../core/global-style.js";
|
3
4
|
/**
|
4
5
|
* {@linkcode Dragbox} does not extend beyond the range of {@linkcode Dragbox.offsetsWidth} and {@linkcode Dragbox.offsetsHeight}.
|
@@ -14,11 +15,11 @@ declare class Dragbox extends GlobalStyle {
|
|
14
15
|
* Height of (`this.offsetParent` or `document.body`).
|
15
16
|
*/
|
16
17
|
get offsetsHeight(): number;
|
17
|
-
drag
|
18
|
-
t
|
19
|
-
l
|
20
|
-
cx
|
21
|
-
cy
|
18
|
+
private drag;
|
19
|
+
private t;
|
20
|
+
private l;
|
21
|
+
private cx;
|
22
|
+
private cy;
|
22
23
|
/**
|
23
24
|
* Position x.
|
24
25
|
*/
|
@@ -27,11 +28,11 @@ declare class Dragbox extends GlobalStyle {
|
|
27
28
|
* Position y.
|
28
29
|
*/
|
29
30
|
y: string;
|
30
|
-
protected render():
|
31
|
+
protected render(): TemplateResult<1>;
|
31
32
|
protected firstUpdated(): void;
|
32
33
|
protected _handleDragStart(e: MouseEvent): void;
|
33
|
-
_handleMouseMove: EventListenerFunc;
|
34
|
-
_handleMouseLeave: EventListenerFunc;
|
34
|
+
protected _handleMouseMove: EventListenerFunc;
|
35
|
+
protected _handleMouseLeave: EventListenerFunc;
|
35
36
|
protected _handleDragEnd(): void;
|
36
37
|
protected _handleDrag(e: MouseEvent): void;
|
37
38
|
reset(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dragbox.d.ts","sourceRoot":"","sources":["../src/components/dragbox.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"dragbox.d.ts","sourceRoot":"","sources":["../src/components/dragbox.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAIM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,OAAO,CAAC,IAAI,CAAU;IACtB,OAAO,CAAC,CAAC,CAAS;IAClB,OAAO,CAAC,CAAC,CAAS;IAClB,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,EAAE,CAAS;IAEnB;;OAEG;IAEH,CAAC,SAAU;IAEX;;OAEG;IAEH,CAAC,SAAU;IAEX,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,SAAS,CAAC,YAAY,IAAI,IAAI;IAI9B,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAU/C,SAAS,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IAC9C,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE/C,SAAS,CAAC,cAAc,IAAI,IAAI;IAMhC,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAuB1C,KAAK,IAAI,IAAI;CAWd;AAED,eAAe,OAAO,CAAC"}
|
package/components/dragbox.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { __decorate } from 'tslib';
|
2
2
|
import { godown } from '@godown/element/decorators/godown.js';
|
3
3
|
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
+
import { attr } from '@godown/element/directives/attr.js';
|
4
5
|
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
5
|
-
import {
|
6
|
+
import { html, css } from 'lit';
|
6
7
|
import { property } from 'lit/decorators.js';
|
7
8
|
import { GlobalStyle } from '../core/global-style.js';
|
8
9
|
|
@@ -37,7 +38,7 @@ let Dragbox = class Dragbox extends GlobalStyle {
|
|
37
38
|
return this.offsetParent?.clientHeight ?? document.body.offsetHeight;
|
38
39
|
}
|
39
40
|
render() {
|
40
|
-
return html `<div @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${htmlSlot()}</div>`;
|
41
|
+
return html `<div part="root" ${attr(this.observedRecord)} @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${htmlSlot()}</div>`;
|
41
42
|
}
|
42
43
|
firstUpdated() {
|
43
44
|
this.reset();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dragbox.js","sources":["../src/components/dragbox.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"dragbox.js","sources":["../src/components/dragbox.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAUA,MAAM,SAAS,GAAG,SAAS;AAE3B;;;;AAIE;AAKF,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,WAAW,CAAA;AAAjC,IAAA,WAAA,GAAA;;AAqBE;;AAEE;QAEF,IAAC,CAAA,CAAA,GAAG,MAAM;AAEV;;AAEE;QAEF,IAAC,CAAA,CAAA,GAAG,MAAM;;AA9BV;;AAEE;AACF,IAAA,IAAI,YAAY,GAAA;QACd,OAAO,IAAI,CAAC,YAAY,EAAE,WAAW,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW;;AAGpE;;AAEE;AACF,IAAA,IAAI,aAAa,GAAA;QACf,OAAO,IAAI,CAAC,YAAY,EAAE,YAAY,IAAI,QAAQ,CAAC,IAAI,CAAC,YAAY;;IAqB5D,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAEP,iBAAA,EAAA,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA,aAAA,EACb,IAAI,CAAC,gBAAgB,eACvB,IAAI,CAAC,cAAc,CAC7B,EAAA,EAAA,QAAQ,EAAE,CAAA,MAAA,CACP;;IAGC,YAAY,GAAA;QACpB,IAAI,CAAC,KAAK,EAAE;;AAGJ,IAAA,gBAAgB,CAAC,CAAa,EAAA;AACtC,QAAA,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,OAAO;AACnB,QAAA,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,OAAO;AACnB,QAAA,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS;AACvB,QAAA,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU;AACxB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI;QAChB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3F,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;IAMxF,cAAc,GAAA;AACtB,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK;AACjB,QAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,gBAAgB,CAAC;AAChE,QAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC;;AAG1D,IAAA,WAAW,CAAC,CAAa,EAAA;AACjC,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACd;;AAEF,QAAA,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;AACzC,QAAA,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;AACzC,QAAA,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,IAAI;AAC9E,QAAA,IAAI,EAAE,GAAG,CAAC,EAAE;AACV,YAAA,KAAK,CAAC,IAAI,GAAG,GAAG;;AACX,aAAA,IAAI,EAAE,GAAG,YAAY,GAAG,WAAW,EAAE;AAC1C,YAAA,KAAK,CAAC,IAAI,GAAG,CAAG,EAAA,EAAE,IAAI;;aACjB;YACL,KAAK,CAAC,IAAI,GAAG,CAAA,EAAG,YAAY,GAAG,WAAW,MAAM;;AAElD,QAAA,IAAI,EAAE,GAAG,CAAC,EAAE;AACV,YAAA,KAAK,CAAC,GAAG,GAAG,GAAG;;AACV,aAAA,IAAI,EAAE,GAAG,aAAa,GAAG,YAAY,EAAE;AAC5C,YAAA,KAAK,CAAC,GAAG,GAAG,CAAG,EAAA,EAAE,IAAI;;aAChB;YACL,KAAK,CAAC,GAAG,GAAG,CAAA,EAAG,aAAa,GAAG,YAAY,IAAI;;;IAInD,KAAK,GAAA;QACH,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI;AAC3G,QAAA,KAAK,CAAC,IAAI,GAAG,CAAC,IAAI,GAAG;AACrB,QAAA,KAAK,CAAC,GAAG,GAAG,CAAC,IAAI,GAAG;AACpB,QAAA,IAAI,UAAU,GAAG,YAAY,GAAG,WAAW,EAAE;YAC3C,KAAK,CAAC,IAAI,GAAG,CAAA,EAAG,YAAY,GAAG,WAAW,IAAI;;AAEhD,QAAA,IAAI,SAAS,GAAG,aAAa,GAAG,YAAY,EAAE;YAC5C,KAAK,CAAC,GAAG,GAAG,CAAA,EAAG,aAAa,GAAG,YAAY,IAAI;;;CAGrD;AA3EE,UAAA,CAAA;AADC,IAAA,QAAQ;AACC,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,GAAA,EAAA,KAAA,CAAA,CAAA;AAMV,UAAA,CAAA;AADC,IAAA,QAAQ;AACC,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,GAAA,EAAA,KAAA,CAAA,CAAA;AA/BN,OAAO,GAAA,UAAA,CAAA;IAJZ,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,+FAAA,CAAiG;AAEhG,CAAA,EAAA,OAAO,CAoGb;AAEA,gBAAe,OAAO;;;;"}
|
package/components/flex.d.ts
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode Flex} provides flex layout.
|
4
5
|
*
|
6
|
+
* @slot - Flex items.
|
5
7
|
* @category layout
|
6
8
|
*/
|
7
9
|
declare class Flex extends GlobalStyle {
|
@@ -25,7 +27,7 @@ declare class Flex extends GlobalStyle {
|
|
25
27
|
* If true, set flex-direction to "column".
|
26
28
|
*/
|
27
29
|
vertical: boolean;
|
28
|
-
protected render():
|
30
|
+
protected render(): TemplateResult<1>;
|
29
31
|
}
|
30
32
|
export default Flex;
|
31
33
|
//# sourceMappingURL=flex.d.ts.map
|
package/components/flex.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../src/components/flex.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../src/components/flex.ts"],"names":[],"mappings":"AAMA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;GAKG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,QAAQ,UAAS;IAEjB,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAgBtC;AAED,eAAe,IAAI,CAAC"}
|
package/components/flex.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import { __decorate } from 'tslib';
|
2
2
|
import { godown } from '@godown/element/decorators/godown.js';
|
3
3
|
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
+
import { attr } from '@godown/element/directives/attr.js';
|
4
5
|
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
5
6
|
import { htmlStyle } from '@godown/element/directives/html-style.js';
|
6
7
|
import { joinRules } from '@godown/element/tools/css.js';
|
7
|
-
import { css } from 'lit';
|
8
|
+
import { html, css } from 'lit';
|
8
9
|
import { property } from 'lit/decorators.js';
|
9
10
|
import { GlobalStyle } from '../core/global-style.js';
|
10
11
|
|
@@ -12,11 +13,19 @@ const protoName = "flex";
|
|
12
13
|
/**
|
13
14
|
* {@linkcode Flex} provides flex layout.
|
14
15
|
*
|
16
|
+
* @slot - Flex items.
|
15
17
|
* @category layout
|
16
18
|
*/
|
17
19
|
let Flex = class Flex extends GlobalStyle {
|
20
|
+
constructor() {
|
21
|
+
super(...arguments);
|
22
|
+
/**
|
23
|
+
* If true, set flex-direction to "column".
|
24
|
+
*/
|
25
|
+
this.vertical = false;
|
26
|
+
}
|
18
27
|
render() {
|
19
|
-
return [
|
28
|
+
return html `<div part="root" ${attr(this.observedRecord)}>${[
|
20
29
|
htmlSlot(),
|
21
30
|
htmlStyle(joinRules({
|
22
31
|
":host": {
|
@@ -27,7 +36,7 @@ let Flex = class Flex extends GlobalStyle {
|
|
27
36
|
"justify-content": this.content,
|
28
37
|
},
|
29
38
|
})),
|
30
|
-
]
|
39
|
+
]}</div>`;
|
31
40
|
}
|
32
41
|
};
|
33
42
|
__decorate([
|
@@ -47,7 +56,7 @@ __decorate([
|
|
47
56
|
], Flex.prototype, "vertical", void 0);
|
48
57
|
Flex = __decorate([
|
49
58
|
godown(protoName),
|
50
|
-
styles(css `:host{display:flex}`)
|
59
|
+
styles(css `:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)
|
51
60
|
], Flex);
|
52
61
|
var Flex$1 = Flex;
|
53
62
|
|
package/components/flex.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"flex.js","sources":["../src/components/flex.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"flex.js","sources":["../src/components/flex.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;;AAKE;AAGF,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;AAA9B,IAAA,WAAA,GAAA;;AAyBE;;AAEE;QAEF,IAAQ,CAAA,QAAA,GAAG,KAAK;;IAEN,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAoB,iBAAA,EAAA,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CACtD,CAAA,EAAA;AACA,YAAA,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;AACR,gBAAA,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,WAAW,EAAE,IAAI,CAAC,QAAQ;AAC1B,oBAAA,gBAAgB,EAAE,IAAI,CAAC,QAAQ,IAAI,QAAQ;oBAC3C,aAAa,EAAE,IAAI,CAAC,KAAK;oBACzB,iBAAiB,EAAE,IAAI,CAAC,OAAO;AAChC,iBAAA;AACF,aAAA,CAAC,CACH;AACF,SAAA,CAAA,MAAA,CACM;;CAEX;AA5CE,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE;AACpB,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAMhB,UAAA,CAAA;AADC,IAAA,QAAQ;AACE,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AAMX,UAAA,CAAA;AADC,IAAA,QAAQ;AACM,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAMf,UAAA,CAAA;AADC,IAAA,QAAQ;AACI,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAMb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACX,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AA7BZ,IAAI,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,8EAAA,CAAgF;AACrF,CAAA,EAAA,IAAI,CAiDV;AAEA,aAAe,IAAI;;;;"}
|
package/components/form.d.ts
CHANGED
@@ -1,17 +1,16 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode Form} Gets child element key-value object,
|
4
5
|
* which will be nested if the child element is the same as this element.
|
5
6
|
*
|
6
|
-
* @slot - Child elements.
|
7
|
-
*
|
8
7
|
* @category form
|
9
8
|
*/
|
10
9
|
declare class Form<T = object> extends GlobalStyle {
|
11
10
|
name: string;
|
12
11
|
get value(): T;
|
13
12
|
nameValue: () => [string, T];
|
14
|
-
protected render():
|
13
|
+
protected render(): TemplateResult<1>;
|
15
14
|
reset(): void;
|
16
15
|
namevalue(): [string, T];
|
17
16
|
static buildValue(elements: (Element & {
|
package/components/form.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/components/form.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/components/form.ts"],"names":[],"mappings":"AAGA,OAAO,EAAO,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;GAKG;AACH,cAIM,IAAI,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,WAAW;IAExC,IAAI,SAAM;IAEV,IAAI,KAAK,IAAI,CAAC,CAEb;IAED,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAkB;IAE9C,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,KAAK,IAAI,IAAI;IAWb,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAIxB,MAAM,CAAC,UAAU,CACf,QAAQ,EAAE,CAAC,OAAO,GAAG;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC,CAAC,EAAE,GACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAoBvB;AAED,eAAe,IAAI,CAAC"}
|
package/components/form.js
CHANGED
@@ -12,8 +12,6 @@ const protoName = "form";
|
|
12
12
|
* {@linkcode Form} Gets child element key-value object,
|
13
13
|
* which will be nested if the child element is the same as this element.
|
14
14
|
*
|
15
|
-
* @slot - Child elements.
|
16
|
-
*
|
17
15
|
* @category form
|
18
16
|
*/
|
19
17
|
let Form = Form_1 = class Form extends GlobalStyle {
|
package/components/form.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"form.js","sources":["../src/components/form.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAQA,MAAM,SAAS,GAAG,MAAM
|
1
|
+
{"version":3,"file":"form.js","sources":["../src/components/form.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAQA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;;AAKE;AAKF,IAAM,IAAI,GAAA,MAAA,GAAV,MAAM,IAAiB,SAAQ,WAAW,CAAA;AAA1C,IAAA,WAAA,GAAA;;QAEE,IAAI,CAAA,IAAA,GAAG,EAAE;AAMT,QAAA,IAAA,CAAA,SAAS,GAAsB,IAAI,CAAC,SAAS;;AAJ7C,IAAA,IAAI,KAAK,GAAA;QACP,OAAO,MAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAM;;IAKlD,MAAM,GAAA;QACd,OAAO,QAAQ,EAAE;;IAGnB,KAAK,GAAA;QACH,IAAI,CAAC,oBAAoB,CAAwC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,KAAI;YACnF,IAAI,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,EAAE;gBAC/B;;AAEF,YAAA,IAAI,EAAE,CAAC,KAAK,EAAE;gBACZ,EAAE,CAAC,KAAK,EAAE;;AAEd,SAAC,CAAC;;IAGJ,SAAS,GAAA;QACP,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;;IAGhC,OAAO,UAAU,CACf,QAII,EAAA;QAEJ,MAAM,MAAM,GAAG,EAAE;AACjB,QAAA,KAAK,MAAM,EAAE,IAAI,QAAQ,EAAE;AACzB,YAAA,IAAI,EAAE,CAAC,OAAO,KAAK,MAAM,EAAE;AACzB,gBAAA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,EAAqB,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;;AACnF,iBAAA,IAAI,EAAE,CAAC,SAAS,EAAE;gBACvB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE;gBACpC,IAAI,IAAI,EAAE;AACR,oBAAA,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK;;;iBAEjB,IAAI,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,KAAK,KAAK,SAAS,EAAE;gBAC5C,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK;;AACrB,iBAAA,IAAI,EAAE,CAAC,UAAU,EAAE;AACxB,gBAAA,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE;AACzD,oBAAA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;;;;AAIrE,QAAA,OAAO,MAAM;;CAEjB;AArDE,UAAA,CAAA;AADC,IAAA,QAAQ;AACA,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAFL,IAAI,GAAA,MAAA,GAAA,UAAA,CAAA;IAJT,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,oBAAA,CAAsB;AAErB,CAAA,EAAA,IAAI,CAuDV;AAEA,aAAe,IAAI;;;;"}
|
package/components/grid.d.ts
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode Grid} provides gird layout.
|
4
5
|
*
|
6
|
+
* @slot - Grid items.
|
5
7
|
* @category layout
|
6
8
|
*/
|
7
9
|
declare class Grid extends GlobalStyle {
|
@@ -10,11 +12,15 @@ declare class Grid extends GlobalStyle {
|
|
10
12
|
*/
|
11
13
|
gap: string;
|
12
14
|
/**
|
13
|
-
* CSS property `grid-template-columns
|
15
|
+
* CSS property `grid-template-columns`.
|
16
|
+
*
|
17
|
+
* If columns is numerical, divide columns equally.
|
14
18
|
*/
|
15
19
|
columns: string | number;
|
16
20
|
/**
|
17
|
-
* CSS property `grid-template-rows
|
21
|
+
* CSS property `grid-template-rows`.
|
22
|
+
*
|
23
|
+
* If rows is numerical, divide rows equally.
|
18
24
|
*/
|
19
25
|
rows: string | number;
|
20
26
|
/**
|
@@ -25,7 +31,7 @@ declare class Grid extends GlobalStyle {
|
|
25
31
|
* CSS property `place-items` (`align-items justify-items`).
|
26
32
|
*/
|
27
33
|
items: string;
|
28
|
-
protected render():
|
34
|
+
protected render(): TemplateResult<1>;
|
29
35
|
}
|
30
36
|
export default Grid;
|
31
37
|
//# sourceMappingURL=grid.d.ts.map
|
package/components/grid.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/components/grid.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/components/grid.ts"],"names":[],"mappings":"AAOA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;GAKG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IAEH,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;;OAIG;IAEH,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAEtB;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAgBtC;AAED,eAAe,IAAI,CAAC"}
|
package/components/grid.js
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
import { __decorate } from 'tslib';
|
2
2
|
import { godown } from '@godown/element/decorators/godown.js';
|
3
3
|
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
+
import { attr } from '@godown/element/directives/attr.js';
|
4
5
|
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
5
6
|
import { htmlStyle } from '@godown/element/directives/html-style.js';
|
6
7
|
import { joinRules } from '@godown/element/tools/css.js';
|
7
8
|
import { isNumerical } from '@godown/element/tools/lib.js';
|
8
|
-
import { css } from 'lit';
|
9
|
+
import { html, css } from 'lit';
|
9
10
|
import { property } from 'lit/decorators.js';
|
10
11
|
import { GlobalStyle } from '../core/global-style.js';
|
11
12
|
|
@@ -13,11 +14,12 @@ const protoName = "grid";
|
|
13
14
|
/**
|
14
15
|
* {@linkcode Grid} provides gird layout.
|
15
16
|
*
|
17
|
+
* @slot - Grid items.
|
16
18
|
* @category layout
|
17
19
|
*/
|
18
20
|
let Grid = class Grid extends GlobalStyle {
|
19
21
|
render() {
|
20
|
-
return [
|
22
|
+
return html `<div part="root" ${attr(this.observedRecord)}>${[
|
21
23
|
htmlSlot(),
|
22
24
|
htmlStyle(joinRules({
|
23
25
|
":host": {
|
@@ -28,7 +30,7 @@ let Grid = class Grid extends GlobalStyle {
|
|
28
30
|
"place-items": this.items,
|
29
31
|
},
|
30
32
|
})),
|
31
|
-
]
|
33
|
+
]}</div>`;
|
32
34
|
}
|
33
35
|
};
|
34
36
|
__decorate([
|
@@ -48,7 +50,7 @@ __decorate([
|
|
48
50
|
], Grid.prototype, "items", void 0);
|
49
51
|
Grid = __decorate([
|
50
52
|
godown(protoName),
|
51
|
-
styles(css `:host{display:grid}`)
|
53
|
+
styles(css `:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)
|
52
54
|
], Grid);
|
53
55
|
var Grid$1 = Grid;
|
54
56
|
|
package/components/grid.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"grid.js","sources":["../src/components/grid.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;AAYA,MAAM,SAAS,GAAG,MAAM;AAExB;;;;;AAKE;AAGF,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;IAmClB,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAoB,iBAAA,EAAA,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CACtD,CAAA,EAAA;AACA,YAAA,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;AACR,gBAAA,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,uBAAuB,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,UAAU,IAAI,CAAC,OAAO,CAAO,KAAA,CAAA,GAAG,IAAI,CAAC,OAAO;oBACjG,oBAAoB,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,UAAU,IAAI,CAAC,IAAI,CAAO,KAAA,CAAA,GAAG,IAAI,CAAC,IAAI;oBACrF,eAAe,EAAE,IAAI,CAAC,OAAO;oBAC7B,aAAa,EAAE,IAAI,CAAC,KAAK;AAC1B,iBAAA;AACF,aAAA,CAAC,CACH;AACF,SAAA,CAAA,MAAA,CACM;;CAEX;AAhDE,UAAA,CAAA;AADC,IAAA,QAAQ;AACE,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AAQX,UAAA,CAAA;AADC,IAAA,QAAQ;AACe,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAQxB,UAAA,CAAA;AADC,IAAA,QAAQ;AACY,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAMrB,UAAA,CAAA;AADC,IAAA,QAAQ;AACM,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAMf,UAAA,CAAA;AADC,IAAA,QAAQ;AACI,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAjCT,IAAI,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,8EAAA,CAAgF;AACrF,CAAA,EAAA,IAAI,CAqDV;AAEA,aAAe,IAAI;;;;"}
|
package/components/input.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import SuperInput from "../core/super-input.js";
|
2
3
|
/**
|
3
|
-
* {@linkcode Input}
|
4
|
+
* {@linkcode Input} renders a text input.
|
4
5
|
*
|
5
6
|
* @category input
|
6
7
|
*/
|
@@ -11,9 +12,8 @@ declare class Input extends SuperInput {
|
|
11
12
|
* If outline, the outline is always present.
|
12
13
|
*/
|
13
14
|
variant: "default" | "outline";
|
14
|
-
|
15
|
-
|
16
|
-
protected render(): import("lit").TemplateResult<1>;
|
15
|
+
protected _input: HTMLInputElement;
|
16
|
+
protected render(): TemplateResult<1>;
|
17
17
|
reset(): void;
|
18
18
|
}
|
19
19
|
export default Input;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/components/input.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/components/input.ts"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAI9D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAIhD;;;;GAIG;AACH,cAIM,KAAM,SAAQ,UAAU;IAC5B,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAU;IAExE,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IAG3C,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAEnC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAQrC,KAAK,IAAI,IAAI;CAId;AAED,eAAe,KAAK,CAAC"}
|
package/components/input.js
CHANGED
@@ -2,15 +2,16 @@ import { __decorate } from 'tslib';
|
|
2
2
|
import { godown } from '@godown/element/decorators/godown.js';
|
3
3
|
import { part } from '@godown/element/decorators/part.js';
|
4
4
|
import { styles } from '@godown/element/decorators/styles.js';
|
5
|
+
import { attr } from '@godown/element/directives/attr.js';
|
5
6
|
import { classList } from '@godown/element/directives/class-list.js';
|
6
|
-
import {
|
7
|
+
import { html, nothing, css } from 'lit';
|
7
8
|
import { property } from 'lit/decorators.js';
|
8
9
|
import { cssGlobalVars } from '../core/global-style.js';
|
9
10
|
import SuperInput from '../core/super-input.js';
|
10
11
|
|
11
12
|
const protoName = "input";
|
12
13
|
/**
|
13
|
-
* {@linkcode Input}
|
14
|
+
* {@linkcode Input} renders a text input.
|
14
15
|
*
|
15
16
|
* @category input
|
16
17
|
*/
|
@@ -24,7 +25,7 @@ let Input = class Input extends SuperInput {
|
|
24
25
|
this.variant = "default";
|
25
26
|
}
|
26
27
|
render() {
|
27
|
-
return html `<div part="root" class="${classList("input-field", this.variant)}">${[
|
28
|
+
return html `<div part="root" ${attr(this.observedRecord)} class="${classList("input-field", this.variant)}">${[
|
28
29
|
this._renderPrefix(),
|
29
30
|
html `<input part="input" type="${this.type}" id="${this.makeId}" .value="${this.value}" placeholder="${this.placeholder || nothing}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize || nothing}" autocomplete="${this.autocomplete || nothing}" ?disabled="${this.disabled}" @input="${this._handleInput}">`,
|
30
31
|
this._renderSuffix(),
|
@@ -38,15 +39,12 @@ let Input = class Input extends SuperInput {
|
|
38
39
|
__decorate([
|
39
40
|
property()
|
40
41
|
], Input.prototype, "variant", void 0);
|
41
|
-
__decorate([
|
42
|
-
property()
|
43
|
-
], Input.prototype, "accept", void 0);
|
44
42
|
__decorate([
|
45
43
|
part("input")
|
46
44
|
], Input.prototype, "_input", void 0);
|
47
45
|
Input = __decorate([
|
48
46
|
godown(protoName),
|
49
|
-
styles(css `:host{width:var(${cssGlobalVars.input}-width);height:var(${cssGlobalVars.input}-height);color:var(${cssGlobalVars.foreground});background:var(${cssGlobalVars.input}-background);border-radius:var(${cssGlobalVars.input}-radius);display:block}
|
47
|
+
styles(css `:host{width:var(${cssGlobalVars.input}-width);height:var(${cssGlobalVars.input}-height);color:var(${cssGlobalVars.foreground});background:var(${cssGlobalVars.input}-background);border-radius:var(${cssGlobalVars.input}-radius);display:block}`)
|
50
48
|
], Input);
|
51
49
|
var Input$1 = Input;
|
52
50
|
|
package/components/input.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,SAAS,GAAG,OAAO;AAEzB;;;;AAIE;AAKF,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU,CAAA;AAA9B,IAAA,WAAA,GAAA;;QACE,IAAI,CAAA,IAAA,GAA6D,MAAM;AAIvE;;AAEE;QAEF,IAAO,CAAA,OAAA,GAA0B,SAAS;;IAKhC,MAAM,GAAA;AACd,QAAA,OAAO,IAAI,CAAA,CAAA,iBAAA,EAAoB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAW,QAAA,EAAA,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CACvG,EAAA,EAAA;YACA,IAAI,CAAC,aAAa,EAAE;AACpB,YAAA,IAAI,CAAA,CAEM,0BAAA,EAAA,IAAI,CAAC,IAAI,CAAA,MAAA,EACX,IAAI,CAAC,MAAM,aACP,IAAI,CAAC,KAAK,CACL,eAAA,EAAA,IAAI,CAAC,WAAW,IAAI,OAAO,CAC5B,cAAA,EAAA,IAAI,CAAC,SAAS,CAAA,kBAAA,EACV,IAAI,CAAC,cAAc,IAAI,OAAO,CAAA,gBAAA,EAChC,IAAI,CAAC,YAAY,IAAI,OAAO,CAAA,aAAA,EAC/B,IAAI,CAAC,QAAQ,aAChB,IAAI,CAAC,YAAY,CAC3B,EAAA,CAAA;YACF,IAAI,CAAC,aAAa,EAAE;AACrB,SAAA,CAAA,MAAA,CACM;;IAGT,KAAK,GAAA;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO;AAChC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO;;CAE7B;AA9BE,UAAA,CAAA;AADC,IAAA,QAAQ;AACiC,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAGhC,UAAA,CAAA;IADT,IAAI,CAAC,OAAO;AACqB,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AAZ9B,KAAK,GAAA,UAAA,CAAA;IAJV,MAAM,CAAC,SAAS,CAAA;IAChB,MAAM,CACL,GAAG,CAAA,CAAmB,gBAAA,EAAA,aAAa,CAAC,KAAK,CAAA,mBAAA,EAAsB,aAAa,CAAC,KAAK,CAAA,mBAAA,EAAsB,aAAa,CAAC,UAAU,CAAoB,iBAAA,EAAA,aAAa,CAAC,KAAK,kCAAkC,aAAa,CAAC,KAAK,CAAA,uBAAA,CAAyB;AAEjP,CAAA,EAAA,KAAK,CAuCX;AAEA,cAAe,KAAK;;;;"}
|
package/components/layout.d.ts
CHANGED
@@ -1,29 +1,27 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "../core/global-style.js";
|
2
3
|
/**
|
3
4
|
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
4
5
|
*
|
5
6
|
* @slot - The main content of the layout.
|
6
|
-
*
|
7
7
|
* @slot header - The header of the layout.
|
8
|
-
*
|
9
8
|
* @slot footer - The footer of the layout.
|
10
|
-
*
|
11
9
|
* @category layout
|
12
10
|
*/
|
13
11
|
declare class NavLayout extends GlobalStyle {
|
14
12
|
/**
|
15
|
-
* If true,
|
13
|
+
* If true, remove the header slot.
|
16
14
|
*/
|
17
15
|
noHeader: boolean;
|
18
16
|
/**
|
19
|
-
* If true,
|
17
|
+
* If true, remove the footer slot.
|
20
18
|
*/
|
21
19
|
noFooter: boolean;
|
22
20
|
/**
|
23
21
|
* If true, header will sticky.
|
24
22
|
*/
|
25
23
|
sticky: boolean;
|
26
|
-
protected render():
|
24
|
+
protected render(): TemplateResult<1>;
|
27
25
|
}
|
28
26
|
export default NavLayout;
|
29
27
|
//# sourceMappingURL=layout.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/components/layout.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/components/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAIM,SAAU,SAAQ,WAAW;IACjC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAWtC;AAED,eAAe,SAAS,CAAC"}
|
package/components/layout.js
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
import { __decorate } from 'tslib';
|
2
2
|
import { godown } from '@godown/element/decorators/godown.js';
|
3
3
|
import { styles } from '@godown/element/decorators/styles.js';
|
4
|
-
import {
|
5
|
-
import { conditionIf } from '@godown/element/directives/condition-if.js';
|
4
|
+
import { attr } from '@godown/element/directives/attr.js';
|
6
5
|
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
7
|
-
import {
|
6
|
+
import { html, css } from 'lit';
|
8
7
|
import { property } from 'lit/decorators.js';
|
9
8
|
import { GlobalStyle } from '../core/global-style.js';
|
10
9
|
|
@@ -13,20 +12,32 @@ const protoName = "layout";
|
|
13
12
|
* {@linkcode NavLayout} renders slot and optional top header, bottom footer.
|
14
13
|
*
|
15
14
|
* @slot - The main content of the layout.
|
16
|
-
*
|
17
15
|
* @slot header - The header of the layout.
|
18
|
-
*
|
19
16
|
* @slot footer - The footer of the layout.
|
20
|
-
*
|
21
17
|
* @category layout
|
22
18
|
*/
|
23
19
|
let NavLayout = class NavLayout extends GlobalStyle {
|
20
|
+
constructor() {
|
21
|
+
super(...arguments);
|
22
|
+
/**
|
23
|
+
* If true, remove the header slot.
|
24
|
+
*/
|
25
|
+
this.noHeader = false;
|
26
|
+
/**
|
27
|
+
* If true, remove the footer slot.
|
28
|
+
*/
|
29
|
+
this.noFooter = false;
|
30
|
+
/**
|
31
|
+
* If true, header will sticky.
|
32
|
+
*/
|
33
|
+
this.sticky = false;
|
34
|
+
}
|
24
35
|
render() {
|
25
|
-
return
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
36
|
+
return html `<div part="root" ${attr(this.observedRecord)}>${!this.noHeader
|
37
|
+
? html `<header part="header">${htmlSlot("header")}</header>`
|
38
|
+
: ""}<main part="main">${htmlSlot()}</main>${!this.noFooter
|
39
|
+
? html `<footer part="footer">${htmlSlot("footer")}</footer>`
|
40
|
+
: ""}</div>`;
|
30
41
|
}
|
31
42
|
};
|
32
43
|
__decorate([
|
@@ -40,7 +51,7 @@ __decorate([
|
|
40
51
|
], NavLayout.prototype, "sticky", void 0);
|
41
52
|
NavLayout = __decorate([
|
42
53
|
godown(protoName),
|
43
|
-
styles(css `:host{min-height:100%;display:flex;flex-direction:column}
|
54
|
+
styles(css `:host,:host([contents]) [part=root]{min-height:100%;display:flex;flex-direction:column}[part=root]{display:contents}[sticky] header{position:sticky;top:0;z-index:1}[part=main]{position:relative;flex:1;width:100%}footer,header,main{width:100%}`)
|
44
55
|
], NavLayout);
|
45
56
|
var Layout = NavLayout;
|
46
57
|
|
package/components/layout.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"layout.js","sources":["../src/components/layout.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AASA,MAAM,SAAS,GAAG,QAAQ;AAE1B;;;;;;;AAOE;AAKF,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,WAAW,CAAA;AAAnC,IAAA,WAAA,GAAA;;AACE;;AAEE;QAEF,IAAQ,CAAA,QAAA,GAAG,KAAK;AAEhB;;AAEE;QAEF,IAAQ,CAAA,QAAA,GAAG,KAAK;AAEhB;;AAEE;QAEF,IAAM,CAAA,MAAA,GAAG,KAAK;;IAEJ,MAAM,GAAA;AACd,QAAA,OAAO,IAAI,CAAA,CAAoB,iBAAA,EAAA,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA,CAAA,EAEtD,CAAC,IAAI,CAAC;cACF,IAAI,CAAA,CAAA,sBAAA,EAAyB,QAAQ,CAAC,QAAQ,CAAC,CAAU,SAAA;cACzD,EACN,CACoB,kBAAA,EAAA,QAAQ,EAAE,CAE5B,OAAA,EAAA,CAAC,IAAI,CAAC;cACF,IAAI,CAAA,CAAA,sBAAA,EAAyB,QAAQ,CAAC,QAAQ,CAAC,CAAU,SAAA;cACzD,EACN,CAAA,MAAA,CACO;;CAEX;AA7BE,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACX,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAMhB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACX,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAMhB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACb,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AAjBV,SAAS,GAAA,UAAA,CAAA;IAJd,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,kPAAA,CAAoP;AAEnP,CAAA,EAAA,SAAS,CAkCf;AAEA,aAAe,SAAS;;;;"}
|
package/components/link.d.ts
CHANGED
@@ -11,7 +11,9 @@ declare class Link extends SuperAnchor {
|
|
11
11
|
/**
|
12
12
|
* If "push", call `history.pushState`.
|
13
13
|
*
|
14
|
-
* If "replace", call `history.replaceState
|
14
|
+
* If "replace", call `history.replaceState`.
|
15
|
+
*
|
16
|
+
* If "normal", behave like a normal anchor.
|
15
17
|
*/
|
16
18
|
type: "push" | "replace" | "normal";
|
17
19
|
protected _handleClick(e: MouseEvent): void;
|
package/components/link.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../src/components/link.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAKlD;;;;;;;GAOG;AACH,cACM,IAAK,SAAQ,WAAW;IAC5B;;;;;;OAMG;IAEH,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAY;IAE/C,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;CAO5C;AAED,eAAe,IAAI,CAAC"}
|