godown 3.0.0-canary.2 → 3.0.0-canary.4

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.
Files changed (51) hide show
  1. package/components/alert.d.ts +2 -1
  2. package/components/alert.d.ts.map +1 -1
  3. package/components/alert.js +4 -3
  4. package/components/alert.js.map +1 -1
  5. package/components/dialog.d.ts +3 -4
  6. package/components/dialog.d.ts.map +1 -1
  7. package/components/dialog.js +13 -9
  8. package/components/dialog.js.map +1 -1
  9. package/components/input.js +1 -1
  10. package/components/input.js.map +1 -1
  11. package/components/range.js +4 -4
  12. package/components/range.js.map +1 -1
  13. package/components/select.d.ts +2 -1
  14. package/components/select.d.ts.map +1 -1
  15. package/components/select.js +36 -31
  16. package/components/select.js.map +1 -1
  17. package/components/switch.js +1 -1
  18. package/components/switch.js.map +1 -1
  19. package/core/super-input.js +3 -3
  20. package/core/super-input.js.map +1 -1
  21. package/custom-elements.json +1 -1
  22. package/dev/components/alert.d.ts +2 -1
  23. package/dev/components/alert.d.ts.map +1 -1
  24. package/dev/components/alert.js +4 -2
  25. package/dev/components/alert.js.map +1 -1
  26. package/dev/components/dialog.d.ts +3 -4
  27. package/dev/components/dialog.d.ts.map +1 -1
  28. package/dev/components/dialog.js +13 -9
  29. package/dev/components/dialog.js.map +1 -1
  30. package/dev/components/input.d.ts.map +1 -1
  31. package/dev/components/input.js +0 -16
  32. package/dev/components/input.js.map +1 -1
  33. package/dev/components/range.js +4 -4
  34. package/dev/components/range.js.map +1 -1
  35. package/dev/components/select.d.ts +2 -1
  36. package/dev/components/select.d.ts.map +1 -1
  37. package/dev/components/select.js +37 -31
  38. package/dev/components/select.js.map +1 -1
  39. package/dev/components/switch.d.ts.map +1 -1
  40. package/dev/components/switch.js +1 -2
  41. package/dev/components/switch.js.map +1 -1
  42. package/dev/core/super-input.d.ts.map +1 -1
  43. package/dev/core/super-input.js +20 -16
  44. package/dev/core/super-input.js.map +1 -1
  45. package/dev/range.d.ts +1 -1
  46. package/dev/range.d.ts.map +1 -1
  47. package/package.json +2 -2
  48. package/range.d.ts +1 -1
  49. package/range.d.ts.map +1 -1
  50. package/vscode.html-custom-data.json +1 -1
  51. package/web-types.json +1 -1
