@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.
Files changed (83) hide show
  1. package/dist/components/Btn.vue.d.ts +2 -2
  2. package/dist/components/Btn.vue.d.ts.map +1 -1
  3. package/dist/components/DataPreview.vue.d.ts.map +1 -1
  4. package/dist/components/DropDown.vue.d.ts +5 -5
  5. package/dist/components/DropDown.vue.d.ts.map +1 -1
  6. package/dist/components/MapEmbed.vue.d.ts.map +1 -1
  7. package/dist/components/Modal.vue.d.ts.map +1 -1
  8. package/dist/components/NavBar.vue.d.ts.map +1 -1
  9. package/dist/components/Title.vue.d.ts +1 -1
  10. package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
  11. package/dist/components/form/index.d.ts +1 -1
  12. package/dist/components/form/index.d.ts.map +1 -1
  13. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  14. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
  15. package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
  16. package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
  17. package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
  19. package/dist/components/form/inputs/SelectInput.vue.d.ts +4 -4
  20. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  21. package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
  22. package/dist/components/form/inputs/TelInput.vue.d.ts +6 -6
  23. package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
  24. package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
  25. package/dist/components/form/inputs/index.d.ts +11 -11
  26. package/dist/components/form/inputs/index.d.ts.map +1 -1
  27. package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
  28. package/dist/components/layout/TabbedLayout.vue.d.ts +1 -1
  29. package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
  30. package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
  31. package/dist/components/layout/index.d.ts +3 -3
  32. package/dist/components/layout/index.d.ts.map +1 -1
  33. package/dist/components/lightbox/index.d.ts.map +1 -1
  34. package/dist/composables/index.d.ts.map +1 -1
  35. package/dist/index.cjs +47931 -47903
  36. package/dist/index.d.ts +4 -4
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.mjs +47932 -47904
  39. package/dist/plugins/bagel.d.ts +1 -1
  40. package/dist/plugins/bagel.d.ts.map +1 -1
  41. package/dist/plugins/modal.d.ts +1 -1
  42. package/dist/plugins/modal.d.ts.map +1 -1
  43. package/dist/style.css +1092 -1102
  44. package/dist/types/index.d.ts +4 -4
  45. package/dist/types/index.d.ts.map +1 -1
  46. package/dist/utils/index.d.ts +1 -1
  47. package/dist/utils/index.d.ts.map +1 -1
  48. package/package.json +1 -1
  49. package/src/components/Btn.vue +3 -3
  50. package/src/components/DataPreview.vue +1 -1
  51. package/src/components/Dropdown.vue +4 -4
  52. package/src/components/MapEmbed.vue +18 -18
  53. package/src/components/Modal.vue +6 -6
  54. package/src/components/NavBar.vue +1 -1
  55. package/src/components/TableSchema.vue +1 -1
  56. package/src/components/dashboard/Lineart.vue +1 -1
  57. package/src/components/form/index.ts +1 -1
  58. package/src/components/form/inputs/DateInput.vue +1 -1
  59. package/src/components/form/inputs/FileUpload.vue +1 -1
  60. package/src/components/form/inputs/RichText.vue +10 -15
  61. package/src/components/form/inputs/RichText2/index.vue +1 -1
  62. package/src/components/form/inputs/SelectInput.vue +2 -2
  63. package/src/components/form/inputs/SignaturePad.vue +2 -2
  64. package/src/components/form/inputs/TableField.vue +2 -2
  65. package/src/components/form/inputs/TelInput.vue +5 -5
  66. package/src/components/form/inputs/TextInput.vue +15 -13
  67. package/src/components/form/inputs/index.ts +11 -11
  68. package/src/components/formkit/FileUploader.vue +2 -2
  69. package/src/components/layout/SidebarMenu.vue +50 -77
  70. package/src/components/layout/TabbedLayout.vue +1 -1
  71. package/src/components/layout/Tabs.vue +2 -1
  72. package/src/components/layout/index.ts +3 -3
  73. package/src/components/lightbox/index.ts +2 -2
  74. package/src/composables/index.ts +1 -1
  75. package/src/index.ts +6 -6
  76. package/src/plugins/bagel.ts +2 -2
  77. package/src/plugins/modal.ts +2 -2
  78. package/src/styles/bagel.css +6 -0
  79. package/src/styles/buttons.css +4 -0
  80. package/src/styles/theme.css +6 -1
  81. package/src/types/index.ts +5 -6
  82. package/src/utils/index.ts +2 -2
  83. package/vite.config.ts +3 -3
