@bagelink/vue 0.0.95 → 0.0.98

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 (82) hide show
  1. package/dist/components/Btn.vue.d.ts +4 -4
  2. package/dist/components/FormSchema.vue.d.ts +1 -1
  3. package/dist/components/ListView.vue.d.ts +2 -2
  4. package/dist/components/MaterialIcon.vue.d.ts +1 -1
  5. package/dist/components/Modal.vue.d.ts +0 -1
  6. package/dist/components/ModalForm.vue.d.ts +1 -2
  7. package/dist/components/NavBar.vue.d.ts +1 -1
  8. package/dist/components/RTXEditor.vue.d.ts +1 -1
  9. package/dist/components/form/MaterialIcon.vue.d.ts +1 -1
  10. package/dist/components/form/inputs/CheckInput.vue.d.ts +1 -1
  11. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +1 -1
  12. package/dist/components/form/inputs/DateInput.vue.d.ts +1 -1
  13. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +1 -1
  14. package/dist/components/form/inputs/DurationInput.vue.d.ts +1 -1
  15. package/dist/components/form/inputs/EmailInput.vue.d.ts +1 -1
  16. package/dist/components/form/inputs/FloatInput.vue.d.ts +1 -1
  17. package/dist/components/form/inputs/IntInput.vue.d.ts +1 -1
  18. package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
  19. package/dist/components/form/inputs/LinkField.vue.d.ts +2 -2
  20. package/dist/components/form/inputs/Password.vue.d.ts +1 -1
  21. package/dist/components/form/inputs/PasswordInput.vue.d.ts +1 -1
  22. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +1 -1
  23. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +1 -1
  24. package/dist/components/form/inputs/SelectField.vue.d.ts +2 -2
  25. package/dist/components/formkit/index.d.ts +2 -2
  26. package/dist/index.cjs +206 -389
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.mjs +206 -389
  29. package/dist/plugins/modal.d.ts +3 -1
  30. package/dist/style.css +223 -223
  31. package/dist/types/index.d.ts +2 -1
  32. package/dist/utils/index.d.ts +1 -1
  33. package/dist/utils/objects.d.ts +1 -1
  34. package/package.json +45 -18
  35. package/src/components/Btn.vue +2 -2
  36. package/src/components/Comments.vue +1 -1
  37. package/src/components/ContactArray.vue +2 -2
  38. package/src/components/ContactSubmissions.vue +1 -1
  39. package/src/components/DataPreview.vue +1 -1
  40. package/src/components/DropDown.vue +1 -1
  41. package/src/components/FormKitTable.vue +1 -2
  42. package/src/components/FormSchema.vue +1 -1
  43. package/src/components/ListView.vue +1 -2
  44. package/src/components/MaterialIcon.vue +1 -1
  45. package/src/components/Modal.vue +2 -2
  46. package/src/components/ModalForm.vue +2 -3
  47. package/src/components/NavBar.vue +2 -3
  48. package/src/components/PersonPreview.vue +2 -3
  49. package/src/components/PersonPreviewFormkit.vue +2 -3
  50. package/src/components/TableSchema.vue +1 -2
  51. package/src/components/form/ItemRef.vue +5 -7
  52. package/src/components/form/MaterialIcon.vue +1 -1
  53. package/src/components/form/PlainInputField.vue +2 -2
  54. package/src/components/form/inputs/CheckInput.vue +1 -1
  55. package/src/components/form/inputs/Checkbox.vue +1 -1
  56. package/src/components/form/inputs/ColorPicker.vue +1 -1
  57. package/src/components/form/inputs/CurrencyInput.vue +1 -1
  58. package/src/components/form/inputs/DateInput.vue +1 -1
  59. package/src/components/form/inputs/DynamicLinkField.vue +1 -1
  60. package/src/components/form/inputs/LinkField.vue +1 -1
  61. package/src/components/form/inputs/Password.vue +1 -2
  62. package/src/components/form/inputs/PlainText.vue +1 -1
  63. package/src/components/form/inputs/ReadOnlyInput.vue +1 -1
  64. package/src/components/form/inputs/SelectField.vue +2 -2
  65. package/src/components/form/inputs/TableField.vue +3 -5
  66. package/src/components/form/inputs/TextArea.vue +1 -1
  67. package/src/components/form/inputs/TextInput.vue +1 -1
  68. package/src/components/formkit/AddressArray.vue +2 -3
  69. package/src/components/formkit/BankDetailsArray.vue +2 -3
  70. package/src/components/formkit/ContactArrayFormKit.vue +2 -3
  71. package/src/components/formkit/FileUploader.vue +1 -2
  72. package/src/components/formkit/MiscFields.vue +1 -1
  73. package/src/components/formkit/index.ts +3 -3
  74. package/src/components/whatsapp/form/MsgTemplate.vue +1 -3
  75. package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
  76. package/src/index.ts +1 -0
  77. package/src/plugins/modal.ts +3 -3
  78. package/src/types/index.ts +2 -1
  79. package/src/utils/index.ts +1 -1
  80. package/src/utils/objects.ts +1 -1
  81. package/tsconfig.json +6 -0
  82. package/vite.config.ts +2 -2
