godown 1.1.5 → 1.1.6

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 (118) hide show
  1. package/conf.d.ts +18 -18
  2. package/conf.js +22 -22
  3. package/deps.d.ts +7 -7
  4. package/deps.js +7 -7
  5. package/effect/index.d.ts +3 -3
  6. package/effect/index.js +3 -3
  7. package/effect/ov-effect.d.ts +23 -23
  8. package/effect/ov-effect.js +63 -63
  9. package/effect/ro-effect.d.ts +19 -19
  10. package/effect/ro-effect.js +76 -76
  11. package/effect/std.d.ts +3 -3
  12. package/effect/std.js +3 -3
  13. package/effect/tw-effect.d.ts +21 -21
  14. package/effect/tw-effect.js +90 -90
  15. package/glob.d.ts +8 -8
  16. package/glob.js +9 -9
  17. package/group/avatar-group.d.ts +20 -20
  18. package/group/avatar-group.js +88 -88
  19. package/group/button-group.d.ts +12 -12
  20. package/group/button-group.js +26 -26
  21. package/group/details-group.d.ts +16 -16
  22. package/group/details-group.js +51 -51
  23. package/group/index.d.ts +3 -3
  24. package/group/index.js +3 -3
  25. package/group/std.d.ts +3 -3
  26. package/group/std.js +3 -3
  27. package/index.d.ts +7 -7
  28. package/index.js +7 -7
  29. package/input-form/base-input.d.ts +32 -32
  30. package/input-form/base-input.js +129 -129
  31. package/input-form/exp-input.d.ts +22 -22
  32. package/input-form/exp-input.js +67 -67
  33. package/input-form/index.d.ts +8 -8
  34. package/input-form/index.js +8 -8
  35. package/input-form/label-input.d.ts +21 -21
  36. package/input-form/label-input.js +69 -69
  37. package/input-form/search-input.d.ts +36 -36
  38. package/input-form/search-input.js +162 -162
  39. package/input-form/select-input.d.ts +31 -31
  40. package/input-form/select-input.js +256 -256
  41. package/input-form/sign-form.d.ts +25 -25
  42. package/input-form/sign-form.js +147 -147
  43. package/input-form/split-input.d.ts +26 -26
  44. package/input-form/split-input.js +127 -127
  45. package/input-form/std.d.ts +19 -19
  46. package/input-form/std.js +56 -55
  47. package/input-form/switch-input.d.ts +22 -22
  48. package/input-form/switch-input.js +73 -73
  49. package/items/alert-item.d.ts +16 -16
  50. package/items/alert-item.js +46 -46
  51. package/items/avatar-anchor.d.ts +19 -19
  52. package/items/avatar-anchor.js +62 -62
  53. package/items/base-button.d.ts +16 -16
  54. package/items/base-button.js +44 -44
  55. package/items/dialog-item.d.ts +24 -24
  56. package/items/dialog-item.js +92 -92
  57. package/items/index.d.ts +7 -7
  58. package/items/index.js +7 -7
  59. package/items/link-a.d.ts +19 -19
  60. package/items/link-a.js +76 -76
  61. package/items/load-track.d.ts +20 -20
  62. package/items/load-track.js +76 -76
  63. package/items/std.d.ts +3 -3
  64. package/items/std.js +3 -3
  65. package/items/super-a.d.ts +15 -15
  66. package/items/super-a.js +46 -46
  67. package/layout/div-line.d.ts +15 -15
  68. package/layout/div-line.js +39 -39
  69. package/layout/drag-box.d.ts +25 -25
  70. package/layout/drag-box.js +88 -88
  71. package/layout/flex-flow.d.ts +13 -13
  72. package/layout/flex-flow.js +32 -32
  73. package/layout/index.d.ts +5 -5
  74. package/layout/index.js +5 -5
  75. package/layout/nav-aside.d.ts +13 -13
  76. package/layout/nav-aside.js +38 -38
  77. package/layout/nav-layout.d.ts +16 -16
  78. package/layout/nav-layout.js +51 -51
  79. package/layout/std.d.ts +4 -4
  80. package/layout/std.js +4 -4
  81. package/package.json +6 -5
  82. package/react/effect.d.ts +9 -9
  83. package/react/effect.d.ts.map +1 -1
  84. package/react/effect.js +33 -33
  85. package/react/group.d.ts +4 -4
  86. package/react/group.d.ts.map +1 -1
  87. package/react/group.js +19 -19
  88. package/react/index.d.ts +7 -7
  89. package/react/index.d.ts.map +1 -1
  90. package/react/index.js +7 -7
  91. package/react/input-form.d.ts +32 -32
  92. package/react/input-form.d.ts.map +1 -1
  93. package/react/input-form.js +65 -65
  94. package/react/items.d.ts +8 -8
  95. package/react/items.d.ts.map +1 -1
  96. package/react/items.js +39 -39
  97. package/react/layout.d.ts +6 -6
  98. package/react/layout.d.ts.map +1 -1
  99. package/react/layout.js +29 -29
  100. package/react/view.d.ts +6 -6
  101. package/react/view.d.ts.map +1 -1
  102. package/react/view.js +29 -29
  103. package/view/details-expand.d.ts +18 -18
  104. package/view/details-expand.js +53 -53
  105. package/view/down-drop.d.ts +18 -18
  106. package/view/down-drop.js +71 -71
  107. package/view/index.d.ts +5 -5
  108. package/view/index.js +5 -5
  109. package/view/menu-list.d.ts +16 -16
  110. package/view/menu-list.js +48 -48
  111. package/view/route-view.d.ts +57 -57
  112. package/view/route-view.js +257 -257
  113. package/view/scroll-x.d.ts +14 -14
  114. package/view/scroll-x.js +47 -47
  115. package/view/std.d.ts +4 -4
  116. package/view/std.js +4 -4
  117. package/with.d.ts +27 -27
  118. package/with.js +77 -77
