godown 1.1.3 → 1.1.5

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 (135) hide show
  1. package/README.md +35 -35
  2. package/effect/ov-effect.d.ts +3 -3
  3. package/effect/ov-effect.d.ts.map +1 -1
  4. package/effect/ov-effect.js +252 -228
  5. package/effect/ro-effect.d.ts +1 -1
  6. package/effect/ro-effect.d.ts.map +1 -1
  7. package/effect/ro-effect.js +51 -46
  8. package/effect/std.d.ts.map +1 -1
  9. package/effect/tw-effect.d.ts +1 -1
  10. package/effect/tw-effect.d.ts.map +1 -1
  11. package/effect/tw-effect.js +19 -18
  12. package/glob.d.ts.map +1 -1
  13. package/glob.js +18 -17
  14. package/group/avatar-group.d.ts +1 -1
  15. package/group/avatar-group.d.ts.map +1 -1
  16. package/group/avatar-group.js +29 -5
  17. package/group/button-group.d.ts +1 -1
  18. package/group/button-group.d.ts.map +1 -1
  19. package/group/button-group.js +53 -48
  20. package/group/details-group.d.ts +1 -1
  21. package/group/details-group.d.ts.map +1 -1
  22. package/group/details-group.js +5 -3
  23. package/group/std.d.ts.map +1 -1
  24. package/input-form/base-input.d.ts +2 -2
  25. package/input-form/base-input.d.ts.map +1 -1
  26. package/input-form/base-input.js +109 -106
  27. package/input-form/exp-input.d.ts +1 -1
  28. package/input-form/exp-input.d.ts.map +1 -1
  29. package/input-form/exp-input.js +155 -142
  30. package/input-form/label-input.d.ts +1 -1
  31. package/input-form/label-input.d.ts.map +1 -1
  32. package/input-form/label-input.js +88 -75
  33. package/input-form/search-input.d.ts +3 -3
  34. package/input-form/search-input.d.ts.map +1 -1
  35. package/input-form/search-input.js +171 -157
  36. package/input-form/select-input.d.ts +3 -3
  37. package/input-form/select-input.d.ts.map +1 -1
  38. package/input-form/select-input.js +128 -104
  39. package/input-form/sign-form.d.ts +7 -5
  40. package/input-form/sign-form.d.ts.map +1 -1
  41. package/input-form/sign-form.js +49 -44
  42. package/input-form/split-input.d.ts +3 -3
  43. package/input-form/split-input.d.ts.map +1 -1
  44. package/input-form/split-input.js +80 -72
  45. package/input-form/std.d.ts +1 -1
  46. package/input-form/std.d.ts.map +1 -1
  47. package/input-form/std.js +20 -17
  48. package/input-form/switch-input.d.ts +3 -3
  49. package/input-form/switch-input.d.ts.map +1 -1
  50. package/input-form/switch-input.js +118 -112
  51. package/items/alert-item.d.ts +1 -1
  52. package/items/alert-item.d.ts.map +1 -1
  53. package/items/alert-item.js +99 -98
  54. package/items/avatar-anchor.d.ts +2 -2
  55. package/items/avatar-anchor.d.ts.map +1 -1
  56. package/items/avatar-anchor.js +91 -89
  57. package/items/base-button.d.ts +1 -1
  58. package/items/base-button.d.ts.map +1 -1
  59. package/items/base-button.js +129 -126
  60. package/items/dialog-item.d.ts +1 -1
  61. package/items/dialog-item.d.ts.map +1 -1
  62. package/items/dialog-item.js +72 -71
  63. package/items/link-a.d.ts.map +1 -1
  64. package/items/link-a.js +23 -22
  65. package/items/load-track.d.ts +1 -1
  66. package/items/load-track.d.ts.map +1 -1
  67. package/items/load-track.js +45 -39
  68. package/items/std.d.ts.map +1 -1
  69. package/items/super-a.d.ts +2 -2
  70. package/items/super-a.d.ts.map +1 -1
  71. package/items/super-a.js +59 -48
  72. package/layout/div-line.d.ts +1 -1
  73. package/layout/div-line.d.ts.map +1 -1
  74. package/layout/div-line.js +35 -29
  75. package/layout/drag-box.d.ts +1 -1
  76. package/layout/drag-box.d.ts.map +1 -1
  77. package/layout/drag-box.js +10 -9
  78. package/layout/flex-flow.d.ts +2 -2
  79. package/layout/flex-flow.d.ts.map +1 -1
  80. package/layout/flex-flow.js +12 -7
  81. package/layout/nav-aside.d.ts +1 -1
  82. package/layout/nav-aside.d.ts.map +1 -1
  83. package/layout/nav-aside.js +32 -25
  84. package/layout/nav-layout.d.ts +1 -1
  85. package/layout/nav-layout.d.ts.map +1 -1
  86. package/layout/nav-layout.js +125 -104
  87. package/layout/std.d.ts.map +1 -1
  88. package/layout/std.js +6 -4
  89. package/package.json +47 -36
  90. package/react/effect.js +6 -6
  91. package/react/group.js +3 -3
  92. package/react/input-form.js +11 -11
  93. package/react/items.js +8 -8
  94. package/react/layout.js +5 -5
  95. package/react/view.js +5 -5
  96. package/view/details-expand.d.ts +1 -1
  97. package/view/details-expand.d.ts.map +1 -1
  98. package/view/details-expand.js +38 -33
  99. package/view/down-drop.d.ts +1 -1
  100. package/view/down-drop.d.ts.map +1 -1
  101. package/view/down-drop.js +34 -30
  102. package/view/menu-list.d.ts +1 -1
  103. package/view/menu-list.d.ts.map +1 -1
  104. package/view/menu-list.js +35 -30
  105. package/view/route-view.d.ts.map +1 -1
  106. package/view/route-view.js +10 -7
  107. package/view/scroll-x.d.ts +1 -1
  108. package/view/scroll-x.d.ts.map +1 -1
  109. package/view/scroll-x.js +32 -27
  110. package/view/std.d.ts.map +1 -1
  111. package/view/std.js +33 -33
  112. package/with.d.ts +10 -10
  113. package/with.d.ts.map +1 -1
  114. package/with.js +14 -15
  115. package/view/react/effect.d.ts +0 -10
  116. package/view/react/effect.d.ts.map +0 -1
  117. package/view/react/effect.js +0 -32
  118. package/view/react/group.d.ts +0 -5
  119. package/view/react/group.d.ts.map +0 -1
  120. package/view/react/group.js +0 -18
  121. package/view/react/index.d.ts +0 -7
  122. package/view/react/index.d.ts.map +0 -1
  123. package/view/react/index.js +0 -6
  124. package/view/react/input-form.d.ts +0 -33
  125. package/view/react/input-form.d.ts.map +0 -1
  126. package/view/react/input-form.js +0 -64
  127. package/view/react/items.d.ts +0 -9
  128. package/view/react/items.d.ts.map +0 -1
  129. package/view/react/items.js +0 -38
  130. package/view/react/layout.d.ts +0 -7
  131. package/view/react/layout.d.ts.map +0 -1
  132. package/view/react/layout.js +0 -28
  133. package/view/react/view.d.ts +0 -7
  134. package/view/react/view.d.ts.map +0 -1
  135. package/view/react/view.js +0 -28