@@ -1,4 +1,5 @@
1
+ export type { MaterialIcons } from './materialIcons';
1
2
  export type { BankDetails, NewPerson, Person } from './Person';
2
3
  export type { Tables, TableToTypeMapping } from '@bagelink/sdk';
3
4
  export type { StorageFile } from './file';
4
- export type { BagelField } from './BagelField';
5
+ export * from './BagelField';
@@ -1,4 +1,4 @@
1
- import type { BagelField } from '../types/BagelField';
1
+ import type { BagelField } from '..';
2
2
  export declare const debounce: (fn: () => void, delay?: number) => void;
3
3
  export declare const keyToLabel: (key: string) => string;
4
4
  export declare function computeFields(modelValue: Record<string, any>): BagelField[];
@@ -1,3 +1,3 @@
1
- import { BagelField } from '../types';
1
+ import { BagelField } from '..';
2
2
  export declare function getPropByPath(obj: Record<string, any>, propPath?: string, bagelField?: BagelField): {};
3
3
  export declare function setPropByPath(obj: Record<string, any>, path?: string, value?: any): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.95",
4
+ "version": "0.0.98",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -51,27 +51,13 @@
51
51
  ],
52
52
  "dependencies": {},
53
53
  "devDependencies": {
54
- "vue": "^3.3.8",
55
- "vue-router": "^4.2.5",
56
- "vue3-charts": "^1.1.33",
57
- "@formkit/vue": "^1.3.0",
58
- "@formkit/core": "1.3.0",
59
- "vue-draggable-next": "^2.2.1",
60
- "prosemirror-commands": "^1.5.2",
61
- "prosemirror-history": "^1.3.2",
62
- "prosemirror-keymap": "^1.2.2",
63
- "prosemirror-model": "^1.19.3",
64
- "prosemirror-schema-basic": "^1.2.2",
65
- "prosemirror-state": "^1.4.3",
66
- "prosemirror-view": "^1.32.4",
67
54
  "@vue-macros/reactivity-transform": "^0.4.0",
68
- "@bagelink/sdk": "0.0.95"
55
+ "@bagelink/sdk": "0.0.98"
69
56
  },
70
57
  "peerDependencies": {
71
- "@bagelink/sdk": "*"
72
- },
73
- "optionalDependencies": {
58
+ "@bagelink/sdk": "*",
74
59
  "vue-router": "^4.2.5",
60
+ "vue": "^3.3.8",
75
61
  "vue3-charts": "^1.1.33",
76
62
  "@formkit/vue": "^1.3.0",
77
63
  "@formkit/core": "1.3.0",
@@ -84,6 +70,47 @@
84
70
  "prosemirror-state": "^1.4.3",
85
71
  "prosemirror-view": "^1.32.4"
86
72
  },
