@bagelink/vue 0.0.70 → 0.0.72
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/package.json +2 -2
- package/src/components/Btn.vue +25 -9
- 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 +7 -4
- 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 +1 -1
- package/src/components/PersonPreview.vue +4 -4
- package/src/components/PersonPreviewFormkit.vue +4 -4
- package/src/components/TableSchema.vue +2 -2
- package/src/components/form/ItemRef.vue +3 -3
- package/src/components/form/MaterialIcon.vue +1 -1
- package/src/components/form/PlainInputField.vue +1 -1
- 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/LinkField.vue +1 -1
- package/src/components/form/inputs/Password.vue +2 -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 +2 -2
- package/src/components/form/inputs/TextArea.vue +1 -1
- package/src/components/form/inputs/TextInput.vue +1 -1
- package/src/components/formkit/AddressArray.vue +3 -3
- package/src/components/formkit/BankDetailsArray.vue +3 -3
- package/src/components/formkit/ContactArrayFormKit.vue +3 -3
- package/src/components/formkit/FileUploader.vue +2 -2
- package/src/components/formkit/MiscFields.vue +1 -1
- package/src/components/whatsapp/form/MsgTemplate.vue +2 -2
- package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
- package/src/plugins/modal.ts +1 -1
- package/src/utils/index.ts +1 -1
- package/src/utils/objects.ts +1 -1
- package/tsconfig.json +2 -2
- package/vite.config.ts +1 -1
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.72",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Neveh Allon",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"prosemirror-state": "^1.4.3",
|
|
66
66
|
"prosemirror-view": "^1.32.4",
|
|
67
67
|
"@vue-macros/reactivity-transform": "^0.4.0",
|
|
68
|
-
"@bagelink/sdk": "0.0.
|
|
68
|
+
"@bagelink/sdk": "0.0.72"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@bagelink/sdk": "*"
|
package/src/components/Btn.vue
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
|
-
:is="to?'router-link':is"
|
|
3
|
+
:is="to?'router-link':is"
|
|
4
|
+
:to="to"
|
|
5
|
+
:type="type"
|
|
6
|
+
:role="role"
|
|
7
|
+
:disabled="disabled"
|
|
8
|
+
:class="{
|
|
4
9
|
[props.color]: true,
|
|
5
10
|
'btn-icon': icon && !slots['default'] && !value,
|
|
6
11
|
btn: !icon || slots['default'] || value,
|
|
@@ -9,14 +14,26 @@
|
|
|
9
14
|
'btn-txt': flat,
|
|
10
15
|
}"
|
|
11
16
|
>
|
|
12
|
-
<div
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
<div
|
|
18
|
+
class="loading"
|
|
19
|
+
v-if="loading"
|
|
20
|
+
/>
|
|
21
|
+
<div
|
|
22
|
+
v-else
|
|
23
|
+
class="btn-flex"
|
|
24
|
+
>
|
|
25
|
+
<MaterialIcon
|
|
26
|
+
v-if="icon"
|
|
27
|
+
:icon="icon"
|
|
28
|
+
/>
|
|
15
29
|
<slot />
|
|
16
30
|
<template v-if="!slots['default'] && value">
|
|
17
31
|
{{ value }}
|
|
18
32
|
</template>
|
|
19
|
-
<MaterialIcon
|
|
33
|
+
<MaterialIcon
|
|
34
|
+
v-if="props['icon.end']"
|
|
35
|
+
:icon="props['icon.end']"
|
|
36
|
+
/>
|
|
20
37
|
</div>
|
|
21
38
|
</component>
|
|
22
39
|
</template>
|
|
@@ -25,8 +42,8 @@
|
|
|
25
42
|
import { useSlots } from 'vue';
|
|
26
43
|
|
|
27
44
|
const slots = useSlots();
|
|
28
|
-
import { MaterialIcons } from '
|
|
29
|
-
import { MaterialIcon } from '
|
|
45
|
+
import { MaterialIcons } from '#/types/materialIcons';
|
|
46
|
+
import { MaterialIcon } from '#/components';
|
|
30
47
|
|
|
31
48
|
const props = withDefaults(
|
|
32
49
|
defineProps<{
|
|
@@ -217,5 +234,4 @@ const props = withDefaults(
|
|
|
217
234
|
|
|
218
235
|
[dir='rtl'] .icon-font {
|
|
219
236
|
transform: rotateY(180deg);
|
|
220
|
-
}
|
|
221
|
-
</style>
|
|
237
|
+
}</style>
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
|
|
69
69
|
<script lang="ts" setup>
|
|
70
70
|
import { onMounted, watch } from 'vue';
|
|
71
|
-
import { useBagel } from '
|
|
72
|
-
import { Btn, MaterialIcon, RTXEditor } from '
|
|
71
|
+
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 '#/types/BagelField';
|
|
60
60
|
import MaterialIcon from './MaterialIcon.vue';
|
|
61
61
|
import Btn from './Btn.vue';
|
|
62
|
-
import CheckInput from '
|
|
62
|
+
import CheckInput from '#/components/form/inputs/CheckInput.vue';
|
|
63
63
|
|
|
64
64
|
const props = withDefaults(
|
|
65
65
|
defineProps<{
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
<script setup lang="ts">
|
|
11
11
|
import { onMounted } from 'vue';
|
|
12
|
-
import { useBagel } from '
|
|
13
|
-
import { TableSchema } from '
|
|
12
|
+
import { useBagel } from '#';
|
|
13
|
+
import { TableSchema } from '#/components';
|
|
14
14
|
|
|
15
15
|
const bagel = useBagel();
|
|
16
16
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="dropdown"
|
|
4
|
+
@click="toggleDropdown"
|
|
5
|
+
:class="{ opendrop: isOpen }"
|
|
6
|
+
>
|
|
3
7
|
<div class="dropdown-title">
|
|
4
8
|
{{ selectedOption || placeholder }}
|
|
5
9
|
<MaterialIcon icon="keyboard_arrow_down" />
|
|
@@ -18,7 +22,7 @@
|
|
|
18
22
|
|
|
19
23
|
<script setup lang="ts">
|
|
20
24
|
import { ref } from 'vue';
|
|
21
|
-
import { MaterialIcon } from '
|
|
25
|
+
import { MaterialIcon } from '#/components';
|
|
22
26
|
|
|
23
27
|
const props = defineProps({
|
|
24
28
|
modelValue: String,
|
|
@@ -118,5 +122,4 @@ function selectOption(option: string, index: number) {
|
|
|
118
122
|
|
|
119
123
|
.dropdown.opendrop .dropdown-body {
|
|
120
124
|
max-height: 150px;
|
|
121
|
-
}
|
|
122
|
-
</style>
|
|
125
|
+
}</style>
|
|
@@ -123,8 +123,8 @@
|
|
|
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 '
|
|
126
|
+
import { BagelField } from '#/types';
|
|
127
|
+
import { Btn, MaterialIcon } from '#/components';
|
|
128
128
|
|
|
129
129
|
const slots = useSlots();
|
|
130
130
|
const loading = ref(true);
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
import { reactive } from 'vue';
|
|
30
30
|
import { type FormKitSchemaDefinition } from '@formkit/core';
|
|
31
31
|
|
|
32
|
-
import { Btn } from '
|
|
33
|
-
import { useModal } from '
|
|
32
|
+
import { Btn } from '#/components';
|
|
33
|
+
import { useModal } from '#/utils';
|
|
34
34
|
|
|
35
35
|
const { showModal } = useModal();
|
|
36
36
|
const emits = defineEmits(['update:modelValue', 'submit']);
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script lang="ts" setup>
|
|
32
|
-
import { MaterialIcon, Btn } from '
|
|
33
|
-
import { debounce } from '
|
|
32
|
+
import { MaterialIcon, Btn } from '#/components';
|
|
33
|
+
import { debounce } from '#/utils';
|
|
34
34
|
|
|
35
35
|
defineProps<{
|
|
36
36
|
enableAdd: boolean;
|
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 { Btn } from '
|
|
36
|
-
import { BtnOptions } from '
|
|
35
|
+
import { Btn } from '#/components';
|
|
36
|
+
import { BtnOptions } from '#/types/BtnOptions';
|
|
37
37
|
import '../styles/modal.css';
|
|
38
38
|
|
|
39
39
|
defineProps<{
|
|
@@ -35,11 +35,11 @@
|
|
|
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 } from '#/components';
|
|
39
39
|
import '../styles/modal.css';
|
|
40
|
-
import { BtnOptions } from '
|
|
40
|
+
import { BtnOptions } from '#/types/BtnOptions';
|
|
41
41
|
|
|
42
|
-
// import { BagelField } from '
|
|
42
|
+
// import { BagelField } from '#/types';
|
|
43
43
|
|
|
44
44
|
const props = defineProps<{
|
|
45
45
|
side?: boolean;
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
|
|
77
77
|
<script lang="ts" setup>
|
|
78
78
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
79
|
-
import { useBagel } from '
|
|
80
|
-
import type { Person } from '
|
|
79
|
+
import { useBagel } from '#';
|
|
80
|
+
import type { Person } from '#/types';
|
|
81
81
|
import {
|
|
82
82
|
initials, useModal,
|
|
83
|
-
} from '
|
|
84
|
-
import { Btn, MaterialIcon } from '
|
|
83
|
+
} from '#/utils';
|
|
84
|
+
import { Btn, MaterialIcon } from '#/components';
|
|
85
85
|
|
|
86
86
|
// const toast = useToast(); // TODO: use toast
|
|
87
87
|
const bagel = useBagel();
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
|
|
78
78
|
<script lang="ts" setup>
|
|
79
79
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
80
|
-
import { useBagel } from '
|
|
81
|
-
import type { Person } from '
|
|
80
|
+
import { useBagel } from '#';
|
|
81
|
+
import type { Person } from '#/types';
|
|
82
82
|
import {
|
|
83
83
|
useModal, initials,
|
|
84
|
-
} from '
|
|
85
|
-
import { Btn, MaterialIcon } from '
|
|
84
|
+
} from '#/utils';
|
|
85
|
+
import { Btn, MaterialIcon } from '#/components';
|
|
86
86
|
|
|
87
87
|
// const toast = useToast(); // TODO: use toast
|
|
88
88
|
const bagel = useBagel();
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
|
|
66
66
|
<script setup lang="ts">
|
|
67
67
|
import { useSlots } from 'vue';
|
|
68
|
-
import { MaterialIcon } from '
|
|
69
|
-
import { parseLocale } from '
|
|
68
|
+
import { MaterialIcon } from '#/components';
|
|
69
|
+
import { parseLocale } from '#/utils';
|
|
70
70
|
|
|
71
71
|
const slots = useSlots();
|
|
72
72
|
const loading = $ref(true);
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
<script lang="ts" setup>
|
|
23
23
|
import { ref, computed } from 'vue';
|
|
24
24
|
import { useRouter } from 'vue-router';
|
|
25
|
-
import type { BagelField } from '
|
|
26
|
-
import { Btn, MaterialIcon } from '
|
|
25
|
+
import type { BagelField } from '#/types';
|
|
26
|
+
import { Btn, MaterialIcon } from '#/components';
|
|
27
27
|
|
|
28
28
|
const router = useRouter();
|
|
29
|
-
// import Modal from '
|
|
29
|
+
// import Modal from '#/components/Modal.vue';
|
|
30
30
|
|
|
31
31
|
const openRef = ref(false);
|
|
32
32
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
import { onMounted, ref } from 'vue';
|
|
49
49
|
|
|
50
50
|
import LangText from '../translation/LangText.vue';
|
|
51
|
-
import { formatString } from '
|
|
51
|
+
import { formatString } from '#/utils/strings';
|
|
52
52
|
|
|
53
53
|
const props = defineProps<{
|
|
54
54
|
type: 'text' | 'number' | 'password' | 'email' | 'checkbox' | 'textarea';
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
<script setup lang="ts">
|
|
29
29
|
import { ref, watch, computed } from 'vue';
|
|
30
|
-
import { BagelField } from '
|
|
31
|
-
import { MaterialIcon } from '
|
|
30
|
+
import { BagelField } from '#/types/BagelField';
|
|
31
|
+
import { MaterialIcon } from '#/components';
|
|
32
32
|
|
|
33
33
|
const emits = defineEmits(['update:modelValue']);
|
|
34
34
|
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 { type SelectBagelField } from '
|
|
53
|
-
import LangText from '
|
|
52
|
+
import { type SelectBagelField } from '#/types/BagelField';
|
|
53
|
+
import LangText from '#/components/LangText.vue';
|
|
54
54
|
|
|
55
55
|
const selectEl = ref<HTMLElement>();
|
|
56
56
|
const dropdown = ref<HTMLElement>();
|
|
@@ -78,10 +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 '
|
|
81
|
+
import { Btn } from '#/components';
|
|
82
82
|
// import { bagelApp as api } from '../../../index';
|
|
83
83
|
import MaterialIcon from '../MaterialIcon.vue';
|
|
84
|
-
import { formatString } from '
|
|
84
|
+
import { formatString } from '#/utils/strings';
|
|
85
85
|
// import TransitionGroupPop from '../../transitions/TransitionGroupPop.vue';
|
|
86
86
|
// import { formatString } from '../../../composables';
|
|
87
87
|
// import { ButtonIcon } from 'src/components/buttons'
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
|
|
87
87
|
<script setup lang="ts">
|
|
88
88
|
import { watch } from 'vue';
|
|
89
|
-
// import type { BagelField } from '
|
|
90
|
-
import { useBagel } from '
|
|
91
|
-
import { Btn } from '
|
|
89
|
+
// import type { BagelField } from '#/types/BagelField';
|
|
90
|
+
import { useBagel } from '#';
|
|
91
|
+
import { Btn } from '#/components';
|
|
92
92
|
import Checkbox from '../form/inputs/Checkbox.vue';
|
|
93
93
|
|
|
94
94
|
const bagel = useBagel();
|
|
@@ -111,10 +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 '#/types/BagelField';
|
|
115
115
|
|
|
116
|
-
import { useBagel } from '
|
|
117
|
-
import { Btn } from '
|
|
116
|
+
import { useBagel } from '#';
|
|
117
|
+
import { Btn } from '#/components';
|
|
118
118
|
import Checkbox from '../form/inputs/Checkbox.vue';
|
|
119
119
|
|
|
120
120
|
const bagel = useBagel();
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
|
|
77
77
|
<script setup lang="ts">
|
|
78
78
|
import { watch } from 'vue';
|
|
79
|
-
// import type { BagelField } from '
|
|
80
|
-
import { useBagel } from '
|
|
81
|
-
import { Btn } from '
|
|
79
|
+
// import type { BagelField } from '#/types/BagelField';
|
|
80
|
+
import { useBagel } from '#';
|
|
81
|
+
import { Btn } from '#/components';
|
|
82
82
|
import Checkbox from '../form/inputs/Checkbox.vue';
|
|
83
83
|
|
|
84
84
|
const bagel = useBagel();
|
|
@@ -92,8 +92,8 @@ interface UploadFile {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
import { onMounted, onUnmounted } from 'vue';
|
|
95
|
-
import { useBagel } from '
|
|
96
|
-
import { MaterialIcon, Btn } from '
|
|
95
|
+
import { useBagel } from '#';
|
|
96
|
+
import { MaterialIcon, Btn } from '#/components';
|
|
97
97
|
|
|
98
98
|
const bagel = useBagel();
|
|
99
99
|
|
|
@@ -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
|
+
import { useBagel } from '#';
|
|
41
41
|
import {
|
|
42
42
|
BodyComponent,
|
|
43
43
|
HeaderComponent,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
ServerTemplateData,
|
|
46
46
|
FooterComponent,
|
|
47
47
|
} from '../interfaces';
|
|
48
|
-
import { PageTitle, FormSchema } from '
|
|
48
|
+
import { PageTitle, FormSchema } from '#/components';
|
|
49
49
|
|
|
50
50
|
const props = defineProps<{
|
|
51
51
|
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/utils/index.ts
CHANGED
package/src/utils/objects.ts
CHANGED
package/tsconfig.json
CHANGED