@valaxyjs/devtools 0.18.1 → 0.18.2

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.
@@ -1,5 +1,5 @@
1
- import { _ as _export_sfc } from './_plugin-vue_export-helper-PLawvS9c.js';
2
- import { a as createElementBlock, o as openBlock } from './index-q944aN_L.js';
1
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
2
+ import { a as createElementBlock, o as openBlock } from './index-TkrdMmXn.js';
3
3
 
4
4
  /* unplugin-vue-components disabled */const _sfc_main = {};
5
5
 
@@ -1,5 +1,5 @@
1
- import { _ as _export_sfc } from './_plugin-vue_export-helper-PLawvS9c.js';
2
- import { a as createElementBlock, o as openBlock } from './index-q944aN_L.js';
1
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
2
+ import { a as createElementBlock, o as openBlock } from './index-TkrdMmXn.js';
3
3
 
4
4
  /* unplugin-vue-components disabled */const _sfc_main = {};
5
5
 
@@ -1,5 +1,5 @@
1
- import { g as getAppWindow, d as defineComponent, c as computed, o as openBlock, a as createElementBlock, n as normalizeClass, b as createCommentVNode, r as renderSlot, e as createBaseVNode, f as resolveComponent, h as createBlock, w as withCtx, t as toDisplayString, i as ref, F as Fragment, j as renderList, k as createTextVNode, l as createVNode, p as pageData, m as toRaw, u as unref, q as frontmatter, s as getWindowProperty, v as onMounted, x as getGlobalValaxyProperty, y as activePath, z as devtoolsRouter, A as h, B as normalizeStyle, C as isStaticMode } from './index-q944aN_L.js';
2
- import { _ as _export_sfc } from './_plugin-vue_export-helper-PLawvS9c.js';
1
+ import { g as getAppWindow, d as defineComponent, c as computed, o as openBlock, a as createElementBlock, n as normalizeClass, b as createCommentVNode, r as renderSlot, e as ref, f as onMounted, h as createBaseVNode, i as resolveComponent, j as createBlock, w as withCtx, t as toDisplayString, F as Fragment, k as renderList, l as createTextVNode, m as createVNode, p as pageData, q as toRaw, u as unref, s as frontmatter, v as getWindowProperty, x as getGlobalValaxyProperty, y as activePath, z as devtoolsRouter, A as h, B as normalizeStyle, C as isStaticMode } from './index-TkrdMmXn.js';
2
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
3
3
 
4
4
  const target = getAppWindow();
5
5
  function openInEditor(options = {}) {
@@ -53,11 +53,12 @@ const _hoisted_2$4 = {
53
53
  class: "absolute"
54
54
  };
55
55
  const _hoisted_3$3 = { class: "absolute left-1 h-full flex items-center justify-center text-xs op-60" };
56
- const _hoisted_4$1 = ["value", "placeholder"];
56
+ const _hoisted_4$1 = ["value", "placeholder", "autofocus"];
57
57
  const _hoisted_5 = ["value", "placeholder"];
58
58
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
59
59
  __name: "AGUIInput",
60
60
  props: {
61
+ autofocus: { type: Boolean },
61
62
  className: {},
62
63
  prefixIcon: {},
63
64
  modelValue: {},
@@ -65,11 +66,20 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
65
66
  },
66
67
  emits: ["update:modelValue"],
67
68
  setup(__props, { emit: __emit }) {
69
+ const props = __props;
68
70
  const emit = __emit;
69
71
  function updateModelValue(event) {
70
72
  const val = event.target?.value || "";
71
73
  emit("update:modelValue", val);
72
74
  }
75
+ const inputRef = ref();
76
+ onMounted(async () => {
77
+ if (props.autofocus) {
78
+ setTimeout(() => {
79
+ inputRef.value?.focus();
80
+ }, 1);
81
+ }
82
+ });
73
83
  return (_ctx, _cache) => {
74
84
  return _ctx.prefixIcon ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
75
85
  _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
@@ -82,11 +92,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
82
92
  }, null, 2)) : createCommentVNode("", true)
83
93
  ]),
84
94
  createBaseVNode("input", {
95
+ ref_key: "inputRef",
96
+ ref: inputRef,
85
97
  class: normalizeClass(["agui-input w-full px-1 shadow shadow-inset", {
86
- "pl-5": _ctx.prefixIcon
98
+ "pl-5": _ctx.prefixIcon,
99
+ [_ctx.className || ""]: true
87
100
  }]),
88
101
  value: _ctx.modelValue,
89
102
  placeholder: _ctx.placeholder,
103
+ autofocus: _ctx.autofocus,
90
104
  onInput: updateModelValue
91
105
  }, null, 42, _hoisted_4$1)