@@ -1,36 +1,36 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { html, css, property, define, query, cssvar } from "../deps.js";
8
- import STD from "./std.js";
9
- let SearchInput = class SearchInput extends STD {
10
- constructor() {
11
- super(...arguments);
12
- this.query = "";
13
- this.target = "";
14
- this.infer = false;
15
- this.remote = false;
16
- this.action = "./";
17
- this.method = "get";
18
- this.name = "q";
19
- this.value = "";
20
- this.pla = undefined;
21
- this.list = [];
22
- this.autofocus = false;
23
- this.useinfer = async (x) => {
24
- await new Promise((resolve) => {
25
- setTimeout(() => {
26
- resolve();
27
- }, 400);
28
- });
29
- return ["Undefine: useinfer", `Use: useinfer(${x} :string)`, "Return Array<string>"];
30
- };
31
- }
32
- render() {
33
- var _a;
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { html, css, property, define, query, cssvar } from "../deps.js";
8
+ import STD from "./std.js";
9
+ let SearchInput = class SearchInput extends STD {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.query = "";
13
+ this.target = "";
14
+ this.infer = false;
15
+ this.remote = false;
16
+ this.action = "./";
17
+ this.method = "get";
18
+ this.name = "q";
19
+ this.value = "";
20
+ this.pla = undefined;
21
+ this.list = [];
22
+ this.autofocus = false;
23
+ this.useinfer = async (x) => {
24
+ await new Promise((resolve) => {
25
+ setTimeout(() => {
26
+ resolve();
27
+ }, 400);
28
+ });
29
+ return ["Undefine: useinfer", `Use: useinfer(${x} :string)`, "Return Array<string>"];
30
+ };
31
+ }
32
+ render() {
33
+ var _a;
34
34
  return html `<form action=${this.action} method=${this.method}>
35
35
  <div>
36
36
  <input name=${this.name} @input=${this._handleInput} @change=${this._handleChange} value=${this.value} title="" placeholder=${this.pla} />
@@ -41,52 +41,52 @@ let SearchInput = class SearchInput extends STD {
41
41
  </button>
42
42
  </div>
43
43
  <slot></slot>
44
- ${((_a = this.list) === null || _a === void 0 ? void 0 : _a.length)
44
+ ${((_a = this.list) === null || _a === void 0 ? void 0 : _a.length)
45
45
  ? html `<ul>
46
46
  ${this.list.map((v, i) => html `<li key=${i}>${v}</li>`)}
47
- </ul>`
47
+ </ul>`
48
48
  : undefined}
49
- </form>`;
50
- }
51
- _handleSubmit(e) {
52
- if (!this.remote)
53
- e.preventDefault();
54
- this.dispatchEvent(new CustomEvent("submit", { detail: this.value }));
55
- }
56
- async _handleInput(e) {
57
- const value = e.target.value.trim();
58
- this.value = value;
59
- if (this.compositing)
60
- return;
61
- if (value && this.infer) {
62
- this.list = await this.useinfer(value);
63
- if (!this.value) {
64
- this.list = [];
65
- }
66
- }
67
- else {
68
- this.list = [];
69
- }
70
- if (this.target && this.query) {
71
- const targetElement = document.querySelector(this.target);
72
- const queryElementCollection = document.querySelectorAll(this.query);
73
- console.log();
74
- if (!value || !targetElement || !queryElementCollection.length) {
75
- document.querySelector(this.target).replaceChildren();
76
- return;
77
- }
78
- for (const e of queryElementCollection) {
79
- if (e.textContent.includes(value)) {
80
- targetElement.appendChild(e.cloneNode(true));
81
- }
82
- }
83
- }
84
- this.dispatchEvent(new CustomEvent("input", { detail: value }));
85
- this.dispatchEvent(new CustomEvent("change", { detail: value }));
86
- }
87
- };
88
- SearchInput.styles = [
89
- STD.styles,
49
+ </form>`;
50
+ }
51
+ _handleSubmit(e) {
52
+ if (!this.remote)
53
+ e.preventDefault();
54
+ this.dispatchEvent(new CustomEvent("submit", { detail: this.value }));
55
+ }
56
+ async _handleInput(e) {
57
+ const value = e.target.value.trim();
58
+ this.value = value;
59
+ if (this.compositing)
60
+ return;
61
+ if (value && this.infer) {
62
+ this.list = await this.useinfer(value);
63
+ if (!this.value) {
64
+ this.list = [];
65
+ }
66
+ }
67
+ else {
68
+ this.list = [];
69
+ }
70
+ if (this.target && this.query) {
71
+ const targetElement = document.querySelector(this.target);
72
+ const queryElementCollection = document.querySelectorAll(this.query);
73
+ console.log();
74
+ if (!value || !targetElement || !queryElementCollection.length) {
75
+ document.querySelector(this.target).replaceChildren();
76
+ return;
77
+ }
78
+ for (const e of queryElementCollection) {
79
+ if (e.textContent.includes(value)) {
80
+ targetElement.appendChild(e.cloneNode(true));
81
+ }
82
+ }
83
+ }
84
+ this.dispatchEvent(new CustomEvent("input", { detail: value }));
85
+ this.dispatchEvent(new CustomEvent("change", { detail: value }));
86
+ }
87
+ };
88
+ SearchInput.styles = [
89
+ STD.styles,
90
90
  css `
91
91
  :host {
92
92
  color: var(${cssvar}--text);
@@ -143,78 +143,78 @@ SearchInput.styles = [
143
143
  padding-right: 0;
144
144
  font-size: 1rem;
145
145
  }
146
- `,
147
- ];
148
- __decorate([
149
- query("input")
150
- ], SearchInput.prototype, "_input", void 0);
151
- __decorate([
152
- property()
153
- ], SearchInput.prototype, "query", void 0);
154
- __decorate([
155
- property()
156
- ], SearchInput.prototype, "target", void 0);
157
- __decorate([
158
- property({ type: Boolean })
159
- ], SearchInput.prototype, "infer", void 0);
160
- __decorate([
161
- property({ type: Boolean })
162
- ], SearchInput.prototype, "remote", void 0);
163
- __decorate([
164
- property()
165
- ], SearchInput.prototype, "action", void 0);
166
- __decorate([
167
- property()
168
- ], SearchInput.prototype, "method", void 0);
169
- __decorate([
170
- property()
171
- ], SearchInput.prototype, "name", void 0);
172
- __decorate([
173
- property()
174
- ], SearchInput.prototype, "value", void 0);
175
- __decorate([
176
- property()
177
- ], SearchInput.prototype, "pla", void 0);
178
- __decorate([
179
- property({ type: Array })
180
- ], SearchInput.prototype, "list", void 0);
181
- __decorate([
182
- property({ type: Boolean })
183
- ], SearchInput.prototype, "autofocus", void 0);
184
- __decorate([
185
- property({ attribute: false })
186
- ], SearchInput.prototype, "useinfer", void 0);
187
- SearchInput = __decorate([
188
- define("search-input")
189
- ], SearchInput);
190
- export { SearchInput };
191
- const e = [
192
- { action: "https://www.google.com/search", name: "q", pla: "Google" },
193
- { action: "https://quark.sm.cn/s", name: "q", pla: "Quark" },
194
- { action: "https://www.bing.com/search", name: "q", pla: "Bing" },
195
- { action: "https://www.sogou.com/web", name: "query", pla: "搜狗" },
196
- { action: "https://yandex.com/search/", name: "text", pla: "Yandex" },
197
- { action: "https://www.qwant.com/", name: "q", pla: "Qwant" },
198
- ];
199
- let SearchW = class SearchW extends STD {
200
- constructor() {
201
- super();
202
- Object.assign(this, e[Math.floor(Math.random() * e.length)]);
203
- }
204
- render() {
205
- if (this.origin) {
206
- Object.assign(this, e.find((v) => v.pla === this.origin));
207
- }
146
+ `,
147
+ ];
148
+ __decorate([
149
+ query("input")
150
+ ], SearchInput.prototype, "_input", void 0);
151
+ __decorate([
152
+ property()
153
+ ], SearchInput.prototype, "query", void 0);
154
+ __decorate([
155
+ property()
156
+ ], SearchInput.prototype, "target", void 0);
157
+ __decorate([
158
+ property({ type: Boolean })
159
+ ], SearchInput.prototype, "infer", void 0);
160
+ __decorate([
161
+ property({ type: Boolean })
162
+ ], SearchInput.prototype, "remote", void 0);
163
+ __decorate([
164
+ property()
165
+ ], SearchInput.prototype, "action", void 0);
166
+ __decorate([
167
+ property()
168
+ ], SearchInput.prototype, "method", void 0);
169
+ __decorate([
170
+ property()
171
+ ], SearchInput.prototype, "name", void 0);
172
+ __decorate([
173
+ property()
174
+ ], SearchInput.prototype, "value", void 0);
175
+ __decorate([
176
+ property()
177
+ ], SearchInput.prototype, "pla", void 0);
178
+ __decorate([
179
+ property({ type: Array })
180
+ ], SearchInput.prototype, "list", void 0);
181
+ __decorate([
182
+ property({ type: Boolean })
183
+ ], SearchInput.prototype, "autofocus", void 0);
184
+ __decorate([
185
+ property({ attribute: false })
186
+ ], SearchInput.prototype, "useinfer", void 0);
187
+ SearchInput = __decorate([
188
+ define("search-input")
189
+ ], SearchInput);
190
+ export { SearchInput };
191
+ const e = [
192
+ { action: "https://www.google.com/search", name: "q", pla: "Google" },
193
+ { action: "https://quark.sm.cn/s", name: "q", pla: "Quark" },
194
+ { action: "https://www.bing.com/search", name: "q", pla: "Bing" },
195
+ { action: "https://www.sogou.com/web", name: "query", pla: "搜狗" },
196
+ { action: "https://yandex.com/search/", name: "text", pla: "Yandex" },
197
+ { action: "https://www.qwant.com/", name: "q", pla: "Qwant" },
198
+ ];
199
+ let SearchW = class SearchW extends STD {
200
+ constructor() {
201
+ super();
202
+ Object.assign(this, e[Math.floor(Math.random() * e.length)]);
203
+ }
204
+ render() {
205
+ if (this.origin) {
206
+ Object.assign(this, e.find((v) => v.pla === this.origin));
207
+ }
208
208
  return html `<form action=${this.action} method="get" target="_blank">
209
209
  <input name=${this.name} placeholder=${this.pla} />
210
210
  <button type="submit" aria-label="Search">
211
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
212
  </button>
213
- </form>`;
214
- }
215
- };
216
- SearchW.styles = [
217
- STD.styles,
213
+ </form>`;
214
+ }
215
+ };
216
+ SearchW.styles = [
217
+ STD.styles,
218
218
  css `
219
219
  :host {
220
220
  width: 10em;
@@ -290,22 +290,22 @@ SearchW.styles = [
290
290
  path {
291
291
  mix-blend-mode: exclusion;
292
292
  }
293
- `,
294
- ];
295
- __decorate([
296
- property()
297
- ], SearchW.prototype, "action", void 0);
298
- __decorate([
299
- property()
300
- ], SearchW.prototype, "name", void 0);
301
- __decorate([
302
- property()
303
- ], SearchW.prototype, "pla", void 0);
304
- __decorate([
305
- property()
306
- ], SearchW.prototype, "origin", void 0);
307
- SearchW = __decorate([
308
- define("search-w")
309
- ], SearchW);
310
- export { SearchW };
311
- export default SearchInput;
293
+ `,
294
+ ];
295
+ __decorate([
296
+ property()
297
+ ], SearchW.prototype, "action", void 0);
298
+ __decorate([
299
+ property()
300
+ ], SearchW.prototype, "name", void 0);
301
+ __decorate([
302
+ property()
303
+ ], SearchW.prototype, "pla", void 0);
304
+ __decorate([
305
+ property()
306
+ ], SearchW.prototype, "origin", void 0);
307
+ SearchW = __decorate([
308
+ define("search-w")
309
+ ], SearchW);
310
+ export { SearchW };
311
+ export default SearchInput;
@@ -1,32 +1,32 @@
1
- import STD from "./std.js";
2
- export declare class SelectInput extends STD {
3
- static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
4
- open: boolean;
5
- selcls: string;
6
- pla: any;
7
- only: boolean;
8
- def: string;
9
- value: any[];
10
- name: string;
11
- text: Array<string>;
12
- autofocus: boolean;
13
- get assigned(): any;
14
- _input: HTMLInputElement;
15
- _aside: HTMLInputElement;
16
- render(): import("lit-html").TemplateResult<1>;
17
- lists(): any[];
18
- _focusCheck(): void;
19
- focus(options?: FocusOptions): void;
20
- firstUpdated(): void;
21
- select(value: string, text?: string): void;
22
- _handleInput(): void;
23
- namevalue(): [string, any[]] | [string, any];
24
- reset(): void;
25
- }
26
- export default SelectInput;
27
- declare global {
28
- interface HTMLElementTagNameMap {
29
- "select-input": SelectInput;
30
- }
31
- }
1
+ import STD from "./std.js";
2
+ export declare class SelectInput extends STD {
3
+ static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
4
+ open: boolean;
5
+ selcls: string;
6
+ pla: any;
7
+ only: boolean;
8
+ def: string;
9
+ value: any[];
10
+ name: string;
11
+ text: Array<string>;
12
+ autofocus: boolean;
13
+ get assigned(): any;
14
+ _input: HTMLInputElement;
15
+ _aside: HTMLInputElement;
16
+ render(): import("lit-html").TemplateResult<1>;
17
+ lists(): any[];
18
+ _focusCheck(): void;
19
+ focus(options?: FocusOptions): void;
20
+ firstUpdated(): void;
21
+ select(value: string, text?: string): void;
22
+ _handleInput(): void;
23
+ namevalue(): [string, any[]] | [string, any];
24
+ reset(): void;
25
+ }
26
+ export default SelectInput;
27
+ declare global {
28
+ interface HTMLElementTagNameMap {
29
+ "select-input": SelectInput;
30
+ }
31
+ }
32
32
  //# sourceMappingURL=select-input.d.ts.map