@bagelink/vue 0.0.93 → 0.0.95

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 (92) hide show
  1. package/dist/components/Btn.vue.d.ts +31 -31
  2. package/dist/components/DataPreview.vue.d.ts +4 -4
  3. package/dist/components/DropDown.vue.d.ts +1 -1
  4. package/dist/components/FormSchema.vue.d.ts +4 -4
  5. package/dist/components/ListItem.vue.d.ts +2 -2
  6. package/dist/components/ListView.vue.d.ts +4 -4
  7. package/dist/components/MaterialIcon.vue.d.ts +2 -2
  8. package/dist/components/Modal.vue.d.ts +9 -9
  9. package/dist/components/ModalForm.vue.d.ts +16 -16
  10. package/dist/components/NavBar.vue.d.ts +10 -10
  11. package/dist/components/PersonPreviewFormkit.vue.d.ts +2 -2
  12. package/dist/components/RTXEditor.vue.d.ts +4 -4
  13. package/dist/components/TabbedLayout.vue.d.ts +5 -5
  14. package/dist/components/TableSchema.vue.d.ts +3 -3
  15. package/dist/components/charts/BarChart.vue.d.ts +6 -6
  16. package/dist/components/form/MaterialIcon.vue.d.ts +3 -3
  17. package/dist/components/form/inputs/CheckInput.vue.d.ts +5 -5
  18. package/dist/components/form/inputs/Checkbox.vue.d.ts +1 -1
  19. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +7 -7
  20. package/dist/components/form/inputs/DateInput.vue.d.ts +5 -5
  21. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +12 -12
  22. package/dist/components/form/inputs/DurationInput.vue.d.ts +12 -12
  23. package/dist/components/form/inputs/EmailInput.vue.d.ts +12 -12
  24. package/dist/components/form/inputs/FloatInput.vue.d.ts +12 -12
  25. package/dist/components/form/inputs/IntInput.vue.d.ts +12 -12
  26. package/dist/components/form/inputs/JSONInput.vue.d.ts +12 -12
  27. package/dist/components/form/inputs/LinkField.vue.d.ts +13 -13
  28. package/dist/components/form/inputs/Password.vue.d.ts +11 -11
  29. package/dist/components/form/inputs/PasswordInput.vue.d.ts +12 -12
  30. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
  31. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +12 -12
  32. package/dist/components/form/inputs/SelectField.vue.d.ts +7 -7
  33. package/dist/components/form/inputs/TableField.vue.d.ts +5 -5
  34. package/dist/components/form/inputs/TextInput.vue.d.ts +22 -22
  35. package/dist/components/index.d.ts +1 -0
  36. package/dist/index.cjs +453 -256
  37. package/dist/index.mjs +453 -256
  38. package/dist/style.css +246 -244
  39. package/dist/types/BtnOptions.d.ts +1 -1
  40. package/dist/types/materialIcons.d.ts +1 -0
  41. package/dist/utils/index.d.ts +2 -1
  42. package/package.json +2 -2
  43. package/src/components/Btn.vue +4 -3
  44. package/src/components/Comments.vue +2 -2
  45. package/src/components/ContactArray.vue +2 -2
  46. package/src/components/ContactSubmissions.vue +2 -2
  47. package/src/components/DataPreview.vue +1 -1
  48. package/src/components/DropDown.vue +3 -2
  49. package/src/components/FileUploader.vue +1 -1
  50. package/src/components/FormKitTable.vue +2 -2
  51. package/src/components/FormSchema.vue +2 -2
  52. package/src/components/ListView.vue +2 -2
  53. package/src/components/MaterialIcon.vue +1 -1
  54. package/src/components/Modal.vue +2 -2
  55. package/src/components/ModalForm.vue +3 -3
  56. package/src/components/NavBar.vue +2 -1
  57. package/src/components/PersonPreview.vue +4 -4
  58. package/src/components/PersonPreviewFormkit.vue +4 -4
  59. package/src/components/RouterWrapper.vue +0 -2
  60. package/src/components/TableSchema.vue +2 -2
  61. package/src/components/form/ItemRef.vue +4 -3
  62. package/src/components/form/MaterialIcon.vue +1 -1
  63. package/src/components/form/PlainInputField.vue +2 -2
  64. package/src/components/form/inputs/CheckInput.vue +1 -1
  65. package/src/components/form/inputs/Checkbox.vue +1 -1
  66. package/src/components/form/inputs/ColorPicker.vue +1 -1
  67. package/src/components/form/inputs/CurrencyInput.vue +1 -1
  68. package/src/components/form/inputs/DateInput.vue +1 -1
  69. package/src/components/form/inputs/DynamicLinkField.vue +2 -1
  70. package/src/components/form/inputs/LinkField.vue +1 -1
  71. package/src/components/form/inputs/Password.vue +3 -3
  72. package/src/components/form/inputs/PlainText.vue +1 -1
  73. package/src/components/form/inputs/ReadOnlyInput.vue +1 -1
  74. package/src/components/form/inputs/SelectField.vue +2 -2
  75. package/src/components/form/inputs/TableField.vue +3 -3
  76. package/src/components/form/inputs/TextArea.vue +1 -1
  77. package/src/components/form/inputs/TextInput.vue +1 -1
  78. package/src/components/formkit/AddressArray.vue +4 -3
  79. package/src/components/formkit/BankDetailsArray.vue +3 -3
  80. package/src/components/formkit/ContactArrayFormKit.vue +4 -3
  81. package/src/components/formkit/FileUploader.vue +3 -2
  82. package/src/components/formkit/MiscFields.vue +1 -1
  83. package/src/components/index.ts +1 -0
  84. package/src/components/whatsapp/form/MsgTemplate.vue +3 -2
  85. package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
  86. package/src/plugins/modal.ts +1 -1
  87. package/src/types/BtnOptions.ts +1 -1
  88. package/src/utils/index.ts +3 -1
  89. package/src/utils/objects.ts +1 -1
  90. package/tsconfig.json +40 -31
  91. package/vite.config.ts +2 -2
  92. /package/src/types/{materialIcons.d.ts → materialIcons.ts} +0 -0
