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
@@ -4,8 +4,8 @@ export declare class SuperAnchor extends STD {
4
4
  target: string;
5
5
  arrow: "" | "delta" | "arrow" | "angle" | "hand";
6
6
  static styles: import("lit").CSSResult;
7
- render(): import("lit").TemplateResult<1>;
8
- _arrowSwitcher(): import("lit").TemplateResult<1>;
7
+ render(): import("lit-html").TemplateResult<1>;
8
+ _arrowSwitcher(): import("lit-html").TemplateResult<1>;
9
9
  }
10
10
  export default SuperAnchor;
11
11
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"super-a.d.ts","sourceRoot":"","sources":["../../src/items/super-a.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAa;IACzB,MAAM,SAAW;IACjB,KAAK,EAAE,EAAE,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAM;IAClE,MAAM,CAAC,MAAM,0BAuCV;IACH,MAAM;IAMN,cAAc;CAYf;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,WAAW,CAAC;KACxB;CACF"}
1
+ {"version":3,"file":"super-a.d.ts","sourceRoot":"","sources":["../../src/items/super-a.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,WAAY,SAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAa;IACzB,MAAM,SAAW;IACjB,KAAK,EAAE,EAAE,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAM;IAClE,MAAM,CAAC,MAAM,0BA4CX;IACF,MAAM;IAMN,cAAc;CAkBf;AACD,eAAe,WAAW,CAAC;AAC3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,WAAW,CAAC;KACxB;CACF"}
package/items/super-a.js CHANGED
@@ -14,64 +14,75 @@ let SuperAnchor = class SuperAnchor extends STD {
14
14
  this.arrow = "";
15
15
  }
16
16
  render() {
17
- return html `<a href=${ifDefined(this.href)} target=${this.target}>
18
- <slot name="pre"></slot><slot></slot><slot name="suf"></slot>
19
- <i style="font-style:normal"><slot name="icon"></slot>${this._arrowSwitcher()}</i>
20
- </a>`;
17
+ return html `<a href=${ifDefined(this.href)} target=${this.target}>
18
+ <slot name="pre"></slot><slot></slot><slot name="suf"></slot>
19
+ <i style="font-style:normal"><slot name="icon"></slot>${this._arrowSwitcher()}</i>
20
+ </a>`;
21
21
  }
22
22
  _arrowSwitcher() {
23
23
  switch (this.arrow) {
24
24
  case "delta":
25
- return html `<svg viewBox="0 0 48 48" fill="none"><path d="M20 12L32 24L20 36V12Z" fill="currentColor" stroke="currentColor" stroke-width="3" stroke-linejoin="round"/></svg>`;
25
+ return html `<svg viewBox="0 0 48 48" fill="none"><path d="M20 12L32 24L20 36V12Z" fill="currentColor" stroke="currentColor" stroke-width="3" stroke-linejoin="round" /></svg>`;
26
26
  case "arrow":
27
- return html `<svg width="38" height="38" viewBox="0 0 48 48" fill="none" ><path d="M36 24.0083H12" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M24 12L36 24L24 36" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
27
+ return html `<svg width="38" height="38" viewBox="0 0 48 48" fill="none">
28
+ <path d="M36 24.0083H12" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
29
+ <path d="M24 12L36 24L24 36" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
30
+ </svg>`;
28
31
  case "angle":
29
- return 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>`;
32
+ return 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>`;
30
33
  case "hand":
31
- return html `<svg viewBox="-10 -5 64 58" fill="none"><path d="M10.0264 40.9736L10.0264 18.9736H4.02637L4.02637 40.9736H10.0264Z" fill="currentColor" stroke="currentColor" stroke-width="3" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0264 18.9738C17.1493 12.4548 21.2772 8.71418 22.4102 7.75192C24.1096 6.30854 26.0304 6.91463 26.0304 10.5268C26.0304 14.139 20.7449 16.2222 20.7449 18.9738C20.7415 18.9902 27.5007 18.9913 41.0223 18.9771C42.6797 18.9753 44.0246 20.3174 44.0264 21.9748L44.0264 21.9779C44.0264 23.6371 42.6814 24.9821 41.0222 24.9821H33.0128C31.8039 32.9549 31.137 37.2894 31.012 37.9858C30.8244 39.0303 29.8274 40.9738 26.9583 40.9738C25.0456 40.9738 20.0683 40.9738 10.0264 40.9738V18.9738Z" stroke="currentColor" stroke-width="3" stroke-linejoin="round"/></svg>`;
34
+ return html `<svg viewBox="-10 -5 64 58" fill="none">
35
+ <path d="M10.0264 40.9736L10.0264 18.9736H4.02637L4.02637 40.9736H10.0264Z" fill="currentColor" stroke="currentColor" stroke-width="3" stroke-linejoin="round" />
36
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.0264 18.9738C17.1493 12.4548 21.2772 8.71418 22.4102 7.75192C24.1096 6.30854 26.0304 6.91463 26.0304 10.5268C26.0304 14.139 20.7449 16.2222 20.7449 18.9738C20.7415 18.9902 27.5007 18.9913 41.0223 18.9771C42.6797 18.9753 44.0246 20.3174 44.0264 21.9748L44.0264 21.9779C44.0264 23.6371 42.6814 24.9821 41.0222 24.9821H33.0128C31.8039 32.9549 31.137 37.2894 31.012 37.9858C30.8244 39.0303 29.8274 40.9738 26.9583 40.9738C25.0456 40.9738 20.0683 40.9738 10.0264 40.9738V18.9738Z" stroke="currentColor" stroke-width="3" stroke-linejoin="round" />
37
+ </svg>`;
32
38
  }
33
39
  }
34
40
  };
