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.
- package/dist/components/BT-Span.vue.d.ts +17 -0
- package/dist/components/Dialog-Confirm.vue.d.ts +38 -0
- package/dist/components/Dialog-Select-Date.vue.d.ts +36 -0
- package/dist/components/Dialog-Select.vue.d.ts +48 -0
- package/dist/components/Dialog-Text.vue.d.ts +33 -0
- package/dist/composables/actions-tracker.d.ts +19 -0
- package/dist/composables/actions.d.ts +79 -0
- package/dist/composables/api.d.ts +85 -0
- package/dist/composables/auth.d.ts +58 -0
- package/dist/composables/cosmetics.d.ts +34 -0
- package/dist/composables/csv.d.ts +20 -0
- package/dist/composables/dates.d.ts +14 -0
- package/dist/composables/demo.d.ts +8 -0
- package/dist/composables/dialogs.d.ts +75 -0
- package/dist/composables/document-meta.d.ts +11 -0
- package/dist/composables/draggable.d.ts +56 -0
- package/dist/composables/filters.d.ts +10 -0
- package/dist/composables/forage.d.ts +7 -0
- package/dist/composables/helpers.d.ts +102 -0
- package/dist/composables/id.d.ts +1 -0
- package/dist/composables/list.d.ts +202 -0
- package/dist/composables/navigation.d.ts +88 -0
- package/dist/composables/presets.d.ts +7 -0
- package/dist/composables/pwa.d.ts +13 -0
- package/dist/composables/resizable.d.ts +35 -0
- package/dist/composables/rules.d.ts +7 -0
- package/dist/composables/stores.d.ts +100 -0
- package/dist/composables/track.d.ts +12 -0
- package/dist/composables/urls.d.ts +7 -0
- package/dist/core.d.ts +18 -0
- package/dist/types.d.ts +11 -0
- package/dist/useApi.d.ts +30 -0
- package/package.json +1 -1
- package/src/composables/actions-tracker.ts +2 -2
- package/src/composables/actions.ts +4 -4
- package/src/composables/api.ts +1 -1
- package/src/composables/auth.ts +2 -2
- package/src/composables/dates.ts +0 -1
- package/src/composables/dialogs.ts +5 -5
- package/src/composables/document-meta.ts +2 -2
- package/src/composables/filters.ts +1 -1
- package/src/composables/forage.ts +1 -1
- package/src/composables/list.ts +3 -3
- package/src/composables/navigation.ts +2 -2
- package/src/composables/resizable.ts +2 -2
- package/src/composables/rules.ts +1 -1
- package/src/composables/stores.ts +4 -4
- package/tsconfig.json +0 -5
- package/vite.config.ts +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BladeMode } from '
|
|
2
|
-
import { BTStore } from '
|
|
3
|
-
import { BTApi, type PathOptions } from '
|
|
4
|
-
import { useActionsTracker, type DoActionOptions } from '
|
|
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>
|
package/src/composables/api.ts
CHANGED
package/src/composables/auth.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isLengthyArray } from '
|
|
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 '
|
|
4
|
+
import { type BTDemo } from '../composables/demo'
|
|
5
5
|
import { useRouter } from 'vue-router'
|
|
6
6
|
import { toValue } from 'vue'
|
|
7
7
|
|
package/src/composables/dates.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// import { openDialog } from 'vue3-promise-dialog'
|
|
2
2
|
import { createConfirmDialog } from 'vuejs-confirm-dialog'
|
|
3
|
-
import BTConfirmDialog from '
|
|
4
|
-
import BTSelectDateDialog from '
|
|
5
|
-
import BTSelectDialog from '
|
|
6
|
-
import BTTextDialog from '
|
|
7
|
-
import { type ListProps } from '
|
|
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 '
|
|
3
|
-
import { type Environment } from '
|
|
2
|
+
import { BTDemo } from '../composables/demo'
|
|
3
|
+
import { type Environment } from '../composables/urls'
|
|
4
4
|
|
|
5
5
|
export interface UseDocumentMetaOptions {
|
|
6
6
|
demo?: BTDemo
|
package/src/composables/list.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { GetOptions, OnCanDoAsync, OnDoAsync, OnDoSuccessAsync, OnGetAsync, OnGetSuccessAsync } from './actions'
|
|
2
|
-
import type { BladeVariant } from '
|
|
3
|
-
import { useCSV } from '
|
|
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 '
|
|
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 '
|
|
3
|
-
import { appendUrl, deepSelect } from '
|
|
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 "
|
|
5
|
-
import { type BladeVariant } from "
|
|
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
|
|
package/src/composables/rules.ts
CHANGED
|
@@ -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 '
|
|
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 '
|
|
6
|
+
import { appendUrl, getMinDateString } from '../composables/helpers'
|
|
7
7
|
import { firstBy } from 'thenby'
|
|
8
|
-
import { useLocalDb } from '
|
|
9
|
-
import { BaseModel } from '
|
|
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