bt-core-app 1.4.0 → 1.4.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.
Files changed (42) hide show
  1. package/dist/bt-core-app.js +3456 -27631
  2. package/dist/composables/helpers.d.ts +1 -3
  3. package/dist/composables/list.d.ts +1 -1
  4. package/dist/index.d.ts +0 -4
  5. package/package.json +2 -2
  6. package/src/components/BT-Btn.vue +1 -1
  7. package/src/components/BT-Nav-Menu-Item.vue +0 -1
  8. package/src/components/BT-Nav-Sidebar.vue +0 -1
  9. package/src/components/BT-Span.vue +1 -1
  10. package/src/components/Dialog-Select.vue +1 -1
  11. package/src/composables/actions-tracker.ts +3 -3
  12. package/src/composables/csv.ts +1 -1
  13. package/src/composables/dialogs.ts +0 -1
  14. package/src/composables/helpers.ts +4 -51
  15. package/src/composables/list.ts +2 -2
  16. package/src/core.ts +35 -43
  17. package/src/index.ts +4 -6
  18. package/vite.config.ts +6 -6
  19. package/dist/components/BT-Btn.vue.d.ts +0 -41
  20. package/dist/components/BT-Col.vue.d.ts +0 -49
  21. package/dist/components/BT-Field-Checkbox.vue.d.ts +0 -56
  22. package/dist/components/BT-Field-Date.vue.d.ts +0 -64
  23. package/dist/components/BT-Field-Entity.vue.d.ts +0 -46
  24. package/dist/components/BT-Field-Select.vue.d.ts +0 -54
  25. package/dist/components/BT-Field-String.vue.d.ts +0 -53
  26. package/dist/components/BT-Field-Switch.vue.d.ts +0 -51
  27. package/dist/components/BT-Field-Tags.vue.d.ts +0 -51
  28. package/dist/components/BT-Field-Textarea.vue.d.ts +0 -52
  29. package/dist/components/BT-Field-Trigger.vue.d.ts +0 -79
  30. package/dist/components/BT-Header-Option.vue.d.ts +0 -18
  31. package/dist/components/BT-Json.vue.d.ts +0 -8
  32. package/dist/components/BT-Nav-Menu-Item.vue.d.ts +0 -36
  33. package/dist/components/BT-Nav-Sidebar.vue.d.ts +0 -25
  34. package/dist/components/BT-Select-List-Box.vue.d.ts +0 -108
  35. package/dist/components/BT-Select.vue.d.ts +0 -53
  36. package/dist/components/BT-Snack.vue.d.ts +0 -33
  37. package/dist/components/BT-Span.vue.d.ts +0 -17
  38. package/dist/components/Dialog-Confirm.vue.d.ts +0 -38
  39. package/dist/components/Dialog-Select-Date.vue.d.ts +0 -36
  40. package/dist/components/Dialog-Select.vue.d.ts +0 -48
  41. package/dist/components/Dialog-Text.vue.d.ts +0 -33
  42. package/dist/style.css +0 -5
@@ -1,5 +1,3 @@
1
- import { MaybeRefOrGetter } from 'vue';
2
-
3
1
  export declare function appendUrl(originalVal?: string, additionalVal?: string): string;
4
2
  export declare function extensionExists(elementId?: string): boolean;
