godown 3.11.2 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/godown+lit.iife.js +12 -13
- package/build/godown+lit.iife.js.map +1 -1
- package/build/godown+lit.js +11 -12
- package/build/godown+lit.js.map +1 -1
- package/build/godown+lit.umd.js +12 -13
- package/build/godown+lit.umd.js.map +1 -1
- package/build/godown.iife.js +9 -8
- package/build/godown.iife.js.map +1 -0
- package/build/godown.js +7 -7
- package/build/godown.js.map +1 -1
- package/build/godown.umd.js +8 -8
- package/build/godown.umd.js.map +1 -1
- package/custom-elements.json +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/internal/global-style.d.ts.map +1 -1
- package/internal/global-style.js +1 -1
- package/internal/global-style.js.map +1 -1
- package/internal/popover.d.ts +3 -0
- package/internal/popover.d.ts.map +1 -0
- package/internal/popover.js +2 -0
- package/internal/popover.js.map +1 -0
- package/internal/reset-style.d.ts +3 -0
- package/internal/reset-style.d.ts.map +1 -0
- package/internal/reset-style.js +2 -0
- package/internal/reset-style.js.map +1 -0
- package/internal/ring.d.ts +1 -0
- package/internal/ring.d.ts.map +1 -1
- package/internal/ring.js +1 -1
- package/internal/ring.js.map +1 -1
- package/internal/super-input.d.ts +1 -4
- package/internal/super-input.d.ts.map +1 -1
- package/internal/super-input.js +1 -1
- package/internal/super-input.js.map +1 -1
- package/internal/utils.d.ts +2 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +2 -0
- package/internal/utils.js.map +1 -0
- package/package.json +3 -4
- package/popover.d.ts +2 -0
- package/popover.d.ts.map +1 -0
- package/popover.js +2 -0
- package/popover.js.map +1 -0
- package/src/index.ts +1 -0
- package/src/internal/global-style.ts +6 -34
- package/src/internal/popover.ts +64 -0
- package/src/internal/reset-style.ts +63 -0
- package/src/internal/ring.ts +3 -2
- package/src/internal/super-input.ts +2 -33
- package/src/internal/utils.ts +10 -0
- package/src/popover.ts +1 -0
- package/src/web-components/alert/component.ts +5 -4
- package/src/web-components/avatar/component.ts +1 -0
- package/src/web-components/button/component.ts +22 -18
- package/src/web-components/card/component.ts +3 -2
- package/src/web-components/chip/component.ts +1 -3
- package/src/web-components/details/component.ts +28 -17
- package/src/web-components/dialog/component.ts +51 -67
- package/src/web-components/heading/component.ts +0 -1
- package/src/web-components/input/component.ts +38 -30
- package/src/web-components/layout/component.ts +1 -0
- package/src/web-components/link/component.ts +0 -2
- package/src/web-components/popover/component.ts +172 -0
- package/src/web-components/popover/definition.ts +11 -0
- package/src/web-components/range/component.ts +2 -1
- package/src/web-components/rotate/component.ts +0 -1
- package/src/web-components/select/component.ts +109 -173
- package/src/web-components/split/component.ts +2 -2
- package/src/web-components/switch/component.ts +2 -1
- package/src/web-components/tabs/component.ts +99 -100
- package/src/web-components/text/component.ts +47 -52
- package/src/web-components/time/component.ts +5 -15
- package/src/web-components/tooltip/component.ts +44 -111
- package/vscode.css-custom-data.json +1 -1
- package/vscode.html-custom-data.json +1 -1
- package/web-components/alert/component.d.ts.map +1 -1
- package/web-components/alert/component.js +1 -1
- package/web-components/alert/component.js.map +1 -1
- package/web-components/avatar/component.d.ts.map +1 -1
- package/web-components/avatar/component.js +1 -1
- package/web-components/avatar/component.js.map +1 -1
- package/web-components/button/component.d.ts.map +1 -1
- package/web-components/button/component.js +1 -1
- package/web-components/button/component.js.map +1 -1
- package/web-components/card/component.d.ts.map +1 -1
- package/web-components/card/component.js +1 -1
- package/web-components/card/component.js.map +1 -1
- package/web-components/chip/component.d.ts +1 -3
- package/web-components/chip/component.d.ts.map +1 -1
- package/web-components/chip/component.js.map +1 -1
- package/web-components/details/component.d.ts +9 -13
- package/web-components/details/component.d.ts.map +1 -1
- package/web-components/details/component.js +1 -1
- package/web-components/details/component.js.map +1 -1
- package/web-components/dialog/component.d.ts +12 -14
- package/web-components/dialog/component.d.ts.map +1 -1
- package/web-components/dialog/component.js +1 -1
- package/web-components/dialog/component.js.map +1 -1
- package/web-components/heading/component.d.ts.map +1 -1
- package/web-components/heading/component.js +1 -1
- package/web-components/heading/component.js.map +1 -1
- package/web-components/input/component.d.ts +3 -1
- package/web-components/input/component.d.ts.map +1 -1
- package/web-components/input/component.js +1 -1
- package/web-components/input/component.js.map +1 -1
- package/web-components/layout/component.d.ts.map +1 -1
- package/web-components/layout/component.js +1 -1
- package/web-components/layout/component.js.map +1 -1
- package/web-components/link/component.d.ts.map +1 -1
- package/web-components/link/component.js +1 -1
- package/web-components/link/component.js.map +1 -1
- package/web-components/popover/component.d.ts +35 -0
- package/web-components/popover/component.d.ts.map +1 -0
- package/web-components/popover/component.js +2 -0
- package/web-components/popover/component.js.map +1 -0
- package/web-components/popover/definition.d.ts +8 -0
- package/web-components/popover/definition.d.ts.map +1 -0
- package/web-components/popover/definition.js +2 -0
- package/web-components/popover/definition.js.map +1 -0
- package/web-components/range/component.d.ts.map +1 -1
- package/web-components/range/component.js +1 -1
- package/web-components/range/component.js.map +1 -1
- package/web-components/rotate/component.d.ts.map +1 -1
- package/web-components/rotate/component.js.map +1 -1
- package/web-components/select/component.d.ts +11 -27
- package/web-components/select/component.d.ts.map +1 -1
- package/web-components/select/component.js +1 -1
- package/web-components/select/component.js.map +1 -1
- package/web-components/split/component.js +1 -1
- package/web-components/split/component.js.map +1 -1
- package/web-components/switch/component.d.ts.map +1 -1
- package/web-components/switch/component.js +1 -1
- package/web-components/switch/component.js.map +1 -1
- package/web-components/tabs/component.d.ts +18 -25
- package/web-components/tabs/component.d.ts.map +1 -1
- package/web-components/tabs/component.js +1 -1
- package/web-components/tabs/component.js.map +1 -1
- package/web-components/text/component.d.ts +4 -7
- package/web-components/text/component.d.ts.map +1 -1
- package/web-components/text/component.js +1 -1
- package/web-components/text/component.js.map +1 -1
- package/web-components/time/component.d.ts +2 -2
- package/web-components/time/component.d.ts.map +1 -1
- package/web-components/time/component.js +1 -1
- package/web-components/time/component.js.map +1 -1
- package/web-components/tooltip/component.d.ts +15 -39
- package/web-components/tooltip/component.d.ts.map +1 -1
- package/web-components/tooltip/component.js +1 -1
- package/web-components/tooltip/component.js.map +1 -1
- package/web-types.json +1 -1
- package/internal/direction.d.ts +0 -27
- package/internal/direction.d.ts.map +0 -1
- package/internal/direction.js +0 -2
- package/internal/direction.js.map +0 -1
- package/internal/super-openable.d.ts +0 -15
- package/internal/super-openable.d.ts.map +0 -1
- package/internal/super-openable.js +0 -2
- package/internal/super-openable.js.map +0 -1
- package/src/internal/direction.ts +0 -65
- package/src/internal/super-openable.ts +0 -34
package/internal/direction.d.ts
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
import { type CSSResult } from "lit";
|
2
|
-
/**
|
3
|
-
* Controls the inset alignment of the element relative to the direction.
|
4
|
-
*
|
5
|
-
* ```html
|
6
|
-
* <div direction="${direction}">
|
7
|
-
* <div direction-inset-align></div>
|
8
|
-
* </div>
|
9
|
-
* ```
|
10
|
-
*/
|
11
|
-
export declare const directionInsetAlign: CSSResult;
|
12
|
-
/**
|
13
|
-
* Controls the outset placement of the element relative to the direction.
|
14
|
-
*
|
15
|
-
* ```html
|
16
|
-
* <div direction="${direction}">
|
17
|
-
* <div direction-outset-place></div>
|
18
|
-
* </div>
|
19
|
-
* ```
|
20
|
-
*/
|
21
|
-
export declare const directionOutsetPlace: CSSResult;
|
22
|
-
export type DirectionCardinalX = "left" | "right";
|
23
|
-
export type DirectionCardinalY = "top" | "bottom";
|
24
|
-
export type DirectionCardinal = DirectionCardinalX | DirectionCardinalY;
|
25
|
-
export type DirectionCorner = "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
26
|
-
export type DirectionCenter = "center";
|
27
|
-
//# sourceMappingURL=direction.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"direction.d.ts","sourceRoot":"__source__/","sources":["internal/direction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAIrD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAgBjC,CAAC;AAIF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAgBlC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,CAAC;AAClD,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAClD,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AACxF,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC"}
|
package/internal/direction.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{unsafeCSS as t,css as i}from"lit";const o=t("[direction-inset-align]"),e=i`[direction^=top] ${o}{top:0}[direction^=bottom] ${o}{bottom:0}[direction$=right] ${o}{right:0}[direction$=left] ${o}{left:0}`,r=t("[direction-outset-place]"),n=i`[direction^=top] ${r}{bottom:100%}[direction^=bottom] ${r}{top:100%}[direction$=right] ${r}{left:100%}[direction$=left] ${r}{right:100%}`;export{e as directionInsetAlign,n as directionOutsetPlace};
|
2
|
-
//# sourceMappingURL=direction.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"direction.js","sources":["../src/internal/direction.ts"],"sourcesContent":null,"names":["insetAlignSelector","unsafeCSS","directionInsetAlign","css"],"mappings":"yCAEA,MAAMA,EAAqBC,EAAU,2BAWxBC,EAAiCC,CAAG,oBAAAH,+BAAAA,iCAAAA,+BAAAA,cACRC,EAAA"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import type { PropertyValueMap } from "lit";
|
2
|
-
import { GlobalStyle } from "./global-style.js";
|
3
|
-
declare class SuperOpenable extends GlobalStyle {
|
4
|
-
/**
|
5
|
-
* Open the content.
|
6
|
-
*/
|
7
|
-
open: boolean;
|
8
|
-
toggle(to?: boolean): void;
|
9
|
-
close(): void;
|
10
|
-
show(): void;
|
11
|
-
protected updated(changedProperties: PropertyValueMap<this>): void;
|
12
|
-
}
|
13
|
-
export default SuperOpenable;
|
14
|
-
export { SuperOpenable };
|
15
|
-
//# sourceMappingURL=super-openable.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"super-openable.d.ts","sourceRoot":"__source__/","sources":["internal/super-openable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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,OAAsC,GAAG,IAAI;IAIxD,KAAK,IAAI,IAAI;IAIb,IAAI,IAAI,IAAI;IAIZ,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;CAMnE;AAED,eAAe,aAAa,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__decorate as e}from"tslib";import{property as o}from"lit/decorators.js";import{GlobalStyle as t}from"./global-style.js";class SuperOpenable extends t{constructor(){super(...arguments),this.open=!1}toggle(e=!this.open){this.open=e}close(){this.open=!1}show(){this.open=!0}updated(e){void 0!==e.get("open")&&this.dispatchCustomEvent("change",this.open)}}e([o({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);export{SuperOpenable,SuperOpenable as default};
|
2
|
-
//# sourceMappingURL=super-openable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"super-openable.js","sources":["../src/internal/super-openable.ts"],"sourcesContent":null,"names":["SuperOpenable","GlobalStyle","constructor","this","open","toggle","to","close","show","updated","changedProperties","undefined","get","dispatchCustomEvent","__decorate","property","type","Boolean","reflect","prototype"],"mappings":"gIAKA,MAAMA,sBAAsBC,EAA5B,WAAAC,uBAKEC,KAAIC,MAAG,EAEP,MAAAC,CAAOC,GAAeH,KAAKC,MACzBD,KAAKC,KAAOE,EAGd,KAAAC,GACEJ,KAAKC,MAAO,EAGd,IAAAI,GACEL,KAAKC,MAAO,EAGJ,OAAAK,CAAQC,QAEHC,IADAD,EAAkBE,IAAI,SAEjCT,KAAKU,oBAAoB,SAAUV,KAAKC,OAjB5CU,EAAA,CADCC,EAAS,CAAEC,KAAMC,QAASC,SAAS,KACvBlB,cAAAmB,UAAA,YAAA"}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import { css, unsafeCSS, type CSSResult } from "lit";
|
2
|
-
|
3
|
-
const insetAlignSelector = unsafeCSS(`[direction-inset-align]`);
|
4
|
-
|
5
|
-
/**
|
6
|
-
* Controls the inset alignment of the element relative to the direction.
|
7
|
-
*
|
8
|
-
* ```html
|
9
|
-
* <div direction="${direction}">
|
10
|
-
* <div direction-inset-align></div>
|
11
|
-
* </div>
|
12
|
-
* ```
|
13
|
-
*/
|
14
|
-
export const directionInsetAlign: CSSResult = css`
|
15
|
-
[direction^="top"] ${insetAlignSelector} {
|
16
|
-
top: 0;
|
17
|
-
}
|
18
|
-
|
19
|
-
[direction^="bottom"] ${insetAlignSelector} {
|
20
|
-
bottom: 0;
|
21
|
-
}
|
22
|
-
|
23
|
-
[direction$="right"] ${insetAlignSelector} {
|
24
|
-
right: 0;
|
25
|
-
}
|
26
|
-
|
27
|
-
[direction$="left"] ${insetAlignSelector} {
|
28
|
-
left: 0;
|
29
|
-
}
|
30
|
-
`;
|
31
|
-
|
32
|
-
const outsetPlaceSelector = unsafeCSS(`[direction-outset-place]`);
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Controls the outset placement of the element relative to the direction.
|
36
|
-
*
|
37
|
-
* ```html
|
38
|
-
* <div direction="${direction}">
|
39
|
-
* <div direction-outset-place></div>
|
40
|
-
* </div>
|
41
|
-
* ```
|
42
|
-
*/
|
43
|
-
export const directionOutsetPlace: CSSResult = css`
|
44
|
-
[direction^="top"] ${outsetPlaceSelector} {
|
45
|
-
bottom: 100%;
|
46
|
-
}
|
47
|
-
|
48
|
-
[direction^="bottom"] ${outsetPlaceSelector} {
|
49
|
-
top: 100%;
|
50
|
-
}
|
51
|
-
|
52
|
-
[direction$="right"] ${outsetPlaceSelector} {
|
53
|
-
left: 100%;
|
54
|
-
}
|
55
|
-
|
56
|
-
[direction$="left"] ${outsetPlaceSelector} {
|
57
|
-
right: 100%;
|
58
|
-
}
|
59
|
-
`;
|
60
|
-
|
61
|
-
export type DirectionCardinalX = "left" | "right";
|
62
|
-
export type DirectionCardinalY = "top" | "bottom";
|
63
|
-
export type DirectionCardinal = DirectionCardinalX | DirectionCardinalY;
|
64
|
-
export type DirectionCorner = "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
65
|
-
export type DirectionCenter = "center";
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import type { PropertyValueMap } from "lit";
|
2
|
-
import { property } from "lit/decorators.js";
|
3
|
-
|
4
|
-
import { GlobalStyle } from "./global-style.js";
|
5
|
-
|
6
|
-
class SuperOpenable extends GlobalStyle {
|
7
|
-
/**
|
8
|
-
* Open the content.
|
9
|
-
*/
|
10
|
-
@property({ type: Boolean, reflect: true })
|
11
|
-
open = false;
|
12
|
-
|
13
|
-
toggle(to: boolean = !this.open satisfies boolean): void {
|
14
|
-
this.open = to;
|
15
|
-
}
|
16
|
-
|
17
|
-
close(): void {
|
18
|
-
this.open = false;
|
19
|
-
}
|
20
|
-
|
21
|
-
show(): void {
|
22
|
-
this.open = true;
|
23
|
-
}
|
24
|
-
|
25
|
-
protected updated(changedProperties: PropertyValueMap<this>): void {
|
26
|
-
const open = changedProperties.get("open");
|
27
|
-
if (open !== undefined) {
|
28
|
-
this.dispatchCustomEvent("change", this.open);
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
export default SuperOpenable;
|
34
|
-
export { SuperOpenable };
|