@bagelink/vue 0.0.70 → 0.0.74

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 (46) hide show
  1. package/package.json +2 -2
  2. package/src/components/Btn.vue +25 -9
  3. package/src/components/Comments.vue +2 -2
  4. package/src/components/ContactArray.vue +2 -2
  5. package/src/components/ContactSubmissions.vue +2 -2
  6. package/src/components/DataPreview.vue +1 -1
  7. package/src/components/DropDown.vue +7 -4
  8. package/src/components/FileUploader.vue +1 -1
  9. package/src/components/FormKitTable.vue +2 -2
  10. package/src/components/FormSchema.vue +2 -2
  11. package/src/components/ListView.vue +2 -2
  12. package/src/components/MaterialIcon.vue +1 -1
  13. package/src/components/Modal.vue +2 -2
  14. package/src/components/ModalForm.vue +3 -3
  15. package/src/components/NavBar.vue +1 -1
  16. package/src/components/PersonPreview.vue +4 -4
  17. package/src/components/PersonPreviewFormkit.vue +4 -4
  18. package/src/components/TableSchema.vue +2 -2
  19. package/src/components/form/ItemRef.vue +3 -3
  20. package/src/components/form/MaterialIcon.vue +1 -1
  21. package/src/components/form/PlainInputField.vue +1 -1
  22. package/src/components/form/inputs/CheckInput.vue +1 -1
  23. package/src/components/form/inputs/Checkbox.vue +1 -1
  24. package/src/components/form/inputs/ColorPicker.vue +1 -1
  25. package/src/components/form/inputs/CurrencyInput.vue +1 -1
  26. package/src/components/form/inputs/DateInput.vue +1 -1
  27. package/src/components/form/inputs/LinkField.vue +1 -1
  28. package/src/components/form/inputs/Password.vue +2 -2
  29. package/src/components/form/inputs/PlainText.vue +1 -1
  30. package/src/components/form/inputs/ReadOnlyInput.vue +1 -1
  31. package/src/components/form/inputs/SelectField.vue +2 -2
  32. package/src/components/form/inputs/TableField.vue +2 -2
  33. package/src/components/form/inputs/TextArea.vue +1 -1
  34. package/src/components/form/inputs/TextInput.vue +1 -1
  35. package/src/components/formkit/AddressArray.vue +3 -3
  36. package/src/components/formkit/BankDetailsArray.vue +3 -3
  37. package/src/components/formkit/ContactArrayFormKit.vue +3 -3
  38. package/src/components/formkit/FileUploader.vue +2 -2
  39. package/src/components/formkit/MiscFields.vue +1 -1
  40. package/src/components/whatsapp/form/MsgTemplate.vue +2 -2
  41. package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
  42. package/src/plugins/modal.ts +1 -1
  43. package/src/utils/index.ts +1 -1
  44. package/src/utils/objects.ts +1 -1
  45. package/tsconfig.json +26 -2
  46. package/vite.config.ts +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.70",
4
+ "version": "0.0.74",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -65,7 +65,7 @@
65
65
  "prosemirror-state": "^1.4.3",
66
66
  "prosemirror-view": "^1.32.4",
67
67
  "@vue-macros/reactivity-transform": "^0.4.0",
68
- "@bagelink/sdk": "0.0.70"
68
+ "@bagelink/sdk": "0.0.74"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@bagelink/sdk": "*"
@@ -1,6 +1,11 @@
1
1
  <template>
2
2
  <component
3
- :is="to?'router-link':is" :to="to" :type="type" :role="role" :disabled="disabled" :class="{
3
+ :is="to?'router-link':is"
4
+ :to="to"
5
+ :type="type"
6
+ :role="role"
7
+ :disabled="disabled"
8
+ :class="{
4
9
  [props.color]: true,
5
10
  'btn-icon': icon && !slots['default'] && !value,
6
11
  btn: !icon || slots['default'] || value,
@@ -9,14 +14,26 @@
9
14
  'btn-txt': flat,
10
15
  }"
11
16
  >
12
- <div class="loading" v-if="loading" />
13
- <div v-else class="btn-flex">
14
- <MaterialIcon v-if="icon" :icon="icon" />
17
+ <div
18
+ class="loading"
19
+ v-if="loading"
20
+ />
21
+ <div
22
+ v-else
23
+ class="btn-flex"
24
+ >
25
+ <MaterialIcon
26
+ v-if="icon"
27
+ :icon="icon"
28
+ />
15
29
  <slot />
16
30
  <template v-if="!slots['default'] && value">
17
31
  {{ value }}
18
32
  </template>
19
- <MaterialIcon v-if="props['icon.end']" :icon="props['icon.end']" />
33
+ <MaterialIcon
34
+ v-if="props['icon.end']"
35
+ :icon="props['icon.end']"
36
+ />
20
37
  </div>
