@bagelink/vue 0.0.749 → 0.0.753
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 +2 -2
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/DropDown.vue.d.ts +5 -5
- package/dist/components/DropDown.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/Title.vue.d.ts +1 -1
- package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
- package/dist/components/form/index.d.ts +1 -1
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +4 -4
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +6 -6
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +11 -11
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/TabbedLayout.vue.d.ts +1 -1
- package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
- package/dist/components/layout/index.d.ts +3 -3
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/lightbox/index.d.ts.map +1 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/index.cjs +47931 -47903
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +47932 -47904
- package/dist/plugins/bagel.d.ts +1 -1
- package/dist/plugins/bagel.d.ts.map +1 -1
- package/dist/plugins/modal.d.ts +1 -1
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +1092 -1102
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Btn.vue +3 -3
- package/src/components/DataPreview.vue +1 -1
- package/src/components/Dropdown.vue +4 -4
- package/src/components/MapEmbed.vue +18 -18
- package/src/components/Modal.vue +6 -6
- package/src/components/NavBar.vue +1 -1
- package/src/components/TableSchema.vue +1 -1
- package/src/components/dashboard/Lineart.vue +1 -1
- package/src/components/form/index.ts +1 -1
- package/src/components/form/inputs/DateInput.vue +1 -1
- package/src/components/form/inputs/FileUpload.vue +1 -1
- package/src/components/form/inputs/RichText.vue +10 -15
- package/src/components/form/inputs/RichText2/index.vue +1 -1
- package/src/components/form/inputs/SelectInput.vue +2 -2
- package/src/components/form/inputs/SignaturePad.vue +2 -2
- package/src/components/form/inputs/TableField.vue +2 -2
- package/src/components/form/inputs/TelInput.vue +5 -5
- package/src/components/form/inputs/TextInput.vue +15 -13
- package/src/components/form/inputs/index.ts +11 -11
- package/src/components/formkit/FileUploader.vue +2 -2
- package/src/components/layout/SidebarMenu.vue +50 -77
- package/src/components/layout/TabbedLayout.vue +1 -1
- package/src/components/layout/Tabs.vue +2 -1
- package/src/components/layout/index.ts +3 -3
- package/src/components/lightbox/index.ts +2 -2
- package/src/composables/index.ts +1 -1
- package/src/index.ts +6 -6
- package/src/plugins/bagel.ts +2 -2
- package/src/plugins/modal.ts +2 -2
- package/src/styles/bagel.css +6 -0
- package/src/styles/buttons.css +4 -0
- package/src/styles/theme.css +6 -1
- package/src/types/index.ts +5 -6
- package/src/utils/index.ts +2 -2
- package/vite.config.ts +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MaterialIcons } from './materialIcons';
|
|
2
|
-
export type { ModalComponentProps as ModalFormComponentProps,
|
|
2
|
+
export type { ModalApi, ModalComponentProps as ModalFormComponentProps, ModalComponentProps, ModalFormOptions, ModalOptions, } from '../plugins/modal';
|
|
3
3
|
export type { MaterialIcons };
|
|
4
|
-
export
|
|
4
|
+
export * from './BagelForm';
|
|
5
|
+
export * from './BtnOptions';
|
|
5
6
|
export type { StorageFile } from './file';
|
|
6
7
|
export type { NavLink } from './NavLink';
|
|
7
|
-
export
|
|
8
|
-
export * from './BagelForm';
|
|
8
|
+
export type { Tables, TableToTypeMapping } from '../../../sdk/src/index.ts';
|
|
9
9
|
export type Tab = {
|
|
10
10
|
label: string;
|
|
11
11
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,mBAAmB,IAAI,uBAAuB,EAC9C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,QAAQ,EACR,mBAAmB,IAAI,uBAAuB,EAC9C,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,GACZ,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD,YAAY,EAAE,aAAa,EAAE,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAE/D,MAAM,MAAM,GAAG,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,aAAa,CAAA;CACpB,GAAG,MAAM,CAAA;AAEV,MAAM,MAAM,SAAS,GACpB,OAAO,GACL,OAAO,GACP,KAAK,GACL,MAAM,GACN,YAAY,GACZ,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,CAAA;AAET,MAAM,MAAM,MAAM,GACf,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAA;AAE5C,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export declare function bindAttrs<T = Record<string, any>>(attrs?: Attributes, f
|
|
|
9
9
|
export declare function iffer(field: any, itemData: any): any;
|
|
10
10
|
export declare function denullify(itemData?: Record<string, any>, fieldID?: string): any;
|
|
11
11
|
export declare const isDate: (dateToTest: any) => boolean;
|
|
12
|
-
export { formatString } from './strings';
|
|
13
12
|
export * as bagelFormUtils from './BagelFormUtils';
|
|
14
13
|
export { useLang } from './lang';
|
|
14
|
+
export { formatString } from './strings';
|
|
15
15
|
export declare function getFallbackSchema<T>(data?: any[], showFields?: string[]): BglFormSchemaT<T>;
|
|
16
16
|
export declare const sleep: (ms?: number) => Promise<unknown>;
|
|
17
17
|
export declare function appendScript(src: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":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O,MAAM,KAAK,QAAQ,MAAM,qBAA0D,CAAA;AAE1F,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYvD"}
|
package/package.json
CHANGED
package/src/components/Btn.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import { MaterialIcon } from '@bagelink/vue'
|
|
2
3
|
import { useSlots } from 'vue'
|
|
3
4
|
import type { MaterialIcons, ThemeType } from '@bagelink/vue'
|
|
4
|
-
import { MaterialIcon } from '@bagelink/vue'
|
|
5
5
|
|
|
6
6
|
const props = withDefaults(
|
|
7
7
|
defineProps<{
|
|
@@ -72,8 +72,8 @@ function getThemeColors(theme: Partial<typeof computedDefaultColors>): typeof co
|
|
|
72
72
|
|
|
73
73
|
const themes: Partial<Record<ThemeType, typeof computedDefaultColors>> = {
|
|
74
74
|
'red': getThemeColors({ backgroundColor: 'var(--bgl-red)' }),
|
|
75
|
-
'white': getThemeColors({ backgroundColor: 'var(--bgl-white)' }),
|
|
76
|
-
'black': getThemeColors({ backgroundColor: 'var(--bgl-black)' }),
|
|
75
|
+
'white': getThemeColors({ backgroundColor: 'var(--bgl-white)', color: 'var(--bgl-black)' }),
|
|
76
|
+
'black': getThemeColors({ backgroundColor: 'var(--bgl-black)', color: 'var(--bgl-white)' }),
|
|
77
77
|
'green': getThemeColors({ backgroundColor: 'var(--bgl-green)', color: 'var(--bgl-white)' }),
|
|
78
78
|
'primary': getThemeColors({ backgroundColor: 'var(--bgl-primary)', color: 'var(--bgl-white)' }),
|
|
79
79
|
'gray': getThemeColors({ backgroundColor: 'var(--bgl-gray-light)', color: 'var(--bgl-black)' }),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import {
|
|
3
3
|
BglField,
|
|
4
|
-
type BglFormSchemaT,
|
|
5
4
|
Title,
|
|
6
5
|
getFallbackSchema,
|
|
7
6
|
iffer,
|
|
8
7
|
isDate,
|
|
9
8
|
keyToLabel,
|
|
10
9
|
} from '@bagelink/vue'
|
|
10
|
+
import type { BglFormSchemaT } from '@bagelink/vue'
|
|
11
11
|
|
|
12
12
|
const props = defineProps<{
|
|
13
13
|
showFields?: string[]
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Btn, type MaterialIcons } from '@bagelink/vue'
|
|
3
3
|
import { Dropdown as DDown } from 'floating-vue'
|
|
4
4
|
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export type Side = 'top' | 'right' | 'bottom' | 'left' | 'auto'
|
|
6
|
+
export type Alignment = 'start' | 'end'
|
|
7
|
+
export type AlignedPlacement = 'auto' | `${Side}-${Alignment}`
|
|
8
8
|
|
|
9
9
|
defineProps<{
|
|
10
10
|
value?: string
|
|
@@ -17,7 +17,7 @@ defineProps<{
|
|
|
17
17
|
border?: boolean
|
|
18
18
|
outline?: boolean
|
|
19
19
|
round?: boolean
|
|
20
|
-
placement?:
|
|
20
|
+
placement?: AlignedPlacement
|
|
21
21
|
noAutoFocus?: boolean
|
|
22
22
|
// theme
|
|
23
23
|
// referenceNode
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import '
|
|
2
|
+
import { appendScript, sleep } from '@bagelink/vue'
|
|
3
3
|
import { onMounted, watch } from 'vue'
|
|
4
4
|
import type { LatLngExpression, Layer, Map, Marker } from 'leaflet'
|
|
5
|
-
import
|
|
5
|
+
import './leaflet/leaflet.css'
|
|
6
6
|
|
|
7
7
|
type MapMarker = {
|
|
8
8
|
lat: number
|
|
@@ -57,12 +57,12 @@ async function initializeMap() {
|
|
|
57
57
|
|
|
58
58
|
function addMarker(L: any, latlng: LatLngExpression) {
|
|
59
59
|
const iconSVG = props.markerIcon || defaultMarkerSVG
|
|
60
|
-
const customIcon = L
|
|
60
|
+
const customIcon = L?.icon({
|
|
61
61
|
iconUrl: `data:image/svg+xml;utf8,${encodeURIComponent(iconSVG)}`,
|
|
62
62
|
iconSize: [32, 32],
|
|
63
63
|
})
|
|
64
64
|
|
|
65
|
-
const marker = L
|
|
65
|
+
const marker = L?.marker(latlng, { icon: customIcon }).addTo(map as Map)
|
|
66
66
|
_markers.push(marker)
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -72,20 +72,20 @@ function fitMarkers(L: any) {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
()
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
)
|
|
75
|
+
async function watchMarkers(markers?: MapMarker[]) {
|
|
76
|
+
if (!L) L = await loadGlobalL()
|
|
77
|
+
_markers.forEach(marker => marker.remove())
|
|
78
|
+
if (!markers) return
|
|
79
|
+
for (const marker of markers) {
|
|
80
|
+
const [lat, lon] = Array.isArray(marker) ? marker : [marker.lat, marker.lon]
|
|
81
|
+
if (!map) initializeMap()
|
|
82
|
+
addMarker(L, [lat, lon])
|
|
83
|
+
fitMarkers(L)
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
watch(() => props.markers, watchMarkers, { immediate: true })
|
|
88
|
+
watch(() => props.center, center => map?.setView(center, props.zoom), { immediate: true })
|
|
89
89
|
|
|
90
90
|
onMounted(initializeMap)
|
|
91
91
|
</script>
|
package/src/components/Modal.vue
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
3
|
-
onMounted,
|
|
4
|
-
onUnmounted,
|
|
5
|
-
useSlots,
|
|
6
|
-
watch,
|
|
7
|
-
} from 'vue'
|
|
8
2
|
import {
|
|
9
3
|
Btn,
|
|
10
4
|
type BtnOptions,
|
|
@@ -12,6 +6,12 @@ import {
|
|
|
12
6
|
Title,
|
|
13
7
|
useEscape,
|
|
14
8
|
} from '@bagelink/vue'
|
|
9
|
+
import {
|
|
10
|
+
onMounted,
|
|
11
|
+
onUnmounted,
|
|
12
|
+
useSlots,
|
|
13
|
+
watch,
|
|
14
|
+
} from 'vue'
|
|
15
15
|
import '../styles/modal.css'
|
|
16
16
|
|
|
17
17
|
const props = defineProps<{
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
keyToLabel,
|
|
8
8
|
useBglSchema,
|
|
9
9
|
} from '@bagelink/vue'
|
|
10
|
-
import { computed, useSlots, watch } from 'vue'
|
|
11
10
|
import { useVirtualList } from '@vueuse/core'
|
|
11
|
+
import { computed, useSlots, watch } from 'vue'
|
|
12
12
|
|
|
13
13
|
export type SortDirectionsT = 'ASC' | 'DESC'
|
|
14
14
|
const props = defineProps<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
+
import { onMounted, onUnmounted } from 'vue'
|
|
2
3
|
import {
|
|
3
4
|
Area,
|
|
4
5
|
Chart,
|
|
@@ -8,7 +9,6 @@ import {
|
|
|
8
9
|
Tooltip,
|
|
9
10
|
} from 'vue3-charts'
|
|
10
11
|
import type { ChartAxis, Data } from 'vue3-charts/dist/types'
|
|
11
|
-
import { onMounted, onUnmounted } from 'vue'
|
|
12
12
|
|
|
13
13
|
const props = defineProps<{ data: Data[], locale: string }>()
|
|
14
14
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export { default as BglField } from './BglField.vue'
|
|
1
2
|
export { default as BglForm } from './BglForm.vue'
|
|
2
3
|
export { default as BagelForm } from './BglForm.vue'
|
|
3
|
-
export { default as BglField } from './BglField.vue'
|
|
4
4
|
export { default as BglMultiStepForm } from './BglMultiStepForm.vue'
|
|
5
5
|
export * from './inputs'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import VDatepicker, { type DatePickerInstance, type VueDatePickerProps } from '@vuepic/vue-datepicker'
|
|
3
|
-
import '@vuepic/vue-datepicker/dist/main.css'
|
|
4
3
|
import { onMounted } from 'vue'
|
|
4
|
+
import '@vuepic/vue-datepicker/dist/main.css'
|
|
5
5
|
|
|
6
6
|
const props = withDefaults(
|
|
7
7
|
defineProps<{
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
bagelFormUtils,
|
|
7
7
|
useModal,
|
|
8
8
|
} from '@bagelink/vue'
|
|
9
|
-
import { onBeforeUnmount, onMounted, watch } from 'vue'
|
|
10
|
-
import StarterKit from '@tiptap/starter-kit'
|
|
11
|
-
import { Editor, EditorContent } from '@tiptap/vue-3'
|
|
12
9
|
import Image from '@tiptap/extension-image'
|
|
13
|
-
import YouTube from '@tiptap/extension-youtube'
|
|
14
10
|
import Table from '@tiptap/extension-table'
|
|
15
|
-
import TableRow from '@tiptap/extension-table-row'
|
|
16
11
|
import TableCell from '@tiptap/extension-table-cell'
|
|
17
12
|
import TableHeader from '@tiptap/extension-table-header'
|
|
13
|
+
import TableRow from '@tiptap/extension-table-row'
|
|
14
|
+
import YouTube from '@tiptap/extension-youtube'
|
|
15
|
+
import StarterKit from '@tiptap/starter-kit'
|
|
16
|
+
import { Editor, EditorContent } from '@tiptap/vue-3'
|
|
17
|
+
import { onBeforeUnmount, onMounted, watch } from 'vue'
|
|
18
18
|
import type { MaterialIcons } from '@bagelink/vue'
|
|
19
19
|
|
|
20
20
|
const props = defineProps<{ modelValue: string }>()
|
|
@@ -57,22 +57,19 @@ const config: {
|
|
|
57
57
|
name: 'Bold',
|
|
58
58
|
command: () => focus().toggleBold().run(),
|
|
59
59
|
icon: 'format_bold',
|
|
60
|
-
disabled: () => !editor?.can().chain().focus().toggleBold()
|
|
61
|
-
.run(),
|
|
60
|
+
disabled: () => !editor?.can().chain().focus().toggleBold().run(),
|
|
62
61
|
},
|
|
63
62
|
{
|
|
64
63
|
name: 'Italic',
|
|
65
64
|
command: () => focus().toggleItalic().run(),
|
|
66
65
|
icon: 'format_italic',
|
|
67
|
-
disabled: () => !editor?.can().chain().focus().toggleItalic()
|
|
68
|
-
.run(),
|
|
66
|
+
disabled: () => !editor?.can().chain().focus().toggleItalic().run(),
|
|
69
67
|
},
|
|
70
68
|
{
|
|
71
69
|
name: 'Strike',
|
|
72
70
|
command: () => focus().toggleStrike().run(),
|
|
73
71
|
icon: 'format_strikethrough',
|
|
74
|
-
disabled: () => !editor?.can().chain().focus().toggleStrike()
|
|
75
|
-
.run(),
|
|
72
|
+
disabled: () => !editor?.can().chain().focus().toggleStrike().run(),
|
|
76
73
|
},
|
|
77
74
|
{
|
|
78
75
|
name: 'Code Text',
|
|
@@ -190,15 +187,13 @@ const config: {
|
|
|
190
187
|
name: 'Undo',
|
|
191
188
|
command: () => focus().undo().run(),
|
|
192
189
|
icon: 'undo',
|
|
193
|
-
disabled: () => !editor?.can().chain().focus().undo()
|
|
194
|
-
.run(),
|
|
190
|
+
disabled: () => !editor?.can().chain().focus().undo().run(),
|
|
195
191
|
},
|
|
196
192
|
{
|
|
197
193
|
name: 'Redo',
|
|
198
194
|
command: () => focus().redo().run(),
|
|
199
195
|
icon: 'redo',
|
|
200
|
-
disabled: () => !editor?.can().chain().focus().redo()
|
|
201
|
-
.run(),
|
|
196
|
+
disabled: () => !editor?.can().chain().focus().redo().run(),
|
|
202
197
|
},
|
|
203
198
|
]
|
|
204
199
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { onMounted, watch } from 'vue'
|
|
3
|
+
import { applyFormatting } from './formatting'
|
|
3
4
|
import Toolbar from './Toolbar.vue'
|
|
4
5
|
import type { ToolbarConfig } from './richtext-types'
|
|
5
|
-
import { applyFormatting } from './formatting'
|
|
6
6
|
|
|
7
7
|
const props = defineProps<{ modelValue: string, toolbarConfig?: ToolbarConfig }>()
|
|
8
8
|
const emit = defineEmits(['update:modelValue'])
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { onMounted, watch } from 'vue'
|
|
3
|
-
import 'floating-vue/style.css'
|
|
4
2
|
import {
|
|
5
3
|
Btn,
|
|
6
4
|
Card,
|
|
@@ -10,6 +8,8 @@ import {
|
|
|
10
8
|
type Option,
|
|
11
9
|
TextInput,
|
|
12
10
|
} from '@bagelink/vue'
|
|
11
|
+
import { onMounted, watch } from 'vue'
|
|
12
|
+
import 'floating-vue/style.css'
|
|
13
13
|
|
|
14
14
|
const props = defineProps<{
|
|
15
15
|
options: Option[]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import SignaturePad from 'signature_pad'
|
|
3
|
-
import type { Options as SignaturePadOptions } from 'signature_pad'
|
|
4
2
|
import { Btn } from '@bagelink/vue'
|
|
3
|
+
import SignaturePad from 'signature_pad'
|
|
5
4
|
import { onMounted, watch } from 'vue'
|
|
5
|
+
import type { Options as SignaturePadOptions } from 'signature_pad'
|
|
6
6
|
|
|
7
7
|
interface WaterMark {
|
|
8
8
|
text: string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { VueDraggableNext } from 'vue-draggable-next'
|
|
3
|
-
import { onMounted, ref } from 'vue'
|
|
4
2
|
import { Btn, MaterialIcon, formatString } from '@bagelink/vue'
|
|
3
|
+
import { onMounted, ref } from 'vue'
|
|
4
|
+
import { VueDraggableNext } from 'vue-draggable-next'
|
|
5
5
|
|
|
6
6
|
const props = withDefaults(
|
|
7
7
|
defineProps<{
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
allCountries,
|
|
9
9
|
debounce,
|
|
10
10
|
} from '@bagelink/vue'
|
|
11
|
-
import
|
|
11
|
+
import axios from 'axios'
|
|
12
12
|
import {
|
|
13
13
|
type CountryCode,
|
|
14
14
|
type NumberFormat,
|
|
15
15
|
parsePhoneNumberFromString,
|
|
16
16
|
} from 'libphonenumber-js'
|
|
17
|
-
import
|
|
17
|
+
import { type Raw, type StyleValue, onMounted, watch } from 'vue'
|
|
18
18
|
|
|
19
19
|
export interface Props {
|
|
20
20
|
label?: string
|
|
@@ -139,7 +139,7 @@ const filteredCountries = $computed(() => {
|
|
|
139
139
|
if (props.excludeCountries.length) {
|
|
140
140
|
return props.allCountries.filter(
|
|
141
141
|
({ iso2 }) => !props.excludeCountries.includes(iso2.toUpperCase())
|
|
142
|
-
|
|
142
|
+
&& !props.excludeCountries.includes(iso2.toLowerCase()),
|
|
143
143
|
)
|
|
144
144
|
}
|
|
145
145
|
return props.allCountries
|
|
@@ -157,8 +157,8 @@ const sortedCountries = $computed(() => {
|
|
|
157
157
|
return countriesList
|
|
158
158
|
.filter(
|
|
159
159
|
c => new RegExp(cleanInput, 'i').test(c.name || '')
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
|| new RegExp(cleanInput, 'i').test(c.iso2 || '')
|
|
161
|
+
|| new RegExp(cleanInput, 'i').test(c.dialCode || ''),
|
|
162
162
|
)
|
|
163
163
|
.filter(Boolean)
|
|
164
164
|
})
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { onMounted, watch } from 'vue'
|
|
3
2
|
import {
|
|
4
3
|
MaterialIcon,
|
|
5
4
|
type MaterialIcons,
|
|
6
5
|
debounce,
|
|
7
6
|
} from '@bagelink/vue'
|
|
7
|
+
import { onMounted, watch } from 'vue'
|
|
8
8
|
|
|
9
9
|
const props = withDefaults(
|
|
10
10
|
defineProps<{
|
|
@@ -186,24 +186,26 @@ onMounted(() => {
|
|
|
186
186
|
font-size: var(--label-font-size);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
.textInputIconWrap {
|
|
190
|
-
position: relative;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
189
|
.textInputIconWrap .bgl_icon-font {
|
|
194
|
-
position: absolute;
|
|
195
|
-
inset-inline-end: 0.7rem;
|
|
196
|
-
bottom: 50%;
|
|
197
|
-
line-height: 0;
|
|
198
190
|
color: var(--bgl-gray);
|
|
191
|
+
position: absolute;
|
|
192
|
+
bottom: 0px;
|
|
193
|
+
inset-inline-end: 0.25rem;
|
|
194
|
+
margin-block: calc(var(--input-height) / 2 - 16px);
|
|
195
|
+
}
|
|
196
|
+
.textInputIconWrap input{
|
|
197
|
+
padding-inline-end: 2rem;
|
|
199
198
|
}
|
|
200
199
|
|
|
201
200
|
.txtInputIconStart .iconStart {
|
|
202
|
-
position: absolute;
|
|
203
|
-
inset-inline-start: 0.7rem;
|
|
204
|
-
top: 50%;
|
|
205
|
-
line-height: 0;
|
|
206
201
|
color: var(--bgl-gray);
|
|
202
|
+
position: absolute;
|
|
203
|
+
bottom: 0px;
|
|
204
|
+
inset-inline-start: 0.25rem;
|
|
205
|
+
margin-block: calc(var(--input-height) / 2 - 16px);
|
|
206
|
+
}
|
|
207
|
+
.txtInputIconStart input{
|
|
208
|
+
padding-inline-start: 2rem;
|
|
207
209
|
}
|
|
208
210
|
|
|
209
211
|
.txtInputIconStart textarea {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
export { default as Checkbox } from './Checkbox.vue'
|
|
1
2
|
export { default as CheckInput } from './CheckInput.vue'
|
|
3
|
+
export { default as ColorPicker } from './ColorPicker.vue'
|
|
2
4
|
export { default as DateInput } from './DateInput.vue'
|
|
5
|
+
export { default as DatePicker } from './DatePicker.vue'
|
|
6
|
+
export { default as FileUpload } from './FileUpload.vue'
|
|
3
7
|
export { default as JSONInput } from './JSONInput.vue'
|
|
8
|
+
export { default as PasswordInput } from './PasswordInput.vue'
|
|
9
|
+
export { default as RadioGroup } from './RadioGroup.vue'
|
|
10
|
+
export { default as RadioPillsInput } from './RadioPillsInput.vue'
|
|
11
|
+
export { default as RichText } from './RichText.vue'
|
|
12
|
+
export { default as RichText2 } from './RichText2/index.vue'
|
|
4
13
|
export { default as SelectInput } from './SelectInput.vue'
|
|
14
|
+
export { default as SignaturePad } from './SignaturePad.vue'
|
|
5
15
|
export { default as TableField } from './TableField.vue'
|
|
16
|
+
export { default as TelInput } from './TelInput.vue'
|
|
6
17
|
export { default as TextInput } from './TextInput.vue'
|
|
7
|
-
export { default as Checkbox } from './Checkbox.vue'
|
|
8
|
-
export { default as ColorPicker } from './ColorPicker.vue'
|
|
9
|
-
export { default as DatePicker } from './DatePicker.vue'
|
|
10
|
-
export { default as RadioPillsInput } from './RadioPillsInput.vue'
|
|
11
|
-
export { default as FileUpload } from './FileUpload.vue'
|
|
12
18
|
export { default as ToggleInput } from './ToggleInput.vue'
|
|
13
|
-
export { default as RichText } from './RichText.vue'
|
|
14
|
-
export { default as TelInput } from './TelInput.vue'
|
|
15
|
-
export { default as SignaturePad } from './SignaturePad.vue'
|
|
16
|
-
export { default as RichText2 } from './RichText2/index.vue'
|
|
17
|
-
export { default as RadioGroup } from './RadioGroup.vue'
|
|
18
|
-
export { default as PasswordInput } from './PasswordInput.vue'
|
|
@@ -9,10 +9,10 @@ interface UploadFile {
|
|
|
9
9
|
uploaded: boolean
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
import { onMounted, onUnmounted } from 'vue'
|
|
13
|
-
|
|
14
12
|
import { Btn, Icon, useBagel } from '@bagelink/vue'
|
|
15
13
|
|
|
14
|
+
import { onMounted, onUnmounted } from 'vue'
|
|
15
|
+
|
|
16
16
|
const props = withDefaults(
|
|
17
17
|
defineProps<{
|
|
18
18
|
context: Record<string, any>
|