godown 1.2.0 → 2.0.1

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 (240) hide show
  1. package/conf.d.ts +6 -6
  2. package/conf.d.ts.map +1 -1
  3. package/conf.js +7 -6
  4. package/conf.js.map +1 -0
  5. package/deps.d.ts +4 -4
  6. package/deps.d.ts.map +1 -1
  7. package/deps.js +5 -4
  8. package/deps.js.map +1 -0
  9. package/effect/clip-text.d.ts +13 -0
  10. package/effect/clip-text.d.ts.map +1 -0
  11. package/effect/clip-text.js +35 -0
  12. package/effect/clip-text.js.map +1 -0
  13. package/effect/index.d.ts +3 -3
  14. package/effect/index.d.ts.map +1 -1
  15. package/effect/index.js +4 -3
  16. package/effect/index.js.map +1 -0
  17. package/effect/overbreath-text.d.ts +14 -0
  18. package/effect/overbreath-text.d.ts.map +1 -0
  19. package/effect/{ov-effect.js → overbreath-text.js} +57 -112
  20. package/effect/overbreath-text.js.map +1 -0
  21. package/effect/std.d.ts +2 -2
  22. package/effect/std.d.ts.map +1 -1
  23. package/effect/std.js +3 -2
  24. package/effect/std.js.map +1 -0
  25. package/effect/typewriter-text.d.ts +27 -0
  26. package/effect/typewriter-text.d.ts.map +1 -0
  27. package/effect/typewriter-text.js +121 -0
  28. package/effect/typewriter-text.js.map +1 -0
  29. package/glob.d.ts +15 -2
  30. package/glob.d.ts.map +1 -1
  31. package/glob.js +101 -5
  32. package/glob.js.map +1 -0
  33. package/group/avatar-group.d.ts +5 -7
  34. package/group/avatar-group.d.ts.map +1 -1
  35. package/group/avatar-group.js +24 -47
  36. package/group/avatar-group.js.map +1 -0
  37. package/group/details-group.d.ts +3 -4
  38. package/group/details-group.d.ts.map +1 -1
  39. package/group/details-group.js +7 -8
  40. package/group/details-group.js.map +1 -0
  41. package/group/index.d.ts +0 -1
  42. package/group/index.d.ts.map +1 -1
  43. package/group/index.js +1 -1
  44. package/group/index.js.map +1 -0
  45. package/group/std.d.ts +2 -2
  46. package/group/std.d.ts.map +1 -1
  47. package/group/std.js +3 -2
  48. package/group/std.js.map +1 -0
  49. package/index.js +1 -0
  50. package/index.js.map +1 -0
  51. package/input-form/base-input.d.ts +6 -10
  52. package/input-form/base-input.d.ts.map +1 -1
  53. package/input-form/base-input.js +40 -47
  54. package/input-form/base-input.js.map +1 -0
  55. package/input-form/index.d.ts +0 -1
  56. package/input-form/index.d.ts.map +1 -1
  57. package/input-form/index.js +1 -1
  58. package/input-form/index.js.map +1 -0
  59. package/input-form/label-input.d.ts +4 -9
  60. package/input-form/label-input.d.ts.map +1 -1
  61. package/input-form/label-input.js +45 -57
  62. package/input-form/label-input.js.map +1 -0
  63. package/input-form/search-input.d.ts +6 -17
  64. package/input-form/search-input.d.ts.map +1 -1
  65. package/input-form/search-input.js +31 -148
  66. package/input-form/search-input.js.map +1 -0
  67. package/input-form/select-input.d.ts +5 -8
  68. package/input-form/select-input.d.ts.map +1 -1
  69. package/input-form/select-input.js +49 -63
  70. package/input-form/select-input.js.map +1 -0
  71. package/input-form/sign-form.d.ts +6 -11
  72. package/input-form/sign-form.d.ts.map +1 -1
  73. package/input-form/sign-form.js +29 -40
  74. package/input-form/sign-form.js.map +1 -0
  75. package/input-form/split-input.d.ts +3 -5
  76. package/input-form/split-input.d.ts.map +1 -1
  77. package/input-form/split-input.js +26 -29
  78. package/input-form/split-input.js.map +1 -0
  79. package/input-form/std.d.ts +25 -8
  80. package/input-form/std.d.ts.map +1 -1
  81. package/input-form/std.js +95 -20
  82. package/input-form/std.js.map +1 -0
  83. package/input-form/switch-input.d.ts +3 -3
  84. package/input-form/switch-input.d.ts.map +1 -1
  85. package/input-form/switch-input.js +27 -7
  86. package/input-form/switch-input.js.map +1 -0
  87. package/items/alert-item.d.ts +4 -3
  88. package/items/alert-item.d.ts.map +1 -1
  89. package/items/alert-item.js +99 -96
  90. package/items/alert-item.js.map +1 -0
  91. package/items/avatar-a.d.ts +17 -0
  92. package/items/avatar-a.d.ts.map +1 -0
  93. package/items/avatar-a.js +102 -0
  94. package/items/avatar-a.js.map +1 -0
  95. package/items/base-button.d.ts +23 -6
  96. package/items/base-button.d.ts.map +1 -1
  97. package/items/base-button.js +186 -142
  98. package/items/base-button.js.map +1 -0
  99. package/items/dialog-item.d.ts +10 -9
  100. package/items/dialog-item.d.ts.map +1 -1
  101. package/items/dialog-item.js +69 -43
  102. package/items/dialog-item.js.map +1 -0
  103. package/items/index.d.ts +2 -1
  104. package/items/index.d.ts.map +1 -1
  105. package/items/index.js +3 -1
  106. package/items/index.js.map +1 -0
  107. package/items/link-a.d.ts +6 -5
  108. package/items/link-a.d.ts.map +1 -1
  109. package/items/link-a.js +24 -49
  110. package/items/link-a.js.map +1 -0
  111. package/items/load-track.d.ts +4 -4
  112. package/items/load-track.d.ts.map +1 -1
  113. package/items/load-track.js +19 -15
  114. package/items/load-track.js.map +1 -0
  115. package/items/std.d.ts +2 -2
  116. package/items/std.d.ts.map +1 -1
  117. package/items/std.js +3 -2
  118. package/items/std.js.map +1 -0
  119. package/items/super-a.d.ts +3 -3
  120. package/items/super-a.d.ts.map +1 -1
  121. package/items/super-a.js +26 -17
  122. package/items/super-a.js.map +1 -0
  123. package/items/time-bar.d.ts +22 -0
  124. package/items/time-bar.d.ts.map +1 -0
  125. package/items/time-bar.js +99 -0
  126. package/items/time-bar.js.map +1 -0
  127. package/layout/div-line.d.ts +2 -2
  128. package/layout/div-line.d.ts.map +1 -1
  129. package/layout/div-line.js +12 -7
  130. package/layout/div-line.js.map +1 -0
  131. package/layout/drag-box.d.ts +10 -12
  132. package/layout/drag-box.d.ts.map +1 -1
  133. package/layout/drag-box.js +10 -18
  134. package/layout/drag-box.js.map +1 -0
  135. package/layout/flex-flow.d.ts +2 -2
  136. package/layout/flex-flow.d.ts.map +1 -1
  137. package/layout/flex-flow.js +7 -5
  138. package/layout/flex-flow.js.map +1 -0
  139. package/layout/index.d.ts +1 -0
  140. package/layout/index.d.ts.map +1 -1
  141. package/layout/index.js +2 -0
  142. package/layout/index.js.map +1 -0
  143. package/layout/nav-aside.d.ts +3 -3
  144. package/layout/nav-aside.d.ts.map +1 -1
  145. package/layout/nav-aside.js +9 -6
  146. package/layout/nav-aside.js.map +1 -0
  147. package/layout/nav-layout.d.ts +2 -4
  148. package/layout/nav-layout.d.ts.map +1 -1
  149. package/layout/nav-layout.js +23 -42
  150. package/layout/nav-layout.js.map +1 -0
  151. package/layout/std.d.ts +3 -3
  152. package/layout/std.d.ts.map +1 -1
  153. package/layout/std.js +4 -3
  154. package/layout/std.js.map +1 -0
  155. package/layout/with-wrap.d.ts +13 -0
  156. package/layout/with-wrap.d.ts.map +1 -0
  157. package/layout/with-wrap.js +32 -0
  158. package/layout/with-wrap.js.map +1 -0
  159. package/package.json +7 -5
  160. package/react/effect.d.ts +2 -5
  161. package/react/effect.d.ts.map +1 -1
  162. package/react/effect.js +8 -22
  163. package/react/effect.js.map +1 -0
  164. package/react/group.d.ts +0 -1
  165. package/react/group.d.ts.map +1 -1
  166. package/react/group.js +2 -6
  167. package/react/group.js.map +1 -0
  168. package/react/index.js +1 -0
  169. package/react/index.js.map +1 -0
  170. package/react/input-form.d.ts +0 -5
  171. package/react/input-form.d.ts.map +1 -1
  172. package/react/input-form.js +9 -19
  173. package/react/input-form.js.map +1 -0
  174. package/react/items.d.ts +2 -1
  175. package/react/items.d.ts.map +1 -1
  176. package/react/items.js +9 -3
  177. package/react/items.js.map +1 -0
  178. package/react/layout.d.ts.map +1 -1
  179. package/react/layout.js +2 -1
  180. package/react/layout.js.map +1 -0
  181. package/react/view.d.ts +1 -0
  182. package/react/view.d.ts.map +1 -1
  183. package/react/view.js +7 -1
  184. package/react/view.js.map +1 -0
  185. package/tmpl.d.ts +20 -0
  186. package/tmpl.d.ts.map +1 -0
  187. package/tmpl.js +39 -0
  188. package/tmpl.js.map +1 -0
  189. package/view/details-expand.d.ts +6 -4
  190. package/view/details-expand.d.ts.map +1 -1
  191. package/view/details-expand.js +30 -26
  192. package/view/details-expand.js.map +1 -0
  193. package/view/down-drop.d.ts +8 -4
  194. package/view/down-drop.d.ts.map +1 -1
  195. package/view/down-drop.js +45 -24
  196. package/view/down-drop.js.map +1 -0
  197. package/view/index.d.ts +1 -0
  198. package/view/index.d.ts.map +1 -1
  199. package/view/index.js +2 -0
  200. package/view/index.js.map +1 -0
  201. package/view/menu-list.d.ts +4 -2
  202. package/view/menu-list.d.ts.map +1 -1
  203. package/view/menu-list.js +26 -13
  204. package/view/menu-list.js.map +1 -0
  205. package/view/rotation-pool.d.ts +23 -0
  206. package/view/rotation-pool.d.ts.map +1 -0
  207. package/{effect/ro-effect.js → view/rotation-pool.js} +74 -41
  208. package/view/rotation-pool.js.map +1 -0
  209. package/view/route-view.d.ts +9 -18
  210. package/view/route-view.d.ts.map +1 -1
  211. package/view/route-view.js +20 -23
  212. package/view/route-view.js.map +1 -0
  213. package/view/scroll-x.d.ts +3 -2
  214. package/view/scroll-x.d.ts.map +1 -1
  215. package/view/scroll-x.js +14 -10
  216. package/view/scroll-x.js.map +1 -0
  217. package/view/std.d.ts +3 -3
  218. package/view/std.d.ts.map +1 -1
  219. package/view/std.js +21 -4
  220. package/view/std.js.map +1 -0
  221. package/with.d.ts +17 -5
  222. package/with.d.ts.map +1 -1
  223. package/with.js +36 -7
  224. package/with.js.map +1 -0
  225. package/effect/ov-effect.d.ts +0 -24
  226. package/effect/ov-effect.d.ts.map +0 -1
  227. package/effect/ro-effect.d.ts +0 -20
  228. package/effect/ro-effect.d.ts.map +0 -1
  229. package/effect/tw-effect.d.ts +0 -22
  230. package/effect/tw-effect.d.ts.map +0 -1
  231. package/effect/tw-effect.js +0 -108
  232. package/group/button-group.d.ts +0 -13
  233. package/group/button-group.d.ts.map +0 -1
  234. package/group/button-group.js +0 -79
  235. package/input-form/exp-input.d.ts +0 -24
  236. package/input-form/exp-input.d.ts.map +0 -1
  237. package/input-form/exp-input.js +0 -218
  238. package/items/avatar-anchor.d.ts +0 -20
  239. package/items/avatar-anchor.d.ts.map +0 -1
  240. package/items/avatar-anchor.js +0 -150
package/view/down-drop.js CHANGED
@@ -4,33 +4,41 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, css, query, define } from "../deps.js";
8
- import STD from "../layout/std.js";
9
- let DownDrop = class DownDrop extends STD {
7
+ import { css, define, html, property, query } from "../deps.js";
8
+ import { htmlSlot } from "../tmpl.js";
9
+ import ViewSTD from "./std.js";
10
+ let DownDrop = class DownDrop extends ViewSTD {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.open = false;
14
+ this.float = false;
15
+ }
10
16
  render() {
11
17
  return html `<main>
12
18
  <slot name="hover"></slot>
13
- <slot name="focus" @click=${this.toggle}></slot>
14
- <div style="transform:translateX(0)"><slot></slot></div>
19
+ <slot name="focus" @click="${this.toggle}"></slot>
20
+ <div style="transform:translateX(0);position: ${this.float ? "absolute" : "relative"};">${htmlSlot()}</div>
15
21
  </main>`;
16
22
  }
17
23
  async firstUpdated() {
18
- if (this.querySelector(`[slot="focus"]`)) {
19
- document.addEventListener("click", (e) => {
20
- if (!this.contains(e.target)) {
21
- this.close();
22
- }
23
- });
24
+ if (this.querySelector("[slot=focus]")) {
25
+ this.addEvent(document, "click", this._handelClick.bind(this));
24
26
  }
25
27
  await this.updateComplete;
26
28
  this.resize();
27
- window.addEventListener("resize", () => {
28
- clearTimeout(this._timer);
29
- this._timer = setTimeout(() => {
30
- this._div.style.transform = "translateX(0)";
31
- this.resize();
32
- }, 250);
33
- });
29
+ this.addEvent(window, "resize", this._handelResize.bind(this));
30
+ }
31
+ _handelClick(e) {
32
+ if (!this.contains(e.target)) {
33
+ this.close();
34
+ }
35
+ }
36
+ _handelResize() {
37
+ clearTimeout(this._timer);
38
+ this._timer = setTimeout(() => {
39
+ this._div.style.transform = "translateX(0)";
40
+ this.resize();
41
+ }, 250);
34
42
  }
35
43
  resize() {
36
44
  var _a;
@@ -50,24 +58,25 @@ let DownDrop = class DownDrop extends STD {
50
58
  }
51
59
  }
52
60
  close() {
53
- this._div.style.visibility = "hidden";
61
+ this.open = false;
54
62
  this.dispatchEvent(new CustomEvent("change", { detail: false }));
55
63
  }
56
- open() {
57
- this._div.style.visibility = "visible";
64
+ show() {
65
+ this.open = true;
58
66
  this.dispatchEvent(new CustomEvent("change", { detail: true }));
59
67
  }
60
68
  toggle() {
61
- this._div.style.visibility === "visible" ? this.close() : this.open();
69
+ this.open ? this.close() : this.show();
62
70
  }
63
71
  };
64
72
  DownDrop.styles = [
65
- STD.styles,
73
+ ViewSTD.styles,
66
74
  css `
67
75
  :host {
68
76
  height: 100%;
69
77
  width: 100%;
70
78
  }
79
+
71
80
  main {
72
81
  height: inherit;
73
82
  width: inherit;
@@ -76,18 +85,29 @@ DownDrop.styles = [
76
85
  flex-direction: column;
77
86
  align-items: center;
78
87
  }
88
+
79
89
  div {
80
90
  background-color: inherit;
81
- position: absolute;
82
91
  visibility: hidden;
83
92
  top: 100%;
84
93
  }
94
+
85
95
  slot[name="hover"]:hover ~ div,
86
96
  div:hover {
87
97
  visibility: visible;
88
98
  }
99
+
100
+ :host([open]) div {
101
+ visibility: visible;
102
+ }
89
103
  `,
90
104
  ];
105
+ __decorate([
106
+ property({ type: Boolean, reflect: true })
107
+ ], DownDrop.prototype, "open", void 0);
108
+ __decorate([
109
+ property({ type: Boolean })
110
+ ], DownDrop.prototype, "float", void 0);
91
111
  __decorate([
92
112
  query("div")
93
113
  ], DownDrop.prototype, "_div", void 0);
@@ -96,3 +116,4 @@ DownDrop = __decorate([
96
116
  ], DownDrop);
97
117
  export { DownDrop };
98
118
  export default DownDrop;
119
+ //# sourceMappingURL=down-drop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"down-drop.js","sourceRoot":"","sources":["../../src/view/down-drop.ts"],"names":[],"mappings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AAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,CAAC;;AAhGM,eAAM,GAAG;IACd,OAAO,CAAC,MAAM;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BF;CACkB,AAhCR,CAgCS;AACsB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCAAc;AAC5B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uCAAe;AAC7B;IAAb,KAAK,CAAC,KAAK,CAAC;sCAAsB;AApCxB,QAAQ;IADpB,MAAM,CAAC,WAAW,CAAC;GACP,QAAQ,CAkGpB;;AAED,eAAe,QAAQ,CAAC"}
package/view/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./details-expand.js";
2
2
  export * from "./down-drop.js";
3
+ export * from "./rotation-pool.js";
3
4
  export * from "./menu-list.js";
4
5
  export * from "./route-view.js";
5
6
  export * from "./scroll-x.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
package/view/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  export * from "./details-expand.js";
2
2
  export * from "./down-drop.js";
3
+ export * from "./rotation-pool.js";
3
4
  export * from "./menu-list.js";
4
5
  export * from "./route-view.js";
5
6
  export * from "./scroll-x.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
@@ -1,12 +1,14 @@
1
1
  import { CSSResultGroup } from "../deps.js";
2
- import STD from "./std.js";
3
- export declare class MenuList extends STD {
2
+ import ViewSTD from "./std.js";
3
+ export declare class MenuList extends ViewSTD {
4
4
  summary: string;
5
+ float: boolean;
5
6
  open: boolean;
6
7
  def: boolean;
7
8
  _section: HTMLElement;
8
9
  static styles: CSSResultGroup[];
9
10
  render(): import("lit").TemplateResult<1>;
11
+ protected _handelClick(): void;
10
12
  toggle(to?: boolean): void;
11
13
  }
12
14
  export default MenuList;
@@ -1 +1 @@
1
- {"version":3,"file":"menu-list.d.ts","sourceRoot":"","sources":["../../src/view/menu-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,cAAc,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,GAAmB,MAAM,UAAU,CAAC;AAC3C,qBACa,QAAS,SAAQ,GAAG;IACnB,OAAO,SAAM;IACmB,IAAI,UAAS;IAChD,GAAG,EAAE,OAAO,CAAC;IACJ,QAAQ,EAAE,WAAW,CAAC;IACxC,MAAM,CAAC,MAAM,mBAyBS;IACtB,MAAM;IAeN,MAAM,CAAC,EAAE,UAAa;CAIvB;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
1
+ {"version":3,"file":"menu-list.d.ts","sourceRoot":"","sources":["../../src/view/menu-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAwC,MAAM,YAAY,CAAC;AAEvF,OAAO,OAAuB,MAAM,UAAU,CAAC;AAE/C,qBACa,QAAS,SAAQ,OAAO;IACvB,OAAO,SAAM;IACmB,KAAK,UAAS;IACd,IAAI,UAAS;IAChD,GAAG,EAAE,OAAO,CAAC;IACJ,QAAQ,EAAE,WAAW,CAAC;IACxC,MAAM,CAAC,MAAM,mBA6BS;IAEtB,MAAM;IAgBN,SAAS,CAAC,YAAY;IAItB,MAAM,CAAC,EAAE,UAAa;CAIvB;AAED,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
package/view/menu-list.js CHANGED
@@ -4,37 +4,42 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, css, property, define, state, query } from "../deps.js";
8
- import STD, { DLsharecss } from "./std.js";
9
- let MenuList = class MenuList extends STD {
7
+ import { css, define, html, property, query, state } from "../deps.js";
8
+ import { htmlSlot, svgArrow } from "../tmpl.js";
9
+ import ViewSTD, { dlShareCSS } from "./std.js";
10
+ let MenuList = class MenuList extends ViewSTD {
10
11
  constructor() {
11
12
  super(...arguments);
12
13
  this.summary = "";
14
+ this.float = false;
13
15
  this.open = false;
14
16
  }
15
17
  render() {
16
- const notitle = !this.summary && !this.querySelector(`[slot="summary"]`);
17
- if (notitle) {
18
+ const noTitle = !this.summary && !this.querySelector("[slot=summary]") ? "noTitle" : "";
19
+ if (noTitle) {
18
20
  this.open = true;
19
21
  }
20
22
  return html `<dl>
21
- <dt ?open=${this.open} ?notitle=${notitle}>
23
+ <dt class="${noTitle}">
22
24
  <span>${this.summary}<slot name="summary"></slot></span>
23
- <i @click=${() => this.toggle()}>${!this.querySelector(`[slot="icon"]`) ? html `<svg viewBox="0 0 48 48" fill="none"><path d="M19 12L31 24L19 36" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /></svg>` : html `<slot name="icon"></slot>`}</i>
25
+ <i @click="${this._handelClick}"> ${!this.querySelector("[slot=icon]") ? svgArrow() : htmlSlot("icon")} </i>
24
26
  </dt>
25
- <dd ?open=${this.open}>
26
- <section><slot></slot></section>
27
+ <dd>
28
+ <section>${htmlSlot()}</section>
27
29
  </dd>
28
30
  </dl>`;
29
31
  }
32
+ _handelClick() {
33
+ this.toggle();
34
+ }
30
35
  toggle(to = !this.open) {
31
36
  this.open = to;
32
37
  this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
33
38
  }
34
39
  };
35
40
  MenuList.styles = [
36
- STD.styles,
37
- DLsharecss,
41
+ ViewSTD.styles,
42
+ dlShareCSS,
38
43
  css `
39
44
  i {
40
45
  width: 1.2em;
@@ -44,16 +49,20 @@ MenuList.styles = [
44
49
  border-radius: 20%;
45
50
  transition: inherit;
46
51
  }
52
+
47
53
  dt i {
48
54
  background-color: rgb(0 0 0 / 0.055);
49
55
  }
56
+
50
57
  dt i:hover {
51
58
  background-color: rgb(0 0 0 /0.075);
52
59
  }
53
- [open] svg {
60
+
61
+ :host([open]) svg {
54
62
  transform: rotate(90deg);
55
63
  }
56
- [notitle] {
64
+
65
+ .noTitle {
57
66
  display: none;
58
67
  }
59
68
  `,
@@ -61,6 +70,9 @@ MenuList.styles = [
61
70
  __decorate([
62
71
  property()
63
72
  ], MenuList.prototype, "summary", void 0);
73
+ __decorate([
74
+ property({ type: Boolean, reflect: true })
75
+ ], MenuList.prototype, "float", void 0);
64
76
  __decorate([
65
77
  property({ type: Boolean, reflect: true })
66
78
  ], MenuList.prototype, "open", void 0);
@@ -75,3 +87,4 @@ MenuList = __decorate([
75
87
  ], MenuList);
76
88
  export { MenuList };
77
89
  export default MenuList;
90
+ //# sourceMappingURL=menu-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-list.js","sourceRoot":"","sources":["../../src/view/menu-list.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,GAAG,EAAkB,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,OAAO,EAAE,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGxC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,OAAO;IAA9B;;QACO,YAAO,GAAG,EAAE,CAAC;QACmB,UAAK,GAAG,KAAK,CAAC;QACd,SAAI,GAAG,KAAK,CAAC;IA0D3D,CAAC;IAxBC,MAAM;QACJ,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACxF,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;SAClB;QACD,OAAO,IAAI,CAAA;mBACI,OAAO;gBACV,IAAI,CAAC,OAAO;qBACP,IAAI,CAAC,YAAY,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;;;mBAG3F,QAAQ,EAAE;;UAEnB,CAAC;IACT,CAAC;IAES,YAAY;QACpB,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI;QACpB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACvE,CAAC;;AAtDM,eAAM,GAAG;IACd,OAAO,CAAC,MAAM;IACd,UAAU;IACV,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAyBF;CACkB,AA7BR,CA6BS;AAlCV;IAAX,QAAQ,EAAE;yCAAc;AACmB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAAe;AACd;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCAAc;AAChD;IAAR,KAAK,EAAE;qCAAc;AACJ;IAAjB,KAAK,CAAC,SAAS,CAAC;0CAAuB;AAL7B,QAAQ;IADpB,MAAM,CAAC,WAAW,CAAC;GACP,QAAQ,CA6DpB;;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,23 @@
1
+ import ViewSTD from "./std.js";
2
+ export declare class RotationPool extends ViewSTD {
3
+ index: number;
4
+ autochange: number;
5
+ width: string;
6
+ _div: HTMLDivElement;
7
+ _section: HTMLElement;
8
+ static styles: import("lit").CSSResult;
9
+ current: number;
10
+ render(): import("lit").TemplateResult<1>;
11
+ render_a(slot: string): import("lit").TemplateResult<1>;
12
+ firstUpdated(): void;
13
+ show(i: number): void;
14
+ next(): void;
15
+ prev(): void;
16
+ }
17
+ export default RotationPool;
18
+ declare global {
19
+ interface HTMLElementTagNameMap {
20
+ "rotation-port": RotationPool;
21
+ }
22
+ }
23
+ //# sourceMappingURL=rotation-pool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rotation-pool.d.ts","sourceRoot":"","sources":["../../src/view/rotation-pool.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,UAAU,CAAC;AAE/B,qBACa,YAAa,SAAQ,OAAO;IACX,KAAK,SAAK;IACV,UAAU,SAAK;IAC/B,KAAK,SAAM;IACT,IAAI,EAAE,cAAc,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC;IACxC,MAAM,CAAC,MAAM,0BA2DX;IACF,OAAO,SAAK;IAEZ,MAAM;IAQN,QAAQ,CAAC,IAAI,EAAE,MAAM;IAOrB,YAAY;IAqBZ,IAAI,CAAC,CAAC,EAAE,MAAM;IAad,IAAI;IAMJ,IAAI;CAKL;AAED,eAAe,YAAY,CAAC;AAC5B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
@@ -4,55 +4,60 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { css, define, html, property } from "../deps.js";
8
- import STD from "./std.js";
9
- let ROPort = class ROPort extends STD {
7
+ import { css, define, html, property, query } from "../deps.js";
8
+ import { htmlSlot, svgArrow } from "../tmpl.js";
9
+ import ViewSTD from "./std.js";
10
+ let RotationPool = class RotationPool extends ViewSTD {
10
11
  constructor() {
11
12
  super(...arguments);
12
13
  this.index = 0;
13
14
  this.autochange = 0;
15
+ this.width = "";
14
16
  this.current = 0;
15
17
  }
16
- get assigned() {
17
- return this.shadowRoot.querySelector("slot").assignedElements();
18
- }
19
18
  render() {
20
19
  return html `<div>
21
- <a @click=${this.prev} prev>
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>
23
- </a>
24
- <section><slot></slot></section>
25
- <a @click=${this.next} next
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
- </a>
20
+ <a @click="${this.prev}" prev> ${this.render_a("pre")}</a>
21
+ <section>${htmlSlot()}</section>
22
+ <a @click="${this.next}" next> ${this.render_a("suf")} </a>
28
23
  </div>`;
29
24
  }
25
+ render_a(slot) {
26
+ if (this.querySelector(`[slot=${slot}]`)) {
27
+ return htmlSlot(slot);
28
+ }
29
+ return html `<i>${svgArrow()}</i>`;
30
+ }
30
31
  firstUpdated() {
31
- if (this.assigned.length == 0)
32
+ var _a;
33
+ if (!this.assigned.length || !((_a = this.assigned[0]) === null || _a === void 0 ? void 0 : _a.offsetWidth)) {
32
34
  return;
33
- this.shadowRoot.querySelector("div").style.width = `${this.assigned[0].offsetWidth}px`;
35
+ }
36
+ this._div.style.width = this.width || `${this.assigned[0].offsetWidth}px`;
34
37
  this.assigned.forEach((e) => {
35
38
  e.style.overflowX = "hidden";
36
39
  e.style.transition = "width 0s";
37
40
  });
38
41
  this.show(this.index);
39
- if (this.autochange)
42
+ if (this.autochange) {
40
43
  setInterval(() => {
41
44
  this.index++;
42
- if (this.index >= this.assigned.length)
45
+ if (this.index >= this.assigned.length) {
43
46
  this.index = 0;
47
+ }
44
48
  this.show(this.index);
45
49
  }, this.autochange);
50
+ }
46
51
  }
47
52
  show(i) {
48
- this.shadowRoot.querySelector("section").style.width = "100%";
53
+ this._section.style.width = "100%";
49
54
  this.assigned.forEach((e, index) => {
50
55
  if (index == i) {
51
56
  e.style.width = "100%";
52
57
  e.style.transition = "";
53
58
  }
54
59
  else {
55
- e.style.width = 0;
60
+ e.style.width = "0";
56
61
  }
57
62
  });
58
63
  this.current = i;
@@ -70,56 +75,84 @@ let ROPort = class ROPort extends STD {
70
75
  this.show(this.index);
71
76
  }
72
77
  };
73
- ROPort.styles = css `
78
+ RotationPool.styles = css `
74
79
  :host {
75
80
  display: block;
76
81
  }
82
+
77
83
  div,
78
84
  section {
79
85
  display: flex;
80
86
  position: relative;
81
87
  }
88
+
82
89
  div {
83
90
  min-width: 5.8em;
84
91
  overflow: hidden;
85
92
  }
93
+
86
94
  a {
87
95
  position: absolute;
88
96
  height: 100%;
89
- width: 1.4em;
97
+ width: fit-content;
90
98
  z-index: 1;
91
- transition: all 0.3s;
92
- }
93
- a:hover {
94
- background-color: #0000000f;
95
- padding: 0 0.05em;
96
99
  }
100
+
97
101
  a[prev] {
98
102
  left: 0;
99
103
  }
104
+
105
+ a[prev] svg {
106
+ transform: rotate(180deg);
107
+ }
108
+
100
109
  a[next] {
101
110
  right: 0;
102
111
  }
103
- :host(:hover) a[prev] {
104
- margin-left: 0.05em;
105
- }
106
- :host(:hover) a[next] {
107
- margin-right: 0.05em;
108
- }
109
- svg {
112
+
113
+ i {
114
+ position: relative;
110
115
  display: flex;
116
+ align-items: center;
117
+ justify-content: center;
118
+ transition: 0.3s;
119
+ width: 2em;
111
120
  height: 100%;
112
- width: 1.4em;
121
+ }
122
+
123
+ svg {
124
+ flex: 1;
125
+ max-height: 100%;
126
+ max-width: 100%;
127
+ }
128
+
129
+ a:hover i {
130
+ background-color: #0000001a;
131
+ width: 2.2em;
132
+ }
133
+
134
+ i svg path {
135
+ stroke-width: 4;
113
136
  }
114
137
  `;
115
138
  __decorate([
116
139
  property({ type: Number })
117
- ], ROPort.prototype, "index", void 0);
140
+ ], RotationPool.prototype, "index", void 0);
118
141
  __decorate([
119
142
  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;
143
+ ], RotationPool.prototype, "autochange", void 0);
144
+ __decorate([
145
+ property()
146
+ ], RotationPool.prototype, "width", void 0);
147
+ __decorate([
148
+ query("div")
149
+ ], RotationPool.prototype, "_div", void 0);
150
+ __decorate([
151
+ query("section")
152
+ ], RotationPool.prototype, "_section", void 0);
153
+ RotationPool = __decorate([
154
+ define("rotation-pool")
155
+ ], RotationPool);
156
+ export { RotationPool };
157
+ export default RotationPool;
158
+ //# sourceMappingURL=rotation-pool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rotation-pool.js","sourceRoot":"","sources":["../../src/view/rotation-pool.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,OAAO,MAAM,UAAU,CAAC;AAGxB,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,OAAO;IAAlC;;QACuB,UAAK,GAAG,CAAC,CAAC;QACV,eAAU,GAAG,CAAC,CAAC;QAC/B,UAAK,GAAG,EAAE,CAAC;QA+DvB,YAAO,GAAG,CAAC,CAAC;IA8Dd,CAAC;IA5DC,MAAM;QACJ,OAAO,IAAI,CAAA;mBACI,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;iBAC1C,QAAQ,EAAE;mBACR,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;WAChD,CAAC;IACV,CAAC;IAED,QAAQ,CAAC,IAAY;QACnB,IAAI,IAAI,CAAC,aAAa,CAAC,SAAS,IAAI,GAAG,CAAC,EAAE;YACxC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;SACvB;QACD,OAAO,IAAI,CAAA,MAAM,QAAQ,EAAE,MAAM,CAAC;IACpC,CAAC;IAED,YAAY;;QACV,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,0CAAE,WAAW,CAAA,EAAE;YAC3D,OAAO;SACR;QACD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI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I,CAAC,QAAQ,CAAC,MAAM;YAAE,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACvD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,IAAI;QACF,IAAI,CAAC,KAAK,EAAE,CAAC;QACb,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC;YAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QAC1D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;;AAzHM,mBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DlB,AA3DY,CA2DX;AAhE0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CAAW;AACV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAAgB;AAC/B;IAAX,QAAQ,EAAE;2CAAY;AACT;IAAb,KAAK,CAAC,KAAK,CAAC;0CAAsB;AACjB;IAAjB,KAAK,CAAC,SAAS,CAAC;8CAAuB;AAL7B,YAAY;IADxB,MAAM,CAAC,eAAe,CAAC;GACX,YAAY,CAgIxB;;AAED,eAAe,YAAY,CAAC"}
@@ -1,26 +1,17 @@
1
+ import { GlobalSTD } from "../deps.js";
1
2
  import type { TemplateResult } from "lit";
2
- import { LitElement } from "../deps.js";
3
3
  type WithRecord<T extends string> = Record<string, any> & Record<T, string>;
4
- export declare class RouteView extends LitElement {
5
- _routes: Array<{
6
- path: string;
7
- [key: string]: any;
8
- }>;
4
+ export declare class RouteView extends GlobalSTD {
5
+ _routes: WithRecord<"path">[];
9
6
  params: Record<string, string>;
10
7
  static: boolean;
11
8
  type: "united" | "child" | "slotted" | "field";
12
9
  baseURL: string;
13
10
  path: string;
14
11
  override: boolean;
15
- compoent: any;
16
- set routes(v: {
17
- [key: string]: any;
18
- path: string;
19
- }[]);
20
- get routes(): {
21
- [key: string]: any;
22
- path: string;
23
- }[];
12
+ component: any;
13
+ set routes(v: WithRecord<"path">[]);
14
+ get routes(): WithRecord<"path">[];
24
15
  static styles: import("lit").CSSResult;
25
16
  render(): TemplateResult;
26
17
  useRouter(): {
@@ -32,9 +23,9 @@ export declare class RouteView extends LitElement {
32
23
  render_slotted(): TemplateResult;
33
24
  render_field(): TemplateResult;
34
25
  fieldComponent(usedRouteTemplate: string): null | TemplateResult;
35
- slottedCompoent(usedRouteTemplate: string, ObjectArrayIncludePath: Array<WithRecord<"path" | "slotElement">>): null | TemplateResult;
36
- static sortRoutesPaths(ObjectArrayIncludePath: Array<WithRecord<"path">>): Array<WithRecord<"path">>;
37
- static useWhichRoute(ObjectArrayIncludePath: Array<WithRecord<"path">>, path: string, baseURL?: string): string;
26
+ slottedComponent(usedRouteTemplate: string, ObjectArrayIncludePath: WithRecord<"path" | "slotElement">[]): null | TemplateResult;
27
+ static sortRoutesPaths(ObjectArrayIncludePath: WithRecord<"path">[]): WithRecord<"path">[];
28
+ static useWhichRoute(ObjectArrayIncludePath: WithRecord<"path">[], path: string, baseURL?: string): string;
38
29
  static parseRouterParams(routeTemplate: string, originpath: string): Record<string, string>;
39
30
  static updateAll(): void;
40
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"route-view.d.ts","sourceRoot":"","sources":["../../src/view/route-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAA2B,UAAU,EAAY,MAAM,YAAY,CAAC;AAC3E,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAC5E,qBACa,SAAU,SAAQ,UAAU;IACvC,OAAO,EAAE,KAAK,CAAC;QAAE,IAA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