@@ -1,11 +1,11 @@
1
1
  import { MaterialIcons } from './materialIcons';
2
- export type { ModalComponentProps as ModalFormComponentProps, ModalApi, ModalComponentProps, ModalFormOptions, ModalOptions, } from '../plugins/modal';
2
+ export type { ModalApi, ModalComponentProps as ModalFormComponentProps, ModalComponentProps, ModalFormOptions, ModalOptions, } from '../plugins/modal';
3
3
  export type { MaterialIcons };
4
- export type { Tables, TableToTypeMapping } from '../../../sdk/src/index.ts';
4
+ export * from './BagelForm';
5
+ export * from './BtnOptions';
5
6
  export type { StorageFile } from './file';
6
7
  export type { NavLink } from './NavLink';
7
- export * from './BtnOptions';
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,QAAQ,EACR,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,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAC/D,YAAY,EAAE,WAAW,EA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,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"}
@@ -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":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAG/D,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,IAAI,EAAE,KAAK,SAAM,QAGnD;AAED,wBAAgB,UAAU,CAAC,GAAG,CAAC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AO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,CAa3F;AAED,eAAO,MAAM,KAAK,QAAQ,MAAM,qBAA0D,CAAA;AAE1F,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYvD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.749",
4
+ "version": "0.0.753",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -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 declare type Side = 'top' | 'right' | 'bottom' | 'left' | 'auto'
6
- export declare type Alignment = 'start' | 'end'
7
- export declare type AlignedPlacement = `${Side}-${Alignment}`
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?: 'auto' | AlignedPlacement
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 './leaflet/leaflet.css'
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 { appendScript, sleep } from '@bagelink/vue'
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.icon({
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.marker(latlng, { icon: customIcon }).addTo(map as Map)
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
- watch(
76
- () => props.markers,
77
- async (markers) => {
78
- _markers.forEach(marker => marker.remove())
79
- if (!markers) return
80
- for (const marker of markers) {
81
- const [lat, lon] = Array.isArray(marker) ? marker : [marker.lat, marker.lon]
82
- if (!map) initializeMap()
83
- addMarker(L, [lat, lon])
84
- fitMarkers(L)
85
- }
86
- },
87
- { immediate: true }
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>
@@ -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<{
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" setup>
2
- import type { MaterialIcons, NavLink } from '@bagelink/vue'
3
2
  import { MaterialIcon } from '@bagelink/vue'
3
+ import type { MaterialIcons, NavLink } from '@bagelink/vue'
4
4
 
5
5
  withDefaults(
6
6
  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<{
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { onMounted, watch } from 'vue'
3
2
  import { Btn, IMAGE_FORMATS_REGEXP, Icon, type StorageFile, useBagel } from '@bagelink/vue'
3
+ import { onMounted, watch } from 'vue'
4
4
 
5
5
  const props = defineProps<{
6
6
  label?: string
@@ -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 { type Raw, type StyleValue, onMounted, watch } from 'vue'
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 axios from 'axios'
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
- && !props.excludeCountries.includes(iso2.toLowerCase()),
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
- || new RegExp(cleanInput, 'i').test(c.iso2 || '')
161
- || new RegExp(cleanInput, 'i').test(c.dialCode || ''),
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>