@@ -17,6 +17,7 @@ declare class Alert extends GlobalStyle {
17
17
  * Overrides the color of the call.
18
18
  */
19
19
  color: "white" | "black" | "gray" | "green" | "teal" | "blue" | "red" | "purple" | "orange" | "yellow" | "pink";
20
+ defaultColor: string;
20
21
  /**
21
22
  * Close delay, if 0, it will not be closed automatically.
22
23
  */
@@ -32,7 +33,7 @@ declare class Alert extends GlobalStyle {
32
33
  /**
33
34
  * Set true to hide the close button.
34
35
  *
35
- * The behavior may change due to the {@linkcode variant} property
36
+ * The behavior may change due to the {@linkcode variant} property.
36
37
  */
37
38
  hideClose: boolean;
38
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../src/components/alert.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAwFlF;;;;;;;GAOG;AACH,cAMM,KAAM,SAAQ,WAAW;IAC7B;;OAEG;IAEH,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IAE1F;;;OAGG;IAEH,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IAEhH;;OAEG;IAEH,SAAS,SAAK;IAEd;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IAIH,SAAS,UAAS;IAElB;;;;OAIG;IAEH,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,CAAU;IAElD,SAAS,CAAC,MAAM;IAWhB,KAAK;IAKL,SAAS,CAAC,YAAY;IAMtB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;CAM/D;AAED,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../src/components/alert.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAwFlF;;;;;;;GAOG;AACH,cAMM,KAAM,SAAQ,WAAW;IAC7B;;OAEG;IAEH,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IAE1F;;;OAGG;IAEH,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IAEhH,YAAY,SAAU;IACtB;;OAEG;IAEH,SAAS,SAAK;IAEd;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IAIH,SAAS,UAAS;IAElB;;;;OAIG;IAEH,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,CAAU;IAElD,SAAS,CAAC,MAAM;IAWhB,KAAK;IAKL,SAAS,CAAC,YAAY;IAMtB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;CAM/D;AAED,eAAe,KAAK,CAAC"}
@@ -96,6 +96,7 @@ const calls = {
96
96
  let Alert = class Alert extends GlobalStyle {
97
97
  constructor() {
98
98
  super(...arguments);
99
+ this.defaultColor = "blue";
99
100
  /**
100
101
  * Close delay, if 0, it will not be closed automatically.
101
102
  */
@@ -103,7 +104,7 @@ let Alert = class Alert extends GlobalStyle {
103
104
  /**
104
105
  * Set true to hide the close button.
105
106
  *
106
- * The behavior may change due to the {@linkcode variant} property
107
+ * The behavior may change due to the {@linkcode variant} property.
107
108
  */
108
109
  this.hideClose = false;
109
110
  /**
@@ -114,7 +115,7 @@ let Alert = class Alert extends GlobalStyle {
114
115
  this.variant = "dark";
115
116
  }
116
117
  render() {
117
- const color = this.call ? this.color || calls[this.call].color : this.color;
118
+ const color = this.call ? this.color || calls[this.call].color : this.color || this.defaultColor;
118
119
  const icon = this.call ? calls[this.call].icon() : htmlSlot("icon");
119
120
  return html `<div part="root" variant="${this.variant}" color="${color}"><div part="icon">${icon}</div><div part="content"><strong part="title">${this.title || htmlSlot("title")}</strong> ${this.content || htmlSlot()}</div>${conditionIf(!this.hideClose && this.variant !== "blockquote", html `<div part="close" @click="${this.close}">${iconXmark()}</div>`)}</div>`;
120
121
  }
@@ -159,7 +160,7 @@ __decorate([
159
160
  ], Alert.prototype, "variant", void 0);
160
161
  Alert = __decorate([
161
162
  godown(protoName),
162
- styles(unsafeCSS(darkStyles), unsafeCSS(lightStyles), css `:host{border-radius:var(${cssScope}--border-radius);${cssScope}--border-radius:.25em;${cssScope}--border-width:.075em;${cssScope}--blockquote-width:.2em;${cssScope}--padding:.5em;display:block;width:100%}[part=root]{--color:var(${cssScope}--color);color:var(--color);transition:.25s;display:flex;justify-content:space-between;padding:var(${cssScope}--padding);border-radius:inherit;border:var(${cssScope}--border-width) solid var(--color);background:var(${cssScope}--background)}[variant=blockquote]{border-radius:0;border-left:var(${cssScope}--blockquote-width) solid var(--color);border-bottom:none;border-right:none;border-top:none;background:0 0}[part=content]{color:var(--color)}[part=root]{display:grid;align-items:center;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}[part=title]{line-height:2em}[part=icon]{display:inline-grid;align-items:center;height:2em}[part=icon] svg{margin-right:.5em;width:1.25em;height:1.25em}[part=content]{grid-row:span 2/span 2;line-height:1.5em}`)
163
+ styles(unsafeCSS(darkStyles), unsafeCSS(lightStyles), css `:host{border-radius:var(${cssScope}--border-radius);${cssScope}--border-radius:.25em;${cssScope}--border-width:.075em;${cssScope}--blockquote-width:.2em;${cssScope}--padding:.5em;display:block;width:100%}[part=root]{--color:var(${cssScope}--color);color:var(--color);width:100%;transition:.25s;display:flex;justify-content:space-between;padding:var(${cssScope}--padding);border-radius:inherit;border:var(${cssScope}--border-width) solid var(--color);background:var(${cssScope}--background)}[variant=blockquote]{border-radius:0;border-left:var(${cssScope}--blockquote-width) solid var(--color);border-bottom:none;border-right:none;border-top:none;background:0 0}[part=content]{color:var(--color)}[part=root]{display:grid;align-items:center;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}[part=title]{line-height:2em}[part=icon]{display:inline-grid;align-items:center;height:2em}[part=icon] svg{margin-right:.5em;width:1.25em;height:1.25em}[part=content]{grid-row:span 2/span 2;line-height:1.5em}`)
163
164
  ], Alert);
164
165
  var Alert$1 = Alert;
165
166
 
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","sources":["../src/components/alert.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAA,EAAG,QAAQ,CAAK,EAAA,EAAA,CAAC,CAAE,CAAA,CAAC,CAAC;AAErE,MAAM,OAAO,GAAG,CAAC,GAAW,KAAI;IAC9B,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxE,CAAC,CAAC;AAEF,MAAM,UA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;AAjD9C,KAAK,GAAA,UAAA,CAAA;IANV,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CACL,SAAS,CAAC,UAAU,CAAC,EACrB,SAAS,CAAC,WAAW,CAAC,EACtB,GAAG,CAAA,CAAA,wBAAA,EAA2B,QAAQ,CAAoB,iBAAA,EAAA,QAAQ,CAAyB,sBAAA,EAAA,QAAQ,CAAyB,sBAAA,EAAA,QAAQ,CAA2B,wBAAA,EAAA,QAAQ,mEAAqE,QAAQ,CAAA,8GAAA,EAAkH,QAAQ,CAAA,4CAAA,EAA+C,QAAQ,CAAqD,kDAAA,EAAA,QAAQ,CAAwE,mEAAA,EAAA,QAAQ,2cAA+d,CAClhC;AACK,CAAA,EAAA,KAAK,CAsFV,CAAA;AAED,cAAe,KAAK;;;;"}
@@ -1,4 +1,5 @@
1
- import { HandlerEvent } from "@godown/element";
1
+ import { type HandlerEvent } from "@godown/element";
2
+ import { type PropertyValues } from "lit";
2
3
  import SuperOpenable, { type Direction9 } from "../core/super-openable.js";
3
4
  /**
4
5
  * {@linkcode Dialog} similar to <dialog>.
@@ -22,9 +23,7 @@ declare class Dialog extends SuperOpenable {
22
23
  private _modalInvoke;
23
24
  protected render(): import("lit").TemplateResult<1>;
24
25
  showModal(): void;
25
- private _submitEvent;
26
- private _keydownEvent;
27
- protected updated(): void;
26
+ protected updated(changedProperties: PropertyValues): void;
28
27
  protected _handleKeydown(e: KeyboardEvent): void;
29
28
  protected _handelSubmit(e: HandlerEvent<HTMLFormElement>): void;
30
29
  close(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQ/C,OAAO,aAAa,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAK3E;;;;;;;;GAQG;AACH,cAIM,MAAO,SAAQ,aAAa;IAEhC,SAAS,EAAE,UAAU,CAAY;IACjC;;OAEG;IAEH,KAAK,UAAS;IACd;;OAEG;IAEH,GAAG,SAAY;IAEf,OAAO,CAAC,YAAY,CAAU;IAE9B,SAAS,CAAC,MAAM;IAIhB,SAAS;IAQT,OAAO,CAAC,YAAY,CAAiD;IACrE,OAAO,CAAC,aAAa,CAAiD;IAEtE,SAAS,CAAC,OAAO;IAYjB,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa;IAQzC,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC;IAMxD,KAAK;CAON;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIrD,OAAO,aAAa,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAK3E;;;;;;;;GAQG;AACH,cAIM,MAAO,SAAQ,aAAa;IAEhC,SAAS,EAAE,UAAU,CAAY;IACjC;;OAEG;IAEH,KAAK,UAAS;IACd;;OAEG;IAEH,GAAG,SAAY;IAEf,OAAO,CAAC,YAAY,CAAU;IAE9B,SAAS,CAAC,MAAM;IAIhB,SAAS;IAQT,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAgBnD,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa;IAQzC,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC;IAMxD,KAAK;CAON;AAED,eAAe,MAAM,CAAC"}
@@ -41,16 +41,20 @@ let Dialog = class Dialog extends SuperOpenable {
41
41
  }
42
42
  this.show();
43
43
  }
44
- updated() {
45
- if (this.open) {
46
- this._submitEvent = this.events.add(this, "submit", this._handelSubmit);
47
- if (this.key) {
48
- this._keydownEvent = this.events.add(document, "keydown", this._handleKeydown.bind(this));
44
+ updated(changedProperties) {
45
+ if (changedProperties.has("open")) {
46
+ let submitEvent;
47
+ let keydownEvent;
48
+ if (this.open) {
49
+ submitEvent = this.events.add(this, "submit", this._handelSubmit);
50
+ if (this.key) {
51
+ keydownEvent = this.events.add(document, "keydown", this._handleKeydown.bind(this));
52
+ }
53
+ }
54
+ else {
55
+ this.events.remove(this, "submit", submitEvent);
56
+ this.events.remove(document, "keydown", keydownEvent);
49
57
  }
50
- }
51
- else {
52
- this._submitEvent = this.events.remove(this, "submit", this._submitEvent);
53
- this._keydownEvent = this.events.remove(document, "keydown", this._keydownEvent);
54
58
  }
55
59
  }
56
60
  _handleKeydown(e) {
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","sources":["../src/components/dialog.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAUA,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;;AAQG;AAKH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,aAAa,CAAA;AAAlC,IAAA,WAAA,GAAA;;QAEE,IAAS,CAAA,SAAA,GAAe,QAAQ,CAAC;AACjC;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,KAAK,CAAC;AACd;;AAEG;QAEH,IAAG,CAAA,GAAA,GAAG,QAAQ,CAAC;KAuDhB;IAnDW,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAA,0EAAA,EAE0B,IAAI,CAAC,SAAS,CAAK,EAAA,EAAA,QAAQ,EAAE,CAAA,YAAA,CAC3D,CAAC;KACT;IAED,SAAS,GAAA;AACP,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;AACf,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;AAClB,YAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC1B;QACD,IAAI,CAAC,IAAI,EA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Q,sCAAsC,QAAQ,CAAA,0MAAA,EAA+M,QAAQ,CAAuH,kHAAA,EAAA,QAAQ,2RAAuS,CAC5xB;AACK,CAAA,EAAA,MAAM,CAoEX,CAAA;AAED,eAAe,MAAM;;;;"}
@@ -46,7 +46,7 @@ __decorate([
46
46
  ], Input.prototype, "_input", void 0);
47
47
  Input = __decorate([
48
48
  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}[part=root]{width:100%;display:flex;align-items:center;cursor:inherit}input{height:100%;width:100%;margin:0;color:inherit;cursor:inherit;border-radius:inherit}`)
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}`)
50
50
  ], Input);
51
51
  var Input$1 = Input;
52
52
 
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sources":["../src/components/input.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,OAAO,CAAC;AAE1B;;;;AAIG;AAKH,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU,CAAA;AAA9B,IAAA,WAAA,GAAA;;QACE,IAAI,CAAA,IAAA,GAA6D,MAAM,CAAC;AAGxE;;AAEG;QAEH,IAAO,CAAA,OAAA,GAA0B,SAAS,CAAC;KAiC5C;IAzBW,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAA,wBAAA,EAA2B,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAC1E,EAAA,EAAA;YACA,IAAI,CAAC,aAAa,EAAE;AACpB,YAAA,IAAI,CAAA,CAEM,0BAAA,EAAA,IAAI,CAAC,IAAI,CAAA,MAAA,EACX,IAAI,CAAC,MAAM,aAC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A;AADC,IAAA,QAAQ,EAAE;AACI,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGf,UAAA,CAAA;IADC,IAAI,CAAC,OAAO,CAAC;AACW,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAdrB,KAAK,GAAA,UAAA,CAAA;IAJV,MAAM,CAAC,SAAS,CAAC;IACjB,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,CACtP;AACK,CAAA,EAAA,KAAK,CAyCV,CAAA;AAED,cAAe,KAAK;;;;"}
@@ -107,12 +107,12 @@ let Range = class Range extends SuperInput {
107
107
  e.preventDefault();
108
108
  e.stopPropagation();
109
109
  const move = this.createMousemoveListener(mouseMoveCallback);
110
- document.addEventListener("mousemove", move);
110
+ this.events.add(document, "mousemove", move);
111
111
  const stop = () => {
112
- document.removeEventListener("mousemove", move);
113
- document.removeEventListener("mouseup", stop);
112
+ this.events.remove(document, "mousemove", move);
113
+ this.events.remove(document, "mouseup", stop);
114
114
  };
115
- document.addEventListener("mouseup", stop);
115
+ this.events.add(document, "mouseup", stop);
116
116
  };
117
117
  }
118
118
  createMousemoveListener(callback) {
@@ -1 +1 @@
1
- {"version":3,"file":"range.js","sources":["../src/components/range.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;;AAQG;AAOH,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU,CAAA;AAA9B,IA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AAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGnB,UAAA,CAAA;AADC,IAAA,KAAK,EAAE;AACqB,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,WAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAnCzB,KAAK,GAAA,UAAA,CAAA;IANV,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA,CAAS,MAAA,EAAA,QAAQ,CAAsB,mBAAA,EAAA,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA,EAAA,EAAK,QAAQ,CAAA,iCAAA,EAAoC,aAAa,CAAC,KAAK,CAAA,uBAAA,EAA0B,aAAa,CAAC,KAAK,CAAA,yEAAA,EAA6E,aAAa,CAAC,KAAK,CAAA,kFAAA,EAAqF,QAAQ,CAAA,kCAAA,EAAqC,QAAQ,CAAA,wJAAA,EAA6J,QAAQ,CAAA,kNAAA,EAAuN,aAAa,CAAC,MAAM,CAAA,kTAAA,EAAyT,QAAQ,CAAA,sDAAA,EAAyD,aAAa,CAAC,MAAM,CAAA,mBAAA,EAAsB,aAAa,CAAC,KAAK,CAAA,UAAA,CAAY,EACrvC,GAAG,CAAA,CAAA,gCAAA,EAAmC,QAAQ,CAAA,+MAAA,CAAmN,EACjQ,GAAG,CAAA,CAAA,wIAAA,CAA0I,CAC9I;AACK,CAAA,EAAA,KAAK,CA+LV,CAAA;AAED,cAAe,KAAK;;;;"}
@@ -26,9 +26,9 @@ declare class Select extends Input {
26
26
  */
27
27
  text: string;
28
28
  _content: HTMLElement;
29
- visible: boolean;
30
29
  direction: "top" | "bottom" | undefined;
31
30
  multiple: boolean;
31
+ visible: boolean;
32
32
  protected autoDirection: "top" | "bottom";
33
33
  protected lastChecked: HTMLElement;
34
34
  protected defaultText: string;
@@ -36,6 +36,7 @@ declare class Select extends Input {
36
36
  private _store;
37
37
  protected render(): import("lit").TemplateResult<1>;
38
38
  protected _handleFocus(): void;
39
+ protected firstUpdated(): void;
39
40
  protected _connectedInit(): void;
40
41
  reset(): void;
41
42
  select(value: string, text?: string): 0 | 1;
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../src/components/select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAU/C,OAAO,KAAK,MAAM,YAAY,CAAC;AAyB/B;;;;;;;;;;;;;GAaG;AACH,cAIM,MAAO,SAAQ,KAAK;IACxB,MAAM,gCAAuC;IAE7C,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;OAEG;IAEH,IAAI,UAAS;IAEb;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,WAAW,CAAC;IAGtB,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;IAGxC,QAAQ,EAAE,OAAO,CAAC;IAElB,SAAS,CAAC,aAAa,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC1C,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IACnC,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,cAAc,EAAE,WAAW,EAAE,CAAC;IACxC,OAAO,CAAC,MAAM,CAA0C;IAExD,SAAS,CAAC,MAAM;IAWhB,SAAS,CAAC,YAAY;IAmCtB,SAAS,CAAC,cAAc;IAsBxB,KAAK,IAAI,IAAI;IAOb,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IA4BnC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM;IAcrB,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM;IAIlE,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC;IAUxD,KAAK,CAAC,OAAO,CAAC,EAAE,YAA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AK,CAAC,OAAO,CAAC,EAAE,YAAY;IAK5B,IAAI;IAKJ,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM;CAGzC;AAED,eAAe,MAAM,CAAC"}
@@ -2,10 +2,10 @@ 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 { htmlSlot } from '@godown/element/directives/index.js';
5
+ import { htmlSlot } from '@godown/element/directives/html-slot.js';
6
6
  import svgCaretDown from '@godown/f7-icon/icons/chevron-down.js';
7
7
  import { css, html, nothing } from 'lit';
8
- import { property } from 'lit/decorators.js';
8
+ import { property, state } from 'lit/decorators.js';
9
9
  import { ifDefined } from 'lit/directives/if-defined.js';
10
10
  import Input from './input.js';
11
11
 
@@ -51,6 +51,7 @@ let Select = class Select extends Input {
51
51
  * Open content.
52
52
  */
53
53
  this.open = false;
54
+ this.autoDirection = "bottom";
54
55
  this._store = [];
55
56
  }
56
57
  render() {
@@ -58,7 +59,7 @@ let Select = class Select extends Input {
58
59
  this._renderPrefix(),
59
60
  html `<input part="input" dir="${ifDefined(this.dir)}" id="${this.makeId}" .value="${this.text}" type="${this.type}" placeholder="${this.placeholder || nothing}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize || nothing}" autocomplete="${this.autocomplete || nothing}" ?disabled="${this.disabled}" @focus="${this._handleFocus}" @input="${this._handleInput}">`,
60
61
  html `<label for="${this.makeId}" part="suffix"><i part="space"></i><i part="icon">${svgCaretDown()}</i><i part="space"></i></label>`,
61
- html `<div part="content" direction="${this.direction || this.autoDirection}" style="visibility:${this.visible ? "visible" : "hidden"}">${htmlSlot()}</div>`,
62
+ html `<label for="${this.makeId}" part="content" style="visibility:${this.visible ? "visible" : "hidden"}" direction="${this.direction || this.autoDirection}">${htmlSlot()}</label>`,
62
63
  ]}</div>`;
63
64
  }
64
65
  _handleFocus() {
@@ -71,32 +72,33 @@ let Select = class Select extends Input {
71
72
  this.autoDirection = "bottom";
72
73
  }
73
74
  }
74
- if (!this.visible) {
75
- const event = this.events.add(document, "click", (e) => {
76
- const { target } = e;
77
- if (!this.contains(target)) {
78
- this.events.remove(document, "click", event);
79
- this.visible = false;
80
- }
81
- else if (target !== this) {
82
- const value = this.optionValue(target);
83
- if (value) {
84
- const operation = this.select(value, target.textContent);
85
- if (!this.multiple) {
86
- updateChecked(this.lastChecked, 0);
87
- }
88
- updateChecked(target, operation);
89
- this.lastChecked = target;
90
- }
91
- this.visible = this.multiple;
92
- if (!this.visible) {
93
- this.events.remove(document, "click", event);
94
- }
95
- }
96
- });
97
- }
98
75
  this.visible = true;
99
76
  }
77
+ firstUpdated() {
78
+ this.events.add(this._content, "click", (e) => {
79
+ e.preventDefault();
80
+ e.stopPropagation();
81
+ const { target } = e;
82
+ const value = this.optionValue(target);
83
+ if (value) {
84
+ const operation = this.select(value, target.textContent);
85
+ if (!this.multiple) {
86
+ updateChecked(this.lastChecked, 0);
87
+ }
88
+ updateChecked(target, operation);
89
+ this.lastChecked = target;
90
+ }
91
+ this._input.focus();
92
+ });
93
+ this.events.add(document, "click", (e) => {
94
+ // e.preventDefault();
95
+ e.stopPropagation();
96
+ const composed1 = e.composedPath()[0];
97
+ if (composed1 && !this.shadowRoot.contains(composed1)) {
98
+ this.blur();
99
+ }
100
+ });
101
+ }
100
102
  _connectedInit() {
101
103
  if (!this.value) {
102
104
  const checked = [...this.querySelectorAll("[checked]")];
@@ -195,18 +197,21 @@ __decorate([
195
197
  __decorate([
196
198
  part("content")
197
199
  ], Select.prototype, "_content", void 0);
198
- __decorate([
199
- property({ type: Boolean })
200
- ], Select.prototype, "visible", void 0);
201
200
  __decorate([
202
201
  property()
203
202
  ], Select.prototype, "direction", void 0);
204
203
  __decorate([
205
204
  property({ type: Boolean })
206
205
  ], Select.prototype, "multiple", void 0);
206
+ __decorate([
207
+ property({ type: Boolean })
208
+ ], Select.prototype, "visible", void 0);
209
+ __decorate([
210
+ state()
211
+ ], Select.prototype, "autoDirection", void 0);
207
212
  Select = __decorate([
208
213
  godown(protoName),
209
- styles(css `[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;width:100%;visibility:hidden}[direction=bottom]{top:100%}[direction=top]{bottom:100%}`)
214
+ styles(css `[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;width:100%}[direction=bottom]{top:100%}[direction=top]{bottom:100%}`)
210
215
  ], Select);
211
216
  var Select$1 = Select;
212
217
 
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sources":["../src/components/select.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;AAYA,SAAS,OAAO,CAAC,CAAS,EAAE,CAAS,EAAA;AACnC,IAAA,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAC7D,CAAC;AAED,SAAS,SAAS,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAA;AAChD,IAAA,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACpD,IAAA,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;IACxC,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,aAAa,CAAC,OAA2B,EAAE,SAAgB,EAAA;IAClE,IAAI,OAAO,EAAE;QACX,MAAM,IAAI,GAAG,SAAS,CAAC;QACvB,IAAI,SAAS,EAAE;AACb,YAAA,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;SAChC;aAAM;AACL,YAAA,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAC/B;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CAAA;AAGb,UAAA,CAAA;IADC,IAAI,CAAC,SAAS,CAAC;AACM,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGtB,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AAC6B,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,WAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGxC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACV,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGlB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACX,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGP,UAAA,CAAA;AADT,IAAA,KAAK,EAAE;AAC6C,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,eAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AA9BjD,MAAM,GAAA,UAAA,CAAA;IAJX,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,wIAAA,CAAkJ,CACtJ;AACK,CAAA,EAAA,MAAM,CAwMX,CAAA;AAED,eAAe,MAAM;;;;"}
@@ -85,7 +85,7 @@ __decorate([
85
85
  ], Switch.prototype, "_input", void 0);
86
86
  Switch = __decorate([
87
87
  godown(protoName),
88
- styles(css `:host{${cssScope}-width:3em;${cssScope}-height:calc(var(${cssScope}-width)/ 2);${cssScope}-handle-size:1.25em;${cssScope}-transition:.2s ease-in-out;background:var(${cssGlobalVars.input}-background);width:var(${cssScope}-width);height:var(${cssScope}-height);display:inline-block;vertical-align:bottom;border-radius:0}[part=root],span{transition:var(${cssScope}-transition)}[part=root]{border-radius:inherit;position:relative;height:inherit}[part=root],input{width:100%}input{margin:0;height:100%;outline:0;-webkit-appearance:none;appearance:none}span{height:100%;display:inline-flex;align-items:center;justify-content:center;position:absolute;left:0;width:50%;pointer-events:none;border-radius:inherit}:host([round]){border-radius:calc(var(${cssScope}-height)/ 2)}:host([checked]) span{transform:translateX(100%)}.rect .true{background:var(${cssGlobalVars.active})}.rect .false{background:var(${cssGlobalVars.passive})}.round span::after{--size:var(${cssScope}-handle-size);content:"";border-radius:100%;background:var(--godown--input-control);width:var(--size);height:var(--size)}.round{background:var(${cssGlobalVars.passive})}:host([checked]) .round{background:var(${cssGlobalVars.active})}`)
88
+ styles(css `:host{${cssScope}-width:3em;${cssScope}-height:calc(var(${cssScope}-width)/ 2);${cssScope}-handle-size:1.25em;${cssScope}-transition:.2s ease-in-out;background:var(${cssGlobalVars.input}-background);width:var(${cssScope}-width);height:var(${cssScope}-height);display:inline-block;vertical-align:bottom;border-radius:0}[part=root],span{transition:var(${cssScope}-transition)}[part=root]{border-radius:inherit;position:relative;height:inherit}[part=root],input{width:100%}input{opacity:0;height:100%;-webkit-appearance:none;appearance:none}span{height:100%;display:inline-flex;align-items:center;justify-content:center;position:absolute;left:0;width:50%;pointer-events:none;border-radius:inherit}:host([round]){border-radius:calc(var(${cssScope}-height)/ 2)}:host([checked]) span{transform:translateX(100%)}.rect .true{background:var(${cssGlobalVars.active})}.rect .false{background:var(${cssGlobalVars.passive})}.round span::after{--size:var(${cssScope}-handle-size);content:"";border-radius:100%;background:var(--godown--input-control);width:var(--size);height:var(--size)}.round{background:var(${cssGlobalVars.passive})}:host([checked]) .round{background:var(${cssGlobalVars.active})}`)
89
89
  ], Switch);
90
90
  var Switch$1 = Switch;
91
91
 
@@ -1 +1 @@
1
- {"version":3,"file":"switch.js","sources":["../src/components/switch.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;AAQA,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;AAOG;AA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,CAA0X,mXAAA,EAAA,QAAQ,4FAA6F,aAAa,CAAC,MAAM,CAAiC,8BAAA,EAAA,aAAa,CAAC,OAAO,CAAA,gCAAA,EAAmC,QAAQ,CAAkJ,+IAAA,EAAA,aAAa,CAAC,OAAO,CAAA,yCAAA,EAA4C,aAAa,CAAC,MAAM,IAAI,CAC/qC;AACK,CAAA,EAAA,MAAM,CAsEX,CAAA;AAED,eAAe,MAAM;;;;"}
@@ -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 i{display:flex;align-items:center;justify-content:center}.input-field label{height:100%;display:flex}.input-field [part=space]{width:var(${cssGlobalVars.input}-space)}input::-ms-clear,input::-ms-reveal{display:none}`;
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)}"><i part="space"></i> ${iconEyeSlashFill()}</i>`
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
  };
@@ -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,CAA+M,oMAAA,EAAA,aAAa,CAAC,KAAK,CAAwK,mKAAA,EAAA,aAAa,CAAC,KAAK,0DAA0D,CAAC;AAE9e,MAAM,UAAU,GAAG,GAAG,CAAA,CAAA,MAAA,EAAS,aAAa,CAAC,KAAK,CAAA,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