@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.
- 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/components/formkit/index.d.ts +2 -2
- package/dist/index.cjs +206 -389
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +206 -389
- package/dist/plugins/modal.d.ts +3 -1
- package/dist/style.css +223 -223
- package/dist/types/index.d.ts +2 -1
- 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/formkit/index.ts +3 -3
- 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/index.ts +2 -1
- 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/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
5
|
+
export * from './BagelField';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BagelField } from '
|
|
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[];
|
package/dist/utils/objects.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BagelField } from '
|
|
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.
|
|
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.
|
|
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
|
},
|
package/src/components/Btn.vue
CHANGED
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
import { useSlots } from 'vue';
|
|
43
43
|
|
|
44
44
|
const slots = useSlots();
|
|
45
|
-
import type { MaterialIcons } from '
|
|
46
|
-
import { MaterialIcon } from '
|
|
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 '
|
|
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 '
|
|
62
|
+
import CheckInput from './form/inputs/CheckInput.vue';
|
|
63
63
|
|
|
64
64
|
const props = withDefaults(
|
|
65
65
|
defineProps<{
|
|
@@ -123,8 +123,7 @@
|
|
|
123
123
|
|
|
124
124
|
<script setup lang="ts">
|
|
125
125
|
import { computed, ref, useSlots } from 'vue';
|
|
126
|
-
import { BagelField } from '
|
|
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);
|
package/src/components/Modal.vue
CHANGED
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
|
|
33
33
|
<script lang="ts" setup>
|
|
34
34
|
import { onMounted } from 'vue';
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
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 '
|
|
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 '
|
|
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 {
|
|
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 '
|
|
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 {
|
|
27
|
-
import { BagelField } from '
|
|
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
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
<script lang="ts" setup>
|
|
48
48
|
import { onMounted, ref } from 'vue';
|
|
49
49
|
|
|
50
|
-
import
|
|
51
|
-
import
|
|
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 '
|
|
24
|
+
import { BagelField } from '@bagelink/vue';
|
|
25
25
|
|
|
26
26
|
const emits = defineEmits(['update:modelValue']);
|
|
27
27
|
const props = withDefaults(
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<script setup lang="ts">
|
|
29
29
|
import { ref, watch, computed } from 'vue';
|
|
30
|
-
import { BagelField } from '
|
|
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);
|
|
@@ -49,8 +49,8 @@ import {
|
|
|
49
49
|
onMounted, onUnmounted, ref, computed,
|
|
50
50
|
watch,
|
|
51
51
|
} from 'vue';
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
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 '
|
|
82
|
-
|
|
81
|
+
import { Btn, formatString } from '@bagelink/vue';
|
|
82
|
+
|
|
83
83
|
import MaterialIcon from '../MaterialIcon.vue';
|
|
84
|
-
|
|
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;
|
|
@@ -86,11 +86,10 @@
|
|
|
86
86
|
|
|
87
87
|
<script setup lang="ts">
|
|
88
88
|
import { watch } from 'vue';
|
|
89
|
-
// import type { BagelField } from '
|
|
89
|
+
// import type { BagelField } from '@bagelink/vue';
|
|
90
90
|
|
|
91
|
-
import { Btn } from '
|
|
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 '
|
|
114
|
+
// import type { BagelField } from '@bagelink/vue';
|
|
115
115
|
|
|
116
|
-
import { Btn } from '
|
|
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 '
|
|
79
|
+
// import type { BagelField } from '@bagelink/vue';
|
|
80
80
|
|
|
81
|
-
import { Btn } from '
|
|
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 '
|
|
97
|
-
import { useBagel } from '../../plugins/bagel';
|
|
96
|
+
import { MaterialIcon, Btn, useBagel } from '@bagelink/vue';
|
|
98
97
|
|
|
99
98
|
const bagel = useBagel();
|
|
100
99
|
|
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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 '
|
|
16
|
+
import { TextInput } from '@bagelink/vue';
|
|
17
17
|
|
|
18
18
|
const props = defineProps({
|
|
19
19
|
context: Object,
|
package/src/index.ts
CHANGED