@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.
- package/dist/components/Btn.vue.d.ts +31 -31
- package/dist/components/DataPreview.vue.d.ts +4 -4
- package/dist/components/DropDown.vue.d.ts +1 -1
- package/dist/components/FormSchema.vue.d.ts +4 -4
- package/dist/components/ListItem.vue.d.ts +2 -2
- package/dist/components/ListView.vue.d.ts +4 -4
- package/dist/components/MaterialIcon.vue.d.ts +2 -2
- package/dist/components/Modal.vue.d.ts +9 -9
- package/dist/components/ModalForm.vue.d.ts +16 -16
- package/dist/components/NavBar.vue.d.ts +10 -10
- package/dist/components/PersonPreviewFormkit.vue.d.ts +2 -2
- package/dist/components/RTXEditor.vue.d.ts +4 -4
- package/dist/components/TabbedLayout.vue.d.ts +5 -5
- package/dist/components/TableSchema.vue.d.ts +3 -3
- package/dist/components/charts/BarChart.vue.d.ts +6 -6
- package/dist/components/form/MaterialIcon.vue.d.ts +3 -3
- package/dist/components/form/inputs/CheckInput.vue.d.ts +5 -5
- package/dist/components/form/inputs/Checkbox.vue.d.ts +1 -1
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +7 -7
- package/dist/components/form/inputs/DateInput.vue.d.ts +5 -5
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +12 -12
- package/dist/components/form/inputs/DurationInput.vue.d.ts +12 -12
- package/dist/components/form/inputs/EmailInput.vue.d.ts +12 -12
- package/dist/components/form/inputs/FloatInput.vue.d.ts +12 -12
- package/dist/components/form/inputs/IntInput.vue.d.ts +12 -12
- package/dist/components/form/inputs/JSONInput.vue.d.ts +12 -12
- package/dist/components/form/inputs/LinkField.vue.d.ts +13 -13
- package/dist/components/form/inputs/Password.vue.d.ts +11 -11
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +12 -12
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +12 -12
- package/dist/components/form/inputs/SelectField.vue.d.ts +7 -7
- package/dist/components/form/inputs/TableField.vue.d.ts +5 -5
- package/dist/components/form/inputs/TextInput.vue.d.ts +22 -22
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +453 -256
- package/dist/index.mjs +453 -256
- package/dist/style.css +246 -244
- package/dist/types/BtnOptions.d.ts +1 -1
- package/dist/types/materialIcons.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +2 -2
- package/src/components/Btn.vue +4 -3
- package/src/components/Comments.vue +2 -2
- package/src/components/ContactArray.vue +2 -2
- package/src/components/ContactSubmissions.vue +2 -2
- package/src/components/DataPreview.vue +1 -1
- package/src/components/DropDown.vue +3 -2
- package/src/components/FileUploader.vue +1 -1
- package/src/components/FormKitTable.vue +2 -2
- package/src/components/FormSchema.vue +2 -2
- package/src/components/ListView.vue +2 -2
- package/src/components/MaterialIcon.vue +1 -1
- package/src/components/Modal.vue +2 -2
- package/src/components/ModalForm.vue +3 -3
- package/src/components/NavBar.vue +2 -1
- package/src/components/PersonPreview.vue +4 -4
- package/src/components/PersonPreviewFormkit.vue +4 -4
- package/src/components/RouterWrapper.vue +0 -2
- package/src/components/TableSchema.vue +2 -2
- package/src/components/form/ItemRef.vue +4 -3
- 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 +2 -1
- package/src/components/form/inputs/LinkField.vue +1 -1
- package/src/components/form/inputs/Password.vue +3 -3
- 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 -3
- package/src/components/form/inputs/TextArea.vue +1 -1
- package/src/components/form/inputs/TextInput.vue +1 -1
- package/src/components/formkit/AddressArray.vue +4 -3
- package/src/components/formkit/BankDetailsArray.vue +3 -3
- package/src/components/formkit/ContactArrayFormKit.vue +4 -3
- package/src/components/formkit/FileUploader.vue +3 -2
- package/src/components/formkit/MiscFields.vue +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/whatsapp/form/MsgTemplate.vue +3 -2
- package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
- package/src/plugins/modal.ts +1 -1
- package/src/types/BtnOptions.ts +1 -1
- package/src/utils/index.ts +3 -1
- package/src/utils/objects.ts +1 -1
- package/tsconfig.json +40 -31
- package/vite.config.ts +2 -2
- /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 '
|
|
81
|
+
import { Btn } from '../../../components';
|
|
82
82
|
// import { bagelApp as api } from '../../../index';
|
|
83
83
|
import MaterialIcon from '../MaterialIcon.vue';
|
|
84
|
-
import { formatString } from '
|
|
85
|
-
// import TransitionGroupPop from '
|
|
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;
|
|
@@ -86,10 +86,11 @@
|
|
|
86
86
|
|
|
87
87
|
<script setup lang="ts">
|
|
88
88
|
import { watch } from 'vue';
|
|
89
|
-
// import type { BagelField } from '
|
|
90
|
-
|
|
91
|
-
import { Btn } from '
|
|
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 '
|
|
114
|
+
// import type { BagelField } from '../../../types/BagelField';
|
|
115
115
|
|
|
116
|
-
import {
|
|
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 '
|
|
80
|
-
|
|
81
|
-
import { Btn } from '
|
|
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
|
-
|
|
96
|
-
import { MaterialIcon, Btn } from '
|
|
95
|
+
|
|
96
|
+
import { MaterialIcon, Btn } from '../../components';
|
|
97
|
+
import { useBagel } from '../../plugins/bagel';
|
|
97
98
|
|
|
98
99
|
const bagel = useBagel();
|
|
99
100
|
|
package/src/components/index.ts
CHANGED
|
@@ -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
|
+
|
|
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 '
|
|
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 '
|
|
16
|
+
import { TextInput } from '../../../components';
|
|
17
17
|
|
|
18
18
|
const props = defineProps({
|
|
19
19
|
context: Object,
|
package/src/plugins/modal.ts
CHANGED
|
@@ -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 '
|
|
6
|
+
import type { BtnOptions } from '../types/BtnOptions';
|
|
7
7
|
|
|
8
8
|
interface ModalOptions {
|
|
9
9
|
title?: string;
|
package/src/types/BtnOptions.ts
CHANGED
package/src/utils/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject } from 'vue';
|
|
2
2
|
|
|
3
|
-
import type { BagelField } from '
|
|
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';
|
package/src/utils/objects.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
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
|
-
|
|
14
|
-
],
|
|
15
|
-
"#/*": [
|
|
16
|
-
|
|
17
|
-
],
|
|
18
|
-
"#/components": [
|
|
19
|
-
|
|
20
|
-
],
|
|
21
|
-
"#/components/*": [
|
|
22
|
-
|
|
23
|
-
],
|
|
24
|
-
"#/types": [
|
|
25
|
-
|
|
26
|
-
],
|
|
27
|
-
"#/types/*": [
|
|
28
|
-
|
|
29
|
-
],
|
|
30
|
-
"#/utils": [
|
|
31
|
-
|
|
32
|
-
],
|
|
33
|
-
"#/utils/*": [
|
|
34
|
-
|
|
35
|
-
],
|
|
36
|
-
"#/plugins": [
|
|
37
|
-
|
|
38
|
-
],
|
|
39
|
-
"#/plugins/*": [
|
|
40
|
-
|
|
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: {
|
|
File without changes
|