35
- SuperAnchor.styles = css `
36
- :host{
37
- display: inline-block;
38
- color:currentColor;
39
- text-decoration: none;
40
- cursor: default;
41
- }
42
- :host([href]){
43
- cursor: pointer;
44
- }
45
- a{
46
- width: 100%;
47
- display: flex;
48
- color: inherit;
49
- text-decoration: inherit;
50
- justify-content: space-between;
51
- align-items: center;
52
- }
53
- i{
54
- display: inline-flex;
55
- border-radius: 20%;
56
- }
57
- i>svg{
58
- width: 1em;
59
- height: 1em;
60
- border-radius: inherit
61
- }
62
- :host(:hover) i{
63
- animation: arrow .3s linear;
64
- }
65
- i:hover{
66
- background-color: rgb(0 0 0 / .075);
67
- }
68
- @keyframes arrow{
69
- from {transform: translateX(0)}
70
- 50%{
71
- transform:translateX(.05em);
72
- }
73
- to {transform: translateX(0)}
74
- }`;
41
+ SuperAnchor.styles = css `
42
+ :host {
43
+ display: inline-block;
44
+ color: currentColor;
45
+ text-decoration: none;
46
+ cursor: default;
47
+ }
48
+ :host([href]) {
49
+ cursor: pointer;
50
+ }
51
+ a {
52
+ width: 100%;
53
+ display: flex;
54
+ color: inherit;
55
+ text-decoration: inherit;
56
+ justify-content: space-between;
57
+ align-items: center;
58
+ }
59
+ i {
60
+ display: inline-flex;
61
+ border-radius: 20%;
62
+ }
63
+ i > svg {
64
+ width: 1em;
65
+ height: 1em;
66
+ border-radius: inherit;
67
+ }
68
+ :host(:hover) i {
69
+ animation: arrow 0.3s linear;
70
+ }
71
+ i:hover {
72
+ background-color: rgb(0 0 0 / 0.075);
73
+ }
74
+ @keyframes arrow {
75
+ from {
76
+ transform: translateX(0);
77
+ }
78
+ 50% {
79
+ transform: translateX(0.05em);
80
+ }
81
+ to {
82
+ transform: translateX(0);
83
+ }
84
+ }
85
+ `;
75
86
  __decorate([
76
87
  property()
77
88
  ], SuperAnchor.prototype, "href", void 0);
@@ -5,7 +5,7 @@ export declare class DivLine extends STD {
5
5
  suf: string;
6
6
  v: boolean;
7
7
  b: string;
8
- render(): import("lit").TemplateResult<1>;
8
+ render(): import("lit-html").TemplateResult<1>;
9
9
  }
10
10
  export default DivLine;