@@ -15,15 +15,15 @@ let DetailsExpand = class DetailsExpand extends STD {
15
15
  this.float = false;
16
16
  }
17
17
  render() {
18
- return html `<dl>
19
- <dt ?open=${this.open} @click=${() => this.toggle()} style="flex-direction:row${this.reverse ? "-reverse" : ""}">
20
- <span>${this.summary}<slot name="summary"></slot></span>
21
- <i style="transform: rotate(${this.reverse ? "-18" : ""}0deg);">${!this.querySelector(`slot[name="icon"]`) ? html `<svg fill="currentColor" viewBox="0 0 16 16"><path d="m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z"/></svg>` : html `<slot name="icon"></slot>`}</i>
22
- </dt>
23
- <dd ?open=${this.open} ?float=${this.float}>
24
- <section><slot></slot></section>
25
- </dd>
26
- </dl>`;
18
+ return html `<dl>
19
+ <dt ?open=${this.open} @click=${() => this.toggle()} style="flex-direction:row${this.reverse ? "-reverse" : ""}">
20
+ <span>${this.summary}<slot name="summary"></slot></span>
21
+ <i style="transform: rotate(${this.reverse ? "-18" : ""}0deg);">${!this.querySelector(`slot[name="icon"]`) ? html `<svg fill="currentColor" viewBox="0 0 16 16"><path d="m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z" /></svg>` : html `<slot name="icon"></slot>`}</i>
22
+ </dt>
23
+ <dd ?open=${this.open} ?float=${this.float}>
24
+ <section><slot></slot></section>
25
+ </dd>
26
+ </dl>`;
27
27
  }
28
28
  firstUpdated() {
29
29
  if (this.fill)
@@ -34,30 +34,35 @@ let DetailsExpand = class DetailsExpand extends STD {
34
34
  this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
35
35
  }
36
36
  };
37
- DetailsExpand.styles = [STD.styles, DLsharecss, css `
38
- dl{
39
- height:100%;
40
- position: relative;
41
- }
42
- dt{
43
- height:100%;
44
- }
45
- i{
46
- height: 1.2em;
47
- min-width:1.2em;
48
- aspect-ratio: 1/1;
49
- display: flex;
50
- margin-left: auto;
51
- -webkit-backface-visibility: hidden;
52
- backface-visibility: hidden;
53
- }
54
- [open] i{
55
- transform: rotate(-90deg) !important;
56
- }
57
- [float]{
58
- top: 100%;
59
- position: absolute;
60
- }`];
37
+ DetailsExpand.styles = [
38
+ STD.styles,
39
+ DLsharecss,
40
+ css `
41
+ dl {
42
+ height: 100%;
43
+ position: relative;
44
+ }
45
+ dt {
46
+ height: 100%;
47
+ }
48
+ i {
49
+ height: 1.2em;
50
+ min-width: 1.2em;
51
+ aspect-ratio: 1/1;
52
+ display: flex;
53
+ margin-left: auto;
54
+ -webkit-backface-visibility: hidden;
55
+ backface-visibility: hidden;
56
+ }
57
+ [open] i {
58
+ transform: rotate(-90deg) !important;
59
+ }
60
+ [float] {
61
+ top: 100%;
62
+ position: absolute;
63
+ }
64
+ `,
65
+ ];
61
66
  __decorate([
62
67
  property()
63
68
  ], DetailsExpand.prototype, "summary", void 0);
@@ -3,7 +3,7 @@ export declare class DownDrop extends STD {
3
3
  static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
4
4
  _div: HTMLDivElement;
5
5
  _timer: any;
6
- render(): import("lit").TemplateResult<1>;
6
+ render(): import("lit-html").TemplateResult<1>;
7
7
  firstUpdated(): Promise<void>;
8
8
  resize(): void;
9
9
  close(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"down-drop.d.ts","sourceRoot":"","sources":["../../src/view/down-drop.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,8DAsBV;IACW,IAAI,EAAE,cAAc,CAAC;IACnC,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM;IAOA,YAAY;IAoBlB,MAAM;IAcN,KAAK;IAIL,IAAI;IAIJ,MAAM;CAGP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
1
+ {"version":3,"file":"down-drop.d.ts","sourceRoot":"","sources":["../../src/view/down-drop.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,8DA0BX;IACY,IAAI,EAAE,cAAc,CAAC;IACnC,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM;IAOA,YAAY;IAkBlB,MAAM;IAcN,KAAK;IAIL,IAAI;IAIJ,MAAM;CAGP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
package/view/down-drop.js CHANGED
@@ -8,11 +8,11 @@ import { html, css, query, define } from "../deps.js";
8
8
  import STD from "../layout/std.js";
9
9
  let DownDrop = class DownDrop extends STD {
10
10
  render() {
11
- return html `<main>
12
- <slot name="hover"></slot>
13
- <slot name="focus" @click=${this.toggle}></slot>
14
- <div style="transform:translateX(0)"><slot></slot></div>
15
- </main>`;
11
+ return html `<main>
12
+ <slot name="hover"></slot>
13
+ <slot name="focus" @click=${this.toggle}></slot>
14
+ <div style="transform:translateX(0)"><slot></slot></div>
15
+ </main>`;
16
16
  }
17
17
  async firstUpdated() {
18
18
  if (this.querySelector(`[slot="focus"]`)) {
@@ -27,7 +27,7 @@ let DownDrop = class DownDrop extends STD {
27
27
  window.addEventListener("resize", () => {
28
28
  clearTimeout(this._timer);
29
29
  this._timer = setTimeout(() => {
30
- this._div.style.transform = `translateX(0)`;
30
+ this._div.style.transform = "translateX(0)";
31
31
  this.resize();
32
32
  }, 250);
33
33
  });
@@ -46,7 +46,7 @@ let DownDrop = class DownDrop extends STD {
46
46
  this._div.style.transform = `translateX(${RightWidth}px)`;
47
47
  }
48
48
  else {
49
- this._div.style.transform = `translateX(0)`;
49
+ this._div.style.transform = "translateX(0)";
50
50
  }
51
51
  }
52
52
  close() {
@@ -61,29 +61,33 @@ let DownDrop = class DownDrop extends STD {
61
61
  this._div.style.visibility === "visible" ? this.close() : this.open();
62
62
  }
63
63
  };
64
- DownDrop.styles = [STD.styles, css `
65
- :host{
66
- height: 100%;
67
- width: 100%;
68
- }
69
- main{
70
- height: inherit;
71
- width: inherit;
72
- display: flex;
73
- position: relative;
74
- flex-direction: column;
75
- align-items: center;
76
- }
77
- div{
78
- background-color:inherit;
79
- position: absolute;
80
- visibility: hidden;
81
- top:100%;
82
- }
83
- slot[name="hover"]:hover~div,div:hover{
84
- visibility: visible;
85
- }
86
- `];
64
+ DownDrop.styles = [
65
+ STD.styles,
66
+ css `
67
+ :host {
68
+ height: 100%;
69
+ width: 100%;
70
+ }
71
+ main {
72
+ height: inherit;
73
+ width: inherit;
74
+ display: flex;
75
+ position: relative;
76
+ flex-direction: column;
77
+ align-items: center;
78
+ }
79
+ div {
80
+ background-color: inherit;
81
+ position: absolute;
82
+ visibility: hidden;
83
+ top: 100%;
84
+ }
85
+ slot[name="hover"]:hover ~ div,
86
+ div:hover {
87
+ visibility: visible;
88
+ }
89
+ `,
90
+ ];
87
91
  __decorate([
88
92
  query("div")
89
93
  ], DownDrop.prototype, "_div", void 0);
@@ -5,7 +5,7 @@ export declare class MenuList extends STD {
5
5
  def: boolean;
6
6
  _section: HTMLElement;
7
7
  static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
8
- render(): import("lit").TemplateResult<1>;
8
+ render(): import("lit-html").TemplateResult<1>;
9
9
  toggle(to?: boolean): void;
10
10
  }
11
11
  export default MenuList;
@@ -1 +1 @@
1
- {"version":3,"file":"menu-list.d.ts","sourceRoot":"","sources":["../../src/view/menu-list.ts"],"names":[],"mappings":"AACA,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,8DAqBV;IACH,MAAM;IAcN,MAAM,CAAC,EAAE,UAAa;CAKvB;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":"AACA,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,8DAyBX;IACF,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"}
package/view/menu-list.js CHANGED
@@ -17,42 +17,47 @@ let MenuList = class MenuList extends STD {
17
17
  if (notitle) {
18
18
  this.open = true;
19
19
  }
20
- return html `<dl>
21
- <dt ?open=${this.open} ?notitle=${notitle} >
22
- <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>
24
- </dt>
25
- <dd ?open=${this.open}>
26
- <section><slot></slot></section>
27
- </dd></dl>`;
20
+ return html `<dl>
21
+ <dt ?open=${this.open} ?notitle=${notitle}>
22
+ <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>
24
+ </dt>
25
+ <dd ?open=${this.open}>
26
+ <section><slot></slot></section>
27
+ </dd>
28
+ </dl>`;
28
29
  }
29
30
  toggle(to = !this.open) {
30
31
  this.open = to;
31
32
  this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
32
33
  }
33
34
  };
34
- MenuList.styles = [STD.styles, DLsharecss, css `
35
- i{
36
- width: 1.2em;
37
- height: 1.2em;
38
- display: inline-flex;
39
- align-items: center;
40
- border-radius: 20%;
41
- transition:inherit;
42
- }
43
- dt i{
44
- background-color: rgb(0 0 0 / 0.055);
45
- }
46
- dt i:hover{
47
- background-color: rgb(0 0 0 /.075);
48
- }
49
- [open] svg{
50
- transform: rotate(90deg);
51
- }
52
- [notitle]{
53
- display: none;
54
- }
55
- `];
35
+ MenuList.styles = [
36
+ STD.styles,
37
+ DLsharecss,
38
+ css `
39
+ i {
40
+ width: 1.2em;
41
+ height: 1.2em;
42
+ display: inline-flex;
43
+ align-items: center;
44
+ border-radius: 20%;
45
+ transition: inherit;
46
+ }
47
+ dt i {
48
+ background-color: rgb(0 0 0 / 0.055);
49
+ }
50
+ dt i:hover {
51
+ background-color: rgb(0 0 0 /0.075);
52
+ }
53
+ [open] svg {
54
+ transform: rotate(90deg);
55
+ }
56
+ [notitle] {
57
+ display: none;
58
+ }
59
+ `,
60
+ ];
56
61
  __decorate([
57
62
  property()
58
63
  ], MenuList.prototype, "summary", void 0);
@@ -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;AAE3E,qBACa,SAAU,SAAQ,UAAU;IACvC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAA,CAAC,GAAG,EAAE,MAAM,GAA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,eAAe,CAAC,sBAAsB,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,GAAG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IA+BpH,MAAM,CAAC,aAAa,CAAC,sBAAsB,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAW;IA4C5H,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAoB3F,MAAM,CAAC,SAAS;CAOjB;AACD,eAAe,SAAS,CAAC;AACzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
@@ -59,16 +59,15 @@ let RouteView = RouteView_1 = class RouteView extends LitElement {
59
59
  });
60
60
  if (!this.override)
61
61
  return;
62
- const self = this;
63
62
  const pushHistory = history.pushState;
64
63
  history.pushState = function () {
65
64
  pushHistory.apply(this, arguments);
66
- self.path = window.location.pathname;
65
+ this.path = window.location.pathname;
67
66
  };
68
67
  const replaceHistory = history.replaceState;
69
68
  history.replaceState = function () {
70
69
  replaceHistory.apply(this, arguments);
71
- self.path = window.location.pathname;
70
+ this.path = window.location.pathname;
72
71
  };
73
72
  }
74
73
  render_united() {
@@ -84,7 +83,7 @@ let RouteView = RouteView_1 = class RouteView extends LitElement {
84
83
  const slotname = node.getAttribute("slot");
85
84
  return {
86
85
  path: this.baseURL + slotname,
87
- slotname
86
+ slotname,
88
87
  };
89
88
  });
90
89
  let slotsSort;
@@ -226,13 +225,17 @@ let RouteView = RouteView_1 = class RouteView extends LitElement {
226
225
  }
227
226
  static updateAll() {
228
227
  const routeViewTagName = conf.namemap.get("route-view");
229
- const routeViewArray = document.querySelectorAll(routeViewTagName + ":not([override])");
230
- for (let index = 0, ArrayItem; ArrayItem = routeViewArray[index]; index++) {
228
+ const routeViewArray = document.querySelectorAll(`${routeViewTagName}:not([override])`);
229
+ for (let index = 0, ArrayItem; (ArrayItem = routeViewArray[index]); index++) {
231
230
  ArrayItem.path = window.location.pathname;
232
231
  }
233
232
  }
234
233
  };
235
- RouteView.styles = css `:host{display:contents}`;
234
+ RouteView.styles = css `
235
+ :host {
236
+ display: contents;
237
+ }
238
+ `;
236
239
  __decorate([
237
240
  property({ type: Boolean })
238
241
  ], RouteView.prototype, "static", void 0);
@@ -2,7 +2,7 @@ import STD from "./std.js";
2
2
  export declare class ScrollX extends STD {
3
3
  static styles: import("lit").CSSResult;
4
4
  get _section(): HTMLElement;
5
- render(): import("lit").TemplateResult<1>;
5
+ render(): import("lit-html").TemplateResult<1>;
6
6
  firstUpdated(): void;
7
7
  resize(): void;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-x.d.ts","sourceRoot":"","sources":["../../src/view/scroll-x.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,0BAyBV;IACH,IAAI,QAAQ,gBAEX;IACD,MAAM;IAGN,YAAY;IASZ,MAAM;CAcP;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
1
+ {"version":3,"file":"scroll-x.d.ts","sourceRoot":"","sources":["../../src/view/scroll-x.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,0BA0BX;IACF,IAAI,QAAQ,gBAEX;IACD,MAAM;IAON,YAAY;IASZ,MAAM;CAcP;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
package/view/scroll-x.js CHANGED
@@ -11,7 +11,11 @@ let ScrollX = class ScrollX extends STD {
11
11
  return this.shadowRoot.querySelector("section");
12
12
  }
13
13
  render() {
14
- return html `<section><main><span><slot></slot></span></main></section>`;
14
+ return html `<section>
15
+ <main>
16
+ <span><slot></slot></span>
17
+ </main>
18
+ </section>`;
15
19
  }
16
20
  firstUpdated() {
17
21
  this._section.addEventListener("scroll", (e) => {
@@ -39,32 +43,33 @@ let ScrollX = class ScrollX extends STD {
39
43
  }
40
44
  }
41
45
  };
42
- ScrollX.styles = css `
43
- :host{
44
- display: block;
45
- width: 100%;
46
- height: fit-content;
47
- }
48
- section {
49
- overflow: auto;
50
- position: relative;
51
- transform-origin: 0 0;
52
- transform: rotate(-90deg) translateX(-100%);
53
- }
54
- section::-webkit-scrollbar {
55
- display: none;
56
- }
57
- span {
58
- height: 500px;
59
- display: flex;
60
- }
61
- main {
62
- width: auto;
63
- position: absolute;
64
- left: 100%;
65
- transform-origin: 0 0;
66
- transform: rotate(90deg);
67
- }`;
46
+ ScrollX.styles = css `
47
+ :host {
48
+ display: block;
49
+ width: 100%;
50
+ height: fit-content;
51
+ }
52
+ section {
53
+ overflow: auto;
54
+ position: relative;
55
+ transform-origin: 0 0;
56
+ transform: rotate(-90deg) translateX(-100%);
57
+ }
58
+ section::-webkit-scrollbar {
59
+ display: none;
60
+ }
61
+ span {
62
+ height: 500px;
63
+ display: flex;
64
+ }
65
+ main {
66
+ width: auto;
67
+ position: absolute;
68
+ left: 100%;
69
+ transform-origin: 0 0;
70
+ transform: rotate(90deg);
71
+ }
72
+ `;
68
73
  ScrollX = __decorate([
69
74
  define("scroll-x")
70
75
  ], ScrollX);
package/view/std.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/view/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAO,MAAM,YAAY,CAAC;AAC1C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,OAAO;CAAI;AAChD,eAAO,MAAM,UAAU,yBAiCtB,CAAC"}
1
+ {"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/view/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAO,MAAM,YAAY,CAAC;AAC1C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,OAAO;CAAG;AAC/C,eAAO,MAAM,UAAU,yBAiCtB,CAAC"}
package/view/std.js CHANGED
@@ -1,37 +1,37 @@
1
1
  import { GLOBSTD, css } from "../deps.js";
2
2
  export default class ViewSTD extends GLOBSTD {
3
3
  }
4
- export const DLsharecss = css `
5
- :host{
6
- display: block;
7
- transition: all .3s ease-in-out;
8
- }
9
- span{
10
- display: inline-flex;
11
- align-items: center;
12
- flex:1;
13
- white-space: nowrap;
14
- }
15
- dt{
16
- display: flex;
17
- flex-wrap: nowrap;
18
- justify-content: space-between;
19
- background: inherit;
20
- align-items: center;
21
- }
22
- *{
23
- transition:inherit;
24
- }
25
- dd{
26
- overflow:hidden;
27
- display:grid;
28
- grid-template-rows:0fr;
29
- }
30
- section{
31
- min-height:0;
32
- overflow:hidden;
33
- }
34
- dd[open]{
35
- grid-template-rows:1fr;
36
- }
4
+ export const DLsharecss = css `
5
+ :host {
6
+ display: block;
7
+ transition: all 0.3s ease-in-out;
8
+ }
9
+ span {
10
+ display: inline-flex;
11
+ align-items: center;
12
+ flex: 1;
13
+ white-space: nowrap;
14
+ }
15
+ dt {
16
+ display: flex;
17
+ flex-wrap: nowrap;
18
+ justify-content: space-between;
19
+ background: inherit;
20
+ align-items: center;
21
+ }
22
+ * {
23
+ transition: inherit;
24
+ }
25
+ dd {
26
+ overflow: hidden;
27
+ display: grid;
28
+ grid-template-rows: 0fr;
29
+ }
30
+ section {
31
+ min-height: 0;
32
+ overflow: hidden;
33
+ }
34
+ dd[open] {
35
+ grid-template-rows: 1fr;
36
+ }
37
37
  `;
package/with.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export declare const define: (name: string, options?: ElementDefinitionOptions) => (constructor: CustomElementConstructor) => void;
2
2
  /**
3
- * Create element with args append to target
4
- * @param target Appended target element or use document.querySelector(target) or document.body
5
- * @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
6
- */
3
+ * Create element with args append to target
4
+ * @param target Appended target element or use document.querySelector(target) or document.body
5
+ * @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
6
+ */
7
7
  export declare const append: (target?: string | object, args?: string | {
8
8
  tag: any;
9
9
  props?: any;
@@ -11,9 +11,9 @@ export declare const append: (target?: string | object, args?: string | {
11
11
  html?: any;
12
12
  }) => void;
13
13
  /**
14
- * Create element from args
15
- * @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
16
- */
14
+ * Create element from args
15
+ * @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
16
+ */
17
17
  export declare const create: (args?: string | {
18
18
  tag: any;
19
19
  props?: any;
@@ -21,8 +21,8 @@ export declare const create: (args?: string | {
21
21
  html?: any;
22
22
  }) => any;
23
23
  /**
24
- * Create element with args append to target
25
- * @param map Map of key:selector, value:args
26
- */
24
+ * Create element with args append to target
25
+ * @param map Map of key:selector, value:args
26
+ */
27
27
  export declare const retag: (map: any) => void;
28
28
  //# sourceMappingURL=with.d.ts.map
package/with.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../src/with.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,SAAU,MAAM,YAAY,wBAAwB,mBAAmB,wBAAwB,SAOjH,CAAC;AACF;;;;EAIE;AACF,eAAO,MAAM,MAAM,YAAY,MAAM,GAAG,MAAM,SAAiB,MAAM,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC;CAAE,SAK7H,CAAC;AACF;;;EAGE;AACF,eAAO,MAAM,MAAM,UAAU,MAAM,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC;CAAE,QAqB3F,CAAC;AACF;;;EAGE;AACF,eAAO,MAAM,KAAK,oBAuBjB,CAAC"}
1
+ {"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../src/with.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,SAAU,MAAM,YAAY,wBAAwB,mBAAmB,wBAAwB,SAOjH,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,MAAM,YAAY,MAAM,GAAG,MAAM,SAAiB,MAAM,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,SAK5H,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,MAAM,UAAU,MAAM,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,QAqB1F,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,KAAK,oBAqBjB,CAAC"}
package/with.js CHANGED
@@ -9,10 +9,10 @@ export const define = (name, options) => (constructor) => {
9
9
  }
10
10
  };
11
11
  /**
12
- * Create element with args append to target
13
- * @param target Appended target element or use document.querySelector(target) or document.body
14
- * @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
15
- */
12
+ * Create element with args append to target
13
+ * @param target Appended target element or use document.querySelector(target) or document.body
14
+ * @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
15
+ */
16
16
  export const append = (target = "body", args = "div") => {
17
17
  if (!args)
18
18
  return;
@@ -21,9 +21,9 @@ export const append = (target = "body", args = "div") => {
21
21
  target.appendChild(element);
22
22
  };
23
23
  /**
24
- * Create element from args
25
- * @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
26
- */
24
+ * Create element from args
25
+ * @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
26
+ */
27
27
  export const create = (args = "div") => {
28
28
  const tag = (typeof args === "string" ? args : args === null || args === void 0 ? void 0 : args.tag) || "div";
29
29
  const { props, children, html } = args || {};
@@ -34,12 +34,11 @@ export const create = (args = "div") => {
34
34
  element.setAttribute(prop, props[prop] === true ? "" : props[prop]);
35
35
  });
36
36
  }
37
- ;
38
37
  if (html)
39
38
  element.innerHTML += html;
40
39
  if (children) {
41
- if (children.length) /* Iterators exist */ {
42
- [...children].forEach((child) => {
40
+ if (children.length) {
41
+ /* Iterators exist */ [...children].forEach((child) => {
43
42
  typeof child === "string" ? element.appendChild(document.createTextNode(child)) : element.appendChild(child);
44
43
  });
45
44
  }
@@ -50,17 +49,17 @@ export const create = (args = "div") => {
50
49
  return element;
51
50
  };
52
51
  /**
53
- * Create element with args append to target
54
- * @param map Map of key:selector, value:args
55
- */
52
+ * Create element with args append to target
53
+ * @param map Map of key:selector, value:args
54
+ */
56
55
  export const retag = (map) => {
57
56
  if (!map)
58
57
  return;
59
- for (let [key, args] of map) {
58
+ for (const [key, args] of map) {
60
59
  for (let i = document.querySelectorAll(key).length - 1; i >= 0; i--) {
61
60
  const element = document.querySelectorAll(key)[i];
62
61
  const tag = (typeof args === "string" ? args : args === null || args === void 0 ? void 0 : args.tag) || "div";
63
- let props = args.props || {};
62
+ const props = args.props || {};
64
63
  const { children, html = "" } = args;
65
64
  [...element.attributes].reduce((acc, attr) => {
66
65
  acc[attr.name] = attr.args;
@@ -1,10 +0,0 @@
1
- import * as X from "../../effect/index.js";
2
- export declare const OVText: import("@lit-labs/react").ReactWebComponent<X.OVText, {}>;
3
- export declare const OVPort: import("@lit-labs/react").ReactWebComponent<X.OVPort, {}>;
4
- export declare const OVButton: import("@lit-labs/react").ReactWebComponent<X.OVButton, {}>;
5
- export declare const ROPort: import("@lit-labs/react").ReactWebComponent<X.ROPort, {}>;
6
- export declare const TWText: import("@lit-labs/react").ReactWebComponent<X.TWText, {
7
- onChange: string;
8
- onDone: string;
9
- }>;
10
- //# sourceMappingURL=effect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"effect.d.ts","sourceRoot":"","sources":["../../../src/view/react/effect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAE3C,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,MAAM;;;EAQjB,CAAC"}