@benev/web 0.1.3 → 0.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 (128) hide show
  1. package/README.md +5 -2
  2. package/package.json +10 -10
  3. package/s/css/parts/common.csstext.ts +6 -3
  4. package/s/css/parts/vars.csstext.ts +2 -0
  5. package/s/dom/duplexes/account/view.ts +18 -0
  6. package/s/dom/duplexes/footer/view.ts +13 -0
  7. package/s/dom/duplexes/header/view.ts +25 -0
  8. package/s/dom/{loader → duplexes/loader}/loader.ts +1 -1
  9. package/s/dom/{loader → duplexes/loader}/view.ts +5 -4
  10. package/s/dom/{menu → duplexes/menu}/style.css.ts +7 -3
  11. package/s/dom/{menu → duplexes/menu}/utils/on-keypress.ts +9 -5
  12. package/s/dom/{menu → duplexes/menu}/view.ts +7 -6
  13. package/s/dom/views/dashboard/style.css.ts +49 -0
  14. package/s/dom/views/dashboard/view.ts +55 -0
  15. package/s/index.html.ts +1 -3
  16. package/s/index.ts +9 -4
  17. package/s/main.bundle.ts +26 -4
  18. package/s/vitals/setup.ts +17 -17
  19. package/s/vitals/shell.ts +3 -1
  20. package/x/css/parts/common.csstext.js +6 -3
  21. package/x/css/parts/common.csstext.js.map +1 -1
  22. package/x/css/parts/vars.csstext.js +2 -0
  23. package/x/css/parts/vars.csstext.js.map +1 -1
  24. package/x/dom/duplexes/account/account.js.map +1 -0
  25. package/x/dom/duplexes/account/style.css.js.map +1 -0
  26. package/x/dom/duplexes/account/view.d.ts +2 -0
  27. package/x/dom/duplexes/account/view.js +13 -0
  28. package/x/dom/duplexes/account/view.js.map +1 -0
  29. package/x/dom/duplexes/footer/style.css.js.map +1 -0
  30. package/x/dom/duplexes/footer/view.d.ts +1 -0
  31. package/x/dom/duplexes/footer/view.js +10 -0
  32. package/x/dom/duplexes/footer/view.js.map +1 -0
  33. package/x/dom/duplexes/header/style.css.js.map +1 -0
  34. package/x/dom/duplexes/header/view.d.ts +2 -0
  35. package/x/dom/duplexes/header/view.js +19 -0
  36. package/x/dom/duplexes/header/view.js.map +1 -0
  37. package/x/dom/{loader → duplexes/loader}/loader.js +1 -1
  38. package/x/dom/duplexes/loader/loader.js.map +1 -0
  39. package/x/dom/duplexes/loader/style.css.js.map +1 -0
  40. package/x/dom/duplexes/loader/view.d.ts +1 -0
  41. package/x/dom/duplexes/loader/view.js +20 -0
  42. package/x/dom/duplexes/loader/view.js.map +1 -0
  43. package/x/dom/{menu → duplexes/menu}/style.css.js +7 -3
  44. package/x/dom/duplexes/menu/style.css.js.map +1 -0
  45. package/x/dom/duplexes/menu/utils/click-backdrop.js.map +1 -0
  46. package/x/dom/{menu → duplexes/menu}/utils/on-keypress.js +4 -4
  47. package/x/dom/duplexes/menu/utils/on-keypress.js.map +1 -0
  48. package/x/dom/duplexes/menu/utils/use-after-first-render.js.map +1 -0
  49. package/x/dom/duplexes/menu/view.d.ts +2 -0
  50. package/x/dom/{menu → duplexes/menu}/view.js +6 -5
  51. package/x/dom/duplexes/menu/view.js.map +1 -0
  52. package/x/dom/views/dashboard/style.css.d.ts +2 -0
  53. package/x/dom/views/dashboard/style.css.js +48 -0
  54. package/x/dom/views/dashboard/style.css.js.map +1 -0
  55. package/x/dom/views/dashboard/view.d.ts +10 -0
  56. package/x/dom/views/dashboard/view.js +39 -0
  57. package/x/dom/views/dashboard/view.js.map +1 -0
  58. package/x/index.d.ts +8 -4
  59. package/x/index.html +10 -7
  60. package/x/index.html.js +1 -3
  61. package/x/index.html.js.map +1 -1
  62. package/x/index.js +8 -4
  63. package/x/index.js.map +1 -1
  64. package/x/main.bundle.js +23 -4
  65. package/x/main.bundle.js.map +1 -1
  66. package/x/main.bundle.min.js +279 -198
  67. package/x/main.bundle.min.js.map +4 -4
  68. package/x/vitals/setup.d.ts +3 -3
  69. package/x/vitals/setup.js +15 -17
  70. package/x/vitals/setup.js.map +1 -1
  71. package/x/vitals/shell.d.ts +1 -0
  72. package/x/vitals/shell.js +3 -1
  73. package/x/vitals/shell.js.map +1 -1
  74. package/s/dom/account/view.ts +0 -16
  75. package/s/dom/footer/view.ts +0 -13
  76. package/s/dom/header/view.ts +0 -25
  77. package/s/dom/tools/shadow-duplex.ts +0 -17
  78. package/x/dom/account/account.js.map +0 -1
  79. package/x/dom/account/style.css.js.map +0 -1
  80. package/x/dom/account/view.d.ts +0 -2
  81. package/x/dom/account/view.js +0 -11
  82. package/x/dom/account/view.js.map +0 -1
  83. package/x/dom/footer/style.css.js.map +0 -1
  84. package/x/dom/footer/view.d.ts +0 -1
  85. package/x/dom/footer/view.js +0 -10
  86. package/x/dom/footer/view.js.map +0 -1
  87. package/x/dom/header/style.css.js.map +0 -1
  88. package/x/dom/header/view.d.ts +0 -2
  89. package/x/dom/header/view.js +0 -19
  90. package/x/dom/header/view.js.map +0 -1
  91. package/x/dom/loader/loader.js.map +0 -1
  92. package/x/dom/loader/style.css.js.map +0 -1
  93. package/x/dom/loader/view.d.ts +0 -1
  94. package/x/dom/loader/view.js +0 -19
  95. package/x/dom/loader/view.js.map +0 -1
  96. package/x/dom/menu/style.css.js.map +0 -1
  97. package/x/dom/menu/utils/click-backdrop.js.map +0 -1
  98. package/x/dom/menu/utils/on-keypress.js.map +0 -1
  99. package/x/dom/menu/utils/use-after-first-render.js.map +0 -1
  100. package/x/dom/menu/view.d.ts +0 -2
  101. package/x/dom/menu/view.js.map +0 -1
  102. package/x/dom/tools/shadow-duplex.d.ts +0 -2
  103. package/x/dom/tools/shadow-duplex.js +0 -10
  104. package/x/dom/tools/shadow-duplex.js.map +0 -1
  105. /package/s/dom/{account → duplexes/account}/account.ts +0 -0
  106. /package/s/dom/{account → duplexes/account}/style.css.ts +0 -0
  107. /package/s/dom/{footer → duplexes/footer}/style.css.ts +0 -0
  108. /package/s/dom/{header → duplexes/header}/style.css.ts +0 -0
  109. /package/s/dom/{loader → duplexes/loader}/style.css.ts +0 -0
  110. /package/s/dom/{menu → duplexes/menu}/utils/click-backdrop.ts +0 -0
  111. /package/s/dom/{menu → duplexes/menu}/utils/use-after-first-render.ts +0 -0
  112. /package/x/dom/{account → duplexes/account}/account.d.ts +0 -0
  113. /package/x/dom/{account → duplexes/account}/account.js +0 -0
  114. /package/x/dom/{account → duplexes/account}/style.css.d.ts +0 -0
  115. /package/x/dom/{account → duplexes/account}/style.css.js +0 -0
  116. /package/x/dom/{footer → duplexes/footer}/style.css.d.ts +0 -0
  117. /package/x/dom/{footer → duplexes/footer}/style.css.js +0 -0
  118. /package/x/dom/{header → duplexes/header}/style.css.d.ts +0 -0
  119. /package/x/dom/{header → duplexes/header}/style.css.js +0 -0
  120. /package/x/dom/{loader → duplexes/loader}/loader.d.ts +0 -0
  121. /package/x/dom/{loader → duplexes/loader}/style.css.d.ts +0 -0
  122. /package/x/dom/{loader → duplexes/loader}/style.css.js +0 -0
  123. /package/x/dom/{menu → duplexes/menu}/style.css.d.ts +0 -0
  124. /package/x/dom/{menu → duplexes/menu}/utils/click-backdrop.d.ts +0 -0
  125. /package/x/dom/{menu → duplexes/menu}/utils/click-backdrop.js +0 -0
  126. /package/x/dom/{menu → duplexes/menu}/utils/on-keypress.d.ts +0 -0
  127. /package/x/dom/{menu → duplexes/menu}/utils/use-after-first-render.d.ts +0 -0
  128. /package/x/dom/{menu → duplexes/menu}/utils/use-after-first-render.js +0 -0
