@xy-planning-network/trees 0.4.0-rc-5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +236 -53
  2. package/dist/trees.es.js +224 -225
  3. package/dist/trees.umd.js +5 -5
  4. package/package.json +10 -7
  5. package/src/lib-components/layout/DateFilter.vue +14 -16
  6. package/src/lib-components/layout/SidebarLayout.vue +1 -1
  7. package/src/lib-components/layout/StackedLayout.vue +3 -2
  8. package/src/lib-components/lists/StaticTable.vue +1 -1
  9. package/src/lib-components/lists/Table.vue +1 -1
  10. package/src/lib-components/navigation/ActionsDropdown.vue +2 -2
  11. package/src/lib-components/navigation/Paginator.vue +1 -9
  12. package/src/lib-components/overlays/Flash.vue +1 -6
  13. package/{dist/types → types}/api/base.d.ts +0 -0
  14. package/types/components.d.ts +12 -0
  15. package/types/composables/date.d.ts +4 -0
  16. package/types/composables/nav.d.ts +13 -0
  17. package/types/composables/overlay.d.ts +4 -0
  18. package/{dist/types/types → types/composables}/table.d.ts +3 -3
  19. package/types/composables/user.d.ts +6 -0
  20. package/{dist/types → types}/entry.d.ts +1 -3
  21. package/types/global.d.ts +13 -0
  22. package/{dist/types → types}/helpers/Uniques.d.ts +0 -0
  23. package/{dist/types → types}/lib-components/forms/BaseInput.vue.d.ts +2 -2
  24. package/{dist/types → types}/lib-components/forms/Checkbox.vue.d.ts +1 -1
  25. package/{dist/types → types}/lib-components/forms/DateRangePicker.vue.d.ts +2 -2
  26. package/{dist/types → types}/lib-components/forms/InputHelp.vue.d.ts +2 -2
  27. package/{dist/types → types}/lib-components/forms/InputLabel.vue.d.ts +0 -0
  28. package/{dist/types → types}/lib-components/forms/MultiCheckboxes.vue.d.ts +2 -2
  29. package/{dist/types → types}/lib-components/forms/Radio.vue.d.ts +3 -3
  30. package/{dist/types → types}/lib-components/forms/Select.vue.d.ts +5 -5
  31. package/{dist/types → types}/lib-components/forms/TextArea.vue.d.ts +2 -2
  32. package/{dist/types → types}/lib-components/forms/Toggle.vue.d.ts +0 -0
  33. package/{dist/types → types}/lib-components/forms/YesOrNoRadio.vue.d.ts +3 -3
  34. package/{dist/types → types}/lib-components/index.d.ts +29 -31
  35. package/{dist/types → types}/lib-components/layout/DateFilter.vue.d.ts +1 -4
  36. package/{dist/types → types}/lib-components/layout/SidebarLayout.vue.d.ts +1 -1
  37. package/{dist/types → types}/lib-components/layout/StackedLayout.vue.d.ts +2 -2
  38. package/{dist/types → types}/lib-components/lists/Cards.vue.d.ts +0 -0
  39. package/{dist/types → types}/lib-components/lists/DetailList.vue.d.ts +1 -1
  40. package/{dist/types → types}/lib-components/lists/DownloadCell.vue.d.ts +0 -0
  41. package/{dist/types → types}/lib-components/lists/StaticTable.vue.d.ts +1 -1
  42. package/{dist/types → types}/lib-components/lists/Table.vue.d.ts +1 -1
  43. package/{dist/types → types}/lib-components/navigation/ActionsDropdown.vue.d.ts +2 -2
  44. package/{dist/types → types}/lib-components/navigation/Paginator.vue.d.ts +1 -6
  45. package/{dist/types → types}/lib-components/navigation/Steps.vue.d.ts +2 -2
  46. package/{dist/types → types}/lib-components/navigation/Tabs.vue.d.ts +0 -0
  47. package/{dist/types → types}/lib-components/overlays/ContentModal.vue.d.ts +1 -1
  48. package/{dist/types/lib-components/overlays/Spinner.vue.d.ts → types/lib-components/overlays/Flash.vue.d.ts} +0 -0
  49. package/{dist/types → types}/lib-components/overlays/Modal.vue.d.ts +3 -3
  50. package/{dist/types → types}/lib-components/overlays/Slideover.vue.d.ts +1 -1
  51. package/{dist/types/lib-components/overlays/Flash.vue.d.ts → types/lib-components/overlays/Spinner.vue.d.ts} +0 -4
  52. package/dist/types/types/nav.d.ts +0 -7
  53. package/dist/types/types/users.d.ts +0 -9
  54. package/src/types/env.d.ts +0 -18
  55. package/src/types/global.d.ts +0 -10
