@bagelink/vue 0.0.95 → 0.0.100

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/index.cjs +200 -387
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.mjs +200 -387
  28. package/dist/plugins/modal.d.ts +3 -1
  29. package/dist/style.css +223 -223
  30. package/dist/types/Person.d.ts +3 -3
  31. package/dist/types/index.d.ts +3 -2
  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/whatsapp/form/MsgTemplate.vue +1 -3
  74. package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
  75. package/src/index.ts +1 -0
  76. package/src/plugins/modal.ts +3 -3
  77. package/src/types/Person.ts +3 -3
  78. package/src/types/index.ts +3 -2
  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
@@ -2,8 +2,8 @@ import {
2
2
  h, InjectionKey, ref, inject, defineComponent,
3
3
  } from 'vue';
4
4
  import type { Plugin } from 'vue';
5
- import { Modal, ModalForm } from '../components';
6
- import type { BtnOptions } from '../types/BtnOptions';
5
+ import type { BtnOptions } from '@bagelink/vue';
6
+ import { Modal, ModalForm } from '@bagelink/vue';
7
7
 
8
8
  interface ModalOptions {
9
9
  title?: string;
@@ -34,7 +34,7 @@ interface ModalApi {
34
34
  // modalOptions: Ref<ModalOptions | ModalFormOptions>;
35
35
  }
36
36
 
37
- const ModalSymbol: InjectionKey<ModalApi> = Symbol('modal');
37
+ export const ModalSymbol: InjectionKey<ModalApi> = Symbol('modal');
38
38
 
39
39
  export const useModal = (): ModalApi => {
40
40
  const modalApi = inject(ModalSymbol);
@@ -1,4 +1,4 @@
1
- export interface BankDetails {
1
+ export interface BankDetailsInterface {
2
2
  bank_name: string;
3
3
  branch: string;
4
4
  account_number: string;
@@ -15,7 +15,7 @@ export interface NewPerson {
15
15
  email?: string;
16
16
  phone?: string;
17
17
  gender?: string;
18
- bank_details?: BankDetails;
18
+ bank_details?: BankDetailsInterface;
19
19
  }
20
20
 
21
21
  interface Email {
@@ -47,5 +47,5 @@ export interface Person {
47
47
  date_of_birth: string;
48
48
  gender: string;
49
49
  roles: Role[];
50
- bank_details: BankDetails[];
50
+ bank_details: BankDetailsInterface[];
51
51
  }
@@ -1,4 +1,5 @@
1
- export type { BankDetails, NewPerson, Person } from './Person';
1
+ export type { MaterialIcons } from './materialIcons';
2
+ export type { BankDetailsInterface as 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,6 +1,6 @@
1
1
  import { inject } from 'vue';
2
2
 
3
- import type { BagelField } from '../types/BagelField';
3
+ import type { BagelField } from '@bagelink/vue';
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 '@bagelink/vue';
2
2
 
3
3
  function returnTypes(bagelField?: BagelField) {
4
4
  if (bagelField?.is_array) return [];
package/tsconfig.json CHANGED
@@ -18,6 +18,12 @@
18
18
  "@vue-macros/reactivity-transform/macros-global"
19
19
  ],
20
20
  "paths": {
21
+ "@bagelink/vue": [
22
+ "./src/index.ts"
23
+ ],
24
+ "@bagelink/vue/*": [
25
+ "./vue/src/*"
26
+ ],
21
27
  // "#": [
22
28
  // "./src/index.ts"
23
29
  // ],
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
+ '@bagelink/vue': fileURLToPath(new URL('./src/', import.meta.url)),
17
17
  },
18
18
  },
19
19
  build: {