@tanstack/router-devtools-core 1.121.0-alpha.22 → 1.121.0-alpha.28

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 (42) hide show
  1. package/dist/cjs/AgeTicker.cjs.map +1 -1
  2. package/dist/cjs/BaseTanStackRouterDevtoolsPanel.cjs +178 -219
  3. package/dist/cjs/BaseTanStackRouterDevtoolsPanel.cjs.map +1 -1
  4. package/dist/cjs/Explorer.cjs +27 -27
  5. package/dist/cjs/Explorer.cjs.map +1 -1
  6. package/dist/cjs/FloatingTanStackRouterDevtools.cjs +8 -11
  7. package/dist/cjs/FloatingTanStackRouterDevtools.cjs.map +1 -1
  8. package/dist/cjs/NavigateButton.cjs.map +1 -1
  9. package/dist/cjs/TanStackRouterDevtoolsCore.cjs +45 -66
  10. package/dist/cjs/TanStackRouterDevtoolsCore.cjs.map +1 -1
  11. package/dist/cjs/TanStackRouterDevtoolsPanelCore.cjs +51 -45
  12. package/dist/cjs/TanStackRouterDevtoolsPanelCore.cjs.map +1 -1
  13. package/dist/cjs/TanStackRouterDevtoolsPanelCore.d.cts +2 -0
  14. package/dist/cjs/context.cjs.map +1 -1
  15. package/dist/cjs/logo.cjs +73 -73
  16. package/dist/cjs/logo.cjs.map +1 -1
  17. package/dist/cjs/tokens.cjs.map +1 -1
  18. package/dist/cjs/useLocalStorage.cjs.map +1 -1
  19. package/dist/cjs/useStyles.cjs.map +1 -1
  20. package/dist/cjs/utils.cjs.map +1 -1
  21. package/dist/esm/AgeTicker.js.map +1 -1
  22. package/dist/esm/BaseTanStackRouterDevtoolsPanel.js +178 -219
  23. package/dist/esm/BaseTanStackRouterDevtoolsPanel.js.map +1 -1
  24. package/dist/esm/Explorer.js +27 -27
  25. package/dist/esm/Explorer.js.map +1 -1
  26. package/dist/esm/FloatingTanStackRouterDevtools.js +8 -11
  27. package/dist/esm/FloatingTanStackRouterDevtools.js.map +1 -1
  28. package/dist/esm/NavigateButton.js.map +1 -1
  29. package/dist/esm/TanStackRouterDevtoolsCore.js +45 -66
  30. package/dist/esm/TanStackRouterDevtoolsCore.js.map +1 -1
  31. package/dist/esm/TanStackRouterDevtoolsPanelCore.d.ts +2 -0
  32. package/dist/esm/TanStackRouterDevtoolsPanelCore.js +51 -45
  33. package/dist/esm/TanStackRouterDevtoolsPanelCore.js.map +1 -1
  34. package/dist/esm/context.js.map +1 -1
  35. package/dist/esm/logo.js +73 -73
  36. package/dist/esm/logo.js.map +1 -1
  37. package/dist/esm/tokens.js.map +1 -1
  38. package/dist/esm/useLocalStorage.js.map +1 -1
  39. package/dist/esm/useStyles.js.map +1 -1
  40. package/dist/esm/utils.js.map +1 -1
  41. package/package.json +5 -5
  42. package/src/TanStackRouterDevtoolsPanelCore.tsx +32 -1
@@ -1,58 +1,50 @@
1
- var __typeError = (msg) => {
2
- throw TypeError(msg);
3
- };
4
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
5
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
6
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
7
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
8
- var _router, _routerState, _position, _initialIsOpen, _shadowDOMTarget, _panelProps, _closeButtonProps, _toggleButtonProps, _containerElement, _isMounted, _Component, _dispose;
9
1
  import { render, createComponent } from "solid-js/web";
10
2
  import { createSignal, lazy } from "solid-js";
11
3
  import { ShadowDomTargetContext } from "./context.js";
