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,63 +1,63 @@
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 { css, define, html, property, state } from "../deps.js";
8
- import STD from "./std.js";
9
- let TWText = class TWText extends STD {
10
- constructor() {
11
- super(...arguments);
12
- this.text = undefined;
13
- this.stopped = false;
14
- this.autochange = 0;
15
- this.max = 50;
16
- this.min = 500;
17
- this.len = 0;
18
- this._timer = [];
19
- }
20
- render() {
21
- return html `<slot></slot><i></i>`;
22
- }
23
- firstUpdated() {
24
- var _a;
25
- if (!this.text)
26
- this.text = ((_a = this.shadowRoot.querySelector("slot").assignedNodes()[0]) === null || _a === void 0 ? void 0 : _a.textContent.trim()) || "";
27
- this.len = this.text.length;
28
- if (!this.stopped && this.len)
29
- this.rewrite();
30
- }
31
- rewrite() {
32
- for (const timer of this._timer) {
33
- clearTimeout(timer);
34
- }
35
- this._timer = [];
36
- const text = this.shadowRoot.querySelector("slot").assignedNodes()[0];
37
- text.textContent = "";
38
- let delay = 0;
39
- let autochange = this.autochange ? this.autochange : random(this.min, this.max);
40
- this.text.split("").forEach((char) => {
41
- this._timer.push(setTimeout(() => {
42
- text.textContent += char;
43
- this.dispatchEvent(new CustomEvent("change"));
44
- if (this.len === text.textContent.length) {
45
- this.dispatchEvent(new CustomEvent("done", { detail: delay }));
46
- }
47
- }, delay));
48
- delay += autochange;
49
- if (!this.autochange) {
50
- autochange = random(this.min, this.max);
51
- }
52
- });
53
- }
54
- stop() {
55
- for (const timer of this._timer) {
56
- clearTimeout(timer);
57
- }
58
- this._timer = [];
59
- }
60
- };
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 { css, define, html, property, state } from "../deps.js";
8
+ import STD from "./std.js";
9
+ let TWText = class TWText extends STD {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.text = undefined;
13
+ this.stopped = false;
14
+ this.autochange = 0;
15
+ this.max = 50;
16
+ this.min = 500;
17
+ this.len = 0;
18
+ this._timer = [];
19
+ }
20
+ render() {
21
+ return html `<slot></slot><i></i>`;
22
+ }
23
+ firstUpdated() {
24
+ var _a;
25
+ if (!this.text)
26
+ this.text = ((_a = this.shadowRoot.querySelector("slot").assignedNodes()[0]) === null || _a === void 0 ? void 0 : _a.textContent.trim()) || "";
27
+ this.len = this.text.length;
28
+ if (!this.stopped && this.len)
29
+ this.rewrite();
30
+ }
31
+ rewrite() {
32
+ for (const timer of this._timer) {
33
+ clearTimeout(timer);
34
+ }
35
+ this._timer = [];
36
+ const text = this.shadowRoot.querySelector("slot").assignedNodes()[0];
37
+ text.textContent = "";
38
+ let delay = 0;
39
+ let autochange = this.autochange ? this.autochange : random(this.min, this.max);
40
+ this.text.split("").forEach((char) => {
41
+ this._timer.push(setTimeout(() => {
42
+ text.textContent += char;
43
+ this.dispatchEvent(new CustomEvent("change"));
44
+ if (this.len === text.textContent.length) {
45
+ this.dispatchEvent(new CustomEvent("done", { detail: delay }));
46
+ }
47
+ }, delay));
48
+ delay += autochange;
49
+ if (!this.autochange) {
50
+ autochange = random(this.min, this.max);
51
+ }
52
+ });
53
+ }
54
+ stop() {
55
+ for (const timer of this._timer) {
56
+ clearTimeout(timer);
57
+ }
58
+ this._timer = [];
59
+ }
60
+ };
61
61
  TWText.styles = css `
62
62
  :host {
63
63
  font-family: monospace;
@@ -76,33 +76,33 @@ TWText.styles = css `
76
76
  border-color: transparent;
77
77
  }
78
78
  }
79
- `;
80
- __decorate([
81
- property()
82
- ], TWText.prototype, "text", void 0);
83
- __decorate([
84
- property({ type: Boolean })
85
- ], TWText.prototype, "stopped", void 0);
86
- __decorate([
87
- property({ type: Number })
88
- ], TWText.prototype, "autochange", void 0);
89
- __decorate([
90
- property({ type: Number })
91
- ], TWText.prototype, "max", void 0);
92
- __decorate([
93
- property({ type: Number })
94
- ], TWText.prototype, "min", void 0);
95
- __decorate([
96
- state()
97
- ], TWText.prototype, "len", void 0);
98
- __decorate([
99
- state()
100
- ], TWText.prototype, "_timer", void 0);
101
- TWText = __decorate([
102
- define("tw-text")
103
- ], TWText);
104
- export { TWText };
105
- function random(m = 0, n = 1) {
106
- return Math.random() * (n - m) + m;
107
- }
108
- export default TWText;
79
+ `;
80
+ __decorate([
81
+ property()
82
+ ], TWText.prototype, "text", void 0);
83
+ __decorate([
84
+ property({ type: Boolean })
85
+ ], TWText.prototype, "stopped", void 0);
86
+ __decorate([
87
+ property({ type: Number })
88
+ ], TWText.prototype, "autochange", void 0);
89
+ __decorate([
90
+ property({ type: Number })
91
+ ], TWText.prototype, "max", void 0);
92
+ __decorate([
93
+ property({ type: Number })
94
+ ], TWText.prototype, "min", void 0);
95
+ __decorate([
96
+ state()
97
+ ], TWText.prototype, "len", void 0);
98
+ __decorate([
99
+ state()
100
+ ], TWText.prototype, "_timer", void 0);
101
+ TWText = __decorate([
102
+ define("tw-text")
103
+ ], TWText);
104
+ export { TWText };
105
+ function random(m = 0, n = 1) {
106
+ return Math.random() * (n - m) + m;
107
+ }
108
+ export default TWText;
package/glob.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { CSSResultGroup, LitElement } from "lit";
2
- /**
3
- * Custom CSS variable,join with "--" ,only allow `a-Z,0-9,-`
4
- */
5
- export declare const cssvar: import("lit").CSSResult;
6
- export declare class GLOBSTD extends LitElement {
7
- static styles: CSSResultGroup;
8
- }
1
+ import { CSSResultGroup, LitElement } from "lit";
2
+ /**
3
+ * Custom CSS variable,join with "--" ,only allow `a-Z,0-9,-`
4
+ */
5
+ export declare const cssvar: import("lit").CSSResult;
6
+ export declare class GLOBSTD extends LitElement {
7
+ static styles: CSSResultGroup;
8
+ }
9
9
  //# sourceMappingURL=glob.d.ts.map
package/glob.js CHANGED
@@ -1,11 +1,11 @@
1
- import { conf } from "./conf.js";
2
- import { LitElement, css, unsafeCSS } from "lit";
3
- /**
4
- * Custom CSS variable,join with "--" ,only allow `a-Z,0-9,-`
5
- */
6
- export const cssvar = unsafeCSS("--" + conf.cssvar.replace(/[^a-zA-Z0-9\\-]/g, ""));
7
- export class GLOBSTD extends LitElement {
8
- }
1
+ import { conf } from "./conf.js";
2
+ import { LitElement, css, unsafeCSS } from "lit";
3
+ /**
4
+ * Custom CSS variable,join with "--" ,only allow `a-Z,0-9,-`
5
+ */
6
+ export const cssvar = unsafeCSS("--" + conf.cssvar.replace(/[^a-zA-Z0-9\\-]/g, ""));
7
+ export class GLOBSTD extends LitElement {
8
+ }
9
9
  GLOBSTD.styles = css `
10
10
  :host {
11
11
  ${cssvar}--text-selection: rgb(80 255 255);
@@ -22,4 +22,4 @@ GLOBSTD.styles = css `
22
22
  color: var(${cssvar}--text-selection);
23
23
  background: var(${cssvar}--text-selection-background);
24
24
  }
25
- `;
25
+ `;
@@ -1,21 +1,21 @@
1
- import STD from "./std.js";
2
- export declare class AvatarGroup extends STD {
3
- rank: boolean;
4
- max: number;
5
- more: number;
6
- usefresh: () => Promise<void>;
7
- static styles: import("lit").CSSResult;
8
- get assigned(): HTMLElement[];
9
- render(): import("lit-html").TemplateResult<1>;
10
- firstUpdated(): void;
11
- append(args?: string): void;
12
- subtract(): void;
13
- fresh(): Promise<void>;
14
- }
15
- export default AvatarGroup;
16
- declare global {
17
- interface HTMLElementTagNameMap {
18
- "avatar-group": AvatarGroup;
19
- }
20
- }
1
+ import STD from "./std.js";
2
+ export declare class AvatarGroup extends STD {
3
+ rank: boolean;
4
+ max: number;
5
+ more: number;
6
+ usefresh: () => Promise<void>;
7
+ static styles: import("lit").CSSResult;
8
+ get assigned(): HTMLElement[];
9
+ render(): import("lit-html").TemplateResult<1>;
10
+ firstUpdated(): void;
11
+ append(args?: string): void;
12
+ subtract(): void;
13
+ fresh(): Promise<void>;
14
+ }
15
+ export default AvatarGroup;
16
+ declare global {
17
+ interface HTMLElementTagNameMap {
18
+ "avatar-group": AvatarGroup;
19
+ }
20
+ }
21
21
  //# sourceMappingURL=avatar-group.d.ts.map