package/package.json CHANGED
@@ -1,32 +1,34 @@
1
1
  {
2
2
  "name": "@xy-planning-network/trees",
3
- "version": "0.4.0-rc-5",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "repository": "github:xy-planning-network/trees",
7
7
  "files": [
8
8
  "config/*",
9
9
  "dist/*",
10
- "src/**/*.d.ts",
10
+ "src/**/*.css",
11
11
  "src/**/*.vue",
12
- "src/**/*.css"
12
+ "types/*"
13
13
  ],
14
14
  "main": "dist/trees.es.js",
15
15
  "module": "dist/trees.es.js",
16
16
  "style": "src/index.css",
17
17
  "unpkg": "dist/trees.umd.js",
18
- "types": "dist/types/entry.d.ts",
18
+ "types": "types/entry.d.ts",
19
19
  "sideEffects": [
20
20
  "*.css",
21
21
  "*.vue"
22
22
  ],
23
23
  "scripts": {
24
24
  "dev": "vite",
25
- "build": "vite build && vue-tsc -d --emitDeclarationOnly && tsc-alias",
26
- "build:docs": "vue-tsc --noEmit && vite build --config vite.docs.config.ts",
25
+ "build": "vite build && vue-tsc -p src --emitDeclarationOnly && npm run copy:types && tsc-alias -p src/tsconfig.json",
26
+ "build:docs": "vue-tsc -p dev --noEmit && vite build --config vite.docs.config.ts",
27
+ "copy:types": "copyfiles -f ./src/*.d.ts ./types",
27
28
  "lint": "eslint --ext .js,.ts,.vue src",
28
29
  "lint:fix": "eslint --fix --ext .js,.ts,.vue src dev && prettier -w -u src dev",
29
- "preview": "vite preview --config vite.docs.config.ts"
30
+ "preview": "vite preview --config vite.docs.config.ts",
31
+ "typecheck": "vue-tsc -p src --noEmit"
30
32
  },
31
33
  "devDependencies": {
32
34
  "@types/node": "^16.11.13",
@@ -36,6 +38,7 @@
36
38
  "@vue/eslint-config-prettier": "^6.0.0",
37
39
  "@vue/eslint-config-typescript": "^9.1.0",
38
40
  "autoprefixer": "^10.4.0",
41
+ "copyfiles": "^2.4.1",
39
42
  "deepmerge": "^4.2.2",
40
43
  "eslint": "^8.4.1",
41
44
  "eslint-config-prettier": "^8.3.0",
@@ -1,12 +1,8 @@
1
- <script lang="ts">
2
- export interface DateRange {
3
- minDate: number
4
- maxDate: number
5
- }
6
- </script>
7
1
  <script setup lang="ts">
2
+ import { DateRange } from "@/composables/date"
8
3
  import { ref } from "vue"
9
4
  import DateRangePicker from "../forms/DateRangePicker.vue"
5
+ import Select from "@/lib-components/forms/Select.vue"
10
6
 
11
7
  const props = defineProps<{
12
8
  dateRange: DateRange
@@ -14,6 +10,11 @@ const props = defineProps<{
14
10
  title: string
15
11
  }>()
16
12
  const dateRange = ref<DateRange>(props.dateRange)
13
+ const sortDir = ref<string>(props.sortDir)
14
+ const sortOptions = [
15
+ { label: "Newest-Oldest", value: "DESC" },
16
+ { label: "Oldest-Newest", value: "ASC" },
17
+ ]
17
18
 
18
19
  const emits = defineEmits<{
19
20
  (e: "sort-dir-changed", val: string): void
@@ -38,17 +39,14 @@ const dateRangeChanged = (dateRange: DateRange) => {
38
39
  </h1>
39
40
  </div>
40
41
  <div class="mt-4 flex md:mt-0 md:ml-4">
41
- <select
42
- @change="sortDirChanged(($event.target as HTMLInputElement).value)"
43
- class="block w-full border border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm"
44
- >
45
- <option value="DESC">Newest-Oldest</option>
46
- <option value="ASC">Oldest-Newest</option>
47
- </select>
48
-
42
+ <Select
43
+ v-model="sortDir"
44
+ :options="sortOptions"
45
+ @update:modelValue="sortDirChanged"
46
+ ></Select>
49
47
  <DateRangePicker
50
- :modelValue="dateRange"
51
- @update:modelValue="dateRangeChanged($event)"
48
+ v-model="dateRange"
49
+ @update:modelValue="dateRangeChanged"
52
50
  class="ml-3"
53
51
  />
54
52
  </div>
@@ -13,7 +13,7 @@ import {
13
13
  } from "@headlessui/vue"
14
14
  import { MenuAlt2Icon, XIcon } from "@heroicons/vue/outline"
15
15
  import { CogIcon } from "@heroicons/vue/solid"
16
- import * as NavTypes from "../../types/nav"
16
+ import * as NavTypes from "@/composables/nav"
17
17
  import { ref } from "vue"
18
18
 
19
19
  const props = withDefaults(
@@ -11,8 +11,8 @@ import {
11
11
  MenuItems,
12
12
  } from "@headlessui/vue"
13
13
  import { MenuIcon, UserCircleIcon, XIcon } from "@heroicons/vue/outline"
14
- import * as NavTypes from "../../types/nav"
15
- import User from "../../types/users"
14
+ import * as NavTypes from "@/composables/nav"
15
+ import User from "@/composables/user"
16
16
 
17
17
  const props = withDefaults(
18
18
  defineProps<{
@@ -132,6 +132,7 @@ const isActive = (url: string): boolean => {
132
132
  <div class="ml-3">
133
133
  <div
134
134
  class="text-base font-medium text-gray-800"
135
+ v-if="currentUser.name"
135
136
  v-text="currentUser.name"
136
137
  ></div>
137
138
  <div
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { ComponentPublicInstance, getCurrentInstance } from "vue"
3
- import * as TableTypes from "../../types/table"
3
+ import * as TableTypes from "@/composables/table"
4
4
 
5
5
  defineProps<{
6
6
  tableData: TableTypes.Static
@@ -10,7 +10,7 @@ import {
10
10
  import DateRangePicker from "../forms/DateRangePicker.vue"
11
11
  import Paginator from "../navigation/Paginator.vue"
12
12
  import BaseAPI from "../../api/base"
13
- import * as TableTypes from "../../types/table"
13
+ import * as TableTypes from "@/composables/table"
14
14
 
15
15
  const props = withDefaults(
16
16
  defineProps<{
@@ -2,8 +2,8 @@
2
2
  import { Menu, MenuButton, MenuItem, MenuItems } from "@headlessui/vue"
3
3
  import { DotsVerticalIcon } from "@heroicons/vue/solid"
4
4
  import { onMounted, ref } from "vue"
5
- import * as TableTypes from "../../types/table"
6
- import User from "../../types/users"
5
+ import * as TableTypes from "@/composables/table"
6
+ import User from "@/composables/user"
7
7
 
8
8
  const props = defineProps<{
9
9
  currentUser: User
@@ -1,13 +1,5 @@
1
- <script lang="ts">
2
- // TODO: explore this further as a pattern for exporting commonly used types
3
- export interface Pagination {
4
- page: number
5
- perPage: number
6
- totalItems: number
7
- totalPages: number
8
- }
9
- </script>
10
1
  <script setup lang="ts">
2
+ import { Pagination } from "@/composables/nav"
11
3
  import { computed, ref } from "vue"
12
4
 
13
5
  const props = defineProps<{
@@ -1,10 +1,5 @@
1
- <script lang="ts">
2
- export interface Flash {
3
- type?: string
4
- message: string
5
- }
6
- </script>
7
1
  <script setup lang="ts">
2
+ import { Flash } from "@/composables/overlay"
8
3
  import { onMounted, ref } from "vue"
9
4
 
10
5
  // TODO: spk this might benefit from the composition api to avoid race conditions where a flash is requested before the component is mounted.
File without changes
@@ -0,0 +1,12 @@
1
+ import { TreesComponents } from "./lib-components"
2
+
3
+ /**
4
+ * When using App.use(Trees) include a
5
+ * /// <reference types="@xy-planning-network/trees/types/components" /> or
6
+ * import GlobalComponents from "@xy-planning-network/trees/types/components"
7
+ * in the project.
8
+ */
9
+ declare module "@vue/runtime-core" {
10
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
11
+ interface GlobalComponents extends TreesComponents {}
12
+ }
@@ -0,0 +1,4 @@
1
+ export interface DateRange {
2
+ minDate: number;
3
+ maxDate: number;
4
+ }
@@ -0,0 +1,13 @@
1
+ import { Component, RenderFunction } from "vue";
2
+ export interface Item {
3
+ icon?: Component | RenderFunction;
4
+ name: string;
5
+ openInTab?: boolean;
6
+ url: string;
7
+ }
8
+ export interface Pagination {
9
+ page: number;
10
+ perPage: number;
11
+ totalItems: number;
12
+ totalPages: number;
13
+ }
@@ -0,0 +1,4 @@
1
+ export interface Flash {
2
+ type?: string;
3
+ message: string;
4
+ }
@@ -1,11 +1,11 @@
1
- import { ComponentPublicInstance, DefineComponent } from "vue";
2
- import User from "./users";
1
+ import { Component, ComponentPublicInstance } from "vue";
2
+ import User from "../composables/user";
3
3
  export interface Column {
4
4
  display: string;
5
5
  class?: string;
6
6
  key?: string;
7
7
  presenter?(row: any, instance: ComponentPublicInstance): any;
8
- component?: DefineComponent<unknown, unknown, any>;
8
+ component?: Component;
9
9
  items?: Array<MenuItem>;
10
10
  sort?: string;
11
11
  }
@@ -0,0 +1,6 @@
1
+ export interface User {
2
+ id: number;
3
+ email: string;
4
+ name?: string;
5
+ }
6
+ export default User;
@@ -1,8 +1,6 @@
1
1
  import { Plugin } from "vue";
2
2
  import BaseAPI from "./api/base";
3
- import * as TableTypes from "./types/table";
4
- import * as NavTypes from "./types/nav";
5
3
  declare const install: Exclude<Plugin["install"], undefined>;
6
4
  export default install;
7
5
  export * from "./lib-components/index";
8
- export { BaseAPI, NavTypes, TableTypes };
6
+ export { BaseAPI };
@@ -0,0 +1,13 @@
1
+ import { Emitter } from "mitt"
2
+
3
+ /**
4
+ * When using window.VueBus.emit("Flash-show-generic-error", "support@trees.com") include
5
+ * /// <reference types="@xy-planning-network/trees/types/global" />
6
+ * in the project.
7
+ */
8
+ declare global {
9
+ interface Window {
10
+ Flashes: Array<{ type?: string; message: string }>
11
+ VueBus: Emitter
12
+ }
13
+ }
File without changes
@@ -25,14 +25,14 @@ declare const _default: import("vue").DefineComponent<{
25
25
  modelValue?: unknown;
26
26
  } & {
27
27
  type: string;
28
+ modelValue: string | number;
28
29
  label: string;
29
30
  help: string;
30
- modelValue: string | number;
31
31
  } & {}> & {
32
32
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
33
33
  }, {
34
+ modelValue: string | number;
34
35
  label: string;
35
36
  help: string;
36
- modelValue: string | number;
37
37
  }>;
38
38
  export default _default;
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<{
12
12
  label?: unknown;
13
13
  modelValue?: unknown;
14
14
  } & {
15
- label: string;
16
15
  modelValue: boolean;
16
+ label: string;
17
17
  } & {}> & {
18
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
19
19
  }, {
@@ -28,12 +28,12 @@ declare const _default: import("vue").DefineComponent<{
28
28
  label?: unknown;
29
29
  help?: unknown;
30
30
  } & {
31
- label: string;
32
- help: string;
33
31
  modelValue: {
34
32
  minDate: number;
35
33
  maxDate: number;
36
34
  };
35
+ label: string;
36
+ help: string;
37
37
  startDate: number;
38
38
  } & {}> & {
39
39
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -13,10 +13,10 @@ declare const _default: import("vue").DefineComponent<{
13
13
  tag?: unknown;
14
14
  text?: unknown;
15
15
  } & {
16
- text: string;
17
16
  tag: string;
18
- } & {}>, {
19
17
  text: string;
18
+ } & {}>, {
20
19
  tag: string;
20
+ text: string;
21
21
  }>;
22
22
  export default _default;
@@ -20,12 +20,12 @@ declare const _default: import("vue").DefineComponent<{
20
20
  legend?: unknown;
21
21
  modelValue?: unknown;
22
22
  } & {
23
- legend: string;
23
+ modelValue: string[];
24
24
  options: {
25
25
  label: string;
26
26
  value: string;
27
27
  }[];
28
- modelValue: string[];
28
+ legend: string;
29
29
  } & {}> & {
30
30
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
31
  }, {
@@ -27,18 +27,18 @@ declare const _default: import("vue").DefineComponent<{
27
27
  modelValue?: unknown;
28
28
  vertical?: unknown;
29
29
  } & {
30
- legend: string;
30
+ modelValue: string;
31
31
  options: {
32
32
  label: string;
33
33
  value: string;
34
34
  }[];
35
+ legend: string;
35
36
  vertical: boolean;
36
- modelValue: string;
37
37
  } & {}> & {
38
38
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
39
39
  }, {
40
+ modelValue: string;
40
41
  legend: string;
41
42
  vertical: boolean;
42
- modelValue: string;
43
43
  }>;
44
44
  export default _default;
@@ -38,21 +38,21 @@ declare const _default: import("vue").DefineComponent<{
38
38
  options?: unknown;
39
39
  modelValue?: unknown;
40
40
  } & {
41
+ modelValue: string | number | undefined;
41
42
  label: string;
43
+ help: string;
44
+ design: "standard" | "compressed";
45
+ placeholder: string;
42
46
  options: {
43
47
  label: string;
44
48
  value: string | number;
45
49
  }[];
46
- help: string;
47
- placeholder: string;
48
- modelValue: string | number | undefined;
49
- design: "standard" | "compressed";
50
50
  } & {}> & {
51
51
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
52
52
  }, {
53
53
  label: string;
54
54
  help: string;
55
- placeholder: string;
56
55
  design: "standard" | "compressed";
56
+ placeholder: string;
57
57
  }>;
58
58
  export default _default;
@@ -19,14 +19,14 @@ declare const _default: import("vue").DefineComponent<{
19
19
  label?: unknown;
20
20
  modelValue?: unknown;
21
21
  } & {
22
+ modelValue: string | number;
22
23
  label: string;
23
24
  help: string;
24
- modelValue: string | number;
25
25
  } & {}> & {
26
26
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
27
  }, {
28
+ modelValue: string | number;
28
29
  label: string;
29
30
  help: string;
30
- modelValue: string | number;
31
31
  }>;
32
32
  export default _default;
@@ -19,15 +19,15 @@ declare const _default: import("vue").DefineComponent<{
19
19
  legend?: unknown;
20
20
  name?: unknown;
21
21
  } & {
22
- name: string;
23
22
  legend: string;
23
+ name: string;
24
24
  } & {
25
25
  modelValue?: boolean | undefined;
26
26
  }> & {
27
27
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
28
28
  }, {
29
- name: string;
30
- legend: string;
31
29
  modelValue: boolean;
30
+ legend: string;
31
+ name: string;
32
32
  }>;
33
33
  export default _default;
@@ -30,35 +30,33 @@ export { ActionsDropdown, Cards, ContentModal, DateFilter, DetailList, DownloadC
30
30
  /**
31
31
  * declare global component types for App.use(Trees)
32
32
  */
33
- declare module "@vue/runtime-core" {
34
- interface GlobalComponents {
35
- ActionsDropdown: typeof ActionsDropdown;
36
- Cards: typeof Cards;
37
- ContentModal: typeof ContentModal;
38
- DateFilter: typeof DateFilter;
39
- DetailList: typeof DetailList;
40
- DownloadCell: typeof DownloadCell;
41
- Flash: typeof Flash;
42
- Modal: typeof Modal;
43
- SidebarLayout: typeof SidebarLayout;
44
- Slideover: typeof Slideover;
45
- StackedLayout: typeof StackedLayout;
46
- Paginator: typeof Paginator;
47
- Spinner: typeof Spinner;
48
- StaticTable: typeof StaticTable;
49
- Steps: typeof Steps;
50
- Table: typeof Table;
51
- Tabs: typeof Tabs;
52
- Toggle: typeof Toggle;
53
- BaseInput: typeof BaseInput;
54
- Checkbox: typeof Checkbox;
55
- DateRangePicker: typeof DateRangePicker;
56
- InputHelp: typeof InputHelp;
57
- InputLabel: typeof InputLabel;
58
- MultiCheckboxes: typeof MultiCheckboxes;
59
- Radio: typeof Radio;
60
- Select: typeof Select;
61
- TextArea: typeof TextArea;
62
- YesOrNoRadio: typeof YesOrNoRadio;
63
- }
33
+ export interface TreesComponents {
34
+ ActionsDropdown: typeof ActionsDropdown;
35
+ Cards: typeof Cards;
36
+ ContentModal: typeof ContentModal;
37
+ DateFilter: typeof DateFilter;
38
+ DetailList: typeof DetailList;
39
+ DownloadCell: typeof DownloadCell;
40
+ Flash: typeof Flash;
41
+ Modal: typeof Modal;
42
+ SidebarLayout: typeof SidebarLayout;
43
+ Slideover: typeof Slideover;
44
+ StackedLayout: typeof StackedLayout;
45
+ Paginator: typeof Paginator;
46
+ Spinner: typeof Spinner;
47
+ StaticTable: typeof StaticTable;
48
+ Steps: typeof Steps;
49
+ Table: typeof Table;
50
+ Tabs: typeof Tabs;
51
+ Toggle: typeof Toggle;
52
+ BaseInput: typeof BaseInput;
53
+ Checkbox: typeof Checkbox;
54
+ DateRangePicker: typeof DateRangePicker;
55
+ InputHelp: typeof InputHelp;
56
+ InputLabel: typeof InputLabel;
57
+ MultiCheckboxes: typeof MultiCheckboxes;
58
+ Radio: typeof Radio;
59
+ Select: typeof Select;
60
+ TextArea: typeof TextArea;
61
+ YesOrNoRadio: typeof YesOrNoRadio;
64
62
  }
@@ -1,7 +1,4 @@
1
- export interface DateRange {
2
- minDate: number;
3
- maxDate: number;
4
- }
1
+ import { DateRange } from "../../composables/date";
5
2
  declare const _default: import("vue").DefineComponent<__VLS_DefinePropsToOptions<{
6
3
  dateRange: DateRange;
7
4
  sortDir: string;
@@ -1,4 +1,4 @@
1
- import * as NavTypes from "../../types/nav";
1
+ import * as NavTypes from "../../composables/nav";
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  activeURL: {
4
4
  type: import("vue").PropType<string>;
@@ -1,5 +1,5 @@
1
- import * as NavTypes from "../../types/nav";
2
- import User from "../../types/users";
1
+ import * as NavTypes from "../../composables/nav";
2
+ import User from "../../composables/user";
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  activeURL: {
5
5
  type: import("vue").PropType<string>;
@@ -23,8 +23,8 @@ declare const _default: import("vue").DefineComponent<{
23
23
  title?: unknown;
24
24
  url?: unknown;
25
25
  } & {
26
- url: string;
27
26
  title: string;
27
+ url: string;
28
28
  refreshTrigger: number;
29
29
  reloadTrigger: number;
30
30
  } & {}>, {
@@ -1,4 +1,4 @@
1
- import * as TableTypes from "../../types/table";
1
+ import * as TableTypes from "../../composables/table";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_DefinePropsToOptions<{
3
3
  tableData: TableTypes.Static;
4
4
  }>, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -1,4 +1,4 @@
1
- import * as TableTypes from "../../types/table";
1
+ import * as TableTypes from "../../composables/table";
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  clickable: {
4
4
  type: import("vue").PropType<boolean>;
@@ -1,6 +1,6 @@
1
1
  import { MenuItem } from "@headlessui/vue";
2
- import * as TableTypes from "../../types/table";
3
- import User from "../../types/users";
2
+ import * as TableTypes from "../../composables/table";
3
+ import User from "../../composables/user";
4
4
  declare const _default: import("vue").DefineComponent<__VLS_DefinePropsToOptions<{
5
5
  currentUser: User;
6
6
  items: TableTypes.MenuItem[];
@@ -1,9 +1,4 @@
1
- export interface Pagination {
2
- page: number;
3
- perPage: number;
4
- totalItems: number;
5
- totalPages: number;
6
- }
1
+ import { Pagination } from "../../composables/nav";
7
2
  declare const _default: import("vue").DefineComponent<__VLS_DefinePropsToOptions<{
8
3
  modelValue: Pagination;
9
4
  }>, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -35,12 +35,12 @@ declare const _default: import("vue").DefineComponent<{
35
35
  step?: unknown;
36
36
  total?: unknown;
37
37
  } & {
38
- total: number;
39
- step: number;
40
38
  hideActions: boolean;
41
39
  hidePrevious: boolean;
42
40
  nextText: string;
43
41
  previousText: string;
42
+ step: number;
43
+ total: number;
44
44
  } & {}> & {
45
45
  onNext?: ((...args: any[]) => any) | undefined;
46
46
  onPrevious?: ((...args: any[]) => any) | undefined;
@@ -14,8 +14,8 @@ declare const _default: import("vue").DefineComponent<{
14
14
  modelValue?: unknown;
15
15
  title?: unknown;
16
16
  } & {
17
- title: string;
18
17
  modelValue: boolean;
18
+ title: string;
19
19
  } & {}> & {
20
20
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
21
21
  }, {