godown 1.1.4 → 1.1.5

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 (135) hide show
  1. package/README.md +35 -35
  2. package/effect/ov-effect.d.ts +3 -3
  3. package/effect/ov-effect.d.ts.map +1 -1
  4. package/effect/ov-effect.js +252 -228
  5. package/effect/ro-effect.d.ts +1 -1
  6. package/effect/ro-effect.d.ts.map +1 -1
  7. package/effect/ro-effect.js +51 -46
  8. package/effect/std.d.ts.map +1 -1
  9. package/effect/tw-effect.d.ts +1 -1
  10. package/effect/tw-effect.d.ts.map +1 -1
  11. package/effect/tw-effect.js +19 -18
  12. package/glob.d.ts.map +1 -1
  13. package/glob.js +18 -17
  14. package/group/avatar-group.d.ts +1 -1
  15. package/group/avatar-group.d.ts.map +1 -1
  16. package/group/avatar-group.js +29 -5
  17. package/group/button-group.d.ts +1 -1
  18. package/group/button-group.d.ts.map +1 -1
  19. package/group/button-group.js +53 -48
  20. package/group/details-group.d.ts +1 -1
  21. package/group/details-group.d.ts.map +1 -1
  22. package/group/details-group.js +5 -3
  23. package/group/std.d.ts.map +1 -1
  24. package/input-form/base-input.d.ts +2 -2
  25. package/input-form/base-input.d.ts.map +1 -1
  26. package/input-form/base-input.js +109 -106
  27. package/input-form/exp-input.d.ts +1 -1
  28. package/input-form/exp-input.d.ts.map +1 -1
  29. package/input-form/exp-input.js +155 -142
  30. package/input-form/label-input.d.ts +1 -1
  31. package/input-form/label-input.d.ts.map +1 -1
  32. package/input-form/label-input.js +88 -75
  33. package/input-form/search-input.d.ts +3 -3
  34. package/input-form/search-input.d.ts.map +1 -1
  35. package/input-form/search-input.js +171 -157
  36. package/input-form/select-input.d.ts +3 -3
  37. package/input-form/select-input.d.ts.map +1 -1
  38. package/input-form/select-input.js +128 -104
  39. package/input-form/sign-form.d.ts +7 -5
  40. package/input-form/sign-form.d.ts.map +1 -1
  41. package/input-form/sign-form.js +49 -44
  42. package/input-form/split-input.d.ts +3 -3
  43. package/input-form/split-input.d.ts.map +1 -1
  44. package/input-form/split-input.js +80 -72
  45. package/input-form/std.d.ts +1 -1
  46. package/input-form/std.d.ts.map +1 -1
  47. package/input-form/std.js +20 -17
  48. package/input-form/switch-input.d.ts +3 -3
  49. package/input-form/switch-input.d.ts.map +1 -1
  50. package/input-form/switch-input.js +118 -112
  51. package/items/alert-item.d.ts +1 -1
  52. package/items/alert-item.d.ts.map +1 -1
  53. package/items/alert-item.js +99 -98
  54. package/items/avatar-anchor.d.ts +2 -2
  55. package/items/avatar-anchor.d.ts.map +1 -1
  56. package/items/avatar-anchor.js +91 -89
  57. package/items/base-button.d.ts +1 -1
  58. package/items/base-button.d.ts.map +1 -1
  59. package/items/base-button.js +129 -126
  60. package/items/dialog-item.d.ts +1 -1
  61. package/items/dialog-item.d.ts.map +1 -1
  62. package/items/dialog-item.js +72 -71
  63. package/items/link-a.d.ts.map +1 -1
  64. package/items/link-a.js +23 -22
  65. package/items/load-track.d.ts +1 -1
  66. package/items/load-track.d.ts.map +1 -1
  67. package/items/load-track.js +45 -39
  68. package/items/std.d.ts.map +1 -1
  69. package/items/super-a.d.ts +2 -2
  70. package/items/super-a.d.ts.map +1 -1
  71. package/items/super-a.js +59 -48
  72. package/layout/div-line.d.ts +1 -1
  73. package/layout/div-line.d.ts.map +1 -1
  74. package/layout/div-line.js +35 -29
  75. package/layout/drag-box.d.ts +1 -1
  76. package/layout/drag-box.d.ts.map +1 -1
  77. package/layout/drag-box.js +10 -9
  78. package/layout/flex-flow.d.ts +2 -2
  79. package/layout/flex-flow.d.ts.map +1 -1
  80. package/layout/flex-flow.js +12 -7
  81. package/layout/nav-aside.d.ts +1 -1
  82. package/layout/nav-aside.d.ts.map +1 -1
  83. package/layout/nav-aside.js +32 -25
  84. package/layout/nav-layout.d.ts +1 -1
  85. package/layout/nav-layout.d.ts.map +1 -1
  86. package/layout/nav-layout.js +125 -104
  87. package/layout/std.d.ts.map +1 -1
  88. package/layout/std.js +6 -4
  89. package/package.json +47 -40
  90. package/react/effect.js +6 -6
  91. package/react/group.js +3 -3
  92. package/react/input-form.js +11 -11
  93. package/react/items.js +7 -7
  94. package/react/layout.js +5 -5
  95. package/react/view.js +5 -5
  96. package/view/details-expand.d.ts +1 -1
  97. package/view/details-expand.d.ts.map +1 -1
  98. package/view/details-expand.js +38 -33
  99. package/view/down-drop.d.ts +1 -1
  100. package/view/down-drop.d.ts.map +1 -1
  101. package/view/down-drop.js +34 -30
  102. package/view/menu-list.d.ts +1 -1
  103. package/view/menu-list.d.ts.map +1 -1
  104. package/view/menu-list.js +35 -30
  105. package/view/route-view.d.ts.map +1 -1
  106. package/view/route-view.js +9 -6
  107. package/view/scroll-x.d.ts +1 -1
  108. package/view/scroll-x.d.ts.map +1 -1
  109. package/view/scroll-x.js +32 -27
  110. package/view/std.d.ts.map +1 -1
  111. package/view/std.js +33 -33
  112. package/with.d.ts +10 -10
  113. package/with.d.ts.map +1 -1
  114. package/with.js +14 -15
  115. package/view/react/effect.d.ts +0 -10
  116. package/view/react/effect.d.ts.map +0 -1
  117. package/view/react/effect.js +0 -32
  118. package/view/react/group.d.ts +0 -5
  119. package/view/react/group.d.ts.map +0 -1
  120. package/view/react/group.js +0 -18
  121. package/view/react/index.d.ts +0 -7
  122. package/view/react/index.d.ts.map +0 -1
  123. package/view/react/index.js +0 -6
  124. package/view/react/input-form.d.ts +0 -33
  125. package/view/react/input-form.d.ts.map +0 -1
  126. package/view/react/input-form.js +0 -64
  127. package/view/react/items.d.ts +0 -9
  128. package/view/react/items.d.ts.map +0 -1
  129. package/view/react/items.js +0 -38
  130. package/view/react/layout.d.ts +0 -7
  131. package/view/react/layout.d.ts.map +0 -1
  132. package/view/react/layout.js +0 -28
  133. package/view/react/view.d.ts +0 -7
  134. package/view/react/view.d.ts.map +0 -1
  135. package/view/react/view.js +0 -28