@@ -1,14 +1,14 @@
1
1
  import { Shell } from "./shell.js";
2
- import { Account } from "../dom/account/account.js";
2
+ import { Account } from "../dom/duplexes/account/account.js";
3
+ export type Benev = Awaited<ReturnType<typeof setupBenev>>;
3
4
  export declare function setupBenev(): Promise<{
4
- account: Account;
5
5
  shell: Shell;
6
+ account: Account;
6
7
  elements: {
7
8
  BenevLoader: new () => HTMLElement;
8
9
  BenevFooter: new () => HTMLElement;
9
10
  BenevMenu: new () => HTMLElement;
10
11
  BenevHeader: new () => HTMLElement;
11
12
  BenevAccount: new () => HTMLElement;
12
- BenevAuth: new () => HTMLElement;
13
13
  };
14
14
  }>;
package/x/vitals/setup.js CHANGED
@@ -1,24 +1,22 @@
1
- import { Auth, makeAuthWidget } from "@e280/authlocal";
1
+ import { Auth } from "@e280/authlocal";
2
2
  import { Shell } from "./shell.js";
3
- import { Account } from "../dom/account/account.js";
4
- import { BenevLoader } from "../dom/loader/view.js";
5
- import { makeBenevMenu } from "../dom/menu/view.js";
6
- import { makeBenevFooter } from "../dom/footer/view.js";
7
- import { makeBenevHeader } from "../dom/header/view.js";
8
- import { makeBenevAccount } from "../dom/account/view.js";
3
+ import { Account } from "../dom/duplexes/account/account.js";
4
+ import { makeBenevMenuElement } from "../dom/duplexes/menu/view.js";
5
+ import { makeBenevLoaderElement } from "../dom/duplexes/loader/view.js";
6
+ import { makeBenevFooterElement } from "../dom/duplexes/footer/view.js";
7
+ import { makeBenevHeaderElement } from "../dom/duplexes/header/view.js";
8
+ import { makeBenevAccountElement } from "../dom/duplexes/account/view.js";
9
9
  export async function setupBenev() {
10
10
  const shell = new Shell();
11
- const auth = new Auth();
12
- const account = new Account(auth);
11
+ const account = new Account(new Auth());
13
12
  const elements = {
14
- BenevLoader,
15
- BenevFooter: makeBenevFooter(),
16
- BenevMenu: makeBenevMenu(shell),
17
- BenevHeader: makeBenevHeader(shell),
18
- BenevAccount: makeBenevAccount(account),
19
- BenevAuth: makeAuthWidget(account.auth),
13
+ BenevLoader: makeBenevLoaderElement(),
14
+ BenevFooter: makeBenevFooterElement(),
15
+ BenevMenu: makeBenevMenuElement(shell),
16
+ BenevHeader: makeBenevHeaderElement(shell),
17
+ BenevAccount: makeBenevAccountElement(account),
20
18
  };
21
- await auth.remember();
22
- return { account, shell, elements };
19
+ await account.auth.remember();
20
+ return { shell, account, elements };
23
21
  }