5
3
  interface GeoCoordinate {
@@ -79,7 +77,7 @@ export declare function getMinDateString(): string;
79
77
  * @param dPlaces
80
78
  * @returns
81
79
  */
82
- export declare function roundTo(v: MaybeRefOrGetter<number>, dPlaces: number): number;
80
+ export declare function roundTo(val: number, dPlaces: number): number;
83
81
  export declare function toggleCSV(value?: string, tag?: string): string | null;
84
82
  export declare function csvContains(value?: string, tag?: string): boolean;
85
83
  /**copies object and all descendant properties */
@@ -1,4 +1,4 @@
1
- import { StorageMode, StoreMode } from '../index';
1
+ import { StorageMode, StoreMode } from '../composables/stores';
2
2
  import { MaybeRefOrGetter } from 'vue';
3
3
  import { BladeVariant } from '../types';
4
4
  import { OnCanDoAsync, OnDoAsync, OnDoSuccessAsync, OnGetAsync, OnGetSuccessAsync } from './actions';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { default as BTNavSidebar } from './components/BT-Nav-Sidebar.vue';
2
- import { default as BTNavMenuItem } from './components/BT-Nav-Menu-Item.vue';
3
1
  export { useActionsTracker } from './composables/actions-tracker';
4
2
  export type { BTActions, GetOptions, DeleteOptions, RestoreOptions, SaveOptions, ApiActionOptions, UseActionsOptions } from './composables/actions';
5
3
  export { useActions } from './composables/actions';
@@ -14,7 +12,6 @@ export type { BTDates, CreateDatesOptions } from './composables/dates';
14
12
  export { createDates, useDates } from './composables/dates';
15
13
  export type { BTDemo } from './composables/demo';
16
14
  export { createDemo, useDemo } from './composables/demo';
17
- export * from './composables/dialogs';
18
15
  export type { BTDocumentMeta, UseDocumentMetaOptions } from './composables/document-meta';
19
16
  export { useDocumentMeta } from './composables/document-meta';
20
17
  export * from './composables/draggable';
@@ -42,4 +39,3 @@ export { createUrl, useUrls, useAuthUrl, useDbName, useDataUrl } from './composa
42
39
  export * from './types';
43
40
  export type { CoreApp, CreateCoreOptions } from './core';
44
41
  export { createCore } from './core';
45
- export { BTNavMenuItem, BTNavSidebar };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {
@@ -20,12 +20,12 @@
20
20
  "dependencies": {
21
21
  "@vuepic/vue-datepicker": "^8.3.1",
22
22
  "localforage": "^1.10.0",
23
- "luxon": "^3.4.4",
24
23
  "thenby": "^1.3.4",
25
24
  "vuejs-confirm-dialog": "^0.5.1"
26
25
  },
27
26
  "peerDependencies": {
28
27
  "@vueuse/core": "^10.4.1",
28
+ "luxon": "^3.4.4",
29
29
  "pinia": "^2.0.24",
30
30
  "vue": "^3.4.21",
31
31
  "vue-router": "^4.0.0",
@@ -10,7 +10,7 @@
10
10
  <script setup lang="ts">
11
11
  import { computed, inject, ref } from 'vue'
12
12
  import { usePresets } from '../composables/presets'
13
- import { VBtn } from 'vuetify/components'
13
+ // import { VBtn } from 'vuetify/components'
14
14
 
15
15
  interface BtnProps {
16
16
  icon?: string
@@ -31,7 +31,6 @@
31
31
  import { useAuth } from '../composables/auth'
32
32
  import { isLengthyArray } from '../composables/helpers'
33
33
  import { type NavigationItem } from '../composables/navigation'
34
- // import { VListItem, VListGroup, VDivider } from 'vuetify/components'
35
34
 
36
35
  interface ItemProps {
37
36
  allowedSubscriptionCodes?: string[],
@@ -61,7 +61,6 @@ import { useCosmetics } from '../composables/cosmetics'
61
61
  import { useNavigation } from '../composables/navigation'
62
62
  import { useAuth } from '../composables/auth'
63
63
  import { computed } from 'vue'
64
- // import { VListItem, VList, VNavigationDrawer, VAvatar, VImg, VRow, VBtn } from 'vuetify/components'
65
64
 
66
65
  interface SidebarProps {
67
66
  // greeting?: string
@@ -3,7 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
6
- import { useFilters } from '../index'
6
+ import { useFilters } from '../composables/filters'
7
7
  import { computed } from 'vue'
8
8
 
9
9
  interface Props {
@@ -65,7 +65,7 @@
65
65
  <script setup lang="ts">
66
66
  import { computed, onMounted, ref } from 'vue';
67
67
  import { isLengthyArray, isArrayOfLength, nestedValue } from '../composables/helpers'
68
- import { useFilters } from '../index'
68
+ import { useFilters } from '../composables/filters'
69
69
  import { useList } from '../composables/list';
70
70
  import { type SelectDialogProps } from '../composables/dialogs'
71
71
 
@@ -1,6 +1,6 @@
1
1
  import { computed, ref, shallowRef } from 'vue'
2
2
  import type { ShallowRef, Ref } from 'vue'
3
- import { useConfirmAsync } from '../composables/dialogs'
3
+ // import { useConfirmAsync } from '../composables/dialogs'
4
4
  import { watchArray } from '@vueuse/core'
5
5
  import { useId } from '../composables/id'
6
6
 
@@ -60,8 +60,8 @@ export function useActionsTracker(useOptions?: DoActionOptions) {
60
60
 
61
61
  try {
62
62
  if (opt.requireConfirmation || opt.confirmationMsg) {
63
- if (!await useConfirmAsync(opt.confirmationMsg ?? 'Are you sure?'))
64
- return
63
+ // if (!await useConfirmAsync(opt.confirmationMsg ?? 'Are you sure?'))
64
+ // return
65
65
  }
66
66
 
67
67
  res = await action()
@@ -1,5 +1,5 @@
1
1
  import { TableColumn } from "./list"
2
- import { isLengthyArray, fromCamelCase, nestedValue } from "../index"
2
+ import { isLengthyArray, fromCamelCase, nestedValue } from "../composables/helpers"
3
3
 
4
4
  export interface CSVProps {
5
5
  canExportCSV?: boolean
@@ -1,4 +1,3 @@
1
- // import { openDialog } from 'vue3-promise-dialog'
2
1
  import { createConfirmDialog } from 'vuejs-confirm-dialog'
3
2
  import BTConfirmDialog from '../components/Dialog-Confirm.vue'
4
3
  import BTSelectDateDialog from '../components/Dialog-Select-Date.vue'
@@ -1,6 +1,4 @@
1
- import { firstBy } from 'thenby';
2
- import { type MaybeRefOrGetter, toValue } from 'vue';
3
-
1
+ import { firstBy } from 'thenby'
4
2
 
5
3
  export function appendUrl(originalVal?: string, additionalVal?: string) {
6
4
  let original = originalVal ?? ''
@@ -410,19 +408,13 @@ export function getMinDateString() {
410
408
  return '0001-01-01T00:00:00Z'
411
409
  }
412
410
 
413
- //#end region
414
-
415
- //#region math
416
-
417
411
  /**
418
412
  * rounds the given value to a certain number of decimal places
419
413
  * @param v
420
414
  * @param dPlaces
421
415
  * @returns
422
416
  */
423
- export function roundTo(v: MaybeRefOrGetter<number>, dPlaces: number) {
424
- const val = toValue(v)
425
-
417
+ export function roundTo(val: number, dPlaces: number) {
426
418
  let m = '1';
427
419
  let i = 0;
428
420
 
@@ -521,44 +513,6 @@ export function containsSearch(value?: string, str?: string) {
521
513
  return value.toLowerCase().includes(str.toLowerCase());
522
514
  }
523
515
 
524
- // export function deepSelect(obj: any, propSelector: Function = (obj: any) => obj) {
525
- // if (obj == null) {
526
- // return []
527
- // }
528
-
529
- // if (Array.isArray(obj)) {
530
- // let rr: any[] = []
531
- // obj.forEach(e => {
532
- // rr.push(e)
533
- // const d = deepSelect(e, propSelector)
534
- // if (isLengthyArray(d))
535
- // rr.push(...d)
536
- // })
537
- // return rr
538
- // }
539
- // else {
540
- // let arr = propSelector(obj)
541
- // if (isLengthyArray(arr)) {
542
- // let r = [...arr.reduce((a: any, b: any) => {
543
- // a.push(b)
544
- // const v = deepSelect(b, propSelector)
545
- // if (isLengthyArray(v)) {
546
- // a.push(...v)
547
- // }
548
- // return a
549
- // }, [])]
550
-
551
- // if (!Array.isArray(obj)) {
552
- // r.unshift(obj)
553
- // }
554
-
555
- // return r
556
- // }
557
-
558
- // return []
559
- // }
560
- // }
561
-
562
516
  /**must be an object. Returns a flat map of all items in the prop selector */
563
517
  export function deepSelect(obj: any, propSelector: Function = (obj: any) => obj) {
564
518
  if (obj == null) {
@@ -597,9 +551,8 @@ export function DataURIToBlob(dataURI: any) {
597
551
  export function extractErrorDescription(error: any) {
598
552
  var msg = '';
599
553
  if (error) {
600
- if (error.message) {
601
- msg = error.message;
602
- }
554
+ if (error.message)
555
+ msg = error.message
603
556
 
604
557
  if (error.response && error.response.data) {
605
558
  if (error.response.data.errors) {
@@ -1,13 +1,13 @@
1
1
  import type { GetOptions, OnCanDoAsync, OnDoAsync, OnDoSuccessAsync, OnGetAsync, OnGetSuccessAsync } from './actions'
2
2
  import type { BladeVariant } from '../types'
3
3
  import { useCSV } from '../composables/csv'
4
- import { isLengthyArray, hasSearch } from '../index'
4
+ import { isLengthyArray, hasSearch } from '../composables/helpers'
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
9
  import { useActions } from '../composables/actions'
10
- import { StorageMode, StoreMode, useStoreDefinition } from '../index'
10
+ import { StorageMode, StoreMode, useStoreDefinition } from '../composables/stores'
11
11
 
12
12
  export interface RefreshOptions {
13
13
  deepRefresh?: boolean,
package/src/core.ts CHANGED
@@ -12,23 +12,23 @@ import { createStoreBuilder } from './composables/stores'
12
12
  import { CreateUrlOptions, createUrl } from './composables/urls'
13
13
 
14
14
 
15
- import BTBtn from './components/BT-Btn.vue'
16
- import BTCol from './components/BT-Col.vue'
17
- import BTFieldCheckbox from './components/BT-Field-Checkbox.vue'
18
- import BTFieldDate from './components/BT-Field-Date.vue'
19
- import BTFieldEntity from './components/BT-Field-Entity.vue'
20
- import BTFieldSelect from './components/BT-Field-Select.vue'
21
- import BTFieldString from './components/BT-Field-String.vue'
22
- import BTFieldSwitch from './components/BT-Field-Switch.vue'
23
- import BTFieldTags from './components/BT-Field-Tags.vue'
24
- import BTFieldTextarea from './components/BT-Field-Textarea.vue'
25
- import BTFieldTrigger from './components/BT-Field-Trigger.vue'
26
- import BTHeaderOption from './components/BT-Header-Option.vue'
27
- import BTJson from './components/BT-Json.vue'
28
- import BTSelectListBox from './components/BT-Select-List-Box.vue'
29
- import BTSelect from './components/BT-Select.vue'
30
- import BTSnack from './components/BT-Snack.vue'
31
- import BTSpan from './components/BT-Span.vue'
15
+ // import BTBtn from './components/BT-Btn.vue'
16
+ // import BTCol from './components/BT-Col.vue'
17
+ // import BTFieldCheckbox from './components/BT-Field-Checkbox.vue'
18
+ // import BTFieldDate from './components/BT-Field-Date.vue'
19
+ // import BTFieldEntity from './components/BT-Field-Entity.vue'
20
+ // import BTFieldSelect from './components/BT-Field-Select.vue'
21
+ // import BTFieldString from './components/BT-Field-String.vue'
22
+ // import BTFieldSwitch from './components/BT-Field-Switch.vue'
23
+ // import BTFieldTags from './components/BT-Field-Tags.vue'
24
+ // import BTFieldTextarea from './components/BT-Field-Textarea.vue'
25
+ // import BTFieldTrigger from './components/BT-Field-Trigger.vue'
26
+ // import BTHeaderOption from './components/BT-Header-Option.vue'
27
+ // import BTJson from './components/BT-Json.vue'
28
+ // import BTSelectListBox from './components/BT-Select-List-Box.vue'
29
+ // import BTSelect from './components/BT-Select.vue'
30
+ // import BTSnack from './components/BT-Snack.vue'
31
+ // import BTSpan from './components/BT-Span.vue'
32
32
 
33
33
  export interface CoreApp {
34
34
  install(app: App) : void
@@ -49,26 +49,26 @@ export interface CreateCoreOptions extends UseCosmeticsOptions<BaseCosmeticTheme
49
49
  export function createCore(options: CreateCoreOptions): CoreApp {
50
50
 
51
51
  return {
52
- install(app: App) {
52
+ install() { //app: App) {
53
53
 
54
54
  //register components
55
- app.component('bt-btn', BTBtn)
56
- app.component('bt-col', BTCol)
57
- app.component('bt-field-checkbox', BTFieldCheckbox)
58
- app.component('bt-field-date', BTFieldDate)
59
- app.component('bt-field-entity', BTFieldEntity)
60
- app.component('bt-field-select', BTFieldSelect)
61
- app.component('bt-field-string', BTFieldString)
62
- app.component('bt-field-switch', BTFieldSwitch)
63
- app.component('bt-field-tags', BTFieldTags)
64
- app.component('bt-field-text-area', BTFieldTextarea)
65
- app.component('bt-field-trigger', BTFieldTrigger)
66
- app.component('bt-header-option', BTHeaderOption)
67
- app.component('bt-json', BTJson)
68
- app.component('bt-select-list-box', BTSelectListBox)
69
- app.component('bt-select', BTSelect)
70
- app.component('bt-snack', BTSnack)
71
- app.component('bt-span', BTSpan)
55
+ // app.component('bt-btn', BTBtn)
56
+ // app.component('bt-col', BTCol)
57
+ // app.component('bt-field-checkbox', BTFieldCheckbox)
58
+ // app.component('bt-field-date', BTFieldDate)
59
+ // app.component('bt-field-entity', BTFieldEntity)
60
+ // app.component('bt-field-select', BTFieldSelect)
61
+ // app.component('bt-field-string', BTFieldString)
62
+ // app.component('bt-field-switch', BTFieldSwitch)
63
+ // app.component('bt-field-tags', BTFieldTags)
64
+ // app.component('bt-field-text-area', BTFieldTextarea)
65
+ // app.component('bt-field-trigger', BTFieldTrigger)
66
+ // app.component('bt-header-option', BTHeaderOption)
67
+ // app.component('bt-json', BTJson)
68
+ // app.component('bt-select-list-box', BTSelectListBox)
69
+ // app.component('bt-select', BTSelect)
70
+ // app.component('bt-snack', BTSnack)
71
+ // app.component('bt-span', BTSpan)
72
72
 
73
73
  //define globals
74
74
  // app.config.globalProperties.$btcore = core
@@ -86,14 +86,6 @@ export function createCore(options: CreateCoreOptions): CoreApp {
86
86
 
87
87
  const auth = createAuth(options.auth)
88
88
 
89
- // {
90
- // demo: demo,
91
- // getAuthItem: navigation.findItem,
92
- // getAuthorizeUrl: options.auth
93
- // setCredentials: options.setCredentials,
94
- // subscriptionOptions: options.subscriptionOptions
95
- // })
96
-
97
89
  const api = createApi({
98
90
  auth: auth,
99
91
  findPath: navigation.findPath,
package/src/index.ts CHANGED
@@ -12,7 +12,7 @@ export type { BTDates, CreateDatesOptions } from './composables/dates'
12
12
  export { createDates, useDates } from './composables/dates'
13
13
  export type { BTDemo } from './composables/demo'
14
14
  export { createDemo, useDemo } from './composables/demo'
15
- export * from './composables/dialogs'
15
+ // export * from './composables/dialogs'
16
16
  export type { BTDocumentMeta, UseDocumentMetaOptions } from './composables/document-meta'
17
17
  export { useDocumentMeta } from './composables/document-meta'
18
18
  export * from './composables/draggable'
@@ -37,14 +37,12 @@ export { createStoreBuilder, createStoreDefinition, useStore, useStoreDefinition
37
37
  export type { UseTrackerOptions } from './composables/track'
38
38
  export { useTracker } from './composables/track'
39
39
  export { createUrl, useUrls, useAuthUrl, useDbName, useDataUrl } from './composables/urls'
40
- // export { useApi, useAuth, useDates, useDemo, useFilters, useNavigation, usePresets, usePWA, useStore } from './useApi'
41
40
  export * from './types'
42
41
  export type { CoreApp, CreateCoreOptions } from './core'
43
42
  export { createCore } from './core'
44
43
 
45
44
 
46
- import BTNavMenuItem from './components/BT-Nav-Menu-Item.vue'
47
- import BTNavSidebar from './components/BT-Nav-Sidebar.vue'
48
- import 'vuetify/styles'
45
+ // import BTNavMenuItem from './components/BT-Nav-Menu-Item.vue'
46
+ // import BTNavSidebar from './components/BT-Nav-Sidebar.vue'
49
47
 
50
- export { BTNavMenuItem, BTNavSidebar }
48
+ // export { BTNavMenuItem, BTNavSidebar }
package/vite.config.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import { defineConfig } from 'vite'
3
3
  import path from 'path'
4
4
  import vue from '@vitejs/plugin-vue'
5
- import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
5
+ // import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
6
6
  import dts from 'vite-plugin-dts'
7
7
 
8
8
  // https://vitejs.dev/config/
@@ -12,16 +12,16 @@ export default defineConfig({
12
12
  globals: true,
13
13
  environment: 'happy-dom'
14
14
  },
15
- optimizeDeps: {
16
- include: ['vuetify']
17
- },
15
+ // optimizeDeps: {
16
+ // include: ['vuetify']
17
+ // },
18
18
  build: {
19
19
  lib: {
20
20
  entry: path.resolve(__dirname, './src/index.ts'),
21
21
  formats: ['es']
22
22
  },
23
23
  rollupOptions: {
24
- external: ['vue'],
24
+ external: ['vue', 'vuetify', 'luxon'],
25
25
  output: {
26
26
  globals: {
27
27
  vue: 'Vue'
@@ -35,7 +35,7 @@ export default defineConfig({
35
35
  // }),
36
36
  vue(),
37
37
  dts(),
38
- vuetify({ autoImport: true })
38
+ // vuetify({ autoImport: true })
39
39
  ],
40
40
  resolve: {
41
41
  alias: {
@@ -1,41 +0,0 @@
1
- interface BtnProps {
2
- icon?: string;
3
- isEditing?: boolean;
4
- preset?: string;
5
- size?: string;
6
- variant?: 'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain';
7
- }
8
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BtnProps>, {
9
- icon: undefined;
10
- isEditing: boolean;
11
- size: undefined;
12
- variant: string;
13
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BtnProps>, {
14
- icon: undefined;
15
- isEditing: boolean;
16
- size: undefined;
17
- variant: string;
18
- }>>>, {
19
- icon: string;
20
- isEditing: boolean;
21
- size: string;
22
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
23
- }, {}>;
24
- export default _default;
25
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
- type __VLS_TypePropsToRuntimeProps<T> = {
27
- [K in keyof T]-?: {} extends Pick<T, K> ? {
28
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
- } : {
30
- type: import('vue').PropType<T[K]>;
31
- required: true;
32
- };
33
- };
34
- type __VLS_WithDefaults<P, D> = {
35
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
- default: D[K];
37
- }> : P[K];
38
- };
39
- type __VLS_Prettify<T> = {
40
- [K in keyof T]: T[K];
41
- } & {};
@@ -1,49 +0,0 @@
1
- interface ColProps {
2
- cols?: string | boolean;
3
- isMobile?: boolean;
4
- lg?: string | boolean;
5
- md?: string | boolean;
6
- sm?: string | boolean;
7
- noGutters?: boolean;
8
- }
9
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ColProps>, {
10
- cols: string;
11
- lg: boolean;
12
- md: boolean;
13
- sm: string;
14
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ColProps>, {
15
- cols: string;
16
- lg: boolean;
17
- md: boolean;
18
- sm: string;
19
- }>>>, {
20
- cols: string | boolean;
21
- lg: string | boolean;
22
- md: string | boolean;
23
- sm: string | boolean;
24
- }, {}>, {
25
- default?(_: {}): any;
26
- }>;
27
- export default _default;
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToRuntimeProps<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };
37
- type __VLS_WithDefaults<P, D> = {
38
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
39
- default: D[K];
40
- }> : P[K];
41
- };
42
- type __VLS_Prettify<T> = {
43
- [K in keyof T]: T[K];
44
- } & {};
45
- type __VLS_WithTemplateSlots<T, S> = T & {
46
- new (): {
47
- $slots: S;
48
- };
49
- };
@@ -1,56 +0,0 @@
1
- import { BladeDensity } from '../types';
2
-
3
- interface FieldProps {
4
- cols?: string | boolean;
5
- density?: BladeDensity;
6
- horizontal?: boolean;
7
- isEditing?: boolean;
8
- isMobile?: boolean;
9
- label: any;
10
- lg?: string | boolean;
11
- md?: string | boolean;
12
- modelValue: any;
13
- rules?: any;
14
- sm?: string | boolean;
15
- }
16
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps>, {
17
- isEditing: undefined;
18
- cols: string;
19
- lg: boolean;
20
- md: boolean;
21
- sm: string;
22
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
- "update:modelValue": (...args: any[]) => void;
24
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps>, {
25
- isEditing: undefined;
26
- cols: string;
27
- lg: boolean;
28
- md: boolean;
29
- sm: string;
30
- }>>> & {
31
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32
- }, {
33
- isEditing: boolean;
34
- cols: string | boolean;
35
- lg: string | boolean;
36
- md: string | boolean;
37
- sm: string | boolean;
38
- }, {}>;
39
- export default _default;
40
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
- type __VLS_TypePropsToRuntimeProps<T> = {
42
- [K in keyof T]-?: {} extends Pick<T, K> ? {
43
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
- } : {
45
- type: import('vue').PropType<T[K]>;
46
- required: true;
47
- };
48
- };
49
- type __VLS_WithDefaults<P, D> = {
50
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
- default: D[K];
52
- }> : P[K];
53
- };
54
- type __VLS_Prettify<T> = {
55
- [K in keyof T]: T[K];
56
- } & {};
@@ -1,64 +0,0 @@
1
-
2
- interface FieldProps {
3
- cols?: string | boolean;
4
- dateFrom?: string;
5
- dateRules?: Function | unknown[];
6
- format?: string;
7
- fromNow?: boolean;
8
- horizontal?: boolean;
9
- isEditing?: boolean;
10
- isMobile?: boolean;
11
- label?: string;
12
- lg?: string | boolean;
13
- md?: string | boolean;
14
- modelValue: any;
15
- sm?: string | boolean;
16
- useTime?: boolean;
17
- }
18
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps>, {
19
- isEditing: undefined;
20
- cols: string;
21
- lg: boolean;
22
- md: boolean;
23
- sm: string;
24
- format: string;
25
- fromNow: boolean;
26
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
- "update:modelValue": (...args: any[]) => void;
28
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps>, {
29
- isEditing: undefined;
30
- cols: string;
31
- lg: boolean;
32
- md: boolean;
33
- sm: string;
34
- format: string;
35
- fromNow: boolean;
36
- }>>> & {
37
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
38
- }, {
39
- isEditing: boolean;
40
- cols: string | boolean;
41
- lg: string | boolean;
42
- md: string | boolean;
43
- sm: string | boolean;
44
- format: string;
45
- fromNow: boolean;
46
- }, {}>;
47
- export default _default;
48
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
- type __VLS_TypePropsToRuntimeProps<T> = {
50
- [K in keyof T]-?: {} extends Pick<T, K> ? {
51
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
52
- } : {
53
- type: import('vue').PropType<T[K]>;
54
- required: true;
55
- };
56
- };
57
- type __VLS_WithDefaults<P, D> = {
58
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
59
- default: D[K];
60
- }> : P[K];
61
- };
62
- type __VLS_Prettify<T> = {
63
- [K in keyof T]: T[K];
64
- } & {};