@@ -21,14 +21,23 @@ let LabelInput = class LabelInput extends STD {
21
21
  var _a;
22
22
  if (!this.name)
23
23
  this.name = ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || this.type;
24
- return html `<label for=${this.name}><span>${this.label}<slot></slot></span>
25
- <fieldset>
26
- <i><slot name="pre"></slot></i>
27
- <input @input=${this._handleInput} @change=${this._handleChange} id=${this.name} type=${this.type} placeholder=${this.pla} class=${this.type} />
28
- <i><slot name="suf"></slot></i>
29
- ${this.type === "password" && !this.querySelector(`[slot="suf"]`) ? html `<i @mousedown=${this._passwordSwitcher} @mouseup=${() => this._input.type = "password"} @mouseleave=${() => this._input.type = "password"} ><svg viewBox="0 0 48 48" fill="none"><path d="M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M42 42L6 6" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg></i>` : undefined}
30
- </fieldset>
31
- </label>`;
24
+ return html `<label for=${this.name}>
25
+ <span>${this.label}<slot></slot></span>
26
+ <fieldset>
27
+ <i><slot name="pre"></slot></i>
28
+ <input @input=${this._handleInput} @change=${this._handleChange} id=${this.name} type=${this.type} placeholder=${this.pla} class=${this.type} />
29
+ <i><slot name="suf"></slot></i>
30
+ ${this.type === "password" && !this.querySelector(`[slot="suf"]`)
31
+ ? html `<i @mousedown=${this._passwordSwitcher} @mouseup=${() => (this._input.type = "password")} @mouseleave=${() => (this._input.type = "password")}>
32
+ <svg viewBox="0 0 48 48" fill="none">
33
+ <path d="M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
34
+ <path d="M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
35
+ <path d="M42 42L6 6" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
36
+ </svg>
37
+ </i>`
38
+ : undefined}
39
+ </fieldset>
40
+ </label>`;
32
41
  }