24
22
  //# sourceMappingURL=setup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup.js","sourceRoot":"","sources":["../../s/vitals/setup.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAE,cAAc,EAAC,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAC,KAAK,EAAC,MA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AO,EAAC,sBAAsB,EAAC,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAC,sBAAsB,EAAC,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAC,uBAAuB,EAAC,MAAM,iCAAiC,CAAA;AAIvE,MAAM,CAAC,KAAK,UAAU,UAAU;IAC/B,MAAM,KAAK,GAAG,IAAI,KAAK,EAAE,CAAA;IACzB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAA;IAEvC,MAAM,QAAQ,GAAG;QAChB,WAAW,EAAE,sBAAsB,EAAE;QACrC,WAAW,EAAE,sBAAsB,EAAE;QACrC,SAAS,EAAE,oBAAoB,CAAC,KAAK,CAAC;QACtC,WAAW,EAAE,sBAAsB,CAAC,KAAK,CAAC;QAC1C,YAAY,EAAE,uBAAuB,CAAC,OAAO,CAAC;KAC9C,CAAA;IAED,MAAM,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAA;IAE7B,OAAO,EAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAC,CAAA;AAClC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare class Shell {
2
2
  #private;
3
+ onAttach: import("@e280/stz").Subby<[]>;
3
4
  get dialog(): HTMLDialogElement | undefined;