73
+ "peerDependenciesMeta": {
74
+ "vue-router": {
75
+ "optional": true
76
+ },
77
+ "vue": {
78
+ "option": true
79
+ },
80
+ "vue3-charts": {
81
+ "option": true
82
+ },
83
+ "@formkit/vue": {
84
+ "option": true
85
+ },
86
+ "@formkit/core": {
87
+ "option": true
88
+ },
89
+ "vue-draggable-next": {
90
+ "option": true
91
+ },
92
+ "prosemirror-commands": {
93
+ "option": true
94
+ },
95
+ "prosemirror-history": {
96
+ "option": true
97
+ },
98
+ "prosemirror-keymap": {
99
+ "option": true
100
+ },
101
+ "prosemirror-model": {
102
+ "option": true
103
+ },
104
+ "prosemirror-schema-basic": {
105
+ "option": true
106
+ },
107
+ "prosemirror-state": {
108
+ "option": true
109
+ },
110
+ "prosemirror-view": {
111
+ "option": true
112
+ }
113
+ },
87
114
  "publishConfig": {
88
115
  "access": "public"
89
116
  },
@@ -42,8 +42,8 @@
42
42
  import { useSlots } from 'vue';
43
43
 
44
44
  const slots = useSlots();
45
- import type { MaterialIcons } from '../types/materialIcons';
46
- import { MaterialIcon } from '../components';
45
+ import type { MaterialIcons } from '@bagelink/vue';
46
+ import { MaterialIcon } from '@bagelink/vue';
47
47
 