@@ -78,11 +78,11 @@
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';
85
- // import TransitionGroupPop from '../../transitions/TransitionGroupPop.vue';
84
+ import { formatString } from '../../../utils';
85
+ // import TransitionGroupPop from '../../../transitions/TransitionGroupPop.vue';
86
86
  // import { formatString } from '../../../composables';
87
87
  // import { ButtonIcon } from 'src/components/buttons'
88
88
  let bagel: 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 '../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,10 +86,11 @@
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 '#';
91
- import { Btn } from '#/components';
89
+ // import type { BagelField } from '../../../types/BagelField';
90
+
91
+ import { Btn } from '../../components';
92
92
  import Checkbox from '../form/inputs/Checkbox.vue';
93
+ import { useBagel } from '../../plugins/bagel';
93
94
 
94
95
  const bagel = useBagel();
95
96
  const props = defineProps<{
@@ -111,11 +111,11 @@
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 '#';
117
- import { Btn } from '#/components';
116
+ import { Btn } from '../../components';
118
117
  import Checkbox from '../form/inputs/Checkbox.vue';
118
+ import { useBagel } from '../../plugins/bagel';
119
119
 
120
120
  const bagel = useBagel();
121
121
 
@@ -76,10 +76,11 @@
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 '#';
81
- import { Btn } from '#/components';
79
+ // import type { BagelField } from '../../../types/BagelField';
80
+
81
+ import { Btn } from '../../components';
82
82
  import Checkbox from '../form/inputs/Checkbox.vue';
83
+ import { useBagel } from '../../plugins/bagel';
83
84
 
84
85
  const bagel = useBagel();
85
86
 
@@ -92,8 +92,9 @@ interface UploadFile {
92
92
  }
93
93
 
94
94
  import { onMounted, onUnmounted } from 'vue';
95
- import { useBagel } from '#';
96
- import { MaterialIcon, Btn } from '#/components';
95
+
96
+ import { MaterialIcon, Btn } from '../../components';
97
+ import { useBagel } from '../../plugins/bagel';
97
98
 
98
99
  const bagel = useBagel();
99
100
 
@@ -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>;
@@ -1,3 +1,4 @@
1
+ export * as LangText from './LangText.vue';
1
2
  export * as RTXEditor from './RTXEditor.vue';
2
3
  export * as MaterialIcon from './MaterialIcon.vue';
3
4
  export * as NavBar from './NavBar.vue';
@@ -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 '#';
40
+
41
41
  import {
42
42
  BodyComponent,
43
43
  HeaderComponent,
@@ -45,7 +45,8 @@ import {
45
45
  ServerTemplateData,
46
46
  FooterComponent,
47
47
  } from '../interfaces';
48
- import { PageTitle, FormSchema } from '#/components';
48
+ import { PageTitle, FormSchema } from '../../../components';
49
+ import { useBagel } from '../../../plugins/bagel';
49
50
 
50
51
  const props = defineProps<{
51
52
  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,4 +1,4 @@
1
- import { MaterialIcons } from './materialIcons';
1
+ import type { MaterialIcons } from './materialIcons';
2
2
 
3
3
  export interface BtnOptions {
4
4
  onClick?: () => void;
@@ -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) => {
@@ -56,3 +56,5 @@ export const parseLocale = (str: string, $t = (_str: string) => _str) => {
56
56
  if (!w) return str;
57
57
  return $t(w);
58
58
  };
59
+
60
+ export { formatString } from './strings';
@@ -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
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "baseUrl": "./",
3
+ "target": "ESNext",
4
+ "useDefineForClassFields": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "Node",
7
+ "strict": true,
8
+ "jsx": "preserve",
9
+ "resolveJsonModule": true,
10
+ "isolatedModules": true,
11
+ "esModuleInterop": true,
12
+ "skipLibCheck": true,
4
13
  "lib": [
5
14
  "ESNext",
6
15
  "DOM"
@@ -9,36 +18,36 @@
9
18
  "@vue-macros/reactivity-transform/macros-global"
10
19
  ],
11
20
  "paths": {
12
- "#": [
13
- "./src/index.ts"
14
- ],
15
- "#/*": [
16
- "./src/*"
17
- ],
18
- "#/components": [
19
- "./src/components/index.ts"
20
- ],
21
- "#/components/*": [
22
- "./src/components/*"
23
- ],
24
- "#/types": [
25
- "./src/types/index.ts"
26
- ],
27
- "#/types/*": [
28
- "./src/types/*"
29
- ],
30
- "#/utils": [
31
- "./src/utils/index.ts"
32
- ],
33
- "#/utils/*": [
34
- "./src/utils/*"
35
- ],
36
- "#/plugins": [
37
- "./src/plugins/index.ts"
38
- ],
39
- "#/plugins/*": [
40
- "./src/plugins/*"
41
- ],
21
+ // "#": [
22
+ // "./src/index.ts"
23
+ // ],
24
+ // "#/*": [
25
+ // "./src/*"
26
+ // ],
27
+ // "#/components": [
28
+ // "./src/components/index.ts"
29
+ // ],
30
+ // "#/components/*": [
31
+ // "./src/components/*"
32
+ // ],
33
+ // "#/types": [
34
+ // "./src/types/index.ts"
35
+ // ],
36
+ // "#/types/*": [
37
+ // "./src/types/*"
38
+ // ],
39
+ // "#/utils": [
40
+ // "./src/utils/index.ts"
41
+ // ],
42
+ // "#/utils/*": [
43
+ // "./src/utils/*"
44
+ // ],
45
+ // "#/plugins": [
46
+ // "./src/plugins/index.ts"
47
+ // ],
48
+ // "#/plugins/*": [
49
+ // "./src/plugins/*"
50
+ // ],
42
51
  },
43
52
  },
44
53
  "include": [
package/vite.config.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { resolve } from 'node:path';
2
- import { fileURLToPath, URL } from 'node:url';
2
+ // import { fileURLToPath, URL } from 'node:url';
3
3
  import { defineConfig } from 'vite';
4
4
  import vue from '@vitejs/plugin-vue';
5
5
  import dts from 'vite-plugin-dts';
@@ -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: {