4
5
  get open(): boolean;
5
6
  attach(dialog: HTMLDialogElement): void;
package/x/vitals/shell.js CHANGED
@@ -1,7 +1,8 @@
1
- import { got, nap } from "@e280/stz";
1
+ import { got, nap, subby } from "@e280/stz";
2
2
  import { tracker } from "@e280/strata";
3
3
  import { bconfig } from "../bconfig.js";
4
4
  export class Shell {
5
+ onAttach = subby();
5
6
  #dialog;
6
7
  #closeToken = 0;
7
8
  get dialog() {
@@ -19,6 +20,7 @@ export class Shell {
19
20
  event.preventDefault();
20
21
  this.toggle(false);
21
22
  };
23
+ this.onAttach.publish();
22
24
  }
23
25
  toggle = (please = !this.open) => {
24
26
  const dialog = got(this.dialog);
@@ -1 +1 @@
1
- {"version":3,"file":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C,CAAC,IAAI,CAAC,GAAG,EAAE;YAC3B,IAAI,KAAK,KAAK,IAAI,CAAC,WAAW;gBAC7B,OAAM;YAEP,IAAI,MAAM,CAAC,YAAY,CAAC,cAAc,CAAC;gBACtC,MAAM,CAAC,KAAK,EAAE,CAAA;YAEf,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC,CAAA;YACtC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QACpB,CAAC,CAAC,CAAA;IACH,CAAC;CACD"}
@@ -1,16 +0,0 @@
1
-
2
- import {html} from "lit"
3
- import {shadowElement, useCss} from "@e280/sly"
4
-
5
- import {Account} from "./account.js"
6
- import styleCss from "./style.css.js"
7
- import {themeCss} from "../../css/theme.css.js"
8
-
9
- export const makeBenevAccount = (_account: Account) => shadowElement(() => {
10
- useCss(themeCss, styleCss)
11
-
12
- return html`
13
- <benev-auth>sign in</benev-auth>
14
- `
15
- })
16
-
@@ -1,13 +0,0 @@
1
-
2
- import {html} from "lit"
3
- import {useCss} from "@e280/sly"
4
-
5
- import styleCss from "./style.css.js"
6
- import {themeCss} from "../../css/theme.css.js"
7
- import {shadowDuplex} from "../tools/shadow-duplex.js"
8
-
9
- export const [FooterView, makeBenevFooter] = shadowDuplex("benev-footer", () => {
10
- useCss(themeCss, styleCss)
11
- return html`<slot></slot>`
12
- })
13
-
@@ -1,25 +0,0 @@
1
-
2
- import {html} from "lit"
3
- import {useCss} from "@e280/sly"
4
-
5
- import styleCss from "./style.css.js"
6
- import {Shell} from "../../vitals/shell.js"
7
- import {bDataPng} from "../../assets/b.png.js"
8
- import {themeCss} from "../../css/theme.css.js"
9
- import {shadowDuplex} from "../tools/shadow-duplex.js"
10
-
11
- export const [HeaderView, makeBenevHeader] = shadowDuplex("benev-header", (shell: Shell) => {
12
- useCss(themeCss, styleCss)
13
-
14
- const click = () => shell.toggle()
15
-
16
- return html`
17
- <nav part=nav ?data-opened=${shell.open} ?data-closed=${!shell.open}>
18
- <button benev-button=naked title="b menu" @click=${click}>
19
- <img part=img src="${bDataPng}" alt=""/>
20
- </button>
21
- <slot></slot>
22
- </nav>
23
- `
24
- })
25
-
@@ -1,17 +0,0 @@
1
-
2
- import {Content, shadow, shadowElement, useName} from "@e280/sly"
3
-
4
- export function shadowDuplex<P extends any[]>(name: string, render: (...p: P) => Content) {
5
- const view = shadow((...p: P) => {
6
- useName(name)
7
- return render(...p)
8
- })
9
-
10
- const makeElement = (...p: P) => shadowElement(() => render(...p))
11
-
12
- return [view, makeElement] as [
13
- view: typeof view,
14
- makeElement: typeof makeElement,
15
- ]
16
- }
17
-
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../s/dom/account/account.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,OAAO;IACA,IAAI;IAAvB,YAAmB,IAAU;oBAAV,IAAI;IAAS,CAAC;CACjC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/dom/account/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;EAEhB,CAAA"}
@@ -1,2 +0,0 @@
1
- import { Account } from "./account.js";
2
- export declare const makeBenevAccount: (_account: Account) => new () => HTMLElement;
@@ -1,11 +0,0 @@
1
- import { html } from "lit";
2
- import { shadowElement, useCss } from "@e280/sly";
3
- import styleCss from "./style.css.js";
4
- import { themeCss } from "../../css/theme.css.js";
5
- export const makeBenevAccount = (_account) => shadowElement(() => {
6
- useCss(themeCss, styleCss);
7
- return html `
8
- <benev-auth>sign in</benev-auth>
9
- `;
10
- });
11
- //# sourceMappingURL=view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/account/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,aAAa,EAAE,MAAM,EAAC,MAAM,WAAW,CAAA;AAG/C,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAiB,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE;IACzE,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAE1B,OAAO,IAAI,CAAA;;EAEV,CAAA;AACF,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/dom/footer/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;EAEhB,CAAA"}
@@ -1 +0,0 @@
1
- export declare const FooterView: import("@e280/sly").ShadowView<[]>, makeBenevFooter: () => new () => HTMLElement;
@@ -1,10 +0,0 @@
1
- import { html } from "lit";
2
- import { useCss } from "@e280/sly";
3
- import styleCss from "./style.css.js";
4
- import { themeCss } from "../../css/theme.css.js";
5
- import { shadowDuplex } from "../tools/shadow-duplex.js";
6
- export const [FooterView, makeBenevFooter] = shadowDuplex("benev-footer", () => {
7
- useCss(themeCss, styleCss);
8
- return html `<slot></slot>`;
9
- });
10
- //# sourceMappingURL=view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/footer/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAA;AAEhC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAA;AAEtD,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,YAAY,CAAC,cAAc,EAAE,GAAG,EAAE;IAC9E,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC1B,OAAO,IAAI,CAAA,eAAe,CAAA;AAC3B,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/dom/header/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoChB,CAAA"}
@@ -1,2 +0,0 @@
1
- import { Shell } from "../../vitals/shell.js";
2
- export declare const HeaderView: import("@e280/sly").ShadowView<[shell: Shell]>, makeBenevHeader: (shell: Shell) => new () => HTMLElement;
@@ -1,19 +0,0 @@
1
- import { html } from "lit";
2
- import { useCss } from "@e280/sly";
3
- import styleCss from "./style.css.js";
4
- import { bDataPng } from "../../assets/b.png.js";
5
- import { themeCss } from "../../css/theme.css.js";
6
- import { shadowDuplex } from "../tools/shadow-duplex.js";
7
- export const [HeaderView, makeBenevHeader] = shadowDuplex("benev-header", (shell) => {
8
- useCss(themeCss, styleCss);
9
- const click = () => shell.toggle();
10
- return html `
11
- <nav part=nav ?data-opened=${shell.open} ?data-closed=${!shell.open}>
12
- <button benev-button=naked title="b menu" @click=${click}>
13
- <img part=img src="${bDataPng}" alt=""/>
14
- </button>
15
- <slot></slot>
16
- </nav>
17
- `;
18
- });
19
- //# sourceMappingURL=view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/header/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAA;AAEhC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AAErC,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAC,QAA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enevLoader: new () => HTMLElement;
@@ -1,19 +0,0 @@
1
- import { html } from "lit";
2
- import { shadowElement, useCss } from "@e280/sly";
3
- import styleCss from "./style.css.js";
4
- import { themeCss } from "../../css/theme.css.js";
5
- import { bDataPng } from "../../assets/b.png.js";
6
- export const BenevLoader = shadowElement(() => {
7
- useCss(themeCss, styleCss);
8
- return html `
9
- <slot></slot>
10
-
11
- <div class=veil>
12
- <div class=scalar>
13
- <img class=logo src="${bDataPng}" alt="" draggable="false"/>
14
- <slot name=loading></slot>
15
- </div>
16
- </div>
17
- `;
18
- });
19
- //# sourceMappingURL=view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/loader/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,aAAa,EAAE,MAAM,EAAC,MAAM,WAAW,CAAA;AAE/C,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAE9C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,EAAE;IAC7C,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAE1B,OAAO,IAAI,CAAA;;;;;2BAKe,QAAQ;;;;EAIjC,CAAA;AACF,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/dom/menu/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsFhB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"click-backdrop.js","sourceRoot":"","sources":["../../../../s/dom/menu/utils/click-backdrop.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,aAAa,CAAC,EAA0B;IACvD,OAAO,CAAC,KAAY,EAAE,EAAE;QACvB,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,aAAa;YACvC,EAAE,CAAC,KAAK,CAAC,CAAA;IACX,CAAC,CAAA;AACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"on-keypress.js","sourceRoot":"","sources":["../../../../s/dom/menu/utils/on-keypress.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,WAAW,CAAA;AAE5B,MAAM,UAAU,UAAU,CAAC,IAAc,EAAE,EAAc;IACxD,OAAO,GAAG,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,CAAC,KAAoB,EAAE,EAAE;YACjC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAA;YAC1C,MAAM,MAAM,GAAG,CACd,MAAM,YAAY,gBAAgB;gBAClC,MAAM,YAAY,mBAAmB;gBACrC,MAAM,CAAC,iBAAiB,CACxB,CAAA;YACD,IAAI,MAAM;gBACT,OAAM;YACP,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC/B,KAAK,CAAC,cAAc,EAAE,CAAA;gBACtB,EAAE,EAAE,CAAA;YACL,CAAC;QACF,CAAC;KACD,CAAC,CAAA;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-after-first-render.js","sourceRoot":"","sources":["../../../../s/dom/menu/utils/use-after-first-render.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAC,MAAM,WAAW,CAAA;AAEzD,MAAM,UAAU,mBAAmB,CAAC,EAAgC;IACnE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AAC/C,CAAC"}
@@ -1,2 +0,0 @@
1
- import { Shell } from "../../vitals/shell.js";
2
- export declare const makeBenevMenu: (shell: Shell) => new () => HTMLElement;
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/menu/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,GAAG,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,WAAW,CAAA;AAC9D,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AAErC,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAA;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAA;AAErE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE;IACjE,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC1B,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;IAClE,QAAQ,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;IAE9D,MAAM,KAAK,GAAG,aAAa,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;IACtD,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA,eAAe,CAAA;IAEnD,OAAO,IAAI,CAAA;mBACO,KAAK;;MAElB,KAAK,CAAC,MAAM,EAAE,IAAI;QACnB,CAAC,CAAC,iBAAiB,EAAE;QACrB,CAAC,CAAC,IAAI;;;KAGN,UAAU,CAAC,KAAK,CAAC;;EAEpB,CAAA;AACF,CAAC,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- import { Content } from "@e280/sly";
2
- export declare function shadowDuplex<P extends any[]>(name: string, render: (...p: P) => Content): [view: import("@e280/sly").ShadowView<P>, makeElement: (...p: P) => new () => HTMLElement];
@@ -1,10 +0,0 @@
1
- import { shadow, shadowElement, useName } from "@e280/sly";
2
- export function shadowDuplex(name, render) {
3
- const view = shadow((...p) => {
4
- useName(name);
5
- return render(...p);
6
- });
7
- const makeElement = (...p) => shadowElement(() => render(...p));
8
- return [view, makeElement];
9
- }
10
- //# sourceMappingURL=shadow-duplex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shadow-duplex.js","sourceRoot":"","sources":["../../../s/dom/tools/shadow-duplex.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAE,aAAa,EAAE,OAAO,EAAC,MAAM,WAAW,CAAA;AAEjE,MAAM,UAAU,YAAY,CAAkB,IAAY,EAAE,MAA4B;IACvF,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,GAAG,CAAI,EAAE,EAAE;QAC/B,OAAO,CAAC,IAAI,CAAC,CAAA;QACb,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;IACpB,CAAC,CAAC,CAAA;IAEF,MAAM,WAAW,GAAG,CAAC,GAAG,CAAI,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAElE,OAAO,CAAC,IAAI,EAAE,WAAW,CAGxB,CAAA;AACF,CAAC"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes