@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.
- package/dist/components/Btn.vue.d.ts +4 -4
- package/dist/components/FormSchema.vue.d.ts +1 -1
- package/dist/components/ListView.vue.d.ts +2 -2
- package/dist/components/MaterialIcon.vue.d.ts +1 -1
- package/dist/components/Modal.vue.d.ts +0 -1
- package/dist/components/ModalForm.vue.d.ts +1 -2
- package/dist/components/NavBar.vue.d.ts +1 -1
- package/dist/components/RTXEditor.vue.d.ts +1 -1
- package/dist/components/form/MaterialIcon.vue.d.ts +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/DurationInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/EmailInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/FloatInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/IntInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/LinkField.vue.d.ts +2 -2
- package/dist/components/form/inputs/Password.vue.d.ts +1 -1
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +1 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts +2 -2
- package/dist/index.cjs +200 -387
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +200 -387
- package/dist/plugins/modal.d.ts +3 -1
- package/dist/style.css +223 -223
- package/dist/types/Person.d.ts +3 -3
- package/dist/types/index.d.ts +3 -2
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/objects.d.ts +1 -1
- package/package.json +45 -18
- package/src/components/Btn.vue +2 -2
- package/src/components/Comments.vue +1 -1
- package/src/components/ContactArray.vue +2 -2
- package/src/components/ContactSubmissions.vue +1 -1
- package/src/components/DataPreview.vue +1 -1
- package/src/components/DropDown.vue +1 -1
- package/src/components/FormKitTable.vue +1 -2
- package/src/components/FormSchema.vue +1 -1
- package/src/components/ListView.vue +1 -2
- package/src/components/MaterialIcon.vue +1 -1
- package/src/components/Modal.vue +2 -2
- package/src/components/ModalForm.vue +2 -3
- package/src/components/NavBar.vue +2 -3
- package/src/components/PersonPreview.vue +2 -3
- package/src/components/PersonPreviewFormkit.vue +2 -3
- package/src/components/TableSchema.vue +1 -2
- package/src/components/form/ItemRef.vue +5 -7
- package/src/components/form/MaterialIcon.vue +1 -1
- package/src/components/form/PlainInputField.vue +2 -2
- package/src/components/form/inputs/CheckInput.vue +1 -1
- package/src/components/form/inputs/Checkbox.vue +1 -1
- package/src/components/form/inputs/ColorPicker.vue +1 -1
- package/src/components/form/inputs/CurrencyInput.vue +1 -1
- package/src/components/form/inputs/DateInput.vue +1 -1
- package/src/components/form/inputs/DynamicLinkField.vue +1 -1
- package/src/components/form/inputs/LinkField.vue +1 -1
- package/src/components/form/inputs/Password.vue +1 -2
- package/src/components/form/inputs/PlainText.vue +1 -1
- package/src/components/form/inputs/ReadOnlyInput.vue +1 -1
- package/src/components/form/inputs/SelectField.vue +2 -2
- package/src/components/form/inputs/TableField.vue +3 -5
- package/src/components/form/inputs/TextArea.vue +1 -1
- package/src/components/form/inputs/TextInput.vue +1 -1
- package/src/components/formkit/AddressArray.vue +2 -3
- package/src/components/formkit/BankDetailsArray.vue +2 -3
- package/src/components/formkit/ContactArrayFormKit.vue +2 -3
- package/src/components/formkit/FileUploader.vue +1 -2
- package/src/components/formkit/MiscFields.vue +1 -1
- package/src/components/whatsapp/form/MsgTemplate.vue +1 -3
- package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
- package/src/index.ts +1 -0
- package/src/plugins/modal.ts +3 -3
- package/src/types/Person.ts +3 -3
- package/src/types/index.ts +3 -2
- package/src/utils/index.ts +1 -1
- package/src/utils/objects.ts +1 -1
- package/tsconfig.json +6 -0
- package/vite.config.ts +2 -2
package/src/plugins/modal.ts
CHANGED
|
@@ -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 {
|
|
6
|
-
import
|
|
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);
|
package/src/types/Person.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
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?:
|
|
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:
|
|
50
|
+
bank_details: BankDetailsInterface[];
|
|
51
51
|
}
|
package/src/types/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type {
|
|
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
|
|
5
|
+
export * from './BagelField';
|
package/src/utils/index.ts
CHANGED
package/src/utils/objects.ts
CHANGED
package/tsconfig.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolve } from 'node:path';
|
|
2
|
-
|
|
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
|
-
|
|
16
|
+
'@bagelink/vue': fileURLToPath(new URL('./src/', import.meta.url)),
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
build: {
|