12
4
  class TanStackRouterDevtoolsCore {
5
+ #router;
6
+ #routerState;
7
+ #position;
8
+ #initialIsOpen;
9
+ #shadowDOMTarget;
10
+ #panelProps;
11
+ #closeButtonProps;
12
+ #toggleButtonProps;
13
+ #containerElement;
14
+ #isMounted = false;
15
+ #Component;
16
+ #dispose;
13
17
  constructor(config) {
14
- __privateAdd(this, _router);
15
- __privateAdd(this, _routerState);
16
- __privateAdd(this, _position);
17
- __privateAdd(this, _initialIsOpen);
18
- __privateAdd(this, _shadowDOMTarget);
19
- __privateAdd(this, _panelProps);
20
- __privateAdd(this, _closeButtonProps);
21
- __privateAdd(this, _toggleButtonProps);
22
- __privateAdd(this, _containerElement);
23
- __privateAdd(this, _isMounted, false);
24
- __privateAdd(this, _Component);
25
- __privateAdd(this, _dispose);
26
- __privateSet(this, _router, createSignal(config.router));
27
- __privateSet(this, _routerState, createSignal(config.routerState));
28
- __privateSet(this, _position, config.position ?? "bottom-left");
29
- __privateSet(this, _initialIsOpen, config.initialIsOpen ?? false);
30
- __privateSet(this, _shadowDOMTarget, config.shadowDOMTarget);
31
- __privateSet(this, _panelProps, config.panelProps);
32
- __privateSet(this, _closeButtonProps, config.closeButtonProps);
33
- __privateSet(this, _toggleButtonProps, config.toggleButtonProps);
34
- __privateSet(this, _containerElement, config.containerElement);
18
+ this.#router = createSignal(config.router);
19
+ this.#routerState = createSignal(config.routerState);
20
+ this.#position = config.position ?? "bottom-left";
21
+ this.#initialIsOpen = config.initialIsOpen ?? false;
22
+ this.#shadowDOMTarget = config.shadowDOMTarget;
23
+ this.#panelProps = config.panelProps;
24
+ this.#closeButtonProps = config.closeButtonProps;
25
+ this.#toggleButtonProps = config.toggleButtonProps;
26
+ this.#containerElement = config.containerElement;
35
27
  }
36
28
  mount(el) {
37
- if (__privateGet(this, _isMounted)) {
29
+ if (this.#isMounted) {
38
30
  throw new Error("Devtools is already mounted");
39
31
  }
40
32
  const dispose = render(() => {
41
- const [router] = __privateGet(this, _router);
42
- const [routerState] = __privateGet(this, _routerState);
43
- const position = __privateGet(this, _position);
44
- const initialIsOpen = __privateGet(this, _initialIsOpen);
45
- const shadowDOMTarget = __privateGet(this, _shadowDOMTarget);
46
- const panelProps = __privateGet(this, _panelProps);
47
- const closeButtonProps = __privateGet(this, _closeButtonProps);
48
- const toggleButtonProps = __privateGet(this, _toggleButtonProps);
49
- const containerElement = __privateGet(this, _containerElement);
33
+ const [router] = this.#router;
34
+ const [routerState] = this.#routerState;
35
+ const position = this.#position;
36
+ const initialIsOpen = this.#initialIsOpen;
37
+ const shadowDOMTarget = this.#shadowDOMTarget;
38
+ const panelProps = this.#panelProps;
39
+ const closeButtonProps = this.#closeButtonProps;
40
+ const toggleButtonProps = this.#toggleButtonProps;
41
+ const containerElement = this.#containerElement;
50
42
  let Devtools;
51
- if (__privateGet(this, _Component)) {
52
- Devtools = __privateGet(this, _Component);
43
+ if (this.#Component) {
44
+ Devtools = this.#Component;
53
45
  } else {
54
46
  Devtools = lazy(() => import("./FloatingTanStackRouterDevtools.js"));
55
- __privateSet(this, _Component, Devtools);
47
+ this.#Component = Devtools;
56
48
  }
57
49
  return createComponent(ShadowDomTargetContext.Provider, {
58
50
  value: shadowDOMTarget,
@@ -71,50 +63,37 @@ class TanStackRouterDevtoolsCore {
71
63
  }
72
64
  });
73
65
  }, el);
74
- __privateSet(this, _isMounted, true);
75
- __privateSet(this, _dispose, dispose);
66
+ this.#isMounted = true;
67
+ this.#dispose = dispose;
76
68
  }
77
69
  unmount() {
78
- var _a;
79
- if (!__privateGet(this, _isMounted)) {
70
+ if (!this.#isMounted) {
80
71
  throw new Error("Devtools is not mounted");
81
72
  }
82
- (_a = __privateGet(this, _dispose)) == null ? void 0 : _a.call(this);
83
- __privateSet(this, _isMounted, false);
73
+ this.#dispose?.();
74
+ this.#isMounted = false;
84
75
  }
85
76
  setRouter(router) {
86
- __privateGet(this, _router)[1](router);
77
+ this.#router[1](router);
87
78
  }
88
79
  setRouterState(routerState) {
89
- __privateGet(this, _routerState)[1](routerState);
80
+ this.#routerState[1](routerState);
90
81
  }
91
82
  setOptions(options) {
92
83
  if (options.position !== void 0) {
93
- __privateSet(this, _position, options.position);
84
+ this.#position = options.position;
94
85
  }
95
86
  if (options.initialIsOpen !== void 0) {
96
- __privateSet(this, _initialIsOpen, options.initialIsOpen);
87
+ this.#initialIsOpen = options.initialIsOpen;
97
88
  }
98
89
  if (options.shadowDOMTarget !== void 0) {
99
- __privateSet(this, _shadowDOMTarget, options.shadowDOMTarget);
90
+ this.#shadowDOMTarget = options.shadowDOMTarget;
100
91
  }
101
92
  if (options.containerElement !== void 0) {
102
- __privateSet(this, _containerElement, options.containerElement);
93
+ this.#containerElement = options.containerElement;
103
94
  }
104
95
  }
105
96
  }
106
- _router = new WeakMap();
107
- _routerState = new WeakMap();
108
- _position = new WeakMap();
109
- _initialIsOpen = new WeakMap();
110
- _shadowDOMTarget = new WeakMap();
111
- _panelProps = new WeakMap();
112
- _closeButtonProps = new WeakMap();
113
- _toggleButtonProps = new WeakMap();
114
- _containerElement = new WeakMap();
115
- _isMounted = new WeakMap();
116
- _Component = new WeakMap();
117
- _dispose = new WeakMap();
118
97
  export {
119
98
  TanStackRouterDevtoolsCore
120
99
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TanStackRouterDevtoolsCore.js","sources":["../../src/TanStackRouterDevtoolsCore.tsx"],"sourcesContent":["import { createSignal, lazy } from 'solid-js'\nimport { render } from 'solid-js/web'\nimport { ShadowDomTargetContext } from './context'\nimport type { AnyRouter } from '@tanstack/router-core'\nimport type { Signal } from 'solid-js'\n\ninterface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * Use this to add props to the panel. For example, you can add class, style (merge and override default style), etc.\n */\n panelProps?: any & {\n ref?: any\n }\n /**\n * Use this to add props to the close button. For example, you can add class, style (merge and override default style), onClick (extend default handler), etc.\n */\n closeButtonProps?: any & {\n ref?: any\n }\n /**\n * Use this to add props to the toggle button. For example, you can add class, style (merge and override default style), onClick (extend default handler), etc.\n */\n toggleButtonProps?: any & {\n ref?: any\n }\n /**\n * The position of the TanStack Router logo to open and close the devtools panel.\n * Defaults to 'bottom-left'.\n */\n position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'\n /**\n * Use this to render the devtools inside a different type of container element for a11y purposes.\n * Any string which corresponds to a valid intrinsic JSX element is allowed.\n * Defaults to 'footer'.\n */\n containerElement?: string | any\n /**\n * A boolean variable indicating if the \"lite\" version of the library is being used\n */\n router: AnyRouter\n routerState: any\n /**\n * Use this to attach the devtool's styles to specific element in the DOM.\n */\n shadowDOMTarget?: ShadowRoot\n}\n\nclass TanStackRouterDevtoolsCore {\n #router: Signal<AnyRouter>\n #routerState: Signal<any>\n #position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'\n #initialIsOpen: boolean\n #shadowDOMTarget?: ShadowRoot\n\n #panelProps: any\n #closeButtonProps: any\n #toggleButtonProps: any\n #containerElement?: string | any\n\n #isMounted = false\n #Component: any\n #dispose?: () => void\n\n constructor(config: DevtoolsOptions) {\n this.#router = createSignal(config.router)\n this.#routerState = createSignal(config.routerState)\n this.#position = config.position ?? 'bottom-left'\n this.#initialIsOpen = config.initialIsOpen ?? false\n this.#shadowDOMTarget = config.shadowDOMTarget\n\n this.#panelProps = config.panelProps\n this.#closeButtonProps = config.closeButtonProps\n this.#toggleButtonProps = config.toggleButtonProps\n this.#containerElement = config.containerElement\n }\n\n mount<T extends HTMLElement>(el: T) {\n if (this.#isMounted) {\n throw new Error('Devtools is already mounted')\n }\n\n const dispose = render(() => {\n const [router] = this.#router\n const [routerState] = this.#routerState\n const position = this.#position\n const initialIsOpen = this.#initialIsOpen\n const shadowDOMTarget = this.#shadowDOMTarget\n\n const panelProps = this.#panelProps\n const closeButtonProps = this.#closeButtonProps\n const toggleButtonProps = this.#toggleButtonProps\n const containerElement = this.#containerElement\n\n let Devtools\n\n if (this.#Component) {\n Devtools = this.#Component\n } else {\n Devtools = lazy(() => import('./FloatingTanStackRouterDevtools'))\n this.#Component = Devtools\n }\n\n return (\n <ShadowDomTargetContext.Provider value={shadowDOMTarget}>\n <Devtools\n position={position}\n initialIsOpen={initialIsOpen}\n router={router}\n routerState={routerState}\n shadowDOMTarget={shadowDOMTarget}\n panelProps={panelProps}\n closeButtonProps={closeButtonProps}\n toggleButtonProps={toggleButtonProps}\n containerElement={containerElement}\n />\n </ShadowDomTargetContext.Provider>\n )\n }, el)\n\n this.#isMounted = true\n this.#dispose = dispose\n }\n\n unmount() {\n if (!this.#isMounted) {\n throw new Error('Devtools is not mounted')\n }\n this.#dispose?.()\n this.#isMounted = false\n }\n\n setRouter(router: AnyRouter) {\n this.#router[1](router)\n }\n\n setRouterState(routerState: any) {\n this.#routerState[1](routerState)\n }\n\n setOptions(options: Partial<DevtoolsOptions>) {\n if (options.position !== undefined) {\n this.#position = options.position\n }\n\n if (options.initialIsOpen !== undefined) {\n this.#initialIsOpen = options.initialIsOpen\n }\n\n if (options.shadowDOMTarget !== undefined) {\n this.#shadowDOMTarget = options.shadowDOMTarget\n }\n\n if (options.containerElement !== undefined) {\n this.#containerElement = options.containerElement\n }\n }\n}\n\nexport { TanStackRouterDevtoolsCore }\n"],"names":["TanStackRouterDevtoolsCore","constructor","config","createSignal","router","routerState","position","initialIsOpen","shadowDOMTarget","panelProps","closeButtonProps","toggleButtonProps","containerElement","mount","el","Error","dispose","render","Devtools","lazy","_$createComponent","ShadowDomTargetContext","Provider","value","children","unmount","setRouter","setRouterState","setOptions","options","undefined"],"mappings":";;;;;;;;;;;AAmDA,MAAMA,2BAA2B;AAAA,EAgB/BC,YAAYC,QAAyB;AAfrC;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA,mCAAa;AACb;AACA;AAGO,uBAAA,SAAUC,aAAaD,OAAOE,MAAM;AACpC,uBAAA,cAAeD,aAAaD,OAAOG,WAAW;AAC9C,uBAAA,WAAYH,OAAOI,YAAY;AAC/B,uBAAA,gBAAiBJ,OAAOK,iBAAiB;AAC9C,uBAAK,kBAAmBL,OAAOM;AAE/B,uBAAK,aAAcN,OAAOO;AAC1B,uBAAK,mBAAoBP,OAAOQ;AAChC,uBAAK,oBAAqBR,OAAOS;AACjC,uBAAK,mBAAoBT,OAAOU;AAAAA,EAAAA;AA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AAW;AAAA,EAAA;AAAA,EAGlCuB,WAAWC,SAAmC;AACxCA,QAAAA,QAAQvB,aAAawB,QAAW;AAClC,yBAAK,WAAYD,QAAQvB;AAAAA,IAAAA;AAGvBuB,QAAAA,QAAQtB,kBAAkBuB,QAAW;AACvC,yBAAK,gBAAiBD,QAAQtB;AAAAA,IAAAA;AAG5BsB,QAAAA,QAAQrB,oBAAoBsB,QAAW;AACzC,yBAAK,kBAAmBD,QAAQrB;AAAAA,IAAAA;AAG9BqB,QAAAA,QAAQjB,qBAAqBkB,QAAW;AAC1C,yBAAK,mBAAoBD,QAAQjB;AAAAA,IAAAA;AAAAA,EACnC;AAEJ;AA5GE;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;"}
1
+ {"version":3,"file":"TanStackRouterDevtoolsCore.js","sources":["../../src/TanStackRouterDevtoolsCore.tsx"],"sourcesContent":["import { createSignal, lazy } from 'solid-js'\nimport { render } from 'solid-js/web'\nimport { ShadowDomTargetContext } from './context'\nimport type { AnyRouter } from '@tanstack/router-core'\nimport type { Signal } from 'solid-js'\n\ninterface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * Use this to add props to the panel. For example, you can add class, style (merge and override default style), etc.\n */\n panelProps?: any & {\n ref?: any\n }\n /**\n * Use this to add props to the close button. For example, you can add class, style (merge and override default style), onClick (extend default handler), etc.\n */\n closeButtonProps?: any & {\n ref?: any\n }\n /**\n * Use this to add props to the toggle button. For example, you can add class, style (merge and override default style), onClick (extend default handler), etc.\n */\n toggleButtonProps?: any & {\n ref?: any\n }\n /**\n * The position of the TanStack Router logo to open and close the devtools panel.\n * Defaults to 'bottom-left'.\n */\n position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'\n /**\n * Use this to render the devtools inside a different type of container element for a11y purposes.\n * Any string which corresponds to a valid intrinsic JSX element is allowed.\n * Defaults to 'footer'.\n */\n containerElement?: string | any\n /**\n * A boolean variable indicating if the \"lite\" version of the library is being used\n */\n router: AnyRouter\n routerState: any\n /**\n * Use this to attach the devtool's styles to specific element in the DOM.\n */\n shadowDOMTarget?: ShadowRoot\n}\n\nclass TanStackRouterDevtoolsCore {\n #router: Signal<AnyRouter>\n #routerState: Signal<any>\n #position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'\n #initialIsOpen: boolean\n #shadowDOMTarget?: ShadowRoot\n\n #panelProps: any\n #closeButtonProps: any\n #toggleButtonProps: any\n #containerElement?: string | any\n\n #isMounted = false\n #Component: any\n #dispose?: () => void\n\n constructor(config: DevtoolsOptions) {\n this.#router = createSignal(config.router)\n this.#routerState = createSignal(config.routerState)\n this.#position = config.position ?? 'bottom-left'\n this.#initialIsOpen = config.initialIsOpen ?? false\n this.#shadowDOMTarget = config.shadowDOMTarget\n\n this.#panelProps = config.panelProps\n this.#closeButtonProps = config.closeButtonProps\n this.#toggleButtonProps = config.toggleButtonProps\n this.#containerElement = config.containerElement\n }\n\n mount<T extends HTMLElement>(el: T) {\n if (this.#isMounted) {\n throw new Error('Devtools is already mounted')\n }\n\n const dispose = render(() => {\n const [router] = this.#router\n const [routerState] = this.#routerState\n const position = this.#position\n const initialIsOpen = this.#initialIsOpen\n const shadowDOMTarget = this.#shadowDOMTarget\n\n const panelProps = this.#panelProps\n const closeButtonProps = this.#closeButtonProps\n const toggleButtonProps = this.#toggleButtonProps\n const containerElement = this.#containerElement\n\n let Devtools\n\n if (this.#Component) {\n Devtools = this.#Component\n } else {\n Devtools = lazy(() => import('./FloatingTanStackRouterDevtools'))\n this.#Component = Devtools\n }\n\n return (\n <ShadowDomTargetContext.Provider value={shadowDOMTarget}>\n <Devtools\n position={position}\n initialIsOpen={initialIsOpen}\n router={router}\n routerState={routerState}\n shadowDOMTarget={shadowDOMTarget}\n panelProps={panelProps}\n closeButtonProps={closeButtonProps}\n toggleButtonProps={toggleButtonProps}\n containerElement={containerElement}\n />\n </ShadowDomTargetContext.Provider>\n )\n }, el)\n\n this.#isMounted = true\n this.#dispose = dispose\n }\n\n unmount() {\n if (!this.#isMounted) {\n throw new Error('Devtools is not mounted')\n }\n this.#dispose?.()\n this.#isMounted = false\n }\n\n setRouter(router: AnyRouter) {\n this.#router[1](router)\n }\n\n setRouterState(routerState: any) {\n this.#routerState[1](routerState)\n }\n\n setOptions(options: Partial<DevtoolsOptions>) {\n if (options.position !== undefined) {\n this.#position = options.position\n }\n\n if (options.initialIsOpen !== undefined) {\n this.#initialIsOpen = options.initialIsOpen\n }\n\n if (options.shadowDOMTarget !== undefined) {\n this.#shadowDOMTarget = options.shadowDOMTarget\n }\n\n if (options.containerElement !== undefined) {\n this.#containerElement = options.containerElement\n }\n }\n}\n\nexport { TanStackRouterDevtoolsCore }\n"],"names":["TanStackRouterDevtoolsCore","constructor","config","createSignal","router","routerState","position","initialIsOpen","shadowDOMTarget","panelProps","closeButtonProps","toggleButtonProps","containerElement","mount","el","Error","dispose","render","Devtools","lazy","_$createComponent","ShadowDomTargetContext","Provider","value","children","unmount","setRouter","setRouterState","setOptions","options","undefined"],"mappings":";;;AAmDA,MAAMA,2BAA2B;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EAEAC,YAAYC,QAAyB;AACnC,SAAK,UAAUC,aAAaD,OAAOE,MAAM;AACzC,SAAK,eAAeD,aAAaD,OAAOG,WAAW;AACnD,SAAK,YAAYH,OAAOI,YAAY;AACpC,SAAK,iBAAiBJ,OAAOK,iBAAiB;AAC9C,SAAK,mBAAmBL,OAAOM;AAE/B,SAAK,cAAcN,OAAOO;AAC1B,SAAK,oBAAoBP,OAAOQ;AAChC,SAAK,qBAAqBR,OAAOS;AACjC,SAAK,oBAAoBT,OAAOU;AAAAA,EAClC;AAAA,EAEAC,MAA6BC,IAAO;AAClC,QAAI,KAAK,YAAY;AACnB,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C,WAAK,YAAYD,QAAQvB;AAAAA,IAC3B;AAEA,QAAIuB,QAAQtB,kBAAkBuB,QAAW;AACvC,WAAK,iBAAiBD,QAAQtB;AAAAA,IAChC;AAEA,QAAIsB,QAAQrB,oBAAoBsB,QAAW;AACzC,WAAK,mBAAmBD,QAAQrB;AAAAA,IAClC;AAEA,QAAIqB,QAAQjB,qBAAqBkB,QAAW;AAC1C,WAAK,oBAAoBD,QAAQjB;AAAAA,IACnC;AAAA,EACF;AACF;"}
@@ -38,6 +38,8 @@ declare class TanStackRouterDevtoolsPanelCore {
38
38
  unmount(): void;
39
39
  setRouter(router: AnyRouter): void;
40
40
  setRouterState(routerState: any): void;
41
+ setStyle(style: any): void;
42
+ setClassName(className: any): void;
41
43
  setOptions(options: Partial<TanStackRouterDevtoolsPanelCoreOptions>): void;
42
44
  }
43
45
  export { TanStackRouterDevtoolsPanelCore };
@@ -1,49 +1,49 @@
1
- var __typeError = (msg) => {
2
- throw TypeError(msg);
3
- };
4
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
5
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
6
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
7
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
8
- var _router, _routerState, _shadowDOMTarget, _isMounted, _setIsOpen, _dispose, _Component;
9
1
  import { render, createComponent } from "solid-js/web";
10
2
  import { createSignal, lazy } from "solid-js";
11
3
  import { ShadowDomTargetContext, DevtoolsOnCloseContext } from "./context.js";
12
4
  class TanStackRouterDevtoolsPanelCore {
5
+ #router;
6
+ #routerState;
7
+ #style;
8
+ #className;
9
+ #shadowDOMTarget;
10
+ #isMounted = false;
11
+ #setIsOpen;
12
+ #dispose;
13
+ #Component;
13
14
  constructor(config) {
14
- __privateAdd(this, _router);
15
- __privateAdd(this, _routerState);
16
- __privateAdd(this, _shadowDOMTarget);
17
- __privateAdd(this, _isMounted, false);
18
- __privateAdd(this, _setIsOpen);
19
- __privateAdd(this, _dispose);
20
- __privateAdd(this, _Component);
21
15
  const {
22
16
  router,
23
17
  routerState,
24
18
  shadowDOMTarget,
25
- setIsOpen
19
+ setIsOpen,
20
+ style,
21
+ className
26
22
  } = config;
27
- __privateSet(this, _router, createSignal(router));
28
- __privateSet(this, _routerState, createSignal(routerState));
29
- __privateSet(this, _shadowDOMTarget, shadowDOMTarget);
30
- __privateSet(this, _setIsOpen, setIsOpen);
23
+ this.#router = createSignal(router);
24
+ this.#routerState = createSignal(routerState);
25
+ this.#style = createSignal(style);
26
+ this.#className = createSignal(className);
27
+ this.#shadowDOMTarget = shadowDOMTarget;
28
+ this.#setIsOpen = setIsOpen;
31
29
  }
32
30
  mount(el) {
33
- if (__privateGet(this, _isMounted)) {
31
+ if (this.#isMounted) {
34
32
  throw new Error("Devtools is already mounted");
35
33
  }
36
34
  const dispose = render(() => {
37
- const [router] = __privateGet(this, _router);
38
- const [routerState] = __privateGet(this, _routerState);
39
- const shadowDOMTarget = __privateGet(this, _shadowDOMTarget);
40
- const setIsOpen = __privateGet(this, _setIsOpen);
35
+ const [router] = this.#router;
36
+ const [routerState] = this.#routerState;
37
+ const [style] = this.#style;
38
+ const [className] = this.#className;
39
+ const shadowDOMTarget = this.#shadowDOMTarget;
40
+ const setIsOpen = this.#setIsOpen;
41
41
  let BaseTanStackRouterDevtoolsPanel;
42
- if (__privateGet(this, _Component)) {
43
- BaseTanStackRouterDevtoolsPanel = __privateGet(this, _Component);
42
+ if (this.#Component) {
43
+ BaseTanStackRouterDevtoolsPanel = this.#Component;
44
44
  } else {
45
45
  BaseTanStackRouterDevtoolsPanel = lazy(() => import("./BaseTanStackRouterDevtoolsPanel.js"));
46
- __privateSet(this, _Component, BaseTanStackRouterDevtoolsPanel);
46
+ this.#Component = BaseTanStackRouterDevtoolsPanel;
47
47
  }
48
48
  return createComponent(ShadowDomTargetContext.Provider, {
49
49
  value: shadowDOMTarget,
@@ -58,33 +58,40 @@ class TanStackRouterDevtoolsPanelCore {
58
58
  router,
59
59
  routerState,
60
60
  shadowDOMTarget,
61
- setIsOpen
61
+ setIsOpen,
62
+ style,
63
+ className
62
64
  });
63
65
  }
64
66
  });
65
67
  }
66
68
  });
67
69
  }, el);
68
- __privateSet(this, _isMounted, true);
69
- __privateSet(this, _dispose, dispose);
70
+ this.#isMounted = true;
71
+ this.#dispose = dispose;
70
72
  }
71
73
  unmount() {
72
- var _a;
73
- if (!__privateGet(this, _isMounted)) {
74
+ if (!this.#isMounted) {
74
75
  throw new Error("Devtools is not mounted");
75
76
  }
76
- (_a = __privateGet(this, _dispose)) == null ? void 0 : _a.call(this);
77
- __privateSet(this, _isMounted, false);
77
+ this.#dispose?.();
78
+ this.#isMounted = false;
78
79
  }
79
80
  setRouter(router) {
80
- __privateGet(this, _router)[1](router);
81
+ this.#router[1](router);
81
82
  }
82
83
  setRouterState(routerState) {
83
- __privateGet(this, _routerState)[1](routerState);
84
+ this.#routerState[1](routerState);
85
+ }
86
+ setStyle(style) {
87
+ this.#style[1](style);
88
+ }
89
+ setClassName(className) {
90
+ this.#className[1](className);
84
91
  }
85
92
  setOptions(options) {
86
93
  if (options.shadowDOMTarget !== void 0) {
87
- __privateSet(this, _shadowDOMTarget, options.shadowDOMTarget);
94
+ this.#shadowDOMTarget = options.shadowDOMTarget;
88
95
  }
89
96
  if (options.router !== void 0) {
90
97
  this.setRouter(options.router);
@@ -92,15 +99,14 @@ class TanStackRouterDevtoolsPanelCore {
92
99
  if (options.routerState !== void 0) {
93
100
  this.setRouterState(options.routerState);
94
101
  }
102
+ if (options.style !== void 0) {
103
+ this.setStyle(options.style);
104
+ }
105
+ if (options.className !== void 0) {
106
+ this.setClassName(options.className);
107
+ }
95
108
  }
96
109
  }
97
- _router = new WeakMap();
98
- _routerState = new WeakMap();
99
- _shadowDOMTarget = new WeakMap();
100
- _isMounted = new WeakMap();
101
- _setIsOpen = new WeakMap();
102
- _dispose = new WeakMap();
103
- _Component = new WeakMap();
104
110
  export {
105
111
  TanStackRouterDevtoolsPanelCore
106
112
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TanStackRouterDevtoolsPanelCore.js","sources":["../../src/TanStackRouterDevtoolsPanelCore.tsx"],"sourcesContent":["import { render } from 'solid-js/web'\nimport { createSignal, lazy } from 'solid-js'\nimport { DevtoolsOnCloseContext, ShadowDomTargetContext } from './context'\nimport type { JSX } from 'solid-js'\nimport type { AnyRouter } from '@tanstack/router-core'\n\ninterface TanStackRouterDevtoolsPanelCoreOptions {\n /**\n * The standard React style object used to style a component with inline styles\n */\n style?: JSX.CSSProperties\n /**\n * The standard React class property used to style a component with classes\n */\n className?: string\n /**\n * A boolean variable indicating whether the panel is open or closed\n */\n isOpen?: boolean\n /**\n * A function that toggles the open and close state of the panel\n */\n setIsOpen?: (isOpen: boolean) => void\n /**\n * Handles the opening and closing the devtools panel\n */\n handleDragStart?: (e: any) => void\n /**\n * A boolean variable indicating if the \"lite\" version of the library is being used\n */\n router: AnyRouter\n\n routerState: any\n /**\n * Use this to attach the devtool's styles to specific element in the DOM.\n */\n shadowDOMTarget?: ShadowRoot\n}\n\nclass TanStackRouterDevtoolsPanelCore {\n #router: any\n #routerState: any\n #shadowDOMTarget?: ShadowRoot\n #isMounted = false\n #setIsOpen?: (isOpen: boolean) => void\n #dispose?: () => void\n #Component: any\n\n constructor(config: TanStackRouterDevtoolsPanelCoreOptions) {\n const { router, routerState, shadowDOMTarget, setIsOpen } = config\n\n this.#router = createSignal(router)\n this.#routerState = createSignal(routerState)\n this.#shadowDOMTarget = shadowDOMTarget\n this.#setIsOpen = setIsOpen\n }\n\n mount<T extends HTMLElement>(el: T) {\n if (this.#isMounted) {\n throw new Error('Devtools is already mounted')\n }\n\n const dispose = render(() => {\n const [router] = this.#router\n const [routerState] = this.#routerState\n const shadowDOMTarget = this.#shadowDOMTarget\n const setIsOpen = this.#setIsOpen\n\n let BaseTanStackRouterDevtoolsPanel\n\n if (this.#Component) {\n BaseTanStackRouterDevtoolsPanel = this.#Component\n } else {\n BaseTanStackRouterDevtoolsPanel = lazy(\n () => import('./BaseTanStackRouterDevtoolsPanel'),\n )\n this.#Component = BaseTanStackRouterDevtoolsPanel\n }\n\n return (\n <ShadowDomTargetContext.Provider value={shadowDOMTarget}>\n <DevtoolsOnCloseContext.Provider\n value={{\n onCloseClick: () => {},\n }}\n >\n <BaseTanStackRouterDevtoolsPanel\n router={router}\n routerState={routerState}\n shadowDOMTarget={shadowDOMTarget}\n setIsOpen={setIsOpen}\n />\n </DevtoolsOnCloseContext.Provider>\n </ShadowDomTargetContext.Provider>\n )\n }, el)\n\n this.#isMounted = true\n this.#dispose = dispose\n }\n\n unmount() {\n if (!this.#isMounted) {\n throw new Error('Devtools is not mounted')\n }\n this.#dispose?.()\n this.#isMounted = false\n }\n\n setRouter(router: AnyRouter) {\n this.#router[1](router)\n }\n\n setRouterState(routerState: any) {\n this.#routerState[1](routerState)\n }\n\n setOptions(options: Partial<TanStackRouterDevtoolsPanelCoreOptions>) {\n if (options.shadowDOMTarget !== undefined) {\n this.#shadowDOMTarget = options.shadowDOMTarget\n }\n if (options.router !== undefined) {\n this.setRouter(options.router)\n }\n if (options.routerState !== undefined) {\n this.setRouterState(options.routerState)\n }\n }\n}\n\nexport { TanStackRouterDevtoolsPanelCore }\n"],"names":["TanStackRouterDevtoolsPanelCore","constructor","config","router","routerState","shadowDOMTarget","setIsOpen","createSignal","mount","el","Error","dispose","render","BaseTanStackRouterDevtoolsPanel","lazy","_$createComponent","ShadowDomTargetContext","Provider","value","children","DevtoolsOnCloseContext","onCloseClick","unmount","setRouter","setRouterState","setOptions","options","undefined"],"mappings":";;;;;;;;;;;AAuCA,MAAMA,gCAAgC;AAAA,EASpCC,YAAYC,QAAgD;AAR5D;AACA;AACA;AACA,mCAAa;AACb;AACA;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AE3C,6BAAK,cAAL;AACA,uBAAK,YAAa;AAAA,EAAA;AAAA,EAGpBa,UAAUpB,QAAmB;AACtB,uBAAA,SAAQ,CAAC,EAAEA,MAAM;AAAA,EAAA;AAAA,EAGxBqB,eAAepB,aAAkB;AAC1B,uBAAA,cAAa,CAAC,EAAEA,WAAW;AAAA,EAAA;AAAA,EAGlCqB,WAAWC,SAA0D;AAC/DA,QAAAA,QAAQrB,oBAAoBsB,QAAW;AACzC,yBAAK,kBAAmBD,QAAQrB;AAAAA,IAAAA;AAE9BqB,QAAAA,QAAQvB,WAAWwB,QAAW;AAC3BJ,WAAAA,UAAUG,QAAQvB,MAAM;AAAA,IAAA;AAE3BuB,QAAAA,QAAQtB,gBAAgBuB,QAAW;AAChCH,WAAAA,eAAeE,QAAQtB,WAAW;AAAA,IAAA;AAAA,EACzC;AAEJ;AAxFE;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":"TanStackRouterDevtoolsPanelCore.js","sources":["../../src/TanStackRouterDevtoolsPanelCore.tsx"],"sourcesContent":["import { render } from 'solid-js/web'\nimport { createSignal, lazy } from 'solid-js'\nimport { DevtoolsOnCloseContext, ShadowDomTargetContext } from './context'\nimport type { JSX } from 'solid-js'\nimport type { AnyRouter } from '@tanstack/router-core'\n\ninterface TanStackRouterDevtoolsPanelCoreOptions {\n /**\n * The standard React style object used to style a component with inline styles\n */\n style?: JSX.CSSProperties\n /**\n * The standard React class property used to style a component with classes\n */\n className?: string\n /**\n * A boolean variable indicating whether the panel is open or closed\n */\n isOpen?: boolean\n /**\n * A function that toggles the open and close state of the panel\n */\n setIsOpen?: (isOpen: boolean) => void\n /**\n * Handles the opening and closing the devtools panel\n */\n handleDragStart?: (e: any) => void\n /**\n * A boolean variable indicating if the \"lite\" version of the library is being used\n */\n router: AnyRouter\n\n routerState: any\n /**\n * Use this to attach the devtool's styles to specific element in the DOM.\n */\n shadowDOMTarget?: ShadowRoot\n}\n\nclass TanStackRouterDevtoolsPanelCore {\n #router: any\n #routerState: any\n #style: any\n #className: any\n #shadowDOMTarget?: ShadowRoot\n #isMounted = false\n #setIsOpen?: (isOpen: boolean) => void\n #dispose?: () => void\n #Component: any\n\n constructor(config: TanStackRouterDevtoolsPanelCoreOptions) {\n const {\n router,\n routerState,\n shadowDOMTarget,\n setIsOpen,\n style,\n className,\n } = config\n\n this.#router = createSignal(router)\n this.#routerState = createSignal(routerState)\n this.#style = createSignal(style)\n this.#className = createSignal(className)\n this.#shadowDOMTarget = shadowDOMTarget\n this.#setIsOpen = setIsOpen\n }\n\n mount<T extends HTMLElement>(el: T) {\n if (this.#isMounted) {\n throw new Error('Devtools is already mounted')\n }\n\n const dispose = render(() => {\n const [router] = this.#router\n const [routerState] = this.#routerState\n const [style] = this.#style\n const [className] = this.#className\n const shadowDOMTarget = this.#shadowDOMTarget\n const setIsOpen = this.#setIsOpen\n\n let BaseTanStackRouterDevtoolsPanel\n\n if (this.#Component) {\n BaseTanStackRouterDevtoolsPanel = this.#Component\n } else {\n BaseTanStackRouterDevtoolsPanel = lazy(\n () => import('./BaseTanStackRouterDevtoolsPanel'),\n )\n this.#Component = BaseTanStackRouterDevtoolsPanel\n }\n\n return (\n <ShadowDomTargetContext.Provider value={shadowDOMTarget}>\n <DevtoolsOnCloseContext.Provider\n value={{\n onCloseClick: () => {},\n }}\n >\n <BaseTanStackRouterDevtoolsPanel\n router={router}\n routerState={routerState}\n shadowDOMTarget={shadowDOMTarget}\n setIsOpen={setIsOpen}\n style={style}\n className={className}\n />\n </DevtoolsOnCloseContext.Provider>\n </ShadowDomTargetContext.Provider>\n )\n }, el)\n\n this.#isMounted = true\n this.#dispose = dispose\n }\n\n unmount() {\n if (!this.#isMounted) {\n throw new Error('Devtools is not mounted')\n }\n this.#dispose?.()\n this.#isMounted = false\n }\n\n setRouter(router: AnyRouter) {\n this.#router[1](router)\n }\n\n setRouterState(routerState: any) {\n this.#routerState[1](routerState)\n }\n\n setStyle(style: any) {\n this.#style[1](style)\n }\n\n setClassName(className: any) {\n this.#className[1](className)\n }\n\n setOptions(options: Partial<TanStackRouterDevtoolsPanelCoreOptions>) {\n if (options.shadowDOMTarget !== undefined) {\n this.#shadowDOMTarget = options.shadowDOMTarget\n }\n if (options.router !== undefined) {\n this.setRouter(options.router)\n }\n if (options.routerState !== undefined) {\n this.setRouterState(options.routerState)\n }\n\n if (options.style !== undefined) {\n this.setStyle(options.style)\n }\n\n if (options.className !== undefined) {\n this.setClassName(options.className)\n }\n }\n}\n\nexport { TanStackRouterDevtoolsPanelCore }\n"],"names":["TanStackRouterDevtoolsPanelCore","constructor","config","router","routerState","shadowDOMTarget","setIsOpen","style","className","createSignal","mount","el","Error","dispose","render","BaseTanStackRouterDevtoolsPanel","lazy","_$createComponent","ShadowDomTargetContext","Provider","value","children","DevtoolsOnCloseContext","onCloseClick","unmount","setRouter","setRouterState","setStyle","setClassName","setOptions","options","undefined"],"mappings":";;;AAuCA,MAAMA,gCAAgC;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EAEAC,YAAYC,QAAgD;AAC1D,UAAM;AAAA,MACJC;AAAAA,MACAC;AAAAA,MACAC;AAAAA,MACAC;AAAAA,MACAC;AAAAA,MACAC;AAAAA,IAAAA,IACEN;AAEJ,SAAK,UAAUO,aAAaN,MAAM;AAClC,SAAK,eAAeM,aAAaL,WAAW;AAC5C,SAAK,SAASK,aAAaF,KAAK;AAChC,SAAK,aAAaE,aAAaD,SAAS;AACxC,SAAK,mBAAmBH;AACxB,SAAK,aAAaC;AAAAA,EACpB;AAAA,EAEAI,MAA6BC,IAAO;AAClC,QAAI,KAAK,YAAY;AACnB,YAAM,IAAIC,MAAM,6BAA6B;AAAA,IAC/C;AAEA,UAAMC,UAAUC,OAAO,MAAM;AAC3B,YAAM,CAACX,MAAM,IAAI,KAAK;AACtB,YAAM,CAACC,WAAW,IAAI,KAAK;AAC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AA,EAC9B;AAAA,EAEAqB,WAAWC,SAA0D;AACnE,QAAIA,QAAQzB,oBAAoB0B,QAAW;AACzC,WAAK,mBAAmBD,QAAQzB;AAAAA,IAClC;AACA,QAAIyB,QAAQ3B,WAAW4B,QAAW;AAChC,WAAKN,UAAUK,QAAQ3B,MAAM;AAAA,IAC/B;AACA,QAAI2B,QAAQ1B,gBAAgB2B,QAAW;AACrC,WAAKL,eAAeI,QAAQ1B,WAAW;AAAA,IACzC;AAEA,QAAI0B,QAAQvB,UAAUwB,QAAW;AAC/B,WAAKJ,SAASG,QAAQvB,KAAK;AAAA,IAC7B;AAEA,QAAIuB,QAAQtB,cAAcuB,QAAW;AACnC,WAAKH,aAAaE,QAAQtB,SAAS;AAAA,IACrC;AAAA,EACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../src/context.ts"],"sourcesContent":["import { createContext, useContext } from 'solid-js'\n\nexport const ShadowDomTargetContext = createContext<ShadowRoot | undefined>(\n undefined,\n)\n\nexport const DevtoolsOnCloseContext = createContext<\n | {\n onCloseClick: (\n e: MouseEvent & { currentTarget: HTMLButtonElement; target: Element },\n ) => void\n }\n | undefined\n>(undefined)\n\nexport const useDevtoolsOnClose = () => {\n const context = useContext(DevtoolsOnCloseContext)\n if (!context) {\n throw new Error(\n 'useDevtoolsOnClose must be used within a TanStackRouterDevtools component',\n )\n }\n return context\n}\n"],"names":[],"mappings":";AAEO,MAAM,yBAAyB;AAAA,EACpC;AACF;AAEa,MAAA,yBAAyB,cAOpC,MAAS;AAEJ,MAAM,qBAAqB,MAAM;AAChC,QAAA,UAAU,WAAW,sBAAsB;AACjD,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EAAA;AAEK,SAAA;AACT;"}
1
+ {"version":3,"file":"context.js","sources":["../../src/context.ts"],"sourcesContent":["import { createContext, useContext } from 'solid-js'\n\nexport const ShadowDomTargetContext = createContext<ShadowRoot | undefined>(\n undefined,\n)\n\nexport const DevtoolsOnCloseContext = createContext<\n | {\n onCloseClick: (\n e: MouseEvent & { currentTarget: HTMLButtonElement; target: Element },\n ) => void\n }\n | undefined\n>(undefined)\n\nexport const useDevtoolsOnClose = () => {\n const context = useContext(DevtoolsOnCloseContext)\n if (!context) {\n throw new Error(\n 'useDevtoolsOnClose must be used within a TanStackRouterDevtools component',\n )\n }\n return context\n}\n"],"names":[],"mappings":";AAEO,MAAM,yBAAyB;AAAA,EACpC;AACF;AAEO,MAAM,yBAAyB,cAOpC,MAAS;AAEJ,MAAM,qBAAqB,MAAM;AACtC,QAAM,UAAU,WAAW,sBAAsB;AACjD,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAAA,EAEJ;AACA,SAAO;AACT;"}
package/dist/esm/logo.js CHANGED
@@ -4,85 +4,85 @@ var _tmpl$ = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg ena
4
4
  function TanStackLogo() {
5
5
  const id = createUniqueId();
6
6
  return (() => {
7
- var _el$ = _tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$10 = _el$9.nextSibling, _el$11 = _el$10.firstChild, _el$12 = _el$10.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$12.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$15.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$17.nextSibling, _el$20 = _el$19.nextSibling, _el$21 = _el$20.firstChild, _el$22 = _el$20.nextSibling, _el$23 = _el$22.firstChild, _el$24 = _el$22.nextSibling, _el$25 = _el$24.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$25.nextSibling, _el$28 = _el$27.firstChild, _el$29 = _el$27.nextSibling, _el$30 = _el$29.nextSibling, _el$31 = _el$30.firstChild, _el$32 = _el$30.nextSibling, _el$33 = _el$32.firstChild, _el$34 = _el$32.nextSibling, _el$35 = _el$34.nextSibling, _el$36 = _el$35.firstChild, _el$37 = _el$35.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$37.nextSibling, _el$40 = _el$39.firstChild, _el$41 = _el$40.nextSibling, _el$42 = _el$41.nextSibling, _el$43 = _el$39.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.firstChild, _el$47 = _el$45.nextSibling, _el$48 = _el$47.firstChild, _el$49 = _el$48.nextSibling, _el$50 = _el$49.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.nextSibling, _el$53 = _el$52.nextSibling, _el$54 = _el$53.nextSibling, _el$55 = _el$54.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.nextSibling, _el$58 = _el$57.nextSibling, _el$59 = _el$58.nextSibling, _el$60 = _el$59.nextSibling, _el$61 = _el$60.nextSibling, _el$62 = _el$47.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$62.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$64.nextSibling, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.firstChild, _el$70 = _el$68.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$70.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling, _el$90 = _el$89.nextSibling, _el$91 = _el$90.nextSibling;
7
+ var _el$ = _tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.firstChild, _el$10 = _el$0.nextSibling, _el$11 = _el$10.firstChild, _el$12 = _el$10.nextSibling, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$13.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$15.nextSibling, _el$18 = _el$17.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$21 = _el$20.firstChild, _el$22 = _el$20.nextSibling, _el$23 = _el$22.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$23.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$25.nextSibling, _el$28 = _el$27.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$28.nextSibling, _el$31 = _el$30.firstChild, _el$32 = _el$30.nextSibling, _el$33 = _el$32.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.firstChild, _el$37 = _el$35.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$38.nextSibling, _el$40 = _el$39.nextSibling, _el$41 = _el$37.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.firstChild, _el$47 = _el$46.nextSibling, _el$48 = _el$47.nextSibling, _el$49 = _el$48.nextSibling, _el$50 = _el$49.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.nextSibling, _el$53 = _el$52.nextSibling, _el$54 = _el$53.nextSibling, _el$55 = _el$54.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.nextSibling, _el$58 = _el$57.nextSibling, _el$59 = _el$58.nextSibling, _el$60 = _el$45.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$60.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$62.nextSibling, _el$65 = _el$64.nextSibling, _el$66 = _el$65.nextSibling, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$68.firstChild, _el$70 = _el$68.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.firstChild, _el$73 = _el$72.nextSibling, _el$74 = _el$73.nextSibling, _el$75 = _el$74.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling;
8
8
  setAttribute(_el$3, "id", `a-${id}`);
9
9
  setAttribute(_el$4, "fill", `url(#a-${id})`);
10
10
  setAttribute(_el$6, "id", `b-${id}`);
11
11
  setAttribute(_el$7, "id", `c-${id}`);
12
12
  setAttribute(_el$8, "filter", `url(#b-${id})`);
13
13
  setAttribute(_el$9, "mask", `url(#c-${id})`);
14
- setAttribute(_el$11, "id", `d-${id}`);
15
- setAttribute(_el$12, "id", `e-${id}`);
16
- setAttribute(_el$13, "filter", `url(#d-${id})`);
17
- setAttribute(_el$14, "mask", `url(#e-${id})`);
18
- setAttribute(_el$16, "id", `f-${id}`);
19
- setAttribute(_el$17, "id", `g-${id}`);
20
- setAttribute(_el$18, "filter", `url(#f-${id})`);
21
- setAttribute(_el$19, "mask", `url(#g-${id})`);
22
- setAttribute(_el$21, "id", `h-${id}`);
23
- setAttribute(_el$22, "id", `i-${id}`);
24
- setAttribute(_el$23, "filter", `url(#h-${id})`);
25
- setAttribute(_el$24, "mask", `url(#i-${id})`);
26
- setAttribute(_el$26, "id", `j-${id}`);
27
- setAttribute(_el$27, "id", `k-${id}`);
28
- setAttribute(_el$28, "filter", `url(#j-${id})`);
29
- setAttribute(_el$29, "mask", `url(#k-${id})`);
30
- setAttribute(_el$31, "id", `l-${id}`);
31
- setAttribute(_el$32, "id", `m-${id}`);
32
- setAttribute(_el$33, "filter", `url(#l-${id})`);
33
- setAttribute(_el$34, "mask", `url(#m-${id})`);
34
- setAttribute(_el$36, "id", `n-${id}`);
35
- setAttribute(_el$37, "id", `o-${id}`);
36
- setAttribute(_el$38, "filter", `url(#n-${id})`);
37
- setAttribute(_el$39, "mask", `url(#o-${id})`);
38
- setAttribute(_el$41, "id", `p-${id}`);
39
- setAttribute(_el$42, "fill", `url(#p-${id})`);
40
- setAttribute(_el$44, "id", `q-${id}`);
41
- setAttribute(_el$45, "id", `r-${id}`);
42
- setAttribute(_el$46, "filter", `url(#q-${id})`);
43
- setAttribute(_el$47, "mask", `url(#r-${id})`);
44
- setAttribute(_el$48, "id", `s-${id}`);
45
- setAttribute(_el$49, "fill", `url(#s-${id})`);
46
- setAttribute(_el$50, "id", `t-${id}`);
47
- setAttribute(_el$51, "fill", `url(#t-${id})`);
48
- setAttribute(_el$52, "id", `u-${id}`);
49
- setAttribute(_el$53, "fill", `url(#u-${id})`);
50
- setAttribute(_el$54, "id", `v-${id}`);
51
- setAttribute(_el$55, "fill", `url(#v-${id})`);
52
- setAttribute(_el$56, "id", `w-${id}`);
53
- setAttribute(_el$57, "fill", `url(#w-${id})`);
54
- setAttribute(_el$58, "id", `x-${id}`);
55
- setAttribute(_el$59, "fill", `url(#x-${id})`);
56
- setAttribute(_el$60, "id", `y-${id}`);
57
- setAttribute(_el$61, "fill", `url(#y-${id})`);
58
- setAttribute(_el$63, "id", `z-${id}`);
59
- setAttribute(_el$64, "id", `A-${id}`);
60
- setAttribute(_el$65, "filter", `url(#z-${id})`);
61
- setAttribute(_el$66, "id", `B-${id}`);
62
- setAttribute(_el$67, "fill", `url(#B-${id})`);
63
- setAttribute(_el$67, "mask", `url(#A-${id})`);
64
- setAttribute(_el$69, "id", `C-${id}`);
65
- setAttribute(_el$70, "id", `D-${id}`);
66
- setAttribute(_el$71, "filter", `url(#C-${id})`);
67
- setAttribute(_el$72, "mask", `url(#D-${id})`);
68
- setAttribute(_el$74, "id", `E-${id}`);
69
- setAttribute(_el$75, "fill", `url(#E-${id})`);
70
- setAttribute(_el$76, "id", `F-${id}`);
71
- setAttribute(_el$77, "stroke", `url(#F-${id})`);
72
- setAttribute(_el$78, "id", `G-${id}`);
73
- setAttribute(_el$79, "stroke", `url(#G-${id})`);
74
- setAttribute(_el$80, "id", `H-${id}`);
75
- setAttribute(_el$81, "stroke", `url(#H-${id})`);
76
- setAttribute(_el$82, "id", `I-${id}`);
77
- setAttribute(_el$83, "stroke", `url(#I-${id})`);
78
- setAttribute(_el$84, "id", `J-${id}`);
79
- setAttribute(_el$85, "stroke", `url(#J-${id})`);
80
- setAttribute(_el$86, "id", `K-${id}`);
81
- setAttribute(_el$87, "stroke", `url(#K-${id})`);
82
- setAttribute(_el$88, "id", `L-${id}`);
83
- setAttribute(_el$89, "stroke", `url(#L-${id})`);
84
- setAttribute(_el$90, "id", `M-${id}`);
85
- setAttribute(_el$91, "stroke", `url(#M-${id})`);
14
+ setAttribute(_el$1, "id", `d-${id}`);
15
+ setAttribute(_el$10, "id", `e-${id}`);
16
+ setAttribute(_el$11, "filter", `url(#d-${id})`);
17
+ setAttribute(_el$12, "mask", `url(#e-${id})`);
18
+ setAttribute(_el$14, "id", `f-${id}`);
19
+ setAttribute(_el$15, "id", `g-${id}`);
20
+ setAttribute(_el$16, "filter", `url(#f-${id})`);
21
+ setAttribute(_el$17, "mask", `url(#g-${id})`);
22
+ setAttribute(_el$19, "id", `h-${id}`);
23
+ setAttribute(_el$20, "id", `i-${id}`);
24
+ setAttribute(_el$21, "filter", `url(#h-${id})`);
25
+ setAttribute(_el$22, "mask", `url(#i-${id})`);
26
+ setAttribute(_el$24, "id", `j-${id}`);
27
+ setAttribute(_el$25, "id", `k-${id}`);
28
+ setAttribute(_el$26, "filter", `url(#j-${id})`);
29
+ setAttribute(_el$27, "mask", `url(#k-${id})`);
30
+ setAttribute(_el$29, "id", `l-${id}`);
31
+ setAttribute(_el$30, "id", `m-${id}`);
32
+ setAttribute(_el$31, "filter", `url(#l-${id})`);
33
+ setAttribute(_el$32, "mask", `url(#m-${id})`);
34
+ setAttribute(_el$34, "id", `n-${id}`);
35
+ setAttribute(_el$35, "id", `o-${id}`);
36
+ setAttribute(_el$36, "filter", `url(#n-${id})`);
37
+ setAttribute(_el$37, "mask", `url(#o-${id})`);
38
+ setAttribute(_el$39, "id", `p-${id}`);
39
+ setAttribute(_el$40, "fill", `url(#p-${id})`);
40
+ setAttribute(_el$42, "id", `q-${id}`);
41
+ setAttribute(_el$43, "id", `r-${id}`);
42
+ setAttribute(_el$44, "filter", `url(#q-${id})`);
43
+ setAttribute(_el$45, "mask", `url(#r-${id})`);
44
+ setAttribute(_el$46, "id", `s-${id}`);
45
+ setAttribute(_el$47, "fill", `url(#s-${id})`);
46
+ setAttribute(_el$48, "id", `t-${id}`);
47
+ setAttribute(_el$49, "fill", `url(#t-${id})`);
48
+ setAttribute(_el$50, "id", `u-${id}`);
49
+ setAttribute(_el$51, "fill", `url(#u-${id})`);
50
+ setAttribute(_el$52, "id", `v-${id}`);
51
+ setAttribute(_el$53, "fill", `url(#v-${id})`);
52
+ setAttribute(_el$54, "id", `w-${id}`);
53
+ setAttribute(_el$55, "fill", `url(#w-${id})`);
54
+ setAttribute(_el$56, "id", `x-${id}`);
55
+ setAttribute(_el$57, "fill", `url(#x-${id})`);
56
+ setAttribute(_el$58, "id", `y-${id}`);
57
+ setAttribute(_el$59, "fill", `url(#y-${id})`);
58
+ setAttribute(_el$61, "id", `z-${id}`);
59
+ setAttribute(_el$62, "id", `A-${id}`);
60
+ setAttribute(_el$63, "filter", `url(#z-${id})`);
61
+ setAttribute(_el$64, "id", `B-${id}`);
62
+ setAttribute(_el$65, "fill", `url(#B-${id})`);
63
+ setAttribute(_el$65, "mask", `url(#A-${id})`);
64
+ setAttribute(_el$67, "id", `C-${id}`);
65
+ setAttribute(_el$68, "id", `D-${id}`);
66
+ setAttribute(_el$69, "filter", `url(#C-${id})`);
67
+ setAttribute(_el$70, "mask", `url(#D-${id})`);
68
+ setAttribute(_el$72, "id", `E-${id}`);
69
+ setAttribute(_el$73, "fill", `url(#E-${id})`);
70
+ setAttribute(_el$74, "id", `F-${id}`);
71
+ setAttribute(_el$75, "stroke", `url(#F-${id})`);
72
+ setAttribute(_el$76, "id", `G-${id}`);
73
+ setAttribute(_el$77, "stroke", `url(#G-${id})`);
74
+ setAttribute(_el$78, "id", `H-${id}`);
75
+ setAttribute(_el$79, "stroke", `url(#H-${id})`);
76
+ setAttribute(_el$80, "id", `I-${id}`);
77
+ setAttribute(_el$81, "stroke", `url(#I-${id})`);
78
+ setAttribute(_el$82, "id", `J-${id}`);
79
+ setAttribute(_el$83, "stroke", `url(#J-${id})`);
80
+ setAttribute(_el$84, "id", `K-${id}`);
81
+ setAttribute(_el$85, "stroke", `url(#K-${id})`);
82
+ setAttribute(_el$86, "id", `L-${id}`);
83
+ setAttribute(_el$87, "stroke", `url(#L-${id})`);
84
+ setAttribute(_el$88, "id", `M-${id}`);
85
+ setAttribute(_el$89, "stroke", `url(#M-${id})`);
86
86
  return _el$;
87
87
  })();
88
88
  }