@@ -1,81 +1,81 @@
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 { append, css, define, html, property } from "../deps.js";
8
- import STD from "./std.js";
9
- let AvatarGroup = class AvatarGroup extends STD {
10
- constructor() {
11
- super(...arguments);
12
- this.rank = false;
13
- this.max = 0;
14
- this.more = 0;
15
- this.usefresh = async () => {
16
- await this.updateComplete;
17
- this.scrollTop = this.scrollHeight;
18
- };
19
- }
20
- get assigned() {
21
- return this.shadowRoot.querySelector("slot").assignedElements();
22
- }
23
- render() {
24
- const cssstr = `slot::slotted(:nth-of-type(n + ${(this.max || 0) + 1})) {display: none;}`;
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 { append, css, define, html, property } from "../deps.js";
8
+ import STD from "./std.js";
9
+ let AvatarGroup = class AvatarGroup extends STD {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.rank = false;
13
+ this.max = 0;
14
+ this.more = 0;
15
+ this.usefresh = async () => {
16
+ await this.updateComplete;
17
+ this.scrollTop = this.scrollHeight;
18
+ };
19
+ }
20
+ get assigned() {
21
+ return this.shadowRoot.querySelector("slot").assignedElements();
22
+ }
23
+ render() {
24
+ const cssstr = `slot::slotted(:nth-of-type(n + ${(this.max || 0) + 1})) {display: none;}`;
25
25
  return html `
26
- ${this.rank
26
+ ${this.rank
27
27
  ? html `<div class="flex">
28
28
  <slot></slot>
29
29
  <style>
30
30
  ${cssstr}
31
31
  </style>
32
32
  <avatar-anchor style="display:${this.more > 0 ? undefined : "none"}" more=${this.more || 0}></avatar-anchor>
33
- </div>`
33
+ </div>`
34
34
  : html `<div><slot></slot></div>`}
35
- `;
36
- }
37
- firstUpdated() {
38
- if (this.rank && !this.more) {
39
- let more = 0;
40
- if (this.max && this.assigned.length > this.max) {
41
- more = this.assigned.length - this.max;
42
- }
43
- this.more = more;
44
- }
45
- }
46
- append(args = "avatar-anchor") {
47
- if (this.max && this.assigned.length == this.max) {
48
- this.assigned.pop().style.display = "none";
49
- append(this, args);
50
- this.assigned.pop().style.display = "none";
51
- this.more = 2;
52
- }
53
- else if (this.max && this.assigned.length > this.max) {
54
- append(this, args);
55
- this.assigned.pop().style.display = "none";
56
- this.more += 1;
57
- }
58
- else {
59
- append(this, args);
60
- }
61
- this.fresh();
62
- }
63
- subtract() {
64
- if (this.more == 2) {
65
- this.assigned.pop().style.display = "";
66
- this.more = 0;
67
- return;
68
- }
69
- else if (this.more > 0) {
70
- this.more -= 1;
71
- }
72
- if (this.assigned.length)
73
- this.assigned.pop().remove();
74
- }
75
- async fresh() {
76
- await this.usefresh();
77
- }
78
- };
35
+ `;
36
+ }
37
+ firstUpdated() {
38
+ if (this.rank && !this.more) {
39
+ let more = 0;
40
+ if (this.max && this.assigned.length > this.max) {
41
+ more = this.assigned.length - this.max;
42
+ }
43
+ this.more = more;
44
+ }
45
+ }
46
+ append(args = "avatar-anchor") {
47
+ if (this.max && this.assigned.length == this.max) {
48
+ this.assigned.pop().style.display = "none";
49
+ append(this, args);
50
+ this.assigned.pop().style.display = "none";
51
+ this.more = 2;
52
+ }
53
+ else if (this.max && this.assigned.length > this.max) {
54
+ append(this, args);
55
+ this.assigned.pop().style.display = "none";
56
+ this.more += 1;
57
+ }
58
+ else {
59
+ append(this, args);
60
+ }
61
+ this.fresh();
62
+ }
63
+ subtract() {
64
+ if (this.more == 2) {
65
+ this.assigned.pop().style.display = "";
66
+ this.more = 0;
67
+ return;
68
+ }
69
+ else if (this.more > 0) {
70
+ this.more -= 1;
71
+ }
72
+ if (this.assigned.length)
73
+ this.assigned.pop().remove();
74
+ }
75
+ async fresh() {
76
+ await this.usefresh();
77
+ }
78
+ };
79
79
  AvatarGroup.styles = css `
80
80
  :host {
81
81
  display: flex;
@@ -92,21 +92,21 @@ AvatarGroup.styles = css `
92
92
  display: flex;
93
93
  flex-direction: row;
94
94
  }
95
- `;
96
- __decorate([
97
- property({ type: Boolean })
98
- ], AvatarGroup.prototype, "rank", void 0);
99
- __decorate([
100
- property({ type: Number })
101
- ], AvatarGroup.prototype, "max", void 0);
102
- __decorate([
103
- property({ type: Number })
104
- ], AvatarGroup.prototype, "more", void 0);
105
- __decorate([
106
- property({ attribute: false })
107
- ], AvatarGroup.prototype, "usefresh", void 0);
108
- AvatarGroup = __decorate([
109
- define("avatar-group")
110
- ], AvatarGroup);
111
- export { AvatarGroup };
112
- export default AvatarGroup;
95
+ `;
96
+ __decorate([
97
+ property({ type: Boolean })
98
+ ], AvatarGroup.prototype, "rank", void 0);
99
+ __decorate([
100
+ property({ type: Number })
101
+ ], AvatarGroup.prototype, "max", void 0);
102
+ __decorate([
103
+ property({ type: Number })
104
+ ], AvatarGroup.prototype, "more", void 0);
105
+ __decorate([
106
+ property({ attribute: false })
107
+ ], AvatarGroup.prototype, "usefresh", void 0);
108
+ AvatarGroup = __decorate([
109
+ define("avatar-group")
110
+ ], AvatarGroup);
111
+ export { AvatarGroup };
112
+ export default AvatarGroup;
@@ -1,13 +1,13 @@
1
- import STD from "./std.js";
2
- export declare class ButtonGroup extends STD {
3
- v: boolean;
4
- static styles: import("lit").CSSResult;
5
- render(): import("lit-html").TemplateResult<1>;
6
- }
7
- export default ButtonGroup;
8
- declare global {
9
- interface HTMLElementTagNameMap {
10
- "button-group": ButtonGroup;
11
- }
12
- }
1
+ import STD from "./std.js";
2
+ export declare class ButtonGroup extends STD {
3
+ v: boolean;
4
+ static styles: import("lit").CSSResult;
5
+ render(): import("lit-html").TemplateResult<1>;
6
+ }
7
+ export default ButtonGroup;
8
+ declare global {
9
+ interface HTMLElementTagNameMap {
10
+ "button-group": ButtonGroup;
11
+ }
12
+ }
13
13
  //# sourceMappingURL=button-group.d.ts.map
