bt-core-app 1.1.6 → 1.1.7

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 (49) hide show
  1. package/dist/components/BT-Span.vue.d.ts +17 -0
  2. package/dist/components/Dialog-Confirm.vue.d.ts +38 -0
  3. package/dist/components/Dialog-Select-Date.vue.d.ts +36 -0
  4. package/dist/components/Dialog-Select.vue.d.ts +48 -0
  5. package/dist/components/Dialog-Text.vue.d.ts +33 -0
  6. package/dist/composables/actions-tracker.d.ts +19 -0
  7. package/dist/composables/actions.d.ts +79 -0
  8. package/dist/composables/api.d.ts +85 -0
  9. package/dist/composables/auth.d.ts +58 -0
  10. package/dist/composables/cosmetics.d.ts +34 -0
  11. package/dist/composables/csv.d.ts +20 -0
  12. package/dist/composables/dates.d.ts +14 -0
  13. package/dist/composables/demo.d.ts +8 -0
  14. package/dist/composables/dialogs.d.ts +75 -0
  15. package/dist/composables/document-meta.d.ts +11 -0
  16. package/dist/composables/draggable.d.ts +56 -0
  17. package/dist/composables/filters.d.ts +10 -0
  18. package/dist/composables/forage.d.ts +7 -0
  19. package/dist/composables/helpers.d.ts +102 -0
  20. package/dist/composables/id.d.ts +1 -0
  21. package/dist/composables/list.d.ts +202 -0
  22. package/dist/composables/navigation.d.ts +88 -0
  23. package/dist/composables/presets.d.ts +7 -0
  24. package/dist/composables/pwa.d.ts +13 -0
  25. package/dist/composables/resizable.d.ts +35 -0
  26. package/dist/composables/rules.d.ts +7 -0
  27. package/dist/composables/stores.d.ts +100 -0
  28. package/dist/composables/track.d.ts +12 -0
  29. package/dist/composables/urls.d.ts +7 -0
  30. package/dist/core.d.ts +18 -0
  31. package/dist/types.d.ts +11 -0
  32. package/dist/useApi.d.ts +30 -0
  33. package/package.json +1 -1
  34. package/src/composables/actions-tracker.ts +2 -2
  35. package/src/composables/actions.ts +4 -4
  36. package/src/composables/api.ts +1 -1
  37. package/src/composables/auth.ts +2 -2
  38. package/src/composables/dates.ts +0 -1
  39. package/src/composables/dialogs.ts +5 -5
  40. package/src/composables/document-meta.ts +2 -2
  41. package/src/composables/filters.ts +1 -1
  42. package/src/composables/forage.ts +1 -1
  43. package/src/composables/list.ts +3 -3
  44. package/src/composables/navigation.ts +2 -2
  45. package/src/composables/resizable.ts +2 -2
  46. package/src/composables/rules.ts +1 -1
  47. package/src/composables/stores.ts +4 -4
  48. package/tsconfig.json +0 -5
  49. package/vite.config.ts +2 -1
@@ -1,7 +1,7 @@
1
- import type { BladeMode } from '@/types'
2
- import { BTStore } from '@/composables/stores'
3
- import { BTApi, type PathOptions } from '@/composables/api'
4
- import { useActionsTracker, type DoActionOptions } from '@/composables/actions-tracker'
1
+ import type { BladeMode } from '../types'
2
+ import { BTStore } from '../composables/stores'
3
+ import { BTApi, type PathOptions } from '../composables/api'
4
+ import { useActionsTracker, type DoActionOptions } from '../composables/actions-tracker'
5
5
  import { ShallowRef, ComputedRef } from 'vue'
6
6
 
7
7
  export type OnCanDoAsync = (item: any) => Promise<string | undefined>
@@ -1,5 +1,5 @@
1
1
  import { toValue } from 'vue'
2
- import { appendUrl } from '@/composables/helpers'
2
+ import { appendUrl } from '../composables/helpers'
3
3
  import { type BTAuth } from './auth'
4
4
 
