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,22 +1,22 @@
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 ROPort = class ROPort extends STD {
10
- constructor() {
11
- super(...arguments);
12
- this.index = 0;
13
- this.autochange = 0;
14
- this.current = 0;
15
- }
16
- get assigned() {
17
- return this.shadowRoot.querySelector("slot").assignedElements();
18
- }
19
- 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 ROPort = class ROPort extends STD {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.index = 0;
13
+ this.autochange = 0;
14
+ this.current = 0;
15
+ }
16
+ get assigned() {
17
+ return this.shadowRoot.querySelector("slot").assignedElements();
18
+ }
19
+ render() {
20
20
  return html `<div>
21
21
  <a @click=${this.prev} prev>
22
22
  <svg viewBox="0 0 48 48" fill="none"><path d="M31 36L19 24L31 12" stroke="#1e293b" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /></svg>
@@ -25,51 +25,51 @@ let ROPort = class ROPort extends STD {
25
25
  <a @click=${this.next} next
26
26
  ><svg viewBox="0 0 48 48" fill="none"><path d="M19 12L31 24L19 36" stroke="#1e293b" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /></svg>
27
27
  </a>
28
- </div>`;
29
- }
30
- firstUpdated() {
31
- if (this.assigned.length == 0)
32
- return;
33
- this.shadowRoot.querySelector("div").style.width = `${this.assigned[0].offsetWidth}px`;
34
- this.assigned.forEach((e) => {
35
- e.style.overflowX = "hidden";
36
- e.style.transition = "width 0s";
37
- });
38
- this.show(this.index);
39
- if (this.autochange)
40
- setInterval(() => {
41
- this.index++;
42
- if (this.index >= this.assigned.length)
43
- this.index = 0;
44
- this.show(this.index);
45
- }, this.autochange);
46
- }
47
- show(i) {
48
- this.shadowRoot.querySelector("section").style.width = "100%";
49
- this.assigned.forEach((e, index) => {
50
- if (index == i) {
51
- e.style.width = "100%";
52
- e.style.transition = "";
53
- }
54
- else {
55
- e.style.width = 0;
56
- }
57
- });
58
- this.current = i;
59
- }
60
- next() {
61
- this.index++;
62
- if (this.index >= this.assigned.length)
63
- this.index = 0;
64
- this.show(this.index);
65
- }
66
- prev() {
67
- this.index--;
68
- if (this.index < 0)
69
- this.index = this.assigned.length - 1;
70
- this.show(this.index);
71
- }
72
- };
28
+ </div>`;
29
+ }
30
+ firstUpdated() {
31
+ if (this.assigned.length == 0)
32
+ return;
33
+ this.shadowRoot.querySelector("div").style.width = `${this.assigned[0].offsetWidth}px`;
34
+ this.assigned.forEach((e) => {
35
+ e.style.overflowX = "hidden";
36
+ e.style.transition = "width 0s";
37
+ });
38
+ this.show(this.index);
39
+ if (this.autochange)
40
+ setInterval(() => {
41
+ this.index++;
42
+ if (this.index >= this.assigned.length)
43
+ this.index = 0;
44
+ this.show(this.index);
45
+ }, this.autochange);
46
+ }
47
+ show(i) {
48
+ this.shadowRoot.querySelector("section").style.width = "100%";
49
+ this.assigned.forEach((e, index) => {
50
+ if (index == i) {
51
+ e.style.width = "100%";
52
+ e.style.transition = "";
53
+ }
54
+ else {
55
+ e.style.width = 0;
56
+ }
57
+ });
58
+ this.current = i;
59
+ }
60
+ next() {
61
+ this.index++;
62
+ if (this.index >= this.assigned.length)
63
+ this.index = 0;
64
+ this.show(this.index);
65
+ }
66
+ prev() {
67
+ this.index--;
68
+ if (this.index < 0)
69
+ this.index = this.assigned.length - 1;
70
+ this.show(this.index);
71
+ }
72
+ };
73
73
  ROPort.styles = css `
