godown 1.1.5 → 1.2.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.
Files changed (142) hide show
  1. package/LICENSE +9 -9
  2. package/conf.d.ts +17 -18
  3. package/conf.d.ts.map +1 -1
  4. package/conf.js +24 -22
  5. package/deps.d.ts +7 -7
  6. package/deps.d.ts.map +1 -1
  7. package/deps.js +7 -7
  8. package/effect/index.d.ts +3 -3
  9. package/effect/index.js +3 -3
  10. package/effect/ov-effect.d.ts +23 -23
  11. package/effect/ov-effect.js +85 -85
  12. package/effect/ro-effect.d.ts +19 -19
  13. package/effect/ro-effect.js +76 -76
  14. package/effect/std.d.ts +3 -3
  15. package/effect/std.js +3 -3
  16. package/effect/tw-effect.d.ts +21 -21
  17. package/effect/tw-effect.js +90 -90
  18. package/glob.d.ts +11 -8
  19. package/glob.d.ts.map +1 -1
  20. package/glob.js +20 -9
  21. package/group/avatar-group.d.ts +20 -20
  22. package/group/avatar-group.js +88 -88
  23. package/group/button-group.d.ts +12 -12
  24. package/group/button-group.js +26 -26
  25. package/group/details-group.d.ts +16 -16
  26. package/group/details-group.js +51 -51
  27. package/group/index.d.ts +3 -3
  28. package/group/index.js +3 -3
  29. package/group/std.d.ts +3 -3
  30. package/group/std.js +3 -3
  31. package/index.d.ts +7 -7
  32. package/index.js +7 -7
  33. package/input-form/base-input.d.ts +33 -32
  34. package/input-form/base-input.d.ts.map +1 -1
  35. package/input-form/base-input.js +129 -129
  36. package/input-form/exp-input.d.ts +23 -22
  37. package/input-form/exp-input.d.ts.map +1 -1
  38. package/input-form/exp-input.js +67 -67
  39. package/input-form/index.d.ts +8 -8
  40. package/input-form/index.js +8 -8
  41. package/input-form/label-input.d.ts +22 -21
  42. package/input-form/label-input.d.ts.map +1 -1
  43. package/input-form/label-input.js +69 -69
  44. package/input-form/search-input.d.ts +37 -36
  45. package/input-form/search-input.d.ts.map +1 -1
  46. package/input-form/search-input.js +163 -163
  47. package/input-form/select-input.d.ts +35 -31
  48. package/input-form/select-input.d.ts.map +1 -1
  49. package/input-form/select-input.js +290 -259
  50. package/input-form/sign-form.d.ts +26 -25
  51. package/input-form/sign-form.d.ts.map +1 -1
  52. package/input-form/sign-form.js +147 -147
  53. package/input-form/split-input.d.ts +27 -26
  54. package/input-form/split-input.d.ts.map +1 -1
  55. package/input-form/split-input.js +127 -127
  56. package/input-form/std.d.ts +20 -19
  57. package/input-form/std.d.ts.map +1 -1
  58. package/input-form/std.js +56 -55
  59. package/input-form/switch-input.d.ts +23 -22
  60. package/input-form/switch-input.d.ts.map +1 -1
  61. package/input-form/switch-input.js +73 -73
  62. package/items/alert-item.d.ts +16 -16
  63. package/items/alert-item.js +69 -69
  64. package/items/avatar-anchor.d.ts +19 -19
  65. package/items/avatar-anchor.js +71 -71
  66. package/items/base-button.d.ts +16 -16
  67. package/items/base-button.js +117 -117
  68. package/items/dialog-item.d.ts +24 -24
  69. package/items/dialog-item.js +92 -92
  70. package/items/index.d.ts +7 -7
  71. package/items/index.js +7 -7
  72. package/items/link-a.d.ts +19 -19
  73. package/items/link-a.js +76 -76
  74. package/items/load-track.d.ts +21 -20
  75. package/items/load-track.d.ts.map +1 -1
  76. package/items/load-track.js +76 -76
  77. package/items/std.d.ts +3 -3
  78. package/items/std.js +3 -3
  79. package/items/super-a.d.ts +15 -15
  80. package/items/super-a.js +46 -46
  81. package/layout/div-line.d.ts +15 -15
  82. package/layout/div-line.js +39 -39
  83. package/layout/drag-box.d.ts +25 -25
  84. package/layout/drag-box.js +88 -88
  85. package/layout/flex-flow.d.ts +13 -13
  86. package/layout/flex-flow.js +32 -32
  87. package/layout/index.d.ts +5 -5
  88. package/layout/index.js +5 -5
  89. package/layout/nav-aside.d.ts +14 -13
  90. package/layout/nav-aside.d.ts.map +1 -1
  91. package/layout/nav-aside.js +38 -38
  92. package/layout/nav-layout.d.ts +17 -16
  93. package/layout/nav-layout.d.ts.map +1 -1
  94. package/layout/nav-layout.js +51 -51
  95. package/layout/std.d.ts +4 -4
  96. package/layout/std.js +4 -4
  97. package/package.json +17 -13
  98. package/react/effect.d.ts +9 -9
  99. package/react/effect.d.ts.map +1 -1
  100. package/react/effect.js +33 -33
  101. package/react/group.d.ts +4 -4
  102. package/react/group.d.ts.map +1 -1
  103. package/react/group.js +19 -19
  104. package/react/index.d.ts +7 -7
  105. package/react/index.d.ts.map +1 -1
  106. package/react/index.js +7 -7
  107. package/react/input-form.d.ts +32 -32
  108. package/react/input-form.d.ts.map +1 -1
  109. package/react/input-form.js +65 -65
  110. package/react/items.d.ts +8 -8
  111. package/react/items.d.ts.map +1 -1
  112. package/react/items.js +39 -39
  113. package/react/layout.d.ts +6 -6
  114. package/react/layout.d.ts.map +1 -1
  115. package/react/layout.js +29 -29
  116. package/react/view.d.ts +6 -6
  117. package/react/view.d.ts.map +1 -1
  118. package/react/view.js +29 -29
  119. package/view/details-expand.d.ts +19 -18
  120. package/view/details-expand.d.ts.map +1 -1
  121. package/view/details-expand.js +53 -53
  122. package/view/down-drop.d.ts +19 -18
  123. package/view/down-drop.d.ts.map +1 -1
  124. package/view/down-drop.js +71 -71
  125. package/view/index.d.ts +5 -5
  126. package/view/index.js +5 -5
  127. package/view/menu-list.d.ts +17 -16
  128. package/view/menu-list.d.ts.map +1 -1
  129. package/view/menu-list.js +48 -48
  130. package/view/route-view.d.ts +46 -57
  131. package/view/route-view.d.ts.map +1 -1
  132. package/view/route-view.js +256 -257
  133. package/view/scroll-x.d.ts +14 -14
  134. package/view/scroll-x.js +47 -47
  135. package/view/std.d.ts +4 -4
  136. package/view/std.js +4 -4
  137. package/with.d.ts +23 -27
  138. package/with.d.ts.map +1 -1
  139. package/with.js +70 -77
  140. package/items/no-support.d.ts +0 -7
  141. package/items/no-support.d.ts.map +0 -1
  142. package/items/no-support.js +0 -23