33
42
  _passwordSwitcher() {
34
43
  if (this._input.type === "password") {
@@ -39,73 +48,77 @@ let LabelInput = class LabelInput extends STD {
39
48
  }
40
49
  }
41
50
  };
42
- LabelInput.styles = [STD.styles, css `
43
- :host{
44
- background-color: inherit;
45
- display:block;
46
- border-radius: 4px;
47
- }
48
- label {
49
- margin: auto;
50
- width: 100%;
51
- box-sizing: border-box;
52
- height: fit-content;
53
- display: flex;
54
- justify-content: space-between;
55
- align-items: center;
56
- border-radius:inherit;
57
- }
58
- span {
59
- flex: 1;
60
- }
61
- input {
62
- background-color: transparent;
63
- font-size: 102.5%;
64
- line-height: 1.2em;
65
- border: 0;
66
- border-radius:inherit;
67
- outline: 0;
68
- box-sizing: border-box;
69
- flex:1;
70
- width:100%;
71
- padding:4.8px;
72
- }
73
- fieldset:focus-within {
74
- outline: .18em solid var(${cssvar}--input-outline-focus);
75
- }
76
- @media screen and (max-width:540px) {
77
- label {
78
- justify-content: flex-start;
79
- flex-direction: column;
80
- align-items: flex-start;
81
- width: fit-content;
82
- }
83
- }
84
- i {
85
- display: inline-flex;
86
- justify-content: center;
87
- align-items: center;
88
- font-style: normal;
89
- }
90
- i>svg{
91
- height:1em;
92
- width:1.5em;
93
- }
94
- fieldset {
95
- color:var(${cssvar}--text);
96
- position: relative;
97
- background-color: var(${cssvar}--input-background);
98
- display: flex;
99
- padding: 0;
100
- border-radius:inherit;
101
- outline: none;
102
- border: 0;
103
- margin: 0;
104
- width:var(${cssvar}--input-width);
105
- }
106
- ::-ms-reveal {
107
- display: none;
108
- }`];
51
+ LabelInput.styles = [
52
+ STD.styles,
53
+ css `
54
+ :host {
55
+ background-color: inherit;
56
+ display: block;
57
+ border-radius: 4px;
58
+ }
59
+ label {
60
+ margin: auto;
61
+ width: 100%;
62
+ box-sizing: border-box;
63
+ height: fit-content;
64
+ display: flex;
65
+ justify-content: space-between;
66
+ align-items: center;
67
+ border-radius: inherit;
68
+ }
69
+ span {
70
+ flex: 1;
71
+ }
72
+ input {
73
+ background-color: transparent;
74
+ font-size: 102.5%;
75
+ line-height: 1.2em;
76
+ border: 0;
77
+ border-radius: inherit;
78
+ outline: 0;
79
+ box-sizing: border-box;
80
+ flex: 1;
81
+ width: 100%;
82
+ padding: 4.8px;
83
+ }
84
+ fieldset:focus-within {
85
+ outline: 0.18em solid var(${cssvar}--input-outline-focus);
86
+ }
87
+ @media screen and (max-width: 540px) {
88
+ label {
89
+ justify-content: flex-start;
90
+ flex-direction: column;
91
+ align-items: flex-start;
92
+ width: fit-content;
93
+ }
94
+ }
95
+ i {
96
+ display: inline-flex;
97
+ justify-content: center;
98
+ align-items: center;
99
+ font-style: normal;
100
+ }
101
+ i > svg {
102
+ height: 1em;
103
+ width: 1.5em;
104
+ }
105
+ fieldset {
106
+ color: var(${cssvar}--text);
107
+ position: relative;
108
+ background-color: var(${cssvar}--input-background);
109
+ display: flex;
110
+ padding: 0;
111
+ border-radius: inherit;
112
+ outline: none;
113
+ border: 0;
114
+ margin: 0;
115
+ width: var(${cssvar}--input-width);
116
+ }
117
+ ::-ms-reveal {
118
+ display: none;
119
+ }
120
+ `,
121
+ ];
109
122
  __decorate([
110
123
  property()
111
124
  ], LabelInput.prototype, "type", void 0);