5
5
  export interface QueryParams {
@@ -1,7 +1,7 @@
1
- import { isLengthyArray } from '@/composables/helpers';
1
+ import { isLengthyArray } from '../composables/helpers';
2
2
  import { DateTime } from 'luxon'
3
3
  import { type RemovableRef, useStorage } from '@vueuse/core'
4
- import { type BTDemo } from '@/composables/demo'
4
+ import { type BTDemo } from '../composables/demo'
5
5
  import { useRouter } from 'vue-router'
6
6
  import { toValue } from 'vue'
7
7
 
@@ -1,5 +1,4 @@
1
1
  import { DateTime } from 'luxon'
2
- // import { useTimeZone } from '@/composables/auth'
3
2
 
4
3
  export interface BTDates {
5
4
  getToday: () => string
@@ -1,10 +1,10 @@
1
1
  // import { openDialog } from 'vue3-promise-dialog'
2
2
  import { createConfirmDialog } from 'vuejs-confirm-dialog'
3
- import BTConfirmDialog from '@/components/Dialog-Confirm.vue'
4
- import BTSelectDateDialog from '@/components/Dialog-Select-Date.vue'
5
- import BTSelectDialog from '@/components/Dialog-Select.vue'
6
- import BTTextDialog from '@/components/Dialog-Text.vue'
7
- import { type ListProps } from '@/composables/list'
3
+ import BTConfirmDialog from '../components/Dialog-Confirm.vue'
4
+ import BTSelectDateDialog from '../components/Dialog-Select-Date.vue'
5
+ import BTSelectDialog from '../components/Dialog-Select.vue'
6
+ import BTTextDialog from '../components/Dialog-Text.vue'
7
+ import { type ListProps } from '../composables/list'
8
8
 
9
9
  export interface ConfirmDialogProps {
10
10
  cancelText?: string
@@ -1,6 +1,6 @@
1
1
  import { type RouteLocationNormalized } from 'vue-router'
2
- import { BTDemo } from '@/composables/demo'
3
- import { type Environment } from '@/composables/urls'
2
+ import { BTDemo } from '../composables/demo'
3
+ import { type Environment } from '../composables/urls'
4
4
 
5
5
  export interface UseDocumentMetaOptions {
6
6
  demo?: BTDemo
@@ -1,4 +1,4 @@
1
- import { getLocationLine, isMinDate } from '@/composables/helpers';
1
+ import { getLocationLine, isMinDate } from '../composables/helpers';
2
2
  import { BTDates } from './dates';
3
3
 
4
4
  export interface BTFilters {
@@ -1,5 +1,5 @@
1
1
  import localforage from 'localforage';
2
- import { useUrl } from '@/composables/urls';
2
+ import { useUrl } from '../composables/urls';
3
3
 
4
4
  let localDb: LocalForage | null = null;
5
5
 
@@ -1,12 +1,12 @@
1
1
  import type { GetOptions, OnCanDoAsync, OnDoAsync, OnDoSuccessAsync, OnGetAsync, OnGetSuccessAsync } from './actions'
2
- import type { BladeVariant } from '@/types'
3
- import { useCSV } from '@/composables/csv'
2
+ import type { BladeVariant } from '../types'
3
+ import { useCSV } from '../composables/csv'
4
4
  import { isLengthyArray, hasSearch } from '../index'
5
5
  import { firstBy } from 'thenby'
6
6
  import { computed, ref, onMounted, toValue, shallowRef, MaybeRefOrGetter, watch } from 'vue'
7
7
  import { useRoute, useRouter } from 'vue-router'
8
8
  import { useArrayDifference, useArrayUnique, watchArray, watchDebounced } from '@vueuse/core'
9
- import { useActions } from '@/composables/actions'
9
+ import { useActions } from '../composables/actions'
10
10
  import { StorageMode, StoreMode, useStore } from '../index'
11
11
 
12
12
  export interface RefreshOptions {
@@ -1,6 +1,6 @@
1
1
  //nav item needs to have a 'ignore Suspension' prop
2
- import { useUrl } from '@/composables/urls'
3
- import { appendUrl, deepSelect } from '@/composables/helpers'
2
+ import { useUrl } from '../composables/urls'
3
+ import { appendUrl, deepSelect } from '../composables/helpers'
4
4
  import { ref, type Ref } from 'vue'
5
5
  import { type AuthItem } from './auth'
6
6
 
@@ -1,8 +1,8 @@
1
1
  import { toValue, useEventListener, useParentElement } from "@vueuse/core"
2
2
  import { type ComponentPublicInstance, type Ref, ref } from 'vue'
3
3
  import type { Position, MaybeRefOrGetter } from "@vueuse/core"
4
- import { copyDeep } from "@/composables/helpers"
5
- import { type BladeVariant } from "@/types"
4
+ import { copyDeep } from "../composables/helpers"
5
+ import { type BladeVariant } from "../types"
6
6
 
7
7
  export type ResizeHandle = 't' | 'r' | 'b' | 'l' | 'tr' | 'br' | 'bl' | 'tl'
8
8
 
@@ -1,4 +1,4 @@
1
- import { validEmail } from '@/composables/helpers'
1
+ import { validEmail } from '../composables/helpers'
2
2
 
3
3
  export interface UseRulesOptions {
4
4
  forEmail?: boolean
@@ -1,12 +1,12 @@
1
1
  import { defineStore, StoreDefinition } from 'pinia'
2
2
  import { ref, type Ref } from 'vue'
3
- import { type PathOptions, type BTApi } from '@/composables/api'
3
+ import { type PathOptions, type BTApi } from '../composables/api'
4
4
  import { DateTime } from 'luxon'
5
5
  import { toValue } from 'vue'
6
- import { appendUrl, getMinDateString } from '@/composables/helpers'
6
+ import { appendUrl, getMinDateString } from '../composables/helpers'
7
7
  import { firstBy } from 'thenby'
8
- import { useLocalDb } from '@/composables/forage'
9
- import { BaseModel } from '@/types'
8
+ import { useLocalDb } from '../composables/forage'
9
+ import { BaseModel } from '../types'
10
10
  import { BTAuth } from './auth'
11
11
 
12
12
  export type StoreMode = 'whole-last-updated' | 'partial-last-updated' | 'session'
package/tsconfig.json CHANGED
@@ -20,11 +20,6 @@
20
20
  "noUnusedLocals": true,
21
21
  "noUnusedParameters": true,
22
22
  "noFallthroughCasesInSwitch": true,
23
- "paths": {
24
- "@/*": [
25
- "src/*"
26
- ]
27
- },
28
23
  "types": ["vitest/globals"]
29
24
  },
30
25
  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
package/vite.config.ts CHANGED
@@ -27,7 +27,8 @@ export default defineConfig({
27
27
  },
28
28
  plugins: [
29
29
  vue(),
30
- dts({ include: path.resolve(__dirname, './src/index.ts') })
30
+ dts()
31
+ // dts({ rollupTypes: true })
31
32
  ],
32
33
  resolve: {
33
34
  alias: {