48
48
  const props = withDefaults(
49
49
  defineProps<{
@@ -68,8 +68,8 @@
68
68
 
69
69
  <script lang="ts" setup>
70
70
  import { onMounted, watch } from 'vue';
71
+ import { Btn, MaterialIcon, RTXEditor } from '@bagelink/vue';
71
72
  import { useBagel } from '..';
72
- import { Btn, MaterialIcon, RTXEditor } from '../components';
73
73
 
74
74
  const bagel = useBagel();
75
75
  let comments = $ref<Record<string, any>>([]);
@@ -56,10 +56,10 @@
56
56
 
57
57
  <script setup lang="ts">
58
58
  import { ref, watch } from 'vue';
59
- import type { BagelField } from '../types/BagelField';
59
+ import type { BagelField } from '@bagelink/vue';
60
60
  import MaterialIcon from './MaterialIcon.vue';
61
61
  import Btn from './Btn.vue';
62
- import CheckInput from '../components/form/inputs/CheckInput.vue';
62
+ import CheckInput from './form/inputs/CheckInput.vue';
63
63
 
64
64
  const props = withDefaults(
65
65
  defineProps<{
@@ -9,8 +9,8 @@
9
9
 
10
10
  <script setup lang="ts">
11
11
  import { onMounted } from 'vue';
12
+ import { TableSchema } from '@bagelink/vue';
12
13
  import { useBagel } from '..';
13
- import { TableSchema } from '../components';
14
14
 
15
15
  const bagel = useBagel();
16
16
 
@@ -45,7 +45,7 @@
45
45
  </template>
46
46
 
47
47
  <script lang="ts" setup>
48
- import { keyToLabel, parseLocale } from '../utils';
48
+ import { keyToLabel, parseLocale } from '@bagelink/vue';
49
49
 
50
50
  const keysToIgnore = ['id', 'person_id', 'person', 'created_at', 'updated_at'];
51
51
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  <script setup lang="ts">
24
24
  import { ref } from 'vue';
25
- import { MaterialIcon } from '../components';
25
+ import { MaterialIcon } from '@bagelink/vue';
26
26
 
27
27
  const props = defineProps({
28
28
  modelValue: String,
@@ -123,8 +123,7 @@
123
123
 
124
124
  <script setup lang="ts">
125
125
  import { computed, ref, useSlots } from 'vue';
126
- import { BagelField } from '../types';
127
- import { Btn, MaterialIcon } from '../components';
126
+ import { BagelField, Btn, MaterialIcon } from '@bagelink/vue';
128
127
 
129
128
  const slots = useSlots();
130
129
  const loading = ref(true);
@@ -29,7 +29,7 @@
29
29
  import { reactive } from 'vue';
30
30
  import { type FormKitSchemaDefinition } from '@formkit/core';
31
31
 
32
- import { Btn } from '../components';
32
+ import { Btn } from '@bagelink/vue';
33
33
  import { useModal } from '..';
34
34
 
35
35
  const { showModal } = useModal();
@@ -29,8 +29,7 @@
29
29
  </template>
30
30
 
31
31
  <script lang="ts" setup>
32
- import { MaterialIcon, Btn } from '../components';
33
- import { debounce } from '../utils';
32
+ import { MaterialIcon, Btn, debounce } from '@bagelink/vue';
34
33
 
35
34
  defineProps<{
36
35
  enableAdd: boolean;
@@ -8,7 +8,7 @@
8
8
  </template>
9
9
 
10
10
  <script setup lang="ts">
11
- import type { MaterialIcons } from '../types/materialIcons';
11
+ import type { MaterialIcons } from '@bagelink/vue';
12
12
 
13
13
  defineProps<{
14
14
  icon: MaterialIcons;
@@ -32,8 +32,8 @@
32
32
 
33
33
  <script lang="ts" setup>
34
34
  import { onMounted } from 'vue';
35
- import { Btn } from '../components';
36
- import { BtnOptions } from '../types/BtnOptions';
35
+ import { BtnOptions } from '@bagelink/vue';
36
+ import { Btn } from '@bagelink/vue';
37
37
  import '../styles/modal.css';
38
38
 
39
39
  defineProps<{
@@ -35,11 +35,10 @@
35
35
  <script lang="ts" setup>
36
36
  import { type FormKitSchemaDefinition } from '@formkit/core';
37
37
  import { onMounted } from 'vue';
38
- import { Btn, FormSchema } from '../components';
38
+ import { Btn, FormSchema, BtnOptions } from '@bagelink/vue';
39
39
  import '../styles/modal.css';
40
- import { BtnOptions } from '../types/BtnOptions';
41
40
 
42
- // import { BagelField } from '../types';
41
+ // import { BagelField } from '@bagelink/vue';
43
42
 
44
43
  const props = defineProps<{
45
44
  side?: boolean;
@@ -41,9 +41,8 @@
41
41
  </template>
42
42
 
43
43
  <script lang="ts" setup>
44
- // import LangText from "../translation/LangText.vue"
45
- import { RouterLink } from 'vue-router';
46
- import type { MaterialIcons } from '../types/materialIcons';
44
+ // import LangText from "../translation/LangText.vue"s
45
+ import type { MaterialIcons } from '@bagelink/vue';
47
46
 
48
47
  const isOpen = $ref(true);
49
48
 
@@ -76,10 +76,9 @@
76
76
 
77
77
  <script lang="ts" setup>
78
78
  import type { FormKitSchemaDefinition } from '@formkit/core';
79
+ import type { Person } from '@bagelink/vue';
80
+ import { initials, Btn, MaterialIcon } from '@bagelink/vue';
79
81
  import { useBagel, useModal } from '..';
80
- import type { Person } from '../types';
81
- import { initials } from '../utils';
82
- import { Btn, MaterialIcon } from '../components';
83
82
 
84
83
  // const toast = useToast(); // TODO: use toast
85
84
  const bagel = useBagel();
@@ -77,10 +77,9 @@
77
77
 
78
78
  <script lang="ts" setup>
79
79
  import type { FormKitSchemaDefinition } from '@formkit/core';
80
+ import type { Person } from '@bagelink/vue';
81
+ import { initials, Btn, MaterialIcon } from '@bagelink/vue';
80
82
  import { useBagel, useModal } from '..';
81
- import type { Person } from '../types';
82
- import { initials } from '../utils';
83
- import { Btn, MaterialIcon } from '../components';
84
83
 
85
84
  // const toast = useToast(); // TODO: use toast
86
85
  const bagel = useBagel();
@@ -65,8 +65,7 @@
65
65
 
66
66
  <script setup lang="ts">
67
67
  import { useSlots } from 'vue';
68
- import { MaterialIcon } from '../components';
69
- import { parseLocale } from '../utils';
68
+ import { MaterialIcon, parseLocale } from '@bagelink/vue';
70
69
 
71
70
  const slots = useSlots();
72
71
  const loading = $ref(true);
@@ -21,19 +21,16 @@
21
21
 
22
22
  <script lang="ts" setup>
23
23
  import { ref, computed } from 'vue';
24
- import { useRouter } from 'vue-router';
25
24
 
26
- import { Btn, MaterialIcon } from '../../components';
27
- import { BagelField } from '../../types';
28
-
29
- const router = useRouter();
30
- // import Modal from '../components/Modal.vue';
25
+ import type { Router } from 'vue-router';
26
+ import { Btn, MaterialIcon, BagelField } from '@bagelink/vue';
31
27
 
32
28
  const openRef = ref(false);
33
29
 
34
30
  const props = defineProps<{
35
31
  modelValue: Record<string, any>;
36
32
  field: BagelField;
33
+ router: Router;
37
34
  }>();
38
35
 
39
36
  const content = computed(() => props.field.refFields?.map((k) => props.modelValue?.[k] || '').join(' '));
@@ -41,6 +38,7 @@ const content = computed(() => props.field.refFields?.map((k) => props.modelValu
41
38
  const openModal = () => {
42
39
  console.log(`openning ${props.modelValue?.id}`);
43
40
  openRef.value = true;
44
- void router.push(`/${props.field.refCollection}/${props.modelValue?.id}`);
41
+ void props.router.push(`/${props.field.refCollection}/${props.modelValue?.id}`);
45
42
  };
46
43
  </script>
44
+ s
@@ -8,7 +8,7 @@
8
8
  </template>
9
9
 
10
10
  <script setup lang="ts">
11
- import type { MaterialIcons } from '../../types/materialIcons';
11
+ import type { MaterialIcons } from '@bagelink/vue';
12
12
 
13
13
  defineProps<{
14
14
  icon: MaterialIcons
@@ -47,8 +47,8 @@
47
47
  <script lang="ts" setup>
48
48
  import { onMounted, ref } from 'vue';
49
49
 
50
- import LangText from '../../../translation/LangText.vue';
51
- import { formatString } from '../../utils';
50
+ import { formatString } from '@bagelink/vue';
51
+ import LangText from '../LangText.vue';
52
52
 
53
53
  const props = defineProps<{
54
54
  type: 'text' | 'number' | 'password' | 'email' | 'checkbox' | 'textarea';
@@ -21,7 +21,7 @@
21
21
 
22
22
  <script setup lang="ts">
23
23
  import { watch, ref, onMounted } from 'vue';
24
- import { BagelField } from '../../../types';
24
+ import { BagelField } from '@bagelink/vue';
25
25
 
26
26
  const emits = defineEmits(['update:modelValue']);
27
27
  const props = withDefaults(
@@ -12,7 +12,7 @@
12
12
 
13
13
  <script setup lang="ts">
14
14
  import { watch } from 'vue';
15
- import { MaterialIcon } from '../../../components';
15
+ import { MaterialIcon } from '@bagelink/vue';
16
16
 
17
17
  const props = defineProps({
18
18
  modelValue: Boolean,
@@ -22,7 +22,7 @@
22
22
 
23
23
  <script setup lang="ts">
24
24
  import { watch } from 'vue';
25
- import { type BagelField } from '../../../types';
25
+ import { type BagelField } from '@bagelink/vue';
26
26
 
27
27
  const emits = defineEmits(['update:modelValue']);
28
28
  const props = withDefaults(
@@ -26,7 +26,7 @@
26
26
  </template>
27
27
 
28
28
  <script setup lang="ts">
29
- import { BagelField } from '../../../types';
29
+ import { BagelField } from '@bagelink/vue';
30
30
 
31
31
  const emits = defineEmits(['update:modelValue']);
32
32
  withDefaults(
@@ -22,7 +22,7 @@
22
22
 
23
23
  <script setup lang="ts">
24
24
  import { ref } from 'vue';
25
- import type { BagelField } from '../../../types/BagelField';
25
+ import type { BagelField } from '@bagelink/vue';
26
26
 
27
27
  const props = withDefaults(
28
28
  defineProps<{
@@ -41,7 +41,7 @@
41
41
 
42
42
  <script lang="ts" setup>
43
43
  import { onMounted, ref } from 'vue';
44
- import { formatString } from '../../../utils';
44
+ import { formatString } from '@bagelink/vue';
45
45
 
46
46
  // TODO: remove this Nati ?
47
47
 
@@ -60,7 +60,7 @@
60
60
 
61
61
  <script lang="ts" setup>
62
62
  import { onMounted, ref } from 'vue';
63
- import { formatString } from '../../../utils';
63
+ import { formatString } from '@bagelink/vue';
64
64
 
65
65
  const props = withDefaults(
66
66
  defineProps<{
@@ -27,8 +27,7 @@
27
27
 
28
28
  <script setup lang="ts">
29
29
  import { ref, watch, computed } from 'vue';
30
- import { BagelField } from '../../../types/BagelField';
31
- import { MaterialIcon } from '../../../components';
30
+ import { MaterialIcon, BagelField } from '@bagelink/vue';
32
31
 
33
32
  const emits = defineEmits(['update:modelValue']);
34
33
  let seePassword = $ref<boolean>(false);
@@ -23,7 +23,7 @@
23
23
 
24
24
  <script setup lang="ts">
25
25
  import { watch } from 'vue';
26
- import { BagelField } from '../../../types/BagelField';
26
+ import { BagelField } from '@bagelink/vue';
27
27
 
28
28
  const emit = defineEmits(['update:modelValue']);
29
29
  const props = withDefaults(
@@ -12,7 +12,7 @@
12
12
  </template>
13
13
 
14
14
  <script setup lang="ts">
15
- import { BagelField } from '../../../types/BagelField';
15
+ import { BagelField } from '@bagelink/vue';
16
16
 
17
17
  defineProps<{
18
18
  field: BagelField;
@@ -49,8 +49,8 @@ import {
49
49
  onMounted, onUnmounted, ref, computed,
50
50
  watch,
51
51
  } from 'vue';
52
- import { type SelectBagelField } from '../../../types/BagelField';
53
- import { LangText } from '../../../components';
52
+ import { LangText } from '@bagelink/vue';
53
+ import { type SelectBagelField } from '@bagelink/vue';
54
54
 
55
55
  const selectEl = ref<HTMLElement>();
56
56
  const dropdown = ref<HTMLElement>();
@@ -78,12 +78,10 @@
78
78
  import { VueDraggableNext } from 'vue-draggable-next';
79
79
  // import { EntityMeta } from 'bagel-sdk/types';
80
80
  import { onMounted, ref } from 'vue';
81
- import { Btn } from '../../../components';
82
- // import { bagelApp as api } from '../../../index';
81
+ import { Btn, formatString } from '@bagelink/vue';
82
+
83
83
  import MaterialIcon from '../MaterialIcon.vue';
84
- import { formatString } from '../../../utils';
85
- // import TransitionGroupPop from '../../../transitions/TransitionGroupPop.vue';
86
- // import { formatString } from '../../../composables';
84
+
87
85
  // import { ButtonIcon } from 'src/components/buttons'
88
86
  let bagel: any;
89
87
  let api: any;
@@ -24,7 +24,7 @@
24
24
  </template>
25
25
 
26
26
  <script setup lang="ts">
27
- import LangText from '../components/LangText.vue';
27
+ import { LangText } from '@bagelink/vue';
28
28
 
29
29
  const emits = defineEmits(['update:modelValue']);
30
30
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  <script setup lang="ts">
24
24
  import { watch } from 'vue';
25
- import { debounce } from '../../../utils';
25
+ import { debounce } from '@bagelink/vue';
26
26
 
27
27
  const emit = defineEmits(['update:modelValue', 'debounce']);
28
28
  const props = withDefaults(
@@ -86,11 +86,10 @@
86
86
 
87
87
  <script setup lang="ts">
88
88
  import { watch } from 'vue';
89
- // import type { BagelField } from '../../../types/BagelField';
89
+ // import type { BagelField } from '@bagelink/vue';
90
90
 
91
- import { Btn } from '../../components';
91
+ import { Btn, useBagel } from '@bagelink/vue';
92
92
  import Checkbox from '../form/inputs/Checkbox.vue';
93
- import { useBagel } from '../../plugins/bagel';
94
93
 
95
94
  const bagel = useBagel();
96
95
  const props = defineProps<{
@@ -111,11 +111,10 @@
111
111
 
112
112
  <script setup lang="ts">
113
113
  import { watch } from 'vue';
114
- // import type { BagelField } from '../../../types/BagelField';
114
+ // import type { BagelField } from '@bagelink/vue';
115
115
 
116
- import { Btn } from '../../components';
116
+ import { Btn, useBagel } from '@bagelink/vue';
117
117
  import Checkbox from '../form/inputs/Checkbox.vue';
118
- import { useBagel } from '../../plugins/bagel';
119
118
 
120
119
  const bagel = useBagel();
121
120
 
@@ -76,11 +76,10 @@
76
76
 
77
77
  <script setup lang="ts">
78
78
  import { watch } from 'vue';
79
- // import type { BagelField } from '../../../types/BagelField';
79
+ // import type { BagelField } from '@bagelink/vue';
80
80
 
81
- import { Btn } from '../../components';
81
+ import { Btn, useBagel } from '@bagelink/vue';
82
82
  import Checkbox from '../form/inputs/Checkbox.vue';
83
- import { useBagel } from '../../plugins/bagel';
84
83
 
85
84
  const bagel = useBagel();
86
85
 
@@ -93,8 +93,7 @@ interface UploadFile {
93
93
 
94
94
  import { onMounted, onUnmounted } from 'vue';
95
95
 
96
- import { MaterialIcon, Btn } from '../../components';
97
- import { useBagel } from '../../plugins/bagel';
96
+ import { MaterialIcon, Btn, useBagel } from '@bagelink/vue';
98
97
 
99
98
  const bagel = useBagel();
100
99
 
@@ -17,7 +17,7 @@
17
17
  </template>
18
18
 
19
19
  <script lang="ts" setup>
20
- import { Btn } from '../../components';
20
+ import { Btn } from '@bagelink/vue';
21
21
 
22
22
  const props = defineProps<{
23
23
  context: Record<string, any>;
@@ -1,7 +1,7 @@
1
1
  import { createInput } from '@formkit/vue';
2
2
  import ContactArrayFormKit from './ContactArrayFormKit.vue';
3
3
  import AddressArray from './AddressArray.vue';
4
- import BankDetailsArray from './BankDetailsArray.vue';
4
+ import * as B from './BankDetailsArray.vue';
5
5
  import MiscFieldsBtns from './MiscFields.vue';
6
6
  import Toggle from './Toggle.vue';
7
7
  import FileUploader from './FileUploader.vue';
@@ -10,7 +10,7 @@ import TextVariableExamples from '../whatsapp/form/TextVariableExamples.vue';
10
10
 
11
11
  const ContactArray = createInput(ContactArrayFormKit);
12
12
  const Address = createInput(AddressArray);
13
- const BankDetails = createInput(BankDetailsArray);
13
+ const BankDetailsArray = createInput(B);
14
14
  const MiscFields = createInput(MiscFieldsBtns);
15
15
  const ToggleSwitch = createInput(Toggle);
16
16
  const FileUpload = createInput(FileUploader);
@@ -22,7 +22,7 @@ export {
22
22
  ContactArray,
23
23
  PersonPreview,
24
24
  Address,
25
- BankDetails,
25
+ BankDetailsArray,
26
26
  MiscFields,
27
27
  ToggleSwitch,
28
28
  FileUpload,
@@ -37,7 +37,7 @@ import { onMounted } from 'vue';
37
37
 
38
38
  import type { FormKitSchemaDefinition } from '@formkit/core';
39
39
  import type { RouteLocationNormalizedLoaded, Router } from 'vue-router';
40
-
40
+ import { useBagel, PageTitle, FormSchema } from '@bagelink/vue';
41
41
  import {
42
42
  BodyComponent,
43
43
  HeaderComponent,
@@ -45,8 +45,6 @@ import {
45
45
  ServerTemplateData,
46
46
  FooterComponent,
47
47
  } from '../interfaces';
48
- import { PageTitle, FormSchema } from '../../../components';
49
- import { useBagel } from '../../../plugins/bagel';
50
48
 
51
49
  const props = defineProps<{
52
50
  whatsappTemplateSchema: () => FormKitSchemaDefinition;
@@ -13,7 +13,7 @@
13
13
  <script setup lang="ts">
14
14
  import { onMounted, watch } from 'vue';
15
15
  import { FormKitNode } from '@formkit/core';
16
- import { TextInput } from '../../../components';
16
+ import { TextInput } from '@bagelink/vue';
17
17
 
18
18
  const props = defineProps({
19
19
  context: Object,
package/src/index.ts CHANGED
@@ -6,3 +6,4 @@ export * from './utils';
6
6
  export * from './components';
7
7
  export * from './components/formkit';
8
8
  export * from './components/form/inputs';
9
+ export * from './types';