@@ -1,88 +1,88 @@
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, query, ifDefined, define, cssvar } from "../deps.js";
8
- import STD from "./std.js";
9
- let BaseInput = class BaseInput extends STD {
10
- constructor() {
11
- super(...arguments);
12
- this.accept = undefined;
13
- this.label = "";
14
- this.name = "";
15
- this.pla = undefined;
16
- this.type = "text";
17
- this.value = undefined;
18
- this.def = "";
19
- this.only = false;
20
- this.min = 0;
21
- this.max = 100;
22
- this.step = 1;
23
- this.autofocus = false;
24
- }
25
- render() {
26
- var _a;
27
- if (!this.name)
28
- this.name = ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || this.type;
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, query, ifDefined, define, cssvar } from "../deps.js";
8
+ import STD from "./std.js";
9
+ let BaseInput = class BaseInput extends STD {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.accept = undefined;
13
+ this.label = "";
14
+ this.name = "";
15
+ this.pla = undefined;
16
+ this.type = "text";
17
+ this.value = undefined;
18
+ this.def = "";
19
+ this.only = false;
20
+ this.min = 0;
21
+ this.max = 100;
22
+ this.step = 1;
23
+ this.autofocus = false;
24
+ }
25
+ render() {
26
+ var _a;
27
+ if (!this.name)
28
+ this.name = ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || this.type;
29
29
  return html `<label for="input">
30
30
  <slot name="pre"></slot>
31
31
  <slot></slot>
32
32
  <div class=${this.type}>${this._typeSwitcher()}</div>
33
33
  <slot name="suf"></slot>
34
- </label>`;
35
- }
36
- connectedCallback() {
37
- super.connectedCallback();
38
- if (!this.def && this.type !== "file")
39
- this.def = this.value || "";
40
- if (!this.value)
41
- this.value = this.def;
42
- }
43
- firstUpdated() {
44
- if (this.type === "range") {
45
- this._ranged.style.width = 100 * (parseInt(this.value) / (this.max - this.min)) + "%";
46
- if (this.childNodes.length) {
47
- this.shadowRoot.querySelector("div").style.margin = "0";
48
- }
49
- }
50
- this._focusCheck();
51
- this._compositionCheck();
52
- }
53
- _handleRange(e) {
54
- this.value = e.target.value;
55
- this._ranged.style.width = (100 * parseInt(e.target.value)) / (this.max - this.min) + "%";
56
- this.dispatchEvent(new CustomEvent("input", { detail: this.value }));
57
- }
58
- _handleFile(e) {
59
- this.value = !this.only ? e.target.files : e.target.files[0];
60
- this.dispatchEvent(new CustomEvent("change", { detail: this.value }));
61
- }
62
- reset() {
63
- if (this.type === "range") {
64
- this._input.value = this.def || ((this.max - this.min) / 2).toString();
65
- this.value = this._input.value;
66
- this._ranged.style.width = 100 * (parseInt(this.value) / (this.max - this.min)) + "%";
67
- }
68
- else {
69
- this._input.value = this.def.toString();
70
- this.value = this.def;
71
- }
72
- }
73
- _typeSwitcher() {
74
- switch (this.type) {
75
- case "range":
76
- return html `<input id="input" type="range" min=${this.min} max=${this.max} step=${this.step} value=${this.value} @input=${this._handleRange} @change=${this._handleChange} /><i></i>`;
77
- case "file":
78
- return html `<input id="input" type="file" accept=${ifDefined(this.accept)} ?multiple=${!this.only} class="input" @change=${this._handleFile} />`;
79
- default:
80
- return html `<input id="input" class="input" type=${this.type} placeholder=${this.pla} value=${this.value} @input=${this._handleInput} @change=${this._handleChange} />`;
81
- }
82
- }
83
- };
84
- BaseInput.styles = [
85
- STD.styles,
34
+ </label>`;
35
+ }
36
+ connectedCallback() {
37
+ super.connectedCallback();
38
+ if (!this.def && this.type !== "file")
39
+ this.def = this.value || "";
40
+ if (!this.value)
41
+ this.value = this.def;
42
+ }
43
+ firstUpdated() {
44
+ if (this.type === "range") {
45
+ this._ranged.style.width = 100 * (parseInt(this.value) / (this.max - this.min)) + "%";
46
+ if (this.childNodes.length) {
47
+ this.shadowRoot.querySelector("div").style.margin = "0";
48
+ }
49
+ }
50
+ this._focusCheck();
51
+ this._compositionCheck();
52
+ }
53
+ _handleRange(e) {
54
+ this.value = e.target.value;
55
+ this._ranged.style.width = (100 * parseInt(e.target.value)) / (this.max - this.min) + "%";
56
+ this.dispatchEvent(new CustomEvent("input", { detail: this.value }));
57
+ }
58
+ _handleFile(e) {
59
+ this.value = !this.only ? e.target.files : e.target.files[0];
60
+ this.dispatchEvent(new CustomEvent("change", { detail: this.value }));
61
+ }
62
+ reset() {
63
+ if (this.type === "range") {
64
+ this._input.value = this.def || ((this.max - this.min) / 2).toString();
65
+ this.value = this._input.value;
66
+ this._ranged.style.width = 100 * (parseInt(this.value) / (this.max - this.min)) + "%";
67
+ }
68
+ else {
69
+ this._input.value = this.def.toString();
70
+ this.value = this.def;
71
+ }
72
+ }
73
+ _typeSwitcher() {
74
+ switch (this.type) {
75
+ case "range":
76
+ return html `<input id="input" type="range" min=${this.min} max=${this.max} step=${this.step} value=${this.value} @input=${this._handleRange} @change=${this._handleChange} /><i></i>`;
77
+ case "file":
78
+ return html `<input id="input" type="file" accept=${ifDefined(this.accept)} ?multiple=${!this.only} class="input" @change=${this._handleFile} />`;
79
+ default:
80
+ return html `<input id="input" class="input" type=${this.type} placeholder=${this.pla} value=${this.value} @input=${this._handleInput} @change=${this._handleChange} />`;
81
+ }
82
+ }
83
+ };
84
+ BaseInput.styles = [
85
+ STD.styles,
86
86
  css `
87
87
  :host {
88
88
  width: var(${cssvar}--input-width);
@@ -178,52 +178,52 @@ BaseInput.styles = [
178
178
  border: solid 0.125em rgba(0, 221, 255, 0.5);
179
179
  box-shadow: 0 0.1em 0.1em var(${cssvar}--shadow);
180
180
  }
181
- `,
182
- ];
183
- __decorate([
184
- query("input")
185
- ], BaseInput.prototype, "_input", void 0);
186
- __decorate([
187
- query(".range i")
188
- ], BaseInput.prototype, "_ranged", void 0);
189
- __decorate([
190
- property()
191
- ], BaseInput.prototype, "accept", void 0);
192
- __decorate([
193
- property()
194
- ], BaseInput.prototype, "label", void 0);
195
- __decorate([
196
- property()
197
- ], BaseInput.prototype, "name", void 0);
198
- __decorate([
199
- property()
200
- ], BaseInput.prototype, "pla", void 0);
201
- __decorate([
202
- property()
203
- ], BaseInput.prototype, "type", void 0);
204
- __decorate([
205
- property()
206
- ], BaseInput.prototype, "value", void 0);
207
- __decorate([
208
- property()
209
- ], BaseInput.prototype, "def", void 0);
210
- __decorate([
211
- property({ type: Boolean })
212
- ], BaseInput.prototype, "only", void 0);
213
- __decorate([
214
- property({ type: Number })
215
- ], BaseInput.prototype, "min", void 0);
216
- __decorate([
217
- property({ type: Number })
218
- ], BaseInput.prototype, "max", void 0);
219
- __decorate([
220
- property({ type: Number })
221
- ], BaseInput.prototype, "step", void 0);
222
- __decorate([
223
- property({ type: Boolean })
224
- ], BaseInput.prototype, "autofocus", void 0);
225
- BaseInput = __decorate([
226
- define("base-input")
227
- ], BaseInput);
228
- export { BaseInput };
229
- export default BaseInput;
181
+ `,
182
+ ];
183
+ __decorate([
184
+ query("input")
185
+ ], BaseInput.prototype, "_input", void 0);
186
+ __decorate([
187
+ query(".range i")
188
+ ], BaseInput.prototype, "_ranged", void 0);
189
+ __decorate([
190
+ property()
191
+ ], BaseInput.prototype, "accept", void 0);
192
+ __decorate([
193
+ property()
194
+ ], BaseInput.prototype, "label", void 0);
195
+ __decorate([
196
+ property()
197
+ ], BaseInput.prototype, "name", void 0);
198
+ __decorate([
199
+ property()
200
+ ], BaseInput.prototype, "pla", void 0);
201
+ __decorate([
202
+ property()
203
+ ], BaseInput.prototype, "type", void 0);
204
+ __decorate([
205
+ property()
206
+ ], BaseInput.prototype, "value", void 0);
207
+ __decorate([
208
+ property()
209
+ ], BaseInput.prototype, "def", void 0);
210
+ __decorate([
211
+ property({ type: Boolean })
212
+ ], BaseInput.prototype, "only", void 0);
213
+ __decorate([
214
+ property({ type: Number })
215
+ ], BaseInput.prototype, "min", void 0);
216
+ __decorate([
217
+ property({ type: Number })
218
+ ], BaseInput.prototype, "max", void 0);
219
+ __decorate([
220
+ property({ type: Number })
221
+ ], BaseInput.prototype, "step", void 0);
222
+ __decorate([
223
+ property({ type: Boolean })
224
+ ], BaseInput.prototype, "autofocus", void 0);
225
+ BaseInput = __decorate([
226
+ define("base-input")
227
+ ], BaseInput);
228
+ export { BaseInput };
229
+ export default BaseInput;
@@ -1,23 +1,24 @@
1
- import STD from "./std.js";
2
- type inputtype = "hidden" | "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "checkbox" | "radio" | "file" | "image";
3
- export declare class ExpInput extends STD {
4
- static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
5
- label: string;
6
- name: string;
7
- pla: any;
8
- type: inputtype | "textarea";
9
- value: string;
10
- def: string;
11
- base: "outline" | "filed" | "underline";
12
- offset: string;
13
- autofocus: boolean;
14
- _input: HTMLInputElement;
15
- render(): import("lit-html").TemplateResult<1>;
16
- }
17
- export default ExpInput;
18
- declare global {
19
- interface HTMLElementTagNameMap {
20
- "exp-input": ExpInput;
21
- }
22
- }
1
+ import { CSSResultGroup } from "../deps.js";
2
+ import type { InputType } from "./std.js";
3
+ import STD from "./std.js";
4
+ export declare class ExpInput extends STD {
5
+ static styles: CSSResultGroup[];
6
+ label: string;
7
+ name: string;
8
+ pla: any;
9
+ type: InputType | "textarea";
10
+ value: string;
11
+ def: string;
12
+ base: "outline" | "filed" | "underline";
13
+ offset: string;
14
+ autofocus: boolean;
15
+ _input: HTMLInputElement;
16
+ render(): import("lit").TemplateResult<1>;
17
+ }
18
+ export default ExpInput;
19
+ declare global {
20
+ interface HTMLElementTagNameMap {
21
+ "exp-input": ExpInput;
22
+ }
23
+ }
23
24
  //# sourceMappingURL=exp-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exp-input.d.ts","sourceRoot":"","sources":["../../src/input-form/exp-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,KAAK,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACnO,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,4FA+IX;IACU,KAAK,SAAM;IACX,IAAI,SAAM;IACV,GAAG,MAAa;IAChB,IAAI,EAAE,SAAS,GAAG,UAAU,CAAU;IACtC,KAAK,SAAM;IACX,GAAG,SAAM;IACT,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAa;IACpD,MAAM,SAAM;IACK,SAAS,UAAS;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IAC1C,MAAM;CAeP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
1
+ {"version":3,"file":"exp-input.d.ts","sourceRoot":"","sources":["../../src/input-form/exp-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwD,cAAc,EAAE,MAAM,YAAY,CAAC;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,mBA+IS;IACV,KAAK,SAAM;IACX,IAAI,SAAM;IACV,GAAG,MAAa;IAChB,IAAI,EAAE,SAAS,GAAG,UAAU,CAAU;IACtC,KAAK,SAAM;IACX,GAAG,SAAM;IACT,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAa;IACpD,MAAM,SAAM;IACK,SAAS,UAAS;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IAC1C,MAAM;CAeP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -1,28 +1,28 @@
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, query, define, cssvar, classMap } from "../deps.js";
8
- import STD from "./std.js";
9
- let ExpInput = class ExpInput extends STD {
10
- constructor() {
11
- super(...arguments);
12
- this.label = "";
13
- this.name = "";
14
- this.pla = undefined;
15
- this.type = "text";
16
- this.value = "";
17
- this.def = "";
18
- this.base = "outline";
19
- this.offset = "";
20
- this.autofocus = false;
21
- }
22
- render() {
23
- var _a;
24
- if (!this.name)
25
- this.name = ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || this.type;
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, query, define, cssvar, classMap } from "../deps.js";
8
+ import STD from "./std.js";
9
+ let ExpInput = class ExpInput extends STD {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.label = "";
13
+ this.name = "";
14
+ this.pla = undefined;
15
+ this.type = "text";
16
+ this.value = "";
17
+ this.def = "";
18
+ this.base = "outline";
19
+ this.offset = "";
20
+ this.autofocus = false;
21
+ }
22
+ render() {
23
+ var _a;
24
+ if (!this.name)
25
+ this.name = ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || this.type;
26
26
  return html `<div class=${classMap({ [this.base]: true, "no-label": !this.label })}>
27
27
  ${this.type !== "textarea" ? html `<input class="input" required title="" value=${this.value} @input=${this._handleInput} @change=${this._handleChange} type=${this.type} placeholder=${this.pla} />` : html `<textarea class="input" required title="" value=${this.value || this.def} @input=${this._handleInput} placeholder=${this.pla}></textarea>`}
28
28
  <fieldset>
@@ -34,11 +34,11 @@ let ExpInput = class ExpInput extends STD {
34
34
  margin-left: ${this.offset || 0} !important;
35
35
  }
36
36
  </style>
37
- </div>`;
38
- }
39
- };
40
- ExpInput.styles = [
41
- STD.styles,
37
+ </div>`;
38
+ }
39
+ };
40
+ ExpInput.styles = [
41
+ STD.styles,
42
42
  css `
43
43
  :host {
44
44
  line-height: normal;
@@ -179,40 +179,40 @@ ExpInput.styles = [
179
179
  :valid + fieldset legend {
180
180
  transform: translateY(-0.19em) scale(0.7);
181
181
  }
182
- `,
183
- ];
184
- __decorate([
185
- property()
186
- ], ExpInput.prototype, "label", void 0);
187
- __decorate([
188
- property()
189
- ], ExpInput.prototype, "name", void 0);
190
- __decorate([
191
- property()
192
- ], ExpInput.prototype, "pla", void 0);
193
- __decorate([
194
- property()
195
- ], ExpInput.prototype, "type", void 0);
196
- __decorate([
197
- property()
198
- ], ExpInput.prototype, "value", void 0);
199
- __decorate([
200
- property()
201
- ], ExpInput.prototype, "def", void 0);
202
- __decorate([
203
- property()
204
- ], ExpInput.prototype, "base", void 0);
205
- __decorate([
206
- property()
207
- ], ExpInput.prototype, "offset", void 0);
208
- __decorate([
209
- property({ type: Boolean })
210
- ], ExpInput.prototype, "autofocus", void 0);
211
- __decorate([
212
- query(".input")
213
- ], ExpInput.prototype, "_input", void 0);
214
- ExpInput = __decorate([
215
- define("exp-input")
216
- ], ExpInput);
217
- export { ExpInput };
218
- export default ExpInput;
182
+ `,
183
+ ];
184
+ __decorate([
185
+ property()
186
+ ], ExpInput.prototype, "label", void 0);
187
+ __decorate([
188
+ property()
189
+ ], ExpInput.prototype, "name", void 0);
190
+ __decorate([
191
+ property()
192
+ ], ExpInput.prototype, "pla", void 0);
193
+ __decorate([
194
+ property()
195
+ ], ExpInput.prototype, "type", void 0);
196
+ __decorate([
197
+ property()
198
+ ], ExpInput.prototype, "value", void 0);
199
+ __decorate([
200
+ property()
201
+ ], ExpInput.prototype, "def", void 0);
202
+ __decorate([
203
+ property()
204
+ ], ExpInput.prototype, "base", void 0);
205
+ __decorate([
206
+ property()
207
+ ], ExpInput.prototype, "offset", void 0);
208
+ __decorate([
209
+ property({ type: Boolean })
210
+ ], ExpInput.prototype, "autofocus", void 0);
211
+ __decorate([
212
+ query(".input")
213
+ ], ExpInput.prototype, "_input", void 0);
214
+ ExpInput = __decorate([
215
+ define("exp-input")
216
+ ], ExpInput);
217
+ export { ExpInput };
218
+ export default ExpInput;
@@ -1,9 +1,9 @@
1
- export * from "./base-input.js";
2
- export * from "./exp-input.js";
3
- export * from "./label-input.js";
4
- export * from "./select-input.js";
5
- export * from "./search-input.js";
6
- export * from "./sign-form.js";
7
- export * from "./split-input.js";
8
- export * from "./switch-input.js";
1
+ export * from "./base-input.js";
2
+ export * from "./exp-input.js";
3
+ export * from "./label-input.js";
4
+ export * from "./select-input.js";
5
+ export * from "./search-input.js";
6
+ export * from "./sign-form.js";
7
+ export * from "./split-input.js";
8
+ export * from "./switch-input.js";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
- export * from "./base-input.js";
2
- export * from "./exp-input.js";
3
- export * from "./label-input.js";
4
- export * from "./select-input.js";
5
- export * from "./search-input.js";
6
- export * from "./sign-form.js";
7
- export * from "./split-input.js";
8
- export * from "./switch-input.js";
1
+ export * from "./base-input.js";
2
+ export * from "./exp-input.js";
3
+ export * from "./label-input.js";
4
+ export * from "./select-input.js";
5
+ export * from "./search-input.js";
6
+ export * from "./sign-form.js";
7
+ export * from "./split-input.js";
8
+ export * from "./switch-input.js";
@@ -1,22 +1,23 @@
1
- import STD from "./std.js";
2
- type inputtype = "hidden" | "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "checkbox" | "radio" | "file" | "image";
3
- export declare class LabelInput extends STD {
4
- type: inputtype;
5
- label: string;
6
- def: string;
7
- pla: any;
8
- name: string;
9
- value: string;
10
- autofocus: boolean;
11
- _input: HTMLInputElement;
12
- static styles: (import("lit").CSSResult | import("@lit/reactive-element/css-tag.js").CSSResultGroup[])[];
13
- render(): import("lit-html").TemplateResult<1>;
14
- _passwordSwitcher(): void;
15
- }
16
- export default LabelInput;
17
- declare global {
18
- interface HTMLElementTagNameMap {
19
- "label-input": LabelInput;
20
- }
21
- }
1
+ import { CSSResultGroup } from "../deps.js";
2
+ import STD from "./std.js";
3
+ import type { InputType } from "./std.js";
4
+ export declare class LabelInput extends STD {
5
+ type: InputType;
6
+ label: string;
7
+ def: string;
8
+ pla: any;
9
+ name: string;
10
+ value: string;
11
+ autofocus: boolean;
12
+ _input: HTMLInputElement;
13
+ static styles: CSSResultGroup[];
14
+ render(): import("lit").TemplateResult<1>;
15
+ _passwordSwitcher(): void;
16
+ }
17
+ export default LabelInput;
18
+ declare global {
19
+ interface HTMLElementTagNameMap {
20
+ "label-input": LabelInput;
21
+ }
22
+ }
22
23
  //# sourceMappingURL=label-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"label-input.d.ts","sourceRoot":"","sources":["../../src/input-form/label-input.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,KAAK,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACnO,qBACa,UAAW,SAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,CAAU;IACzB,KAAK,SAAM;IACX,GAAG,SAAM;IACT,GAAG,MAAa;IAChB,IAAI,SAAM;IACV,KAAK,SAAM;IACM,SAAS,UAAS;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzC,MAAM,CAAC,MAAM,4FAsEX;IACF,MAAM;IAoBN,iBAAiB;CAOlB;AACD,eAAe,UAAU,CAAC;AAC1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
1
+ {"version":3,"file":"label-input.d.ts","sourceRoot":"","sources":["../../src/input-form/label-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,cAAc,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,qBACa,UAAW,SAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,CAAU;IACzB,KAAK,SAAM;IACX,GAAG,SAAM;IACT,GAAG,MAAa;IAChB,IAAI,SAAM;IACV,KAAK,SAAM;IACM,SAAS,UAAS;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzC,MAAM,CAAC,MAAM,mBAsES;IACtB,MAAM;IAoBN,iBAAiB;CAOlB;AACD,eAAe,UAAU,CAAC;AAC1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}