@@ -1,17 +1,17 @@
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 { css, define, html, property } from "../deps.js";
8
- import STD from "./std.js";
9
- let ButtonGroup = class ButtonGroup extends STD {
10
- constructor() {
11
- super(...arguments);
12
- this.v = false;
13
- }
14
- render() {
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 { css, define, html, property } from "../deps.js";
8
+ import STD from "./std.js";
9
+ let ButtonGroup = class ButtonGroup extends STD {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.v = false;
13
+ }
14
+ render() {
15
15
  return html `
16
16
  <slot name="pre"></slot>
17
17
  <div class=${this.v ? "v" : "h"}>
@@ -24,9 +24,9 @@ let ButtonGroup = class ButtonGroup extends STD {
24
24
  <slot></slot>
25
25
  </div>
26
26
  <slot name="suf"></slot>
27
- `;
28
- }
29
- };
27
+ `;
28
+ }
29
+ };
30
30
  ButtonGroup.styles = css `
31
31
  :host {
32
32
  display: inline-flex;
@@ -68,12 +68,12 @@ ButtonGroup.styles = css `
68
68
  margin: 0.04em 0;
69
69
  display: inherit;
70
70
  }
71
- `;
72
- __decorate([
73
- property({ type: Boolean })
74
- ], ButtonGroup.prototype, "v", void 0);
75
- ButtonGroup = __decorate([
76
- define("button-group")
77
- ], ButtonGroup);
78
- export { ButtonGroup };
79
- export default ButtonGroup;
71
+ `;
72
+ __decorate([
73
+ property({ type: Boolean })
74
+ ], ButtonGroup.prototype, "v", void 0);
75
+ ButtonGroup = __decorate([
76
+ define("button-group")
77
+ ], ButtonGroup);
78
+ export { ButtonGroup };
79
+ export default ButtonGroup;
@@ -1,17 +1,17 @@
1
- import STD from "./std.js";
2
- export declare class DetailsGroup extends STD {
3
- index: number;
4
- only: boolean;
5
- static styles: import("lit").CSSResult;
6
- render(): import("lit-html").TemplateResult<1>;
7
- get assigned(): Element[];
8
- firstUpdated(): Promise<void>;
9
- _handleClick(e: any): void;
10
- }
11
- export default DetailsGroup;
12
- declare global {
13
- interface HTMLElementTagNameMap {
14
- "details-group": DetailsGroup;
15
- }
16
- }
1
+ import STD from "./std.js";
2
+ export declare class DetailsGroup extends STD {
3
+ index: number;
4
+ only: boolean;
5
+ static styles: import("lit").CSSResult;
6
+ render(): import("lit-html").TemplateResult<1>;
7
+ get assigned(): Element[];
8
+ firstUpdated(): Promise<void>;
9
+ _handleClick(e: any): void;
10
+ }
11
+ export default DetailsGroup;
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ "details-group": DetailsGroup;
15
+ }
16
+ }
17
17
  //# sourceMappingURL=details-group.d.ts.map