@@ -1,4 +1,4 @@
1
- import STD from './std.js';
1
+ import STD from "./std.js";
2
2
  export declare class SearchInput extends STD {
3
3
  _input: HTMLInputElement;
4
4
  query: string;
@@ -14,7 +14,7 @@ export declare class SearchInput extends STD {
14
14
  autofocus: boolean;
15
15
  useinfer: (x: string) => Promise<string[]>;
16
16
  static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
17
- render(): import("lit").TemplateResult<1>;
17
+ render(): import("lit-html").TemplateResult<1>;
18
18
  _handleSubmit(e: any): void;
19
19
  _handleInput(e: any): Promise<void>;
20
20
  }
@@ -25,7 +25,7 @@ export declare class SearchW extends STD {
25
25
  pla: string;
26
26
  origin: string;
27
27
  constructor();
28
- render(): import("lit").TemplateResult<1>;
28
+ render(): import("lit-html").TemplateResult<1>;
29
29
  }
30
30
  export default SearchInput;
31
31
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/input-form/search-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IAClB,MAAM,EAAG,gBAAgB,CAAC;IAC9B,KAAK,SAAM;IACX,MAAM,SAAM;IACK,KAAK,UAAS;IACd,MAAM,UAAS;IAChC,MAAM,SAAQ;IACd,MAAM,EAAE,KAAK,GAAG,MAAM,CAAS;IAC/B,IAAI,SAAO;IACX,KAAK,SAAM;IACX,GAAG,MAAa;IACD,IAAI,EAAE,GAAG,EAAE,CAAM;IACf,SAAS,UAAS;IACf,QAAQ,MAAa,MAAM,uBAKzD;IACF,MAAM,CAAC,MAAM,4FAqDX;IACF,MAAM;IAcN,aAAa,CAAC,CAAC,KAAA;IAIT,YAAY,CAAC,CAAC,KAAA;CA8BrB;AASD,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,4FA2EV;IACS,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;;IAK3B,MAAM;CAYP;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;QAC5B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
1
+ {"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/input-form/search-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IAClB,MAAM,EAAG,gBAAgB,CAAC;IAC9B,KAAK,SAAM;IACX,MAAM,SAAM;IACK,KAAK,UAAS;IACd,MAAM,UAAS;IAChC,MAAM,SAAQ;IACd,MAAM,EAAE,KAAK,GAAG,MAAM,CAAS;IAC/B,IAAI,SAAO;IACX,KAAK,SAAM;IACX,GAAG,MAAa;IACD,IAAI,EAAE,GAAG,EAAE,CAAM;IACf,SAAS,UAAS;IACf,QAAQ,MAAa,MAAM,uBAOzD;IACF,MAAM,CAAC,MAAM,4FA2DX;IACF,MAAM;IAkBN,aAAa,CAAC,CAAC,KAAA;IAIT,YAAY,CAAC,CAAC,KAAA;CA6BrB;AASD,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,4FA8EX;IACU,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;;IAK3B,MAAM;CAcP;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;QAC5B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
@@ -4,8 +4,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, css, property, define, query, cssvar } from '../deps.js';
8
- import STD from './std.js';
7
+ import { html, css, property, define, query, cssvar } from "../deps.js";
8
+ import STD from "./std.js";
9
9
  let SearchInput = class SearchInput extends STD {
10
10
  constructor() {
11
11
  super(...arguments);
@@ -22,30 +22,36 @@ let SearchInput = class SearchInput extends STD {
22
22
  this.autofocus = false;
23
23
  this.useinfer = async (x) => {
24
24
  await new Promise((resolve) => {
25
- setTimeout(() => { resolve(); }, 400);
25
+ setTimeout(() => {
26
+ resolve();
27
+ }, 400);
26
28
  });
27
29
  return ["Undefine: useinfer", `Use: useinfer(${x} :string)`, "Return Array<string>"];
28
30
  };
29
31
  }
30
32
  render() {
31
33
  var _a;
32
- return html `<form action=${this.action} method=${this.method}>
33
- <div>
34
- <input name=${this.name} @input=${this._handleInput} @change=${this._handleChange} value=${this.value} title="" placeholder=${this.pla} >
35
- <button @click=${this._handleSubmit}>
36
- <svg viewBox="0 0 1024 1024" width="95%" height="100%">
37
- <path fill="currentColor" d="M745.429333 655.658667c1.173333 0.746667 2.325333 1.578667 3.413334 2.496l114.410666 96a32 32 0 0 1-41.152 49.024l-114.389333-96a32 32 0 0 1-6.208-6.976A297.429333 297.429333 0 0 1 512 768c-164.949333 0-298.666667-133.717333-298.666667-298.666667S347.050667 170.666667 512 170.666667s298.666667 133.717333 298.666667 298.666666a297.386667 297.386667 0 0 1-65.237334 186.325334zM512 704c129.6 0 234.666667-105.066667 234.666667-234.666667s-105.066667-234.666667-234.666667-234.666666-234.666667 105.066667-234.666667 234.666666 105.066667 234.666667 234.666667 234.666667z" p-id="9859"></path>
38
- </svg>
39
- </button>
40
- </div>
41
- <slot></slot>
42
- ${((_a = this.list) === null || _a === void 0 ? void 0 : _a.length) ? html `<ul>${this.list.map((v, i) => html `<li key=${i}>${v}</li>`)}</ul>` : undefined}
43
- </form>`;
34
+ return html `<form action=${this.action} method=${this.method}>
35
+ <div>
36
+ <input name=${this.name} @input=${this._handleInput} @change=${this._handleChange} value=${this.value} title="" placeholder=${this.pla} />
37
+ <button @click=${this._handleSubmit}>
38
+ <svg viewBox="0 0 1024 1024" width="95%" height="100%">
39
+ <path fill="currentColor" d="M745.429333 655.658667c1.173333 0.746667 2.325333 1.578667 3.413334 2.496l114.410666 96a32 32 0 0 1-41.152 49.024l-114.389333-96a32 32 0 0 1-6.208-6.976A297.429333 297.429333 0 0 1 512 768c-164.949333 0-298.666667-133.717333-298.666667-298.666667S347.050667 170.666667 512 170.666667s298.666667 133.717333 298.666667 298.666666a297.386667 297.386667 0 0 1-65.237334 186.325334zM512 704c129.6 0 234.666667-105.066667 234.666667-234.666667s-105.066667-234.666667-234.666667-234.666666-234.666667 105.066667-234.666667 234.666666 105.066667 234.666667 234.666667 234.666667z" p-id="9859"></path>
40
+ </svg>
41
+ </button>
42
+ </div>
43
+ <slot></slot>
44
+ ${((_a = this.list) === null || _a === void 0 ? void 0 : _a.length)
45
+ ? html `<ul>
46
+ ${this.list.map((v, i) => html `<li key=${i}>${v}</li>`)}
47
+ </ul>`
48
+ : undefined}
49
+ </form>`;
44
50
  }
45
51
  _handleSubmit(e) {
46
52
  if (!this.remote)
47
53
  e.preventDefault();
48
- this.dispatchEvent(new CustomEvent('submit', { detail: this.value }));
54
+ this.dispatchEvent(new CustomEvent("submit", { detail: this.value }));
49
55
  }
50
56
  async _handleInput(e) {
51
57
  const value = e.target.value.trim();
@@ -69,7 +75,7 @@ let SearchInput = class SearchInput extends STD {
69
75
  document.querySelector(this.target).replaceChildren();
70
76
  return;
71
77
  }
72
- for (let e of queryElementCollection) {
78
+ for (const e of queryElementCollection) {
73
79
  if (e.textContent.includes(value)) {
74
80
  targetElement.appendChild(e.cloneNode(true));
75
81
  }
@@ -79,62 +85,68 @@ let SearchInput = class SearchInput extends STD {
79
85
  this.dispatchEvent(new CustomEvent("change", { detail: value }));
80
86
  }
81
87
  };
82
- SearchInput.styles = [STD.styles, css `
83
- :host{
84
- color:var(${cssvar}--text);
85
- display: inline-block;
86
- min-height: 1.5rem;
87
- width:var(${cssvar}--input-width);
88
- border-radius:.75em;
89
- background:var(${cssvar}--input-background);
90
- }
91
- :host(:focus) form{
92
- outline-color: var(${cssvar}--input-outline);
93
- }
94
- div{
95
- flex: 1;
96
- display: flex;
97
- }
98
- form{
99
- min-height: 100%;
100
- outline: .145em solid transparent;
101
- display: flex;
102
- flex-direction: column;
103
- background:inherit;
104
- border-radius:inherit;
105
- padding:0;
106
- width:100%;
107
- margin:0;
108
- overflow:hidden;
109
- }
110
- ul{
111
- list-style:none;
112
- }
113
- li{
114
- padding: 0.1em 0.5em;
115
- font-size: .95rem;
116
- }
117
- li:hover{
118
- background:var(${cssvar}--input-background-hover);
119
- }
120
- button,input{
121
- border:0;background:none;outline:none;
122
- }
123
- button{
124
- width: 1.8rem;
125
- height: 1.5rem;
126
- }
127
- input{
128
- flex:1;
129
- min-width: 0;
130
- box-sizing: border-box;
131
- padding-left:.75em;
132
- padding-right: 0;
133
- font-size: 1rem;
134
- }`
88
+ SearchInput.styles = [
89
+ STD.styles,
90
+ css `
91
+ :host {
92
+ color: var(${cssvar}--text);
93
+ display: inline-block;
94
+ min-height: 1.5rem;
95
+ width: var(${cssvar}--input-width);
96
+ border-radius: 0.75em;
97
+ background: var(${cssvar}--input-background);
98
+ }
99
+ :host(:focus) form {
100
+ outline-color: var(${cssvar}--input-outline);
101
+ }
102
+ div {
103
+ flex: 1;
104
+ display: flex;
105
+ }
106
+ form {
107
+ min-height: 100%;
108
+ outline: 0.145em solid transparent;
109
+ display: flex;
110
+ flex-direction: column;
111
+ background: inherit;
112
+ border-radius: inherit;
113
+ padding: 0;
114
+ width: 100%;
115
+ margin: 0;
116
+ overflow: hidden;
117
+ }
118
+ ul {
119
+ list-style: none;
120
+ }
121
+ li {
122
+ padding: 0.1em 0.5em;
123
+ font-size: 0.95rem;
124
+ }
125
+ li:hover {
126
+ background: var(${cssvar}--input-background-hover);
127
+ }
128
+ button,
129
+ input {
130
+ border: 0;
131
+ background: none;
132
+ outline: none;
133
+ }
134
+ button {
135
+ width: 1.8rem;
136
+ height: 1.5rem;
137
+ }
138
+ input {
139
+ flex: 1;
140
+ min-width: 0;
141
+ box-sizing: border-box;
142
+ padding-left: 0.75em;
143
+ padding-right: 0;
144
+ font-size: 1rem;
145
+ }
146
+ `,
135
147
  ];
136
148
  __decorate([
137
- query('input')
149
+ query("input")
138
150
  ], SearchInput.prototype, "_input", void 0);
139
151
  __decorate([
140
152
  property()
@@ -173,7 +185,7 @@ __decorate([
173
185
  property({ attribute: false })
174
186
  ], SearchInput.prototype, "useinfer", void 0);
175
187
  SearchInput = __decorate([
176
- define('search-input')
188
+ define("search-input")
177
189
  ], SearchInput);
178
190
  export { SearchInput };
179
191
  const e = [
@@ -182,7 +194,7 @@ const e = [
182
194
  { action: "https://www.bing.com/search", name: "q", pla: "Bing" },
183
195
  { action: "https://www.sogou.com/web", name: "query", pla: "搜狗" },
184
196
  { action: "https://yandex.com/search/", name: "text", pla: "Yandex" },
185
- { action: "https://www.qwant.com/", name: "q", pla: "Qwant", },
197
+ { action: "https://www.qwant.com/", name: "q", pla: "Qwant" },
186
198
  ];
187
199
  let SearchW = class SearchW extends STD {
188
200
  constructor() {
@@ -191,93 +203,95 @@ let SearchW = class SearchW extends STD {
191
203
  }
192
204
  render() {
193
205
  if (this.origin) {
194
- Object.assign(this, e.find(v => v.pla === this.origin));
206
+ Object.assign(this, e.find((v) => v.pla === this.origin));
195
207
  }
196
- return html `<form action=${this.action} method="get" target="_blank">
197
- <input name=${this.name} placeholder=${this.pla} />
198
- <button type="submit" aria-label="Search">
199
- <svg viewBox="0 0 18 18"><path d="M7.25 0C3.254 0 0 3.254 0 7.25s3.254 7.25 7.25 7.25c1.727 0 3.316-.61 4.563-1.625l4.906 4.906a.757.757 0 0 0 .73.207.766.766 0 0 0 .54-.539.757.757 0 0 0-.208-.73l-4.906-4.907A7.202 7.202 0 0 0 14.5 7.25C14.5 3.254 11.246 0 7.25 0Zm0 1.5A5.74 5.74 0 0 1 13 7.25c0 1.55-.613 2.953-1.605 3.984a1.035 1.035 0 0 0-.16.16A5.726 5.726 0 0 1 7.25 13 5.74 5.74 0 0 1 1.5 7.25 5.74 5.74 0 0 1 7.25 1.5Z" fill="currentColor" fill-rule="nonzero"></path>
200
- </svg>
201
- </button>
202
- </form>`;
208
+ return html `<form action=${this.action} method="get" target="_blank">
209
+ <input name=${this.name} placeholder=${this.pla} />
210
+ <button type="submit" aria-label="Search">
211
+ <svg viewBox="0 0 18 18"><path d="M7.25 0C3.254 0 0 3.254 0 7.25s3.254 7.25 7.25 7.25c1.727 0 3.316-.61 4.563-1.625l4.906 4.906a.757.757 0 0 0 .73.207.766.766 0 0 0 .54-.539.757.757 0 0 0-.208-.73l-4.906-4.907A7.202 7.202 0 0 0 14.5 7.25C14.5 3.254 11.246 0 7.25 0Zm0 1.5A5.74 5.74 0 0 1 13 7.25c0 1.55-.613 2.953-1.605 3.984a1.035 1.035 0 0 0-.16.16A5.726 5.726 0 0 1 7.25 13 5.74 5.74 0 0 1 1.5 7.25 5.74 5.74 0 0 1 7.25 1.5Z" fill="currentColor" fill-rule="nonzero"></path></svg>
212
+ </button>
213
+ </form>`;
203
214
  }
204
215
  };
205
- SearchW.styles = [STD.styles, css `
206
- :host{
207
- width:10em;
208
- height:1.5em;
209
- display: inline-block;
210
- border-radius:.75em;
211
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2);
212
- --search: aliceblue;
213
- --ground: currentColor;
214
- --search-hover: rgb(20 69 155);
215
- }
216
- form {
217
- color: currentColor;
218
- display: inline-flex;
219
- height: 100%;
220
- box-sizing: border-box;
221
- position: relative;
222
- border-radius:inherit;
223
- margin: 0;
224
- }
225
- input {
226
- border-top-left-radius: inherit;
227
- border-bottom-left-radius: inherit;
228
- border-right: 0 !important;
229
- box-sizing: border-box;
230
- height: 100%;
231
- width: 100%;
232
- margin-top: 0px;
233
- margin-bottom: 0px;
234
- margin-left: 0px;
235
- outline: none;
236
- flex: 1 1 0%;
237
- padding-left: 1em;
238
- padding-right: 3.05em;
239
- border-width: 0.08em;
240
- border-style: solid;
241
- border-image: initial;
242
- border-color: var(--ground);
243
- background-color: transparent;
244
- color: var(--ground);
245
- transition: all .2s;
246
- }
247
- button:hover {
248
- background-color: var(--search-hover);
249
- }
250
- button {
251
- background: currentColor;
252
- border-top-right-radius: inherit;
253
- border-bottom-right-radius: inherit;
254
- margin: 0;
255
- background: none transparent;
256
- border-spacing: 0;
257
- text-align: left;
258
- align-items: center;
259
- justify-content: center;
260
- outline: none;
261
- border: none;
262
- display: inline-flex;
263
- transition: all .2s;
264
- padding: 0;
265
- font-size: 1em;
266
- height: 100%;
267
- width: 2.5em;
268
- background-color: var(--ground);
269
- }
270
- svg {
271
- text-indent: 0;
272
- font-size: 1em;
273
- color: var(--search);
274
- width: .8em;
275
- height: .8em;
276
- }
277
- path{
278
- mix-blend-mode: exclusion;
279
- }
280
- `];
216
+ SearchW.styles = [
217
+ STD.styles,
218
+ css `
219
+ :host {
220
+ width: 10em;
221
+ height: 1.5em;
222
+ display: inline-block;
223
+ border-radius: 0.75em;
224
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
225
+ --search: aliceblue;
226
+ --ground: currentColor;
227
+ --search-hover: rgb(20 69 155);
228
+ }
229
+ form {
230
+ color: currentColor;
231
+ display: inline-flex;
232
+ height: 100%;
233
+ box-sizing: border-box;
234
+ position: relative;
235
+ border-radius: inherit;
236
+ margin: 0;
237
+ }
238
+ input {
239
+ border-top-left-radius: inherit;
240
+ border-bottom-left-radius: inherit;
241
+ border-right: 0 !important;
242
+ box-sizing: border-box;
243
+ height: 100%;
244
+ width: 100%;
245
+ margin-top: 0px;
246
+ margin-bottom: 0px;
247
+ margin-left: 0px;
248
+ outline: none;
249
+ flex: 1 1 0%;
250
+ padding-left: 1em;
251
+ padding-right: 3.05em;
252
+ border-width: 0.08em;
253
+ border-style: solid;
254
+ border-image: initial;
255
+ border-color: var(--ground);
256
+ background-color: transparent;
257
+ color: var(--ground);
258
+ transition: all 0.2s;
259
+ }
260
+ button:hover {
261
+ background-color: var(--search-hover);
262
+ }
263
+ button {
264
+ background: currentColor;
265
+ border-top-right-radius: inherit;
266
+ border-bottom-right-radius: inherit;
267
+ margin: 0;
268
+ background: none transparent;
269
+ border-spacing: 0;
270
+ text-align: left;
271
+ align-items: center;
272
+ justify-content: center;
273
+ outline: none;
274
+ border: none;
275
+ display: inline-flex;
276
+ transition: all 0.2s;
277
+ padding: 0;
278
+ font-size: 1em;
279
+ height: 100%;
280
+ width: 2.5em;
281
+ background-color: var(--ground);
282
+ }
283
+ svg {
284
+ text-indent: 0;
285
+ font-size: 1em;
286
+ color: var(--search);
287
+ width: 0.8em;
288
+ height: 0.8em;
289
+ }
290
+ path {
291
+ mix-blend-mode: exclusion;
292
+ }
293
+ `,
294
+ ];
281
295
  __decorate([
282
296
  property()
283
297
  ], SearchW.prototype, "action", void 0);
@@ -1,4 +1,4 @@
1
- import STD from './std.js';
1
+ import STD from "./std.js";
2
2
  export declare class SelectInput extends STD {
3
3
  static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
4
4
  open: boolean;
@@ -13,14 +13,14 @@ export declare class SelectInput extends STD {
13
13
  get assigned(): any;
14
14
  _input: HTMLInputElement;
15
15
  _aside: HTMLInputElement;
16
- render(): import("lit").TemplateResult<1>;
16
+ render(): import("lit-html").TemplateResult<1>;
17
17
  lists(): any[];
18
18
  _focusCheck(): void;
19
19
  focus(options?: FocusOptions): void;
20
20
  firstUpdated(): void;
21
21
  select(value: string, text?: string): void;
22
22
  _handleInput(): void;
23
- namevalue(): any[];
23
+ namevalue(): [string, any[]] | [string, any];
24
24
  reset(): void;
25
25
  }
26
26
  export default SelectInput;
@@ -1 +1 @@
1
- {"version":3,"file":"select-input.d.ts","sourceRoot":"","sources":["../../src/input-form/select-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IAClC,MAAM,CAAC,MAAM,4FA2EV;IACyC,IAAI,UAAS;IAC7C,MAAM,SAA0C;IAChD,GAAG,MAAa;IACC,IAAI,UAAS;IAC9B,GAAG,SAAM;IACM,KAAK,QAAM;IAC1B,IAAI,SAAY;IACnB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IACL,SAAS,UAAS;IAC/C,IAAI,QAAQ,IAAI,GAAG,CAElB;IACe,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzC,MAAM;IAON,KAAK;IAUL,WAAW;IAMX,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAInC,YAAY;IAyBZ,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IA0DnC,YAAY;IAyCZ,SAAS;IAMT,KAAK;CA2BN;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
1
+ {"version":3,"file":"select-input.d.ts","sourceRoot":"","sources":["../../src/input-form/select-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IAClC,MAAM,CAAC,MAAM,4FA8EX;IAC0C,IAAI,UAAS;IAC7C,MAAM,SAA0C;IAChD,GAAG,MAAa;IACC,IAAI,UAAS;IAC9B,GAAG,SAAM;IACM,KAAK,QAAM;IAC1B,IAAI,SAAY;IACnB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IACL,SAAS,UAAS;IAC/C,IAAI,QAAQ,IAAI,GAAG,CAElB;IACe,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzC,MAAM;IAiBN,KAAK;IAuBL,WAAW;IAMX,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAInC,YAAY;IAwBZ,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IAsDnC,YAAY;IAwCZ,SAAS,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAM5C,KAAK;CAuBN;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}