92
106
  ])) : (openBlock(), createElementBlock("input", {
@@ -5814,25 +5814,25 @@ const routes = [
5814
5814
  {
5815
5815
  path: '/',
5816
5816
  name: '/',
5817
- component: () => __vitePreload(() => import('./index-Ic8qbUfo.js'),true?__vite__mapDeps([0,1,2]):void 0,import.meta.url),
5817
+ component: () => __vitePreload(() => import('./index-DdMkMZ7h.js'),true?__vite__mapDeps([0,1,2]):void 0,import.meta.url),
5818
5818
  /* no children */
5819
5819
  },
5820
5820
  {
5821
5821
  path: '/about',
5822
5822
  name: '/about',
5823
- component: () => __vitePreload(() => import('./about-ElTANHBg.js'),true?__vite__mapDeps([3,1]):void 0,import.meta.url),
5823
+ component: () => __vitePreload(() => import('./about-DE51eMH5.js'),true?__vite__mapDeps([3,1]):void 0,import.meta.url),
5824
5824
  /* no children */
5825
5825
  },
5826
5826
  {
5827
5827
  path: '/categories',
5828
5828
  name: '/categories',
5829
- component: () => __vitePreload(() => import('./categories-J8DcyOCk.js'),true?__vite__mapDeps([4,1]):void 0,import.meta.url),
5829
+ component: () => __vitePreload(() => import('./categories-DQjxFaH0.js'),true?__vite__mapDeps([4,1]):void 0,import.meta.url),
5830
5830
  /* no children */
5831
5831
  },
5832
5832
  {
5833
5833
  path: '/tags',
5834
5834
  name: '/tags',
5835
- component: () => __vitePreload(() => import('./tags--GcTVHIk.js'),true?__vite__mapDeps([5,1]):void 0,import.meta.url),
5835
+ component: () => __vitePreload(() => import('./tags-DITm504b.js'),true?__vite__mapDeps([5,1]):void 0,import.meta.url),
5836
5836
  /* no children */
5837
5837
  }
5838
5838
  ];
@@ -5840,11 +5840,11 @@ const routes = [
5840
5840
  /* Injected with object hook! */
5841
5841
 
5842
5842
  /*!
5843
- * vue-router v4.2.5
5844
- * (c) 2023 Eduardo San Martin Morote
5843
+ * vue-router v4.3.0
5844
+ * (c) 2024 Eduardo San Martin Morote
5845
5845
  * @license MIT
5846
5846
  */
5847
- const isBrowser = typeof window !== "undefined";
5847
+ const isBrowser = typeof document !== "undefined";
5848
5848
  function isESModule(obj) {
5849
5849
  return obj.__esModule || obj[Symbol.toStringTag] === "Module";
5850
5850
  }
@@ -5860,6 +5860,45 @@ function applyToParams(fn, params) {
5860
5860
  const noop = () => {
5861
5861
  };
5862
5862
  const isArray = Array.isArray;
5863
+ const HASH_RE = /#/g;
5864
+ const AMPERSAND_RE = /&/g;
5865
+ const SLASH_RE = /\//g;
5866
+ const EQUAL_RE = /=/g;
5867
+ const IM_RE = /\?/g;
5868
+ const PLUS_RE = /\+/g;
5869
+ const ENC_BRACKET_OPEN_RE = /%5B/g;
5870
+ const ENC_BRACKET_CLOSE_RE = /%5D/g;
5871
+ const ENC_CARET_RE = /%5E/g;
5872
+ const ENC_BACKTICK_RE = /%60/g;
5873
+ const ENC_CURLY_OPEN_RE = /%7B/g;
5874
+ const ENC_PIPE_RE = /%7C/g;
5875
+ const ENC_CURLY_CLOSE_RE = /%7D/g;
5876
+ const ENC_SPACE_RE = /%20/g;
5877
+ function commonEncode(text) {
5878
+ return encodeURI("" + text).replace(ENC_PIPE_RE, "|").replace(ENC_BRACKET_OPEN_RE, "[").replace(ENC_BRACKET_CLOSE_RE, "]");
5879
+ }
5880
+ function encodeHash(text) {
5881
+ return commonEncode(text).replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
5882
+ }
5883
+ function encodeQueryValue(text) {
5884
+ return commonEncode(text).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
5885
+ }
5886
+ function encodeQueryKey(text) {
5887
+ return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
5888
+ }
5889
+ function encodePath(text) {
5890
+ return commonEncode(text).replace(HASH_RE, "%23").replace(IM_RE, "%3F");
5891
+ }
5892
+ function encodeParam(text) {
5893
+ return text == null ? "" : encodePath(text).replace(SLASH_RE, "%2F");
5894
+ }
5895
+ function decode(text) {
5896
+ try {
5897
+ return decodeURIComponent("" + text);
5898
+ } catch (err) {
5899
+ }
5900
+ return "" + text;
5901
+ }
5863
5902
  const TRAILING_SLASH_RE = /\/$/;
5864
5903
  const removeTrailingSlash = (path) => path.replace(TRAILING_SLASH_RE, "");
5865
5904
  function parseURL(parseQuery2, location2, currentLocation = "/") {
@@ -5883,7 +5922,7 @@ function parseURL(parseQuery2, location2, currentLocation = "/") {
5883
5922
  fullPath: path + (searchString && "?") + searchString + hash,
5884
5923
  path,
5885
5924
  query,
5886
- hash
5925
+ hash: decode(hash)
5887
5926
  };
5888
5927
  }
5889
5928
  function stringifyURL(stringifyQuery2, location2) {
@@ -5942,7 +5981,7 @@ function resolveRelativePath(to, from) {
5942
5981
  } else
5943
5982
  break;
5944
5983
  }
5945
- return fromSegments.slice(0, position).join("/") + "/" + toSegments.slice(toPosition - (toPosition === toSegments.length ? 1 : 0)).join("/");
5984
+ return fromSegments.slice(0, position).join("/") + "/" + toSegments.slice(toPosition).join("/");
5946
5985
  }
5947
5986
  var NavigationType;
5948
5987
  (function(NavigationType2) {
@@ -5983,8 +6022,8 @@ function getElementPosition(el, offset) {
5983
6022
  };
5984
6023
  }
5985
6024
  const computeScrollPosition = () => ({
5986
- left: window.pageXOffset,
5987
- top: window.pageYOffset
6025
+ left: window.scrollX,
6026
+ top: window.scrollY
5988
6027
  });
5989
6028
  function scrollToPosition(position) {
5990
6029
  let scrollToOptions;
@@ -6002,7 +6041,7 @@ function scrollToPosition(position) {
6002
6041
  if ("scrollBehavior" in document.documentElement.style)
6003
6042
  window.scrollTo(scrollToOptions);
6004
6043
  else {
6005
- window.scrollTo(scrollToOptions.left != null ? scrollToOptions.left : window.pageXOffset, scrollToOptions.top != null ? scrollToOptions.top : window.pageYOffset);
6044
+ window.scrollTo(scrollToOptions.left != null ? scrollToOptions.left : window.scrollX, scrollToOptions.top != null ? scrollToOptions.top : window.scrollY);
6006
6045
  }
6007
6046
  }
6008
6047
  function getScrollKey(path, delta) {
@@ -6656,15 +6695,15 @@ function createRouterMatcher(routes, globalOptions) {
6656
6695
  paramsFromLocation(
6657
6696
  currentLocation.params,
6658
6697
  // only keep params that exist in the resolved location
6659
- // TODO: only keep optional params coming from a parent record
6660
- matcher.keys.filter((k) => !k.optional).map((k) => k.name)
6698
+ // only keep optional params coming from a parent record
6699
+ matcher.keys.filter((k) => !k.optional).concat(matcher.parent ? matcher.parent.keys.filter((k) => k.optional) : []).map((k) => k.name)
6661
6700
  ),
6662
6701
  // discard any existing params in the current location that do not exist here
6663
6702
  // #1497 this ensures better active/exact matching
6664
6703
  location2.params && paramsFromLocation(location2.params, matcher.keys.map((k) => k.name))
6665
6704
  );
6666
6705
  path = matcher.stringify(params);
6667
- } else if ("path" in location2) {
6706
+ } else if (location2.path != null) {
6668
6707
  path = location2.path;
6669
6708
  matcher = matchers.find((m) => m.re.test(path));
6670
6709
  if (matcher) {
@@ -6756,45 +6795,6 @@ function mergeOptions(defaults, partialOptions) {
6756
6795
  function isRecordChildOf(record, parent) {
6757
6796
  return parent.children.some((child) => child === record || isRecordChildOf(record, child));
6758
6797
  }
6759
- const HASH_RE = /#/g;
6760
- const AMPERSAND_RE = /&/g;
6761
- const SLASH_RE = /\//g;
6762
- const EQUAL_RE = /=/g;
6763
- const IM_RE = /\?/g;
6764
- const PLUS_RE = /\+/g;
6765
- const ENC_BRACKET_OPEN_RE = /%5B/g;
6766
- const ENC_BRACKET_CLOSE_RE = /%5D/g;
6767
- const ENC_CARET_RE = /%5E/g;
6768
- const ENC_BACKTICK_RE = /%60/g;
6769
- const ENC_CURLY_OPEN_RE = /%7B/g;
6770
- const ENC_PIPE_RE = /%7C/g;
6771
- const ENC_CURLY_CLOSE_RE = /%7D/g;
6772
- const ENC_SPACE_RE = /%20/g;
6773
- function commonEncode(text) {
6774
- return encodeURI("" + text).replace(ENC_PIPE_RE, "|").replace(ENC_BRACKET_OPEN_RE, "[").replace(ENC_BRACKET_CLOSE_RE, "]");
6775
- }
6776
- function encodeHash(text) {
6777
- return commonEncode(text).replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
6778
- }
6779
- function encodeQueryValue(text) {
6780
- return commonEncode(text).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
6781
- }
6782
- function encodeQueryKey(text) {
6783
- return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
6784
- }
6785
- function encodePath(text) {
6786
- return commonEncode(text).replace(HASH_RE, "%23").replace(IM_RE, "%3F");
6787
- }
6788
- function encodeParam(text) {
6789
- return text == null ? "" : encodePath(text).replace(SLASH_RE, "%2F");
6790
- }
6791
- function decode(text) {
6792
- try {
6793
- return decodeURIComponent("" + text);
6794
- } catch (err) {
6795
- }
6796
- return "" + text;
6797
- }
6798
6798
  function parseQuery(search) {
6799
6799
  const query = {};
6800
6800
  if (search === "" || search === "?")
@@ -6874,7 +6874,7 @@ function useCallbacks() {
6874
6874
  reset
6875
6875
  };
6876
6876
  }
6877
- function guardToPromiseFn(guard, to, from, record, name) {
6877
+ function guardToPromiseFn(guard, to, from, record, name, runWithContext = (fn) => fn()) {
6878
6878
  const enterCallbackArray = record && // name is defined if record is because of the function overload
6879
6879
  (record.enterCallbacks[name] = record.enterCallbacks[name] || []);
6880
6880
  return () => new Promise((resolve, reject) => {
@@ -6899,14 +6899,14 @@ function guardToPromiseFn(guard, to, from, record, name) {
6899
6899
  resolve();
6900
6900
  }
6901
6901
  };
6902
- const guardReturn = guard.call(record && record.instances[name], to, from, next);
6902
+ const guardReturn = runWithContext(() => guard.call(record && record.instances[name], to, from, next));
6903
6903
  let guardCall = Promise.resolve(guardReturn);
6904
6904
  if (guard.length < 3)
6905
6905
  guardCall = guardCall.then(next);
6906
6906
  guardCall.catch((err) => reject(err));
6907
6907
  });
6908
6908
  }
6909
- function extractComponentsGuards(matched, guardType, to, from) {
6909
+ function extractComponentsGuards(matched, guardType, to, from, runWithContext = (fn) => fn()) {
6910
6910
  const guards = [];
6911
6911
  for (const record of matched) {
6912
6912
  for (const name in record.components) {
@@ -6916,7 +6916,7 @@ function extractComponentsGuards(matched, guardType, to, from) {
6916
6916
  if (isRouteComponent(rawComponent)) {
6917
6917
  const options = rawComponent.__vccOpts || rawComponent;
6918
6918
  const guard = options[guardType];
6919
- guard && guards.push(guardToPromiseFn(guard, to, from, record, name));
6919
+ guard && guards.push(guardToPromiseFn(guard, to, from, record, name, runWithContext));
6920
6920
  } else {
6921
6921
  let componentPromise = rawComponent();
6922
6922
  guards.push(() => componentPromise.then((resolved) => {
@@ -6926,7 +6926,7 @@ function extractComponentsGuards(matched, guardType, to, from) {
6926
6926
  record.components[name] = resolvedComponent;
6927
6927
  const options = resolvedComponent.__vccOpts || resolvedComponent;
6928
6928
  const guard = options[guardType];
6929
- return guard && guardToPromiseFn(guard, to, from, record, name)();
6929
+ return guard && guardToPromiseFn(guard, to, from, record, name, runWithContext)();
6930
6930
  }));
6931
6931
  }
6932
6932
  }
@@ -7198,7 +7198,7 @@ function createRouter$1(options) {
7198
7198
  });
7199
7199
  }
7200
7200
  let matcherLocation;
7201
- if ("path" in rawLocation) {
7201
+ if (rawLocation.path != null) {
7202
7202
  matcherLocation = assign({}, rawLocation, {
7203
7203
  path: parseURL(parseQuery$1, rawLocation.path, currentLocation.path).path
7204
7204
  });
@@ -7273,7 +7273,7 @@ function createRouter$1(options) {
7273
7273
  query: to.query,
7274
7274
  hash: to.hash,
7275
7275
  // avoid transferring params if the redirect has a path
7276
- params: "path" in newTargetLocation ? {} : to.params
7276
+ params: newTargetLocation.path != null ? {} : to.params
7277
7277
  }, newTargetLocation);
7278
7278
  }
7279
7279
  }
@@ -7398,7 +7398,7 @@ function createRouter$1(options) {
7398
7398
  return runGuardQueue(guards);
7399
7399
  }).then(() => {
7400
7400
  to.matched.forEach((record) => record.enterCallbacks = {});
7401
- guards = extractComponentsGuards(enteringRecords, "beforeRouteEnter", to, from);
7401
+ guards = extractComponentsGuards(enteringRecords, "beforeRouteEnter", to, from, runWithContext);
7402
7402
  guards.push(canceledNavigationCheck);
7403
7403
  return runGuardQueue(guards);
7404
7404
  }).then(() => {
@@ -7734,10 +7734,10 @@ app.mount("#app");
7734
7734
 
7735
7735
  /* Injected with object hook! */
7736
7736
 
7737
- export { h as A, normalizeStyle as B, isStaticMode as C, Fragment as F, createElementBlock as a, createCommentVNode as b, computed as c, defineComponent as d, createBaseVNode as e, resolveComponent as f, getAppWindow as g, createBlock as h, ref as i, renderList as j, createTextVNode as k, createVNode as l, toRaw as m, normalizeClass as n, openBlock as o, pageData as p, frontmatter as q, renderSlot as r, getWindowProperty as s, toDisplayString as t, unref as u, onMounted as v, withCtx as w, getGlobalValaxyProperty as x, activePath as y, devtoolsRouter as z };
7737
+ export { h as A, normalizeStyle as B, isStaticMode as C, Fragment as F, createElementBlock as a, createCommentVNode as b, computed as c, defineComponent as d, ref as e, onMounted as f, getAppWindow as g, createBaseVNode as h, resolveComponent as i, createBlock as j, renderList as k, createTextVNode as l, createVNode as m, normalizeClass as n, openBlock as o, pageData as p, toRaw as q, renderSlot as r, frontmatter as s, toDisplayString as t, unref as u, getWindowProperty as v, withCtx as w, getGlobalValaxyProperty as x, activePath as y, devtoolsRouter as z };
7738
7738
  function __vite__mapDeps(indexes) {
7739
7739
  if (!__vite__mapDeps.viteFileDeps) {
7740
- __vite__mapDeps.viteFileDeps = ["./index-Ic8qbUfo.js","./_plugin-vue_export-helper-PLawvS9c.js","./index-xfOC-KHy.css","./about-ElTANHBg.js","./categories-J8DcyOCk.js","./tags--GcTVHIk.js"]
7740
+ __vite__mapDeps.viteFileDeps = ["./index-DdMkMZ7h.js","./_plugin-vue_export-helper-DgDhiqFL.js","./index-DF84L4of.css","./about-DE51eMH5.js","./categories-DQjxFaH0.js","./tags-DITm504b.js"]
7741
7741
  }
7742
7742
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7743
7743
  }
@@ -1,5 +1,5 @@
1
- import { _ as _export_sfc } from './_plugin-vue_export-helper-PLawvS9c.js';
2
- import { a as createElementBlock, o as openBlock } from './index-q944aN_L.js';
1
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
2
+ import { a as createElementBlock, o as openBlock } from './index-TkrdMmXn.js';
3
3
 
4
4
  /* unplugin-vue-components disabled */const _sfc_main = {};
5
5
 
@@ -6,8 +6,8 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <link rel="icon" href="/favicon.svg" type="image/svg+xml">
8
8
  <title>Valaxy Devtools</title>
9
- <script type="module" crossorigin src="./assets/index-q944aN_L.js"></script>
10
- <link rel="stylesheet" crossorigin href="./assets/index-NKBWV0hh.css">
9
+ <script type="module" crossorigin src="./assets/index-TkrdMmXn.js"></script>
10
+ <link rel="stylesheet" crossorigin href="./assets/index-0oFZXSGH.css">
11
11
  </head>
12
12
 
13
13
  <body data-vite-inspect-mode="DEV">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valaxyjs/devtools",
3
3
  "type": "module",
4
- "version": "0.18.1",
4
+ "version": "0.18.2",
5
5
  "repository": {
6
6
  "url": "https://github.com/YunYouJun/valaxy"
7
7
  },
@@ -25,7 +25,7 @@
25
25
  "sirv": "^2.0.4"
26
26
  },
27
27
  "devDependencies": {
28
- "@advjs/gui": "0.0.5-beta.0",
28
+ "@advjs/gui": "0.0.5-beta.7",
29
29
  "@iconify-json/ri": "^1.1.19",
30
30
  "@types/body-parser": "^1.19.5",
31
31
  "@types/splitpanes": "^2.2.6",
@@ -33,8 +33,8 @@
33
33
  "splitpanes": "^3.1.5",
34
34
  "typescript": "^5.3.3",
35
35
  "unbuild": "^2.0.0",
36
- "unplugin-vue-router": "^0.7.0",
37
- "vite": "^5.1.1"
36
+ "unplugin-vue-router": "^0.8.4",
37
+ "vite": "^5.1.4"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "rimraf dist && run-s build:*",
@@ -7,52 +7,53 @@ export {}
7
7
 
8
8
  declare module 'vue' {
9
9
  export interface GlobalComponents {
10
- AGUIAccordion: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/accordion/AGUIAccordion.vue')['default']
11
- AGUIAccordionItem: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/accordion/AGUIAccordionItem.vue')['default']
12
- AGUIApp: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIApp.vue')['default']
13
- AGUIAssetsExplorer: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIAssetsExplorer.vue')['default']
14
- AGUIBreadcrumb: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/breadcrumb/AGUIBreadcrumb.vue')['default']
15
- AGUIButton: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/button/AGUIButton.vue')['default']
16
- AGUICheckbox: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUICheckbox.vue')['default']
17
- AGUIColorPicker: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIColorPicker.vue')['default']
18
- AGUIContextMenu: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/context-menu/AGUIContextMenu.vue')['default']
19
- AGUIContextMenuItem: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/context-menu/AGUIContextMenuItem.vue')['default']
20
- AGUIDetails: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIDetails.vue')['default']
21
- AGUIExplorerControls: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIExplorerControls.vue')['default']
22
- AGUIFileHandler: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/file/AGUIFileHandler.vue')['default']
23
- AGUIFileItem: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIFileItem.vue')['default']
24
- AGUIFileList: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIFileList.vue')['default']
25
- AGUIForm: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/form/AGUIForm.vue')['default']
26
- AGUIFormItem: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/form/AGUIFormItem.vue')['default']
27
- AGUIHr: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/common/AGUIHr.vue')['default']
28
- AGUIIcon: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/icon/AGUIIcon.vue')['default']
29
- AGUIIconButton: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/button/AGUIIconButton.vue')['default']
30
- AGUIInnerInput: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/input/AGUIInnerInput.vue')['default']
31
- AGUIInput: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/input/AGUIInput.vue')['default']
32
- AGUIInputNumber: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/input/AGUIInputNumber.vue')['default']
33
- AGUIInputVector: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/input/AGUIInputVector.vue')['default']
34
- AGUILayout: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/layout/AGUILayout.vue')['default']
35
- AGUIMenubar: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/menu/AGUIMenubar.vue')['default']
36
- AGUIMenubarMenu: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/menu/AGUIMenubarMenu.vue')['default']
37
- AGUINumberField: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUINumberField.vue')['default']
38
- AGUINumberSlider: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUINumberSlider.vue')['default']
39
- AGUIOpenDirectory: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIOpenDirectory.vue')['default']
40
- AGUIOverlay: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIOverlay.vue')['default']
41
- AGUIPanel: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIPanel.vue')['default']
42
- AGUIPropertiesForm: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/panel/AGUIPropertiesForm.vue')['default']
43
- AGUIPropertiesPanel: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/panel/AGUIPropertiesPanel.vue')['default']
44
- AGUIProperty: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIProperty.vue')['default']
45
- AGUISelect: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/select/AGUISelect.vue')['default']
46
- AGUISlider: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUISlider.vue')['default']
47
- AGUITabPanel: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/tabs/AGUITabPanel.vue')['default']
48
- AGUITabs: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/tabs/AGUITabs.vue')['default']
49
- AGUIToast: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/toast/AGUIToast.vue')['default']
50
- AGUIToggleIcon: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/button/AGUIToggleIcon.vue')['default']
51
- AGUIToolbar: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/toolbar/AGUIToolbar.vue')['default']
52
- AGUITree: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/tree/AGUITree.vue')['default']
53
- AGUITreeNode: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/tree/AGUITreeNode.vue')['default']
54
- BIconChevronLeft: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/icons/BIconChevronLeft.vue')['default']
55
- BIconChevronRight: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.0_vue@3.4.19/node_modules/@advjs/gui/client/components/icons/BIconChevronRight.vue')['default']
10
+ AGUIAccordion: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/accordion/AGUIAccordion.vue')['default']
11
+ AGUIAccordionItem: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/accordion/AGUIAccordionItem.vue')['default']
12
+ AGUIApp: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIApp.vue')['default']
13
+ AGUIAssetsExplorer: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIAssetsExplorer.vue')['default']
14
+ AGUIBreadcrumb: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/breadcrumb/AGUIBreadcrumb.vue')['default']
15
+ AGUIButton: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/button/AGUIButton.vue')['default']
16
+ AGUICheckbox: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUICheckbox.vue')['default']
17
+ AGUIColorPicker: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIColorPicker.vue')['default']
18
+ AGUIContextMenu: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/context-menu/AGUIContextMenu.vue')['default']
19
+ AGUIContextMenuItem: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/context-menu/AGUIContextMenuItem.vue')['default']
20
+ AGUIDetails: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIDetails.vue')['default']
21
+ AGUIExplorerControls: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIExplorerControls.vue')['default']
22
+ AGUIFileHandler: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/file/AGUIFileHandler.vue')['default']
23
+ AGUIFileItem: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIFileItem.vue')['default']
24
+ AGUIFileList: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIFileList.vue')['default']
25
+ AGUIForm: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/form/AGUIForm.vue')['default']
26
+ AGUIFormItem: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/form/AGUIFormItem.vue')['default']
27
+ AGUIHr: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/common/AGUIHr.vue')['default']
28
+ AGUIIcon: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/icon/AGUIIcon.vue')['default']
29
+ AGUIIconButton: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/button/AGUIIconButton.vue')['default']
30
+ AGUIInnerInput: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/input/AGUIInnerInput.vue')['default']
31
+ AGUIInput: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/input/AGUIInput.vue')['default']
32
+ AGUIInputNumber: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/input/AGUIInputNumber.vue')['default']
33
+ AGUIInputVector: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/input/AGUIInputVector.vue')['default']
34
+ AGUILayout: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/layout/AGUILayout.vue')['default']
35
+ AGUIMenubar: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/menu/AGUIMenubar.vue')['default']
36
+ AGUIMenubarMenu: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/menu/AGUIMenubarMenu.vue')['default']
37
+ AGUINumberField: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUINumberField.vue')['default']
38
+ AGUINumberSlider: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUINumberSlider.vue')['default']
39
+ AGUIOpenDirectory: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/explorer/AGUIOpenDirectory.vue')['default']
40
+ AGUIOverlay: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIOverlay.vue')['default']
41
+ AGUIPanel: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIPanel.vue')['default']
42
+ AGUIPropertiesForm: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/panel/AGUIPropertiesForm.vue')['default']
43
+ AGUIPropertiesPanel: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/panel/AGUIPropertiesPanel.vue')['default']
44
+ AGUIProperty: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUIProperty.vue')['default']
45
+ AGUISelect: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/select/AGUISelect.vue')['default']
46
+ AGUISlider: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/AGUISlider.vue')['default']
47
+ AGUITabPanel: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/tabs/AGUITabPanel.vue')['default']
48
+ AGUITabs: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/tabs/AGUITabs.vue')['default']
49
+ AGUITextarea: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/textarea/AGUITextarea.vue')['default']
50
+ AGUIToast: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/toast/AGUIToast.vue')['default']
51
+ AGUIToggleIcon: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/button/AGUIToggleIcon.vue')['default']
52
+ AGUIToolbar: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/toolbar/AGUIToolbar.vue')['default']
53
+ AGUITree: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/tree/AGUITree.vue')['default']
54
+ AGUITreeNode: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/tree/AGUITreeNode.vue')['default']
55
+ BIconChevronLeft: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/icons/BIconChevronLeft.vue')['default']
56
+ BIconChevronRight: typeof import('./../../../../node_modules/.pnpm/@advjs+gui@0.0.5-beta.7_vue@3.4.19/node_modules/@advjs/gui/client/components/icons/BIconChevronRight.vue')['default']
56
57
  PageFrontmatter: typeof import('./components/PageFrontmatter.vue')['default']
57
58
  PostPanel: typeof import('./components/PostPanel.vue')['default']
58
59
  RouterLink: typeof import('vue-router')['RouterLink']
@@ -1,5 +1,7 @@
1
1
  // register vue composition api globally
2
2
  import { createApp } from 'vue'
3
+
4
+ // @ts-expect-error ignore vue-router/auto
3
5
  import { createRouter, createWebHashHistory } from 'vue-router/auto'
4
6
  import App from './App.vue'
5
7
 
@@ -5,39 +5,18 @@
5
5
  // It's recommended to commit this file.
6
6
  // Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.
7
7
 
8
- /// <reference types="unplugin-vue-router/client" />
8
+ declare module 'vue-router/auto-routes' {
9
+ import type {
10
+ RouteRecordInfo,
11
+ ParamValue,
12
+ ParamValueOneOrMore,
13
+ ParamValueZeroOrMore,
14
+ ParamValueZeroOrOne,
15
+ } from 'unplugin-vue-router/types'
9
16
 
10
- import type {
11
- // type safe route locations
12
- RouteLocationTypedList,
13
- RouteLocationResolvedTypedList,
14
- RouteLocationNormalizedTypedList,
15
- RouteLocationNormalizedLoadedTypedList,
16
- RouteLocationAsString,
17
- RouteLocationAsRelativeTypedList,
18
- RouteLocationAsPathTypedList,
19
-
20
- // helper types
21
- // route definitions
22
- RouteRecordInfo,
23
- ParamValue,
24
- ParamValueOneOrMore,
25
- ParamValueZeroOrMore,
26
- ParamValueZeroOrOne,
27
-
28
- // vue-router extensions
29
- _RouterTyped,
30
- RouterLinkTyped,
31
- RouterLinkPropsTyped,
32
- NavigationGuard,
33
- UseLinkFnTyped,
34
-
35
- // data fetching
36
- _DataLoader,
37
- _DefineLoaderOptions,
38
- } from 'unplugin-vue-router/types'
39
-
40
- declare module 'vue-router/auto/routes' {
17
+ /**
18
+ * Route name map generated by unplugin-vue-router
19
+ */
41
20
  export interface RouteNamedMap {
42
21
  '/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
43
22
  '/about': RouteRecordInfo<'/about', '/about', Record<never, never>, Record<never, never>>,
@@ -45,100 +24,3 @@ declare module 'vue-router/auto/routes' {
45
24
  '/tags': RouteRecordInfo<'/tags', '/tags', Record<never, never>, Record<never, never>>,
46
25
  }
47
26
  }
48
-
49
- declare module 'vue-router/auto' {
50
- import type { RouteNamedMap } from 'vue-router/auto/routes'
51
-
52
- export type RouterTyped = _RouterTyped<RouteNamedMap>
53
-
54
- /**
55
- * Type safe version of `RouteLocationNormalized` (the type of `to` and `from` in navigation guards).
56
- * Allows passing the name of the route to be passed as a generic.
57
- */
58
- export type RouteLocationNormalized<Name extends keyof RouteNamedMap = keyof RouteNamedMap> = RouteLocationNormalizedTypedList<RouteNamedMap>[Name]
59
-
60
- /**
61
- * Type safe version of `RouteLocationNormalizedLoaded` (the return type of `useRoute()`).
62
- * Allows passing the name of the route to be passed as a generic.
63
- */
64
- export type RouteLocationNormalizedLoaded<Name extends keyof RouteNamedMap = keyof RouteNamedMap> = RouteLocationNormalizedLoadedTypedList<RouteNamedMap>[Name]
65
-
66
- /**
67
- * Type safe version of `RouteLocationResolved` (the returned route of `router.resolve()`).
68
- * Allows passing the name of the route to be passed as a generic.
69
- */
70
- export type RouteLocationResolved<Name extends keyof RouteNamedMap = keyof RouteNamedMap> = RouteLocationResolvedTypedList<RouteNamedMap>[Name]
71
-
72
- /**
73
- * Type safe version of `RouteLocation` . Allows passing the name of the route to be passed as a generic.
74
- */
75
- export type RouteLocation<Name extends keyof RouteNamedMap = keyof RouteNamedMap> = RouteLocationTypedList<RouteNamedMap>[Name]
76
-
77
- /**
78
- * Type safe version of `RouteLocationRaw` . Allows passing the name of the route to be passed as a generic.
79
- */
80
- export type RouteLocationRaw<Name extends keyof RouteNamedMap = keyof RouteNamedMap> =
81
- | RouteLocationAsString<RouteNamedMap>
82
- | RouteLocationAsRelativeTypedList<RouteNamedMap>[Name]
83
- | RouteLocationAsPathTypedList<RouteNamedMap>[Name]
84
-
85
- /**
86
- * Generate a type safe params for a route location. Requires the name of the route to be passed as a generic.
87
- */
88
- export type RouteParams<Name extends keyof RouteNamedMap> = RouteNamedMap[Name]['params']
89
- /**
90
- * Generate a type safe raw params for a route location. Requires the name of the route to be passed as a generic.
91
- */
92
- export type RouteParamsRaw<Name extends keyof RouteNamedMap> = RouteNamedMap[Name]['paramsRaw']
93
-
94
- export function useRouter(): RouterTyped
95
- export function useRoute<Name extends keyof RouteNamedMap = keyof RouteNamedMap>(name?: Name): RouteLocationNormalizedLoadedTypedList<RouteNamedMap>[Name]
96
-
97
- export const useLink: UseLinkFnTyped<RouteNamedMap>
98
-
99
- export function onBeforeRouteLeave(guard: NavigationGuard<RouteNamedMap>): void
100
- export function onBeforeRouteUpdate(guard: NavigationGuard<RouteNamedMap>): void
101
-
102
- export const RouterLink: RouterLinkTyped<RouteNamedMap>
103
- export const RouterLinkProps: RouterLinkPropsTyped<RouteNamedMap>
104
-
105
- // Experimental Data Fetching
106
-
107
- export function defineLoader<
108
- P extends Promise<any>,
109
- Name extends keyof RouteNamedMap = keyof RouteNamedMap,
110
- isLazy extends boolean = false,
111
- >(
112
- name: Name,
113
- loader: (route: RouteLocationNormalizedLoaded<Name>) => P,
114
- options?: _DefineLoaderOptions<isLazy>,
115
- ): _DataLoader<Awaited<P>, isLazy>
116
- export function defineLoader<
117
- P extends Promise<any>,
118
- isLazy extends boolean = false,
119
- >(
120
- loader: (route: RouteLocationNormalizedLoaded) => P,
121
- options?: _DefineLoaderOptions<isLazy>,
122
- ): _DataLoader<Awaited<P>, isLazy>
123
-
124
- export {
125
- _definePage as definePage,
126
- _HasDataLoaderMeta as HasDataLoaderMeta,
127
- _setupDataFetchingGuard as setupDataFetchingGuard,
128
- _stopDataFetchingScope as stopDataFetchingScope,
129
- } from 'unplugin-vue-router/runtime'
130
- }
131
-
132
- declare module 'vue-router' {
133
- import type { RouteNamedMap } from 'vue-router/auto/routes'
134
-
135
- export interface TypesConfig {
136
- beforeRouteUpdate: NavigationGuard<RouteNamedMap>
137
- beforeRouteLeave: NavigationGuard<RouteNamedMap>
138
-
139
- $route: RouteLocationNormalizedLoadedTypedList<RouteNamedMap>[keyof RouteNamedMap]
140
- $router: _RouterTyped<RouteNamedMap>
141
-
142
- RouterLink: RouterLinkTyped<RouteNamedMap>
143
- }
144
- }
package/tsconfig.json CHANGED
@@ -10,12 +10,17 @@
10
10
  "moduleResolution": "Bundler",
11
11
  "resolveJsonModule": true,
12
12
  "types": [
13
- "vite/client"
13
+ "vite/client",
14
+ "unplugin-vue-router/client"
14
15
  ],
15
16
  "strict": true,
16
17
  "strictNullChecks": true,
17
18
  "esModuleInterop": true,
18
19
  "skipDefaultLibCheck": true,
19
20
  "skipLibCheck": true
20
- }
21
+ },
22
+ "include": [
23
+ "./src/client/typed-routes.d.ts",
24
+ "./src/**/*.ts"
25
+ ]
21
26
  }