11
11
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"div-line.d.ts","sourceRoot":"","sources":["../../src/layout/div-line.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,0BAuBR;IACO,GAAG,SAAU;IACb,GAAG,SAAU;IACI,CAAC,UAAS;IAC3B,CAAC,SAAW;IACxB,MAAM;CAOP;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
1
+ {"version":3,"file":"div-line.d.ts","sourceRoot":"","sources":["../../src/layout/div-line.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,0BAyBX;IACU,GAAG,SAAU;IACb,GAAG,SAAU;IACI,CAAC,UAAS;IAC3B,CAAC,SAAW;IACxB,MAAM;CAWP;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
@@ -15,37 +15,43 @@ let DivLine = class DivLine extends STD {
15
15
  this.b = "2.2px";
16
16
  }
17
17
  render() {
18
- var hrstyle = `.before{height:${this.b};max-width:${this.pre}}.after{height:${this.b};max-width:${this.suf}}.v .before{width:${this.b};max-height:${this.pre}}.v .after{width:${this.b};max-height:${this.suf}}`;
19
- return html `<div class=${this.v ? "v" : "h"}>
20
- <hr class="before"/><slot></slot><hr class="after"/>
21
- <style>${hrstyle}</style>
22
- </div>`;
18
+ const hrstyle = `.before{height:${this.b};max-width:${this.pre}}.after{height:${this.b};max-width:${this.suf}}.v .before{width:${this.b};max-height:${this.pre}}.v .after{width:${this.b};max-height:${this.suf}}`;
19
+ return html `<div class=${this.v ? "v" : "h"}>
20
+ <hr class="before" />
21
+ <slot></slot>
22
+ <hr class="after" />
23
+ <style>
24
+ ${hrstyle}
25
+ </style>
26
+ </div>`;
23
27
  }
24
28
  };
25
- DivLine.styles = css `:host{
26
- display: block;
27
- color: currentColor;
28
- background: none;
29
- }
30
- div {
31
- display: flex;
32
- align-items: center;
33
- border-radius:inherit;
34
- width: 100%;
35
- height: 100%;
36
- }
37
- hr {
38
- border-radius:inherit;
39
- margin: 0;
40
- border: 0;
41
- flex: 1;
42
- background: currentColor;
43
- }
44
- .v {
45
- height: 100%;
46
- display: flex;
47
- flex-direction: column;
48
- }`;
29
+ DivLine.styles = css `
30
+ :host {
31
+ display: block;
32
+ color: currentColor;
33
+ background: none;
34
+ }
35
+ div {
36
+ display: flex;
37
+ align-items: center;
38
+ border-radius: inherit;
39
+ width: 100%;
40
+ height: 100%;
41
+ }
42
+ hr {
43
+ border-radius: inherit;
44
+ margin: 0;
45
+ border: 0;
46
+ flex: 1;
47
+ background: currentColor;
48
+ }
49
+ .v {
50
+ height: 100%;
51
+ display: flex;
52
+ flex-direction: column;
53
+ }
54
+ `;
49
55
  __decorate([
50
56
  property()
51
57
  ], DivLine.prototype, "pre", void 0);
@@ -5,7 +5,7 @@ export declare class DragBox extends STD {
5
5
  static styles: import("lit").CSSResult;
6
6
  get offsetsWidth(): number;
7
7
  get offsetsHeight(): number;
8
- render(): import("lit").TemplateResult<1>;
8
+ render(): import("lit-html").TemplateResult<1>;
9
9
  firstUpdated(): void;
10
10
  drag: boolean;
11
11
  t: number;
@@ -1 +1 @@
1
- {"version":3,"file":"drag-box.d.ts","sourceRoot":"","sources":["../../src/layout/drag-box.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAClB,CAAC,SAAU;IACX,CAAC,SAAU;IACvB,MAAM,CAAC,MAAM,0BAGV;IACH,IAAI,YAAY,WAEf;IACD,IAAI,aAAa,WAEhB;IACD,MAAM;IAMN,YAAY;IAIZ,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,CAAC,EAAE,UAAU;IAQxB,QAAQ;IAIR,WAAW,CAAC,CAAC,EAAE,UAAU;IAsBzB,KAAK;CAUN;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
1
+ {"version":3,"file":"drag-box.d.ts","sourceRoot":"","sources":["../../src/layout/drag-box.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAClB,CAAC,SAAU;IACX,CAAC,SAAU;IACvB,MAAM,CAAC,MAAM,0BAKX;IACF,IAAI,YAAY,WAEf;IACD,IAAI,aAAa,WAEhB;IACD,MAAM;IAKN,YAAY;IAIZ,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,CAAC,EAAE,UAAU;IAQxB,QAAQ;IAIR,WAAW,CAAC,CAAC,EAAE,UAAU;IAmBzB,KAAK;CAUN;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
@@ -21,9 +21,8 @@ let DragBox = class DragBox extends STD {
21
21
  return (_b = (_a = this.offsetParent) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : document.body.offsetHeight;
22
22
  }
23
23
  render() {
24
- return html `
25
- <div @mousedown=${this._startDrag} @mouseup=${this._endDrag} >
26
- <slot></slot>
24
+ return html ` <div @mousedown=${this._startDrag} @mouseup=${this._endDrag}>
25
+ <slot></slot>
27
26
  </div>`;
28
27
  }
29
28
  firstUpdated() {
@@ -45,8 +44,8 @@ let DragBox = class DragBox extends STD {
45
44
  _handleDrag(e) {
46
45
  if (!this.drag)
47
46
  return;
48
- var nl = e.clientX - (this.cx - this.l);
49
- var nt = e.clientY - (this.cy - this.t);
47
+ const nl = e.clientX - (this.cx - this.l);
48
+ const nt = e.clientY - (this.cy - this.t);
50
49
  if (nl < 0) {
51
50
  this.style.left = "0";
52
51
  }
@@ -77,10 +76,12 @@ let DragBox = class DragBox extends STD {
77
76
  }
78
77
  }
79
78
  };
80
- DragBox.styles = css `:host{
81
- position:relative;
82
- display: inline-flex;
83
- }`;
79
+ DragBox.styles = css `
80
+ :host {
81
+ position: relative;
82
+ display: inline-flex;
83
+ }
84
+ `;
84
85
  __decorate([
85
86
  property()
86
87
  ], DragBox.prototype, "x", void 0);
@@ -1,9 +1,9 @@
1
- import STD from './std.js';
1
+ import STD from "./std.js";
2
2
  export declare class FlexFlow extends STD {
3
3
  flexflow: string;
4
4
  m: string;
5
5
  static styles: import("lit").CSSResult;
6
- render(): import("lit").TemplateResult<1>;
6
+ render(): import("lit-html").TemplateResult<1>;
7
7
  }
8
8
  export default FlexFlow;
9
9
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"flex-flow.d.ts","sourceRoot":"","sources":["../../src/layout/flex-flow.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,QAAS,SAAQ,GAAG;IACnB,QAAQ,SAA8B;IACtC,CAAC,SAAW;IACxB,MAAM,CAAC,MAAM,0BAEV;IACH,MAAM;CAKP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
1
+ {"version":3,"file":"flex-flow.d.ts","sourceRoot":"","sources":["../../src/layout/flex-flow.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,QAAS,SAAQ,GAAG;IACnB,QAAQ,SAA8B;IACtC,CAAC,SAAW;IACxB,MAAM,CAAC,MAAM,0BAIX;IACF,MAAM;CAQP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -4,8 +4,8 @@ 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 } from '../deps.js';
8
- import STD from './std.js';
7
+ import { html, css, property, define } from "../deps.js";
8
+ import STD from "./std.js";
9
9
  let FlexFlow = class FlexFlow extends STD {
10
10
  constructor() {
11
11
  super(...arguments);
@@ -15,12 +15,17 @@ let FlexFlow = class FlexFlow extends STD {
15
15
  render() {
16
16
  const flexflow = this.flexflow.split(/\s+/);
17
17
  const style = `:host{flex-direction:${flexflow[0] || "row"};flex-wrap:${flexflow[1] || "nowrap"};}@media(max-width: ${this.m || "720px"}){:host{flex-direction:${flexflow[2] || flexflow[0] || "colom"};flex-wrap:${flexflow[3] || flexflow[1] || "nowrap"}}`;
18
- return html `<slot></slot><style>${style}</style>`;
18
+ return html `<slot></slot>
19
+ <style>
20
+ ${style}
21
+ </style>`;
19
22
  }
20
23
  };
21
- FlexFlow.styles = css `:host {
22
- display: flex !important;
23
- }`;
24
+ FlexFlow.styles = css `
25
+ :host {
26
+ display: flex !important;
27
+ }
28
+ `;
24
29
  __decorate([
25
30
  property()
26
31
  ], FlexFlow.prototype, "flexflow", void 0);
@@ -28,7 +33,7 @@ __decorate([
28
33
  property()
29
34
  ], FlexFlow.prototype, "m", void 0);
30
35
  FlexFlow = __decorate([
31
- define('flex-flow')
36
+ define("flex-flow")
32
37
  ], FlexFlow);
33
38
  export { FlexFlow };
34
39
  export default FlexFlow;
@@ -3,7 +3,7 @@ export declare class NavAside extends STD {
3
3
  m: string;
4
4
  position: string;
5
5
  static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
6
- render(): import("lit").TemplateResult<1>;
6
+ render(): import("lit-html").TemplateResult<1>;
7
7
  }
8
8
  export default NavAside;
9
9
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"nav-aside.d.ts","sourceRoot":"","sources":["../../src/layout/nav-aside.ts"],"names":[],"mappings":"AACA,OAAO,GAAiB,MAAM,UAAU,CAAC;AACzC,qBACa,QAAS,SAAQ,GAAG;IACnB,CAAC,SAAW;IACZ,QAAQ,SAAkB;IACtC,MAAM,CAAC,MAAM,8DAoBX;IACF,MAAM;CAOP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
1
+ {"version":3,"file":"nav-aside.d.ts","sourceRoot":"","sources":["../../src/layout/nav-aside.ts"],"names":[],"mappings":"AACA,OAAO,GAAiB,MAAM,UAAU,CAAC;AACzC,qBACa,QAAS,SAAQ,GAAG;IACnB,CAAC,SAAW;IACZ,QAAQ,SAAkB;IACtC,MAAM,CAAC,MAAM,8DAwBX;IACF,MAAM;CAUP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -13,33 +13,40 @@ let NavAside = class NavAside extends STD {
13
13
  this.position = "sticky fixed";
14
14
  }
15
15
  render() {
16
- var p = this.position.split(" ")[0] || "sticky";
17
- var pm = this.position.split(" ")[1] || "fixed";
18
- var m = this.m || "720px";
19
- var styled = `:host{position:${p} !important;}@media(min-width:${m}){:host{position:${pm} !important;width:fit-content !important;height:100% !important;}nav{display: flex !important;justify-content: space-between !important;flex-direction: column !important;align-content: flex-start !important;align-items: stretch !important;}}`;
20
- return html `<nav><slot></slot></nav><style>${styled}</style>`;
16
+ const p = this.position.split(" ")[0] || "sticky";
17
+ const pm = this.position.split(" ")[1] || "fixed";
18
+ const m = this.m || "720px";
19
+ const styled = `:host{position:${p} !important;}@media(min-width:${m}){:host{position:${pm} !important;width:fit-content !important;height:100% !important;}nav{display: flex !important;justify-content: space-between !important;flex-direction: column !important;align-content: flex-start !important;align-items: stretch !important;}}`;
20
+ return html `<nav><slot></slot></nav>
21
+ <style>
22
+ ${styled}
23
+ </style>`;
21
24
  }
22
25
  };
23
- NavAside.styles = [STD.styles, css `:host{
24
- ${navstyle}
25
- color: var(${cssvar}--nav-text);
26
- background: var(${cssvar}--nav-background);
27
- top: 0;
28
- left: 0;
29
- bottom: 0;
30
- width: 100%;
31
- height: fit-content;
32
- display: flex;
33
- }
34
- nav {
35
- height: inherit;
36
- width: inherit;
37
- display: flex;
38
- flex-direction: row;
39
- align-items: flex-start;
40
- justify-content: space-between;
41
- box-sizing: border-box;
42
- }`
26
+ NavAside.styles = [
27
+ STD.styles,
28
+ navstyle,
29
+ css `
30
+ :host {
31
+ color: var(${cssvar}--nav-text);
32
+ background: var(${cssvar}--nav-background);
33
+ top: 0;
34
+ left: 0;
35
+ bottom: 0;
36
+ width: 100%;
37
+ height: fit-content;
38
+ display: flex;
39
+ }
40
+ nav {
41
+ height: inherit;
42
+ width: inherit;
43
+ display: flex;
44
+ flex-direction: row;
45
+ align-items: flex-start;
46
+ justify-content: space-between;
47
+ box-sizing: border-box;
48
+ }
49
+ `,
43
50
  ];
44
51
  __decorate([
45
52
  property()
@@ -5,7 +5,7 @@ export declare class NavLayout extends STD {
5
5
  host: string;
6
6
  subhead: string;
7
7
  set: 0 | 1 | 2;
8
- render(): import("lit").TemplateResult<1>;
8
+ render(): import("lit-html").TemplateResult<1>;
9
9
  opt(): any[];
10
10
  }
11
11
  export default NavLayout;
@@ -1 +1 @@
1
- {"version":3,"file":"nav-layout.d.ts","sourceRoot":"","sources":["../../src/layout/nav-layout.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,GAAiB,MAAM,UAAU,CAAC;AACzC,qBACa,SAAU,SAAQ,GAAG;IAChC,MAAM,CAAC,MAAM,8DAyFV;IACS,IAAI,SAAM;IACV,OAAO,SAAM;IACG,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAK;IAC/C,MAAM;IAcN,GAAG;CAOJ;AAKD,eAAe,SAAS,CAAC;AACzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
1
+ {"version":3,"file":"nav-layout.d.ts","sourceRoot":"","sources":["../../src/layout/nav-layout.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,GAAiB,MAAM,UAAU,CAAC;AACzC,qBACa,SAAU,SAAQ,GAAG;IAChC,MAAM,CAAC,MAAM,8DAmGX;IACU,IAAI,SAAM;IACV,OAAO,SAAM;IACG,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAK;IAC/C,MAAM;IAgBN,GAAG;CAOJ;AAcD,eAAe,SAAS,CAAC;AACzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}