21
38
  </component>
22
39
  </template>
@@ -25,8 +42,8 @@
25
42
  import { useSlots } from 'vue';
26
43
 
27
44
  const slots = useSlots();
28
- import { MaterialIcons } from '@/types/materialIcons';
29
- import { MaterialIcon } from '@/components';
45
+ import { MaterialIcons } from '#/types/materialIcons';
46
+ import { MaterialIcon } from '#/components';
30
47
 
31
48
  const props = withDefaults(
32
49
  defineProps<{
@@ -217,5 +234,4 @@ const props = withDefaults(
217
234
 
218
235
  [dir='rtl'] .icon-font {
219
236
  transform: rotateY(180deg);
220
- }
221
- </style>
237
+ }</style>
@@ -68,8 +68,8 @@
68
68
 
69
69
  <script lang="ts" setup>
70
70
  import { onMounted, watch } from 'vue';
71
- import { useBagel } from '@/index';
72
- import { Btn, MaterialIcon, RTXEditor } from '@/components';
71
+ 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 '#/types/BagelField';
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 '#/components/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 { useBagel } from '@/index';
13
- import { TableSchema } from '@/components';
12
+ 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 '#/utils';
49
49
 
50
50
  const keysToIgnore = ['id', 'person_id', 'person', 'created_at', 'updated_at'];
51
51
 
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <div class="dropdown" @click="toggleDropdown" :class="{ opendrop: isOpen }">
2
+ <div
3
+ class="dropdown"
4
+ @click="toggleDropdown"
5
+ :class="{ opendrop: isOpen }"
6
+ >
3
7
  <div class="dropdown-title">
4
8
  {{ selectedOption || placeholder }}
5
9
  <MaterialIcon icon="keyboard_arrow_down" />
@@ -18,7 +22,7 @@
18
22
 
19
23
  <script setup lang="ts">
20
24
  import { ref } from 'vue';
21
- import { MaterialIcon } from '@/components';
25
+ import { MaterialIcon } from '#/components';
22
26
 
23
27
  const props = defineProps({
24
28
  modelValue: String,
@@ -118,5 +122,4 @@ function selectOption(option: string, index: number) {
118
122
 
119
123
  .dropdown.opendrop .dropdown-body {
120
124
  max-height: 150px;
121
- }
122
- </style>
125
+ }</style>
@@ -50,7 +50,7 @@
50
50
 
51
51
  <script setup lang="ts">
52
52
  import { ref, onMounted, onUnmounted } from 'vue';
53
- import { useBagel } from '@/index';
53
+ import { useBagel } from '#';
54
54
 
55
55
  const bagel = useBagel();
56
56
 
@@ -123,8 +123,8 @@
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 } from '#/types';
127
+ import { Btn, MaterialIcon } from '#/components';
128
128
 
129
129
  const slots = useSlots();
130
130
  const loading = ref(true);
@@ -29,8 +29,8 @@
29
29
  import { reactive } from 'vue';
30
30
  import { type FormKitSchemaDefinition } from '@formkit/core';
31
31
 
32
- import { Btn } from '@/components';
33
- import { useModal } from '@/utils';
32
+ import { Btn } from '#/components';
33
+ import { useModal } from '#/utils';
34
34
 
35
35
  const { showModal } = useModal();
36
36
  const emits = defineEmits(['update:modelValue', 'submit']);
@@ -29,8 +29,8 @@
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 } from '#/components';
33
+ import { debounce } from '#/utils';
34
34
 
35
35
  defineProps<{
36
36
  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 '#/types/materialIcons';
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 { Btn } from '#/components';
36
+ import { BtnOptions } from '#/types/BtnOptions';
37
37
  import '../styles/modal.css';
38
38
 
39
39
  defineProps<{
@@ -35,11 +35,11 @@
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 } from '#/components';
39
39
  import '../styles/modal.css';
40
- import { BtnOptions } from '@/types/BtnOptions';
40
+ import { BtnOptions } from '#/types/BtnOptions';
41
41
 
42
- // import { BagelField } from '@/types';
42
+ // import { BagelField } from '#/types';
43
43
 
44
44
  const props = defineProps<{
45
45
  side?: boolean;
@@ -42,7 +42,7 @@
42
42
 
43
43
  <script lang="ts" setup>
44
44
  // import LangText from "../translation/LangText.vue"
45
- import type { MaterialIcons } from '@/types/materialIcons';
45
+ import type { MaterialIcons } from '#/types/materialIcons';
46
46
 
47
47
  const isOpen = $ref(true);
48
48
 
@@ -76,12 +76,12 @@
76
76
 
77
77
  <script lang="ts" setup>
78
78
  import type { FormKitSchemaDefinition } from '@formkit/core';
79
- import { useBagel } from '@/index';
80
- import type { Person } from '@/types';
79
+ import { useBagel } from '#';
80
+ import type { Person } from '#/types';
81
81
  import {
82
82
  initials, useModal,
83
- } from '@/utils';
84
- import { Btn, MaterialIcon } from '@/components';
83
+ } from '#/utils';
84
+ import { Btn, MaterialIcon } from '#/components';
85
85
 
86
86
  // const toast = useToast(); // TODO: use toast
87
87
  const bagel = useBagel();
@@ -77,12 +77,12 @@
77
77
 
78
78
  <script lang="ts" setup>
79
79
  import type { FormKitSchemaDefinition } from '@formkit/core';
80
- import { useBagel } from '@/index';
81
- import type { Person } from '@/types';
80
+ import { useBagel } from '#';
81
+ import type { Person } from '#/types';
82
82
  import {
83
83
  useModal, initials,
84
- } from '@/utils';
85
- import { Btn, MaterialIcon } from '@/components';
84
+ } from '#/utils';
85
+ import { Btn, MaterialIcon } from '#/components';
86
86
 
87
87
  // const toast = useToast(); // TODO: use toast
88
88
  const bagel = useBagel();
@@ -65,8 +65,8 @@
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 } from '#/components';
69
+ import { parseLocale } from '#/utils';
70
70
 
71
71
  const slots = useSlots();
72
72
  const loading = $ref(true);
@@ -22,11 +22,11 @@
22
22
  <script lang="ts" setup>
23
23
  import { ref, computed } from 'vue';
24
24
  import { useRouter } from 'vue-router';
25
- import type { BagelField } from '@/types';
26
- import { Btn, MaterialIcon } from '@/components';
25
+ import type { BagelField } from '#/types';
26
+ import { Btn, MaterialIcon } from '#/components';
27
27
 
28
28
  const router = useRouter();
29
- // import Modal from '@/components/Modal.vue';
29
+ // import Modal from '#/components/Modal.vue';
30
30
 
31
31
  const openRef = ref(false);
32
32
 
@@ -8,7 +8,7 @@
8
8
  </template>
9
9
 
10
10
  <script setup lang="ts">
11
- import { MaterialIcons } from '@/types/materialIcons';
11
+ import { MaterialIcons } from '#/types/materialIcons';
12
12
 
13
13
  defineProps<{
14
14
  icon: MaterialIcons
@@ -48,7 +48,7 @@
48
48
  import { onMounted, ref } from 'vue';
49
49
 
50
50
  import LangText from '../translation/LangText.vue';
51
- import { formatString } from '@/utils/strings';
51
+ import { formatString } from '#/utils/strings';
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 '#/types';
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 '#/components';
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 '#/types';
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 '#/types';
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 '#/types/BagelField';
26
26
 
27
27
  const props = withDefaults(
28
28
  defineProps<{
@@ -60,7 +60,7 @@
60
60
 
61
61
  <script lang="ts" setup>
62
62
  import { onMounted, ref } from 'vue';
63
- import { formatString } from '@/utils/strings';
63
+ import { formatString } from '#/utils/strings';
64
64
 
65
65
  const props = withDefaults(
66
66
  defineProps<{
@@ -27,8 +27,8 @@
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 { BagelField } from '#/types/BagelField';
31
+ import { MaterialIcon } from '#/components';
32
32
 
33
33
  const emits = defineEmits(['update:modelValue']);
34
34
  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 '#/types/BagelField';
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 '#/types/BagelField';
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/LangText.vue';
52
+ import { type SelectBagelField } from '#/types/BagelField';
53
+ import LangText from '#/components/LangText.vue';
54
54
 
55
55
  const selectEl = ref<HTMLElement>();
56
56
  const dropdown = ref<HTMLElement>();
@@ -78,10 +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';
81
+ import { Btn } from '#/components';
82
82
  // import { bagelApp as api } from '../../../index';
83
83
  import MaterialIcon from '../MaterialIcon.vue';
84
- import { formatString } from '@/utils/strings';
84
+ import { formatString } from '#/utils/strings';
85
85
  // import TransitionGroupPop from '../../transitions/TransitionGroupPop.vue';
86
86
  // import { formatString } from '../../../composables';
87
87
  // import { ButtonIcon } from 'src/components/buttons'
@@ -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 '#/components/LangText.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 '#/utils';
26
26
 
27
27
  const emit = defineEmits(['update:modelValue', 'debounce']);
28
28
  const props = withDefaults(
@@ -86,9 +86,9 @@
86
86
 
87
87
  <script setup lang="ts">
88
88
  import { watch } from 'vue';
89
- // import type { BagelField } from '@/types/BagelField';
90
- import { useBagel } from '@/index';
91
- import { Btn } from '@/components';
89
+ // import type { BagelField } from '#/types/BagelField';
90
+ import { useBagel } from '#';
91
+ import { Btn } from '#/components';
92
92
  import Checkbox from '../form/inputs/Checkbox.vue';
93
93
 
94
94
  const bagel = useBagel();
@@ -111,10 +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 '#/types/BagelField';
115
115
 
116
- import { useBagel } from '@/index';
117
- import { Btn } from '@/components';
116
+ import { useBagel } from '#';
117
+ import { Btn } from '#/components';
118
118
  import Checkbox from '../form/inputs/Checkbox.vue';
119
119
 
120
120
  const bagel = useBagel();
@@ -76,9 +76,9 @@
76
76
 
77
77
  <script setup lang="ts">
78
78
  import { watch } from 'vue';
79
- // import type { BagelField } from '@/types/BagelField';
80
- import { useBagel } from '@/index';
81
- import { Btn } from '@/components';
79
+ // import type { BagelField } from '#/types/BagelField';
80
+ import { useBagel } from '#';
81
+ import { Btn } from '#/components';
82
82
  import Checkbox from '../form/inputs/Checkbox.vue';
83
83
 
84
84
  const bagel = useBagel();
@@ -92,8 +92,8 @@ interface UploadFile {
92
92
  }
93
93
 
94
94
  import { onMounted, onUnmounted } from 'vue';
95
- import { useBagel } from '@/index';
96
- import { MaterialIcon, Btn } from '@/components';
95
+ import { useBagel } from '#';
96
+ import { MaterialIcon, Btn } from '#/components';
97
97
 
98
98
  const bagel = useBagel();
99
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 '#/components';
21
21
 
22
22
  const props = defineProps<{
23
23
  context: Record<string, any>;
@@ -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
- import { useBagel } from '@/index';
40
+ import { useBagel } from '#';
41
41
  import {
42
42
  BodyComponent,
43
43
  HeaderComponent,
@@ -45,7 +45,7 @@ import {
45
45
  ServerTemplateData,
46
46
  FooterComponent,
47
47
  } from '../interfaces';
48
- import { PageTitle, FormSchema } from '@/components';
48
+ import { PageTitle, FormSchema } from '#/components';
49
49
 
50
50
  const props = defineProps<{
51
51
  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 '#/components';
17
17
 
18
18
  const props = defineProps({
19
19
  context: Object,
@@ -3,7 +3,7 @@ import {
3
3
  } from 'vue';
4
4
  import type { Plugin } from 'vue';
5
5
  import { Modal, ModalForm } from '../components';
6
- import type { BtnOptions } from '@/types/BtnOptions';
6
+ import type { BtnOptions } from '#/types/BtnOptions';
7
7
 
8
8
  interface ModalOptions {
9
9
  title?: string;
@@ -1,6 +1,6 @@
1
1
  import { inject } from 'vue';
2
2
 
3
- import type { BagelField } from '@/types/BagelField';
3
+ import type { BagelField } from '#/types/BagelField';
4
4
 
5
5
  let timeout: any;
6
6
  export const debounce = (fn: () => void, delay = 500) => {
@@ -1,4 +1,4 @@
1
- import { BagelField } from '@/types';
1
+ import { BagelField } from '#/types';
2
2
 
3
3
  function returnTypes(bagelField?: BagelField) {
4
4
  if (bagelField?.is_array) return [];
package/tsconfig.json CHANGED
@@ -11,12 +11,36 @@
11
11
  "@vue-macros/reactivity-transform/macros-global"
12
12
  ],
13
13
  "paths": {
14
- "@": [
14
+ "#": [
15
15
  "./src/index.ts"
16
16
  ],
17
- "@/*": [
17
+ "#/*": [
18
18
  "./src/*"
19
19
  ],
20
+ "#/components": [
21
+ "./src/components/index.ts"
22
+ ],
23
+ "#/components/*": [
24
+ "./src/components/*"
25
+ ],
26
+ "#/types": [
27
+ "./src/types/index.ts"
28
+ ],
29
+ "#/types/*": [
30
+ "./src/types/*"
31
+ ],
32
+ "#/utils": [
33
+ "./src/utils/index.ts"
34
+ ],
35
+ "#/utils/*": [
36
+ "./src/utils/*"
37
+ ],
38
+ "#/plugins": [
39
+ "./src/plugins/index.ts"
40
+ ],
41
+ "#/plugins/*": [
42
+ "./src/plugins/*"
43
+ ],
20
44
  },
21
45
  },
22
46
  "include": [
package/vite.config.ts CHANGED
@@ -13,7 +13,7 @@ export default defineConfig(() => ({
13
13
  })],
14
14
  resolve: {
15
15
  alias: {
16
- '@': fileURLToPath(new URL('./src/', import.meta.url)),
16
+ '#': fileURLToPath(new URL('./src/', import.meta.url)),
17
17
  },
18
18
  },
19
19
  build: {