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/tooltip.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
|
-
import {
|
6
|
+
import { html, css } from 'lit';
|
6
7
|
import { property } from 'lit/decorators.js';
|
7
|
-
import { scopePrefix
|
8
|
+
import { scopePrefix } from '../core/global-style.js';
|
8
9
|
import SuperOpenable from '../core/super-openable.js';
|
9
10
|
|
10
11
|
var Tooltip_1;
|
@@ -15,7 +16,7 @@ const cssScope = scopePrefix(protoName);
|
|
15
16
|
*
|
16
17
|
* If it has the tip property, ignore the slot tip.
|
17
18
|
*
|
18
|
-
* @slot tip - Tip element.
|
19
|
+
* @slot tip - Tip element if no `tip` provided.
|
19
20
|
* @slot - Content.
|
20
21
|
* @category feedback
|
21
22
|
*/
|
@@ -30,10 +31,25 @@ let Tooltip = Tooltip_1 = class Tooltip extends SuperOpenable {
|
|
30
31
|
* Content alignment.
|
31
32
|
*/
|
32
33
|
this.align = "center";
|
34
|
+
/**
|
35
|
+
* If true, allow penetration of the tip.
|
36
|
+
*/
|
37
|
+
this.propagation = false;
|
38
|
+
/**
|
39
|
+
* How can tips be triggered.
|
40
|
+
*
|
41
|
+
* If `focus`, element will be focusable, open tip when focused.
|
42
|
+
*
|
43
|
+
* If `hover`, element will open tip when hovered.
|
44
|
+
*
|
45
|
+
* @default "hover"
|
46
|
+
*/
|
47
|
+
this.type = "hover";
|
33
48
|
}
|
34
49
|
render() {
|
35
50
|
const align = Tooltip_1.aligns[this.align] || "inherit";
|
36
|
-
|
51
|
+
const isFocusable = this.type === "focus";
|
52
|
+
return html `<div part="root" ${attr(this.observedRecord)} tabindex="${isFocusable ? 0 : -1}" @focus="${isFocusable ? () => this.open = true : null}" @blur="${isFocusable ? () => this.open = false : null}" @mouseenter="${isFocusable ? null : () => this.open = true}" @mouseleave="${isFocusable ? null : () => this.open = false}" style="justify-content:${align};align-items:${align}">${htmlSlot()}<div part="tip">${this.tip
|
37
53
|
? html `<span class="passive">${this.tip}</span>`
|
38
54
|
: htmlSlot("tip")}</div></div>`;
|
39
55
|
}
|
@@ -57,9 +73,12 @@ __decorate([
|
|
57
73
|
__decorate([
|
58
74
|
property({ type: Boolean })
|
59
75
|
], Tooltip.prototype, "propagation", void 0);
|
76
|
+
__decorate([
|
77
|
+
property()
|
78
|
+
], Tooltip.prototype, "type", void 0);
|
60
79
|
Tooltip = Tooltip_1 = __decorate([
|
61
80
|
godown(protoName),
|
62
|
-
styles(css `:host{${cssScope}--tip-background:
|
81
|
+
styles(css `:host{${cssScope}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{position:relative;transition:inherit;border-radius:inherit}[part=tip]{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;visibility:hidden;transition:inherit;-webkit-user-select:none;user-select:none}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${cssScope}--tip-background)}[propagation] [part=tip]{pointer-events:none}`, css `[direction^=top] [part=tip]{bottom:100%}[direction^=bottom] [part=tip]{top:100%}[direction$=right] [part=tip]{left:100%}[direction$=left] [part=tip]{right:100%}`)
|
63
82
|
], Tooltip);
|
64
83
|
var Tooltip$1 = Tooltip;
|
65
84
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tooltip.js","sources":["../src/components/tooltip.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"tooltip.js","sources":["../src/components/tooltip.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAUA,MAAM,SAAS,GAAG,SAAS;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC;AAEvC;;;;;;;;AAQE;AAMF,IAAM,OAAO,GAAA,SAAA,GAAb,MAAM,OAAQ,SAAQ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AC1B,IAAA,UAAU,EAAE,UAAU;AACvB,CANY;AAhCb,UAAA,CAAA;AADC,IAAA,QAAQ;AACE,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AAMX,UAAA,CAAA;AADC,IAAA,QAAQ;AACoB,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,WAAA,EAAA,KAAA,CAAA,CAAA;AAM7B,UAAA,CAAA;AADC,IAAA,QAAQ;AAC+D,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAMxE,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACR,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,aAAA,EAAA,KAAA,CAAA,CAAA;AAYnB,UAAA,CAAA;AADC,IAAA,QAAQ;AACwB,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAnC7B,OAAO,GAAA,SAAA,GAAA,UAAA,CAAA;IALZ,MAAM,CAAC,SAAS,CAAA;AAChB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,MAAA,EAAS,QAAQ,CAAA,mbAAA,EAAsb,QAAQ,CAAA,+DAAA,CAAiE,EACnhB,GAAG,CAAA,CAAA,gKAAA,CAAkK;AAEjK,CAAA,EAAA,OAAO,CAmEb;AAEA,gBAAe,OAAO;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type PropertyValueMap } from "lit";
|
1
|
+
import { type PropertyValueMap, TemplateResult } from "lit";
|
2
2
|
import { GlobalStyle } from "../core/global-style.js";
|
3
3
|
/**
|
4
4
|
* {@linkcode Typewriter} renders a typewriter effect to text.
|
@@ -38,13 +38,13 @@ declare class Typewriter extends GlobalStyle {
|
|
38
38
|
* Internal text.
|
39
39
|
*/
|
40
40
|
content: string;
|
41
|
-
timeoutID: number;
|
42
|
-
_i: HTMLElement;
|
41
|
+
protected timeoutID: number;
|
42
|
+
protected _i: HTMLElement;
|
43
43
|
/**
|
44
44
|
* {@linkcode Typewriter.text} length.
|
45
45
|
*/
|
46
46
|
get len(): number;
|
47
|
-
protected render():
|
47
|
+
protected render(): TemplateResult<1>;
|
48
48
|
protected firstUpdated(): void;
|
49
49
|
protected updated(changedProperties: PropertyValueMap<this>): void;
|
50
50
|
write(at?: number): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["../src/components/typewriter.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["../src/components/typewriter.ts"],"names":[],"mappings":"AAMA,OAAO,EAAa,KAAK,gBAAgB,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAGvE,OAAO,EAAE,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAKnE;;;;GAIG;AACH,cAEM,UAAW,SAAQ,WAAW;IAClC;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,GAAG,SAAO;IAEV;;OAEG;IAEH,GAAG,SAAM;IAET;;OAEG;IAEH,KAAK,SAAK;IAEV;;OAEG;IAEH,KAAK,SAAK;IAEV;;OAEG;IAEH,OAAO,SAAM;IAEb,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAG5B,SAAS,CAAC,EAAE,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,IAAI,GAAG,IAAI,MAAM,CAEhB;IAED,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAIrC,SAAS,CAAC,YAAY,IAAI,IAAI;IAS9B,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;IAMlE,KAAK,CAAC,EAAE,GAAE,MAAmB,GAAG,IAAI;IAYpC,IAAI,IAAI,IAAI;IAIZ,GAAG,IAAI,IAAI;CAGZ;AAED,eAAe,UAAU,CAAC"}
|
package/components/typewriter.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 { classList } from '@godown/element/directives/class-list.js';
|
5
6
|
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
6
7
|
import { random } from '@godown/element/tools/lib.js';
|
7
|
-
import {
|
8
|
+
import { html, css } from 'lit';
|
8
9
|
import { property, state, query } from 'lit/decorators.js';
|
9
10
|
import { scopePrefix, GlobalStyle } from '../core/global-style.js';
|
10
11
|
|
@@ -58,9 +59,7 @@ let Typewriter = class Typewriter extends GlobalStyle {
|
|
58
59
|
return this.text.length;
|
59
60
|
}
|
60
61
|
render() {
|
61
|
-
return html
|
62
|
-
hidden: this.ended,
|
63
|
-
})}"></i>`;
|
62
|
+
return html `<div part="root" ${attr(this.observedRecord)}>${htmlSlot()} ${this.content} <i part="cursor" class="${classList({ hidden: this.ended })}"></i></div>`;
|
64
63
|
}
|
65
64
|
firstUpdated() {
|
66
65
|
if (!this.text) {
|
@@ -122,7 +121,7 @@ __decorate([
|
|
122
121
|
], Typewriter.prototype, "_i", void 0);
|
123
122
|
Typewriter = __decorate([
|
124
123
|
godown(protoName),
|
125
|
-
styles(css `:host{${cssScope}--cursor-width:.05em
|
124
|
+
styles(css `:host{${cssScope}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{border-right:var(${cssScope}--cursor-width) solid;margin-left:.02em;animation:s 1.5s steps(1) infinite}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}.hidden{visibility:hidden}`)
|
126
125
|
], Typewriter);
|
127
126
|
var Typewriter$1 = Typewriter;
|
128
127
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"typewriter.js","sources":["../src/components/typewriter.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"typewriter.js","sources":["../src/components/typewriter.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,SAAS,GAAG,YAAY;AAC9B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC;AAEvC;;;;AAIE;AAGF,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,WAAW,CAAA;AAApC,IAAA,WAAA,GAAA;;AACE;;AAEE;QAEF,IAAI,CAAA,IAAA,GAAG,EAAE;AAET;;AAEE;QAEF,IAAO,CAAA,OAAA,GAAG,KAAK;AAEf;;AAEE;QAEF,IAAK,CAAA,KAAA,GAAG,KAAK;AAEb;;AAEE;QAEF,IAAG,CAAA,GAAA,GAAG,GAAG;AAET;;AAEE;QAEF,IAAG,CAAA,GAAA,GAAG,EAAE;AAER;;AAEE;QAEF,IAAK,CAAA,KAAA,GAAG,CAAC;AAET;;AAEE;QAEF,IAAK,CAAA,KAAA,GAAG,CAAC;AAET;;AAEE;QAEF,IAAO,CAAA,OAAA,GAAG,EAAE;;AAOZ;;AAEE;AACF,IAAA,IAAI,GAAG,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM;;IAGf,MAAM,GAAA;AACd,QAAA,OAAO,IAAI,CAAA,CAAoB,iBAAA,EAAA,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA,CAAA,EACpD,QAAQ,EAAE,CACV,CAAA,EAAA,IAAI,CAAC,OAAO,CACY,yBAAA,EAAA,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA,YAAA,CACtD;;IAGC,YAAY,GAAA;AACpB,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;AACd,YAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,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,UAAU,CAuGhB;AAEA,mBAAe,UAAU;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"global-style.d.ts","sourceRoot":"","sources":["../src/core/global-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3E,OAAO,aAAa,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"global-style.d.ts","sourceRoot":"","sources":["../src/core/global-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAO,SAAS,EAAa,MAAM,KAAK,CAAC;AAIhD,qBAAa,WAAY,SAAQ,aAAa;CAC7C;AAID,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAI,GAAG,SAAS,CAE7D;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAE1D;AAED,eAAO,MAAM,aAAa,EAAE;IAC1B,UAAU,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,SAAS,CAAC;IACtB,cAAc,EAAE,SAAS,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,yBAAyB,CAAC;IACnC,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;CAWlB,CAAC;AAEF,KAAK,yBAAyB,GAAG,MAAM,CAAC,MAAM,OAAO,UAAU,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
package/core/global-style.js
CHANGED
@@ -2,6 +2,7 @@ import { presetsRGB } from '@godown/colors/presets-rgb.js';
|
|
2
2
|
import { travel } from '@godown/colors/travel.js';
|
3
3
|
import GodownElement from '@godown/element';
|
4
4
|
import GodownConfig from '@godown/element/config.js';
|
5
|
+
import { joinProperties } from '@godown/element/tools/css.js';
|
5
6
|
import { trim } from '@godown/element/tools/lib.js';
|
6
7
|
import { unsafeCSS, css } from 'lit';
|
7
8
|
|
@@ -37,9 +38,15 @@ GlobalStyle.styles = [
|
|
37
38
|
const colorKey = scopePrefix("color", 2) + endKey;
|
38
39
|
return `${colorKey}:rgb(${rgb});`;
|
39
40
|
}, presetsRGB).join("")
|
41
|
+
+ joinProperties({
|
42
|
+
[cssGlobalVars.background + ""]: `var(${cssGlobalVars._colors.darkgray[9]})`,
|
43
|
+
[cssGlobalVars.foreground + ""]: `var(${cssGlobalVars._colors.lightgray[0]})`,
|
44
|
+
[cssGlobalVars.active + ""]: `var(${cssGlobalVars._colors.blue[6]})`,
|
45
|
+
[cssGlobalVars.passive + ""]: `var(${cssGlobalVars._colors.darkgray[6]})`,
|
46
|
+
[cssGlobalVars.clipBackground + ""]: `linear-gradient(to bottom, var(${cssGlobalVars.foreground}), var(${cssGlobalVars.passive}))`,
|
47
|
+
})
|
40
48
|
+ "}"),
|
41
|
-
css
|
42
|
-
css `*{border:0;outline:0;margin:0;padding:0;font-size:100%;font-style:normal;box-sizing:border-box}:host{box-sizing:border-box}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}`,
|
49
|
+
css `*{border:0;outline:0;margin:0;padding:0;font-size:100%;font-style:normal;box-sizing:border-box}:host{box-sizing:border-box}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,
|
43
50
|
];
|
44
51
|
|
45
52
|
export { GlobalStyle, cssGlobalVars, scopePrefix, variablePrefix };
|
package/core/global-style.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"global-style.js","sources":["../src/core/global-style.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"global-style.js","sources":["../src/core/global-style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CAAA;SAChG;AACC,UAAA,GAAG,CACR;AACD,IAAA,GAAG,CAAA,CAA8T,4TAAA,CAAA;CAClU;;;;"}
|
package/core/super-anchor.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { type TemplateResult } from "lit";
|
1
2
|
import { GlobalStyle } from "./global-style.js";
|
2
3
|
declare class SuperAnchor extends GlobalStyle {
|
3
4
|
/**
|
@@ -8,7 +9,7 @@ declare class SuperAnchor extends GlobalStyle {
|
|
8
9
|
* A element target.
|
9
10
|
*/
|
10
11
|
target: "_blank" | "_self" | "_parent" | "_top";
|
11
|
-
protected render():
|
12
|
+
protected render(): TemplateResult<1>;
|
12
13
|
protected _handleClick(_: MouseEvent): void;
|
13
14
|
}
|
14
15
|
export default SuperAnchor;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"super-anchor.d.ts","sourceRoot":"","sources":["../src/core/super-anchor.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"super-anchor.d.ts","sourceRoot":"","sources":["../src/core/super-anchor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,cACM,WAAY,SAAQ,WAAW;IACnC;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAa;IACzB;;OAEG;IAEH,MAAM,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAW;IAE1D,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAKrC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;CAC5C;AAED,eAAe,WAAW,CAAC"}
|
package/core/super-anchor.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import { __decorate } from 'tslib';
|
2
2
|
import { styles } from '@godown/element/decorators/index.js';
|
3
|
+
import { attr } from '@godown/element/directives/attr.js';
|
3
4
|
import { htmlSlot } from '@godown/element/directives/html-slot.js';
|
4
|
-
import {
|
5
|
+
import { html, css } from 'lit';
|
5
6
|
import { property } from 'lit/decorators.js';
|
6
7
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
7
8
|
import { GlobalStyle } from './global-style.js';
|
@@ -19,7 +20,7 @@ let SuperAnchor = class SuperAnchor extends GlobalStyle {
|
|
19
20
|
this.target = "_self";
|
20
21
|
}
|
21
22
|
render() {
|
22
|
-
return html `<a part="root" href="${ifDefined(this.href)}" target="${this.target}" @click="${this._handleClick}">${htmlSlot()}</a>`;
|
23
|
+
return html `<a part="root" ${attr(this.observedRecord)} href="${ifDefined(this.href)}" target="${this.target}" @click="${this._handleClick}">${htmlSlot()}</a>`;
|
23
24
|
}
|
24
25
|
// eslint-disable-next-line
|
25
26
|
_handleClick(_) { }
|
@@ -31,7 +32,7 @@ __decorate([
|
|
31
32
|
property()
|
32
33
|
], SuperAnchor.prototype, "target", void 0);
|
33
34
|
SuperAnchor = __decorate([
|
34
|
-
styles(css `:host{display:inline-block;color:currentColor;text-decoration:none;cursor:default}:host([href]){cursor:pointer}
|
35
|
+
styles(css `:host{display:inline-block;color:currentColor;text-decoration:none;cursor:default}:host([href]){cursor:pointer}[part=root]{width:100%;color:inherit;display:inline-block;text-decoration:inherit}`)
|
35
36
|
], SuperAnchor);
|
36
37
|
var SuperAnchor$1 = SuperAnchor;
|
37
38
|
|
package/core/super-anchor.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"super-anchor.js","sources":["../src/core/super-anchor.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"super-anchor.js","sources":["../src/core/super-anchor.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAUA,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW,CAAA;AAArC,IAAA,WAAA,GAAA;;AACE;;AAEE;QAEF,IAAI,CAAA,IAAA,GAAW,SAAS;AACxB;;AAEE;QAEF,IAAM,CAAA,MAAA,GAA4C,OAAO;;IAE/C,MAAM,GAAA;AACd,QAAA,OAAO,IAAI,CAAA,CACP,eAAA,EAAA,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA,OAAA,EACnB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAClB,UAAA,EAAA,IAAI,CAAC,MAAM,CACZ,UAAA,EAAA,IAAI,CAAC,YAAY,CACxB,EAAA,EAAA,QAAQ,EAAE,CAAA,IAAA,CACT;;;IAIG,YAAY,CAAC,CAAa,EAAA;CACtC;AAnBE,UAAA,CAAA;AADC,IAAA,QAAQ;AACe,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAKxB,UAAA,CAAA;AADC,IAAA,QAAQ;AACgD,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AAVrD,WAAW,GAAA,UAAA,CAAA;AADhB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,iMAAA,CAAmM;AACxM,CAAA,EAAA,WAAW,CAwBjB;AAEA,oBAAe,WAAW;;;;"}
|
package/core/super-input.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type HandlerEvent } from "@godown/element/element.js";
|
2
|
+
import { type TemplateResult } from "lit";
|
2
3
|
import { GlobalStyle } from "./global-style.js";
|
3
4
|
declare class SuperInput extends GlobalStyle {
|
4
5
|
autofocus: boolean;
|
@@ -6,21 +7,20 @@ declare class SuperInput extends GlobalStyle {
|
|
6
7
|
disabled: boolean;
|
7
8
|
type: InputType;
|
8
9
|
placeholder: string;
|
9
|
-
label: string;
|
10
10
|
name: string;
|
11
11
|
value: any;
|
12
12
|
/**
|
13
13
|
* default property records the default or initial value and is used to reset the input.
|
14
14
|
*/
|
15
15
|
default: any;
|
16
|
-
_input: HTMLInputElement;
|
16
|
+
protected _input: HTMLInputElement;
|
17
17
|
/**
|
18
18
|
* Returns true when the input is compositing.
|
19
19
|
*/
|
20
20
|
compositing: boolean;
|
21
21
|
set defaultValue(value: typeof this.default);
|
22
22
|
get defaultValue(): typeof this.default;
|
23
|
-
makeId: string;
|
23
|
+
protected makeId: string;
|
24
24
|
namevalue(): [string, any];
|
25
25
|
nameValue: () => [string, any];
|
26
26
|
reset(): void;
|
@@ -31,8 +31,8 @@ declare class SuperInput extends GlobalStyle {
|
|
31
31
|
protected _changeInputType(t: typeof this.type): void;
|
32
32
|
focus(options?: FocusOptions): void;
|
33
33
|
protected firstUpdated(): void;
|
34
|
-
protected _renderPrefix():
|
35
|
-
protected _renderSuffix():
|
34
|
+
protected _renderPrefix(): TemplateResult<1>;
|
35
|
+
protected _renderSuffix(): TemplateResult<1>;
|
36
36
|
}
|
37
37
|
export default SuperInput;
|
38
38
|
type InputType = "hidden" | "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "checkbox" | "radio" | "file" | "image";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"super-input.d.ts","sourceRoot":"","sources":["../src/core/super-input.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"super-input.d.ts","sourceRoot":"","sources":["../src/core/super-input.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAiB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAM/D,cACM,UAAW,SAAQ,WAAW;IAClC,SAAS,EAAE,OAAO,CAAC;IAEnB,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAG/B,QAAQ,EAAE,OAAO,CAAC;IAGlB,IAAI,EAAE,SAAS,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,EAAE,M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core/super-input.js
CHANGED
@@ -7,8 +7,8 @@ import { css, html } from 'lit';
|
|
7
7
|
import { property } from 'lit/decorators.js';
|
8
8
|
import { cssGlobalVars, GlobalStyle } from './global-style.js';
|
9
9
|
|
10
|
-
const fieldStyle = css `.input-field{display:flex;position:relative;align-items:center;border-radius:inherit;height:inherit}.input-field input{background:0 0}.input-field.outline,.input-field:focus-within{box-shadow:var(${cssGlobalVars.input}-box-shadow)}.input-field
|
11
|
-
const inputStyle = css `:host{${cssGlobalVars.input}-width:10em;${cssGlobalVars.input}-height:1.6em;${cssGlobalVars.input}-space:.2em;${cssGlobalVars.input}-background:var(${cssGlobalVars.background});${cssGlobalVars.input}-control:var(${cssGlobalVars.foreground});${cssGlobalVars.input}-control-edge:var(${cssGlobalVars.active});${cssGlobalVars.input}-radius:.2em;${cssGlobalVars.input}-box-shadow:0 0 0 .1em var(${cssGlobalVars.active});border-radius:var(${cssGlobalVars.input}-radius)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}`;
|
10
|
+
const fieldStyle = css `.input-field{display:flex;position:relative;align-items:center;border-radius:inherit;height:inherit}.input-field [part=input]{background:0 0;height:100%;width:100%;color:inherit}.input-field.outline,.input-field:focus-within{box-shadow:var(${cssGlobalVars.input}-box-shadow)}.input-field [part=icon]{display:flex;align-items:center;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{height:100%;display:flex}.input-field [part=space]{width:var(${cssGlobalVars.input}-space)}`;
|
11
|
+
const inputStyle = css `:host{${cssGlobalVars.input}-width:10em;${cssGlobalVars.input}-height:1.6em;${cssGlobalVars.input}-space:.2em;${cssGlobalVars.input}-background:var(${cssGlobalVars.background});${cssGlobalVars.input}-control:var(${cssGlobalVars.foreground});${cssGlobalVars.input}-control-edge:var(${cssGlobalVars.active});${cssGlobalVars.input}-radius:.2em;${cssGlobalVars.input}-box-shadow:0 0 0 .1em var(${cssGlobalVars.active});border-radius:var(${cssGlobalVars.input}-radius)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;
|
12
12
|
let SuperInput = class SuperInput extends GlobalStyle {
|
13
13
|
constructor() {
|
14
14
|
super(...arguments);
|
@@ -75,7 +75,7 @@ let SuperInput = class SuperInput extends GlobalStyle {
|
|
75
75
|
_renderSuffix() {
|
76
76
|
const PASSWORD = "password";
|
77
77
|
return html `<label for="${this.makeId}" part="suffix">${this.type === "password"
|
78
|
-
? html `<i part="icon" @mousedown="${() => this._changeInputType("text")}" @mouseup="${() => this._changeInputType(PASSWORD)}" @mouseleave="${() => this._changeInputType(PASSWORD)}"
|
78
|
+
? html `<i part="space"></i> <i part="icon" @mousedown="${() => this._changeInputType("text")}" @mouseup="${() => this._changeInputType(PASSWORD)}" @mouseleave="${() => this._changeInputType(PASSWORD)}">${iconEyeSlashFill()}</i>`
|
79
79
|
: htmlSlot("suffix")} <i part="space"></i></label>`;
|
80
80
|
}
|
81
81
|
};
|
@@ -91,9 +91,6 @@ __decorate([
|
|
91
91
|
__decorate([
|
92
92
|
property({ reflect: true })
|
93
93
|
], SuperInput.prototype, "placeholder", void 0);
|
94
|
-
__decorate([
|
95
|
-
property({ reflect: true })
|
96
|
-
], SuperInput.prototype, "label", void 0);
|
97
94
|
__decorate([
|
98
95
|
property({ reflect: true })
|
99
96
|
], SuperInput.prototype, "name", void 0);
|
package/core/super-input.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"super-input.js","sources":["../src/core/super-input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAUA,MAAM,UAAU,GAAG,GAAG,CAAA,
|
1
|
+
{"version":3,"file":"super-input.js","sources":["../src/core/super-input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAUA,MAAM,UAAU,GAAG,GAAG,CAAA,CAA2P,gPAAA,EAAA,aAAa,CAAC,KAAK,CAAmN,gNAAA,EAAA,aAAa,CAAC,KAAK,UAAU;AAEphB,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AACR,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,aAAA,EAAA,KAAA,CAAA,CAAA;AAGnB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACf,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAGZ,UAAA,CAAA;AADC,IAAA,QAAQ;AACC,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAMV,UAAA,CAAA;AADC,IAAA,QAAQ;AACG,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAGF,UAAA,CAAA;IADT,IAAI,CAAC,OAAO;AACqB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AA3B9B,UAAU,GAAA,UAAA,CAAA;AADf,IAAA,MAAM,CAAC,UAAU,EAAE,UAAU;AACxB,CAAA,EAAA,UAAU,CAgIhB;AAEA,mBAAe,UAAU;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"super-openable.d.ts","sourceRoot":"","sources":["../src/core/super-openable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,cAAM,aAAc,SAAQ,WAAW;IACrC;;OAEG;IAEH,IAAI,UAAS;IAEb,MAAM,CAAC,EAAE,
|
1
|
+
{"version":3,"file":"super-openable.d.ts","sourceRoot":"","sources":["../src/core/super-openable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,cAAM,aAAc,SAAQ,WAAW;IACrC;;OAEG;IAEH,IAAI,UAAS;IAEb,MAAM,CAAC,EAAE,GAAE,OAAwC,GAAG,IAAI;IAI1D,KAAK,IAAI,IAAI;IAIb,IAAI,IAAI,IAAI;IAIZ,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;IAQlE,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;CAG5C;AAED,eAAe,aAAa,CAAC;AAE7B,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC"}
|
package/core/super-openable.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"super-openable.js","sources":["../src/core/super-openable.ts"],"sourcesContent":null,"names":[],"mappings":";;;;AAKA,MAAM,aAAc,SAAQ,WAAW,CAAA;AAAvC,IAAA,WAAA,GAAA;;AACE;;
|
1
|
+
{"version":3,"file":"super-openable.js","sources":["../src/core/super-openable.ts"],"sourcesContent":null,"names":[],"mappings":";;;;AAKA,MAAM,aAAc,SAAQ,WAAW,CAAA;AAAvC,IAAA,WAAA,GAAA;;AACE;;AAEE;QAEF,IAAI,CAAA,IAAA,GAAG,KAAK;;AAEZ,IAAA,MAAM,CAAC,EAAc,IAAC,CAAC,IAAI,CAAC,IAAI,CAAmB,EAAA;AACjD,QAAA,IAAI,CAAC,IAAI,GAAG,EAAE;;IAGhB,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK;;IAGnB,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI;;AAGR,IAAA,OAAO,CAAC,iBAAyC,EAAA;QACzD,MAAM,IAAI,GAAG,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC;AAC1C,QAAA,IAAI,IAAI,KAAK,SAAS,EAAE;AACtB,YAAA,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;;;;AAK9D,IAAA,YAAY,CAAC,CAAa,EAAA;QAClC,IAAI,CAAC,MAAM,EAAE;;AAEjB;AAzBE,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAC9B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;;;;"}
|