74
74
  :host {
75
75
  display: block;
@@ -111,15 +111,15 @@ ROPort.styles = css `
111
111
  height: 100%;
112
112
  width: 1.4em;
113
113
  }
114
- `;
115
- __decorate([
116
- property({ type: Number })
117
- ], ROPort.prototype, "index", void 0);
118
- __decorate([
119
- property({ type: Number })
120
- ], ROPort.prototype, "autochange", void 0);
121
- ROPort = __decorate([
122
- define("ro-port")
123
- ], ROPort);
124
- export { ROPort };
125
- export default ROPort;
114
+ `;
115
+ __decorate([
116
+ property({ type: Number })
117
+ ], ROPort.prototype, "index", void 0);
118
+ __decorate([
119
+ property({ type: Number })
120
+ ], ROPort.prototype, "autochange", void 0);
121
+ ROPort = __decorate([
122
+ define("ro-port")
123
+ ], ROPort);
124
+ export { ROPort };
125
+ export default ROPort;
package/effect/std.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GLOBSTD } from "../deps.js";
2
- export default class EffectSTD extends GLOBSTD {
3
- }
1
+ import { GLOBSTD } from "../deps.js";
2
+ export default class EffectSTD extends GLOBSTD {
3
+ }
4
4
  //# sourceMappingURL=std.d.ts.map
package/effect/std.js CHANGED
@@ -1,3 +1,3 @@
1
- import { GLOBSTD } from "../deps.js";
2
- export default class EffectSTD extends GLOBSTD {
3
- }
1
+ import { GLOBSTD } from "../deps.js";
2
+ export default class EffectSTD extends GLOBSTD {
3
+ }
@@ -1,22 +1,22 @@
1
- import STD from "./std.js";
2
- export declare class TWText extends STD {
3
- text: string;
4
- stopped: boolean;
5
- autochange: number;
6
- max: number;
7
- min: number;
8
- len: number;
9
- _timer: any[];
10
- static styles: import("lit").CSSResult;
11
- render(): import("lit-html").TemplateResult<1>;
12
- firstUpdated(): void;
13
- rewrite(): void;
14
- stop(): void;
15
- }
16
- export default TWText;
17
- declare global {
18
- interface HTMLElementTagNameMap {
19
- "tw-text": TWText;
20
- }
21
- }
1
+ import STD from "./std.js";
2
+ export declare class TWText extends STD {
3
+ text: string;
4
+ stopped: boolean;
5
+ autochange: number;
6
+ max: number;
7
+ min: number;
8
+ len: number;
9
+ _timer: any[];
10
+ static styles: import("lit").CSSResult;
11
+ render(): import("lit").TemplateResult<1>;
12
+ firstUpdated(): void;
13
+ rewrite(): void;
14
+ stop(): void;
15
+ }
16
+ export default TWText;
17
+ declare global {
18
+ interface HTMLElementTagNameMap {
19
+ "tw-text": TWText;
20
+ }
21
+ }
22
22
  //# sourceMappingURL=tw-effect.d.ts.map
@@ -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,12 @@
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, WarningKind } 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
+ export declare function DisableWarning(e: {
10
+ disableWarning?: (warningKind: WarningKind) => void;
11
+ }, ...w: WarningKind[]): void;
9
12
  //# sourceMappingURL=glob.d.ts.map
package/glob.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACjE;;GAEG;AACH,eAAO,MAAM,MAAM,yBAAgE,CAAC;AACpF,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iBAgBO;CACrB"}
1
+ {"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAkB,MAAM,KAAK,CAAC;AAC9E;;GAEG;AACH,eAAO,MAAM,MAAM,yBAAgE,CAAC;AACpF,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iBAgBO;CACrB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAA;CAAE,EAAE,GAAG,CAAC,EAAE,WAAW,EAAE,QAQ7G"}
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,15 @@ GLOBSTD.styles = css `
22
22
  color: var(${cssvar}--text-selection);
23
23
  background: var(${cssvar}--text-selection-background);
24
24
  }
25
- `;
25
+ `;
26
+ export function DisableWarning(e, ...w) {
27
+ var _a, _b;
28
+ if (w.length) {
29
+ for (const ww of w) {
30
+ (_a = e.disableWarning) === null || _a === void 0 ? void 0 : _a.call(e, ww);
31
+ }
32
+ }
33
+ else {
34
+ (_b = e.disableWarning) === null || _b === void 0 ? void 0 : _b.call(e, "change-in-update");
35
+ }
36
+ }
@@ -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").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