@bagelink/vue 0.0.1276 → 0.0.1288

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 (254) hide show
  1. package/dist/components/Accordion.d.ts +12 -0
  2. package/dist/components/Accordion.d.ts.map +1 -0
  3. package/dist/components/AccordionItem.d.ts +34 -0
  4. package/dist/components/AccordionItem.d.ts.map +1 -0
  5. package/dist/components/Alert.d.ts +34 -0
  6. package/dist/components/Alert.d.ts.map +1 -0
  7. package/dist/components/Avatar.d.ts +36 -0
  8. package/dist/components/Avatar.d.ts.map +1 -0
  9. package/dist/components/Badge.d.ts +22 -0
  10. package/dist/components/Badge.d.ts.map +1 -0
  11. package/dist/components/BglVideo.d.ts +20 -0
  12. package/dist/components/BglVideo.d.ts.map +1 -0
  13. package/dist/components/Btn.d.ts +99 -0
  14. package/dist/components/Btn.d.ts.map +1 -0
  15. package/dist/components/Calendar/Index.vue.d.ts.map +1 -1
  16. package/dist/components/Calendar/models/Event.d.ts.map +1 -1
  17. package/dist/components/Calendar/typings/interfaces/time-modes.d.ts.map +1 -1
  18. package/dist/components/Calendar/typings/types.d.ts +3 -3
  19. package/dist/components/Calendar/typings/types.d.ts.map +1 -1
  20. package/dist/components/Card.d.ts +39 -0
  21. package/dist/components/Card.d.ts.map +1 -0
  22. package/dist/components/Carousel.d.ts +74 -0
  23. package/dist/components/Carousel.d.ts.map +1 -0
  24. package/dist/components/ComboBox.vue.d.ts +3 -3
  25. package/dist/components/Comments.vue.d.ts +2 -2
  26. package/dist/components/ContactSubmissions.vue.d.ts +2 -2
  27. package/dist/components/DataPreview.d.ts +42 -0
  28. package/dist/components/DataPreview.d.ts.map +1 -0
  29. package/dist/components/Draggable/Draggable.vue.d.ts.map +1 -1
  30. package/dist/components/Drop.vue.d.ts +34 -0
  31. package/dist/components/Drop.vue.d.ts.map +1 -0
  32. package/dist/components/FileUploader.vue.d.ts +60 -0
  33. package/dist/components/FileUploader.vue.d.ts.map +1 -0
  34. package/dist/components/Flag.d.ts +20 -0
  35. package/dist/components/Flag.d.ts.map +1 -0
  36. package/dist/components/FormSchema.vue.d.ts +5 -4
  37. package/dist/components/LangText.vue.d.ts +2 -2
  38. package/dist/components/ListItem.d.ts +34 -0
  39. package/dist/components/ListItem.d.ts.map +1 -0
  40. package/dist/components/ListView.d.ts +13 -0
  41. package/dist/components/ListView.d.ts.map +1 -0
  42. package/dist/components/MapEmbed.d.ts +3 -0
  43. package/dist/components/MapEmbed.d.ts.map +1 -0
  44. package/dist/components/MaterialIcon.d.ts +26 -0
  45. package/dist/components/MaterialIcon.d.ts.map +1 -0
  46. package/dist/components/Modal.d.ts +46 -0
  47. package/dist/components/Modal.d.ts.map +1 -0
  48. package/dist/components/ModalBglForm.vue.d.ts +21 -20
  49. package/dist/components/ModalConfirm.d.ts +24 -0
  50. package/dist/components/ModalConfirm.d.ts.map +1 -0
  51. package/dist/components/ModalForm.d.ts +78 -0
  52. package/dist/components/ModalForm.d.ts.map +1 -0
  53. package/dist/components/NavBar.d.ts +64 -0
  54. package/dist/components/NavBar.d.ts.map +1 -0
  55. package/dist/components/PageTitle.d.ts +24 -0
  56. package/dist/components/PageTitle.d.ts.map +1 -0
  57. package/dist/components/PersonPreview.vue.d.ts +5 -4
  58. package/dist/components/PersonPreviewFormkit.vue.d.ts +4 -3
  59. package/dist/components/Pill.vue.d.ts.map +1 -1
  60. package/dist/components/RTXEditor.vue.d.ts +3 -3
  61. package/dist/components/RouterWrapper.d.ts +3 -0
  62. package/dist/components/RouterWrapper.d.ts.map +1 -0
  63. package/dist/components/TabbedLayout.vue.d.ts +5 -4
  64. package/dist/components/TableSchema.d.ts +35 -0
  65. package/dist/components/TableSchema.d.ts.map +1 -0
  66. package/dist/components/TableSchema.vue.d.ts +2 -2
  67. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  68. package/dist/components/Title.d.ts +42 -0
  69. package/dist/components/Title.d.ts.map +1 -0
  70. package/dist/components/TopBar.d.ts +12 -0
  71. package/dist/components/TopBar.d.ts.map +1 -0
  72. package/dist/components/charts/BarChart.vue.d.ts +2 -2
  73. package/dist/components/dashboard/Lineart.d.ts +20 -0
  74. package/dist/components/dashboard/Lineart.d.ts.map +1 -0
  75. package/dist/components/dialog/index.d.ts.map +1 -1
  76. package/dist/components/form/BglField.d.ts +25 -0
  77. package/dist/components/form/BglField.d.ts.map +1 -0
  78. package/dist/components/form/BglForm.d.ts +75 -0
  79. package/dist/components/form/BglForm.d.ts.map +1 -0
  80. package/dist/components/form/ItemRef.vue.d.ts +5 -3
  81. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  82. package/dist/components/form/MaterialIcon.vue.d.ts +4 -3
  83. package/dist/components/form/PlainInputField.vue.d.ts +3 -3
  84. package/dist/components/form/inputs/CheckInput.d.ts +56 -0
  85. package/dist/components/form/inputs/CheckInput.d.ts.map +1 -0
  86. package/dist/components/form/inputs/Checkbox.d.ts +16 -0
  87. package/dist/components/form/inputs/Checkbox.d.ts.map +1 -0
  88. package/dist/components/form/inputs/ColorPicker.d.ts +48 -0
  89. package/dist/components/form/inputs/ColorPicker.d.ts.map +1 -0
  90. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
  91. package/dist/components/form/inputs/DateInput.d.ts +64 -0
  92. package/dist/components/form/inputs/DateInput.d.ts.map +1 -0
  93. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  94. package/dist/components/form/inputs/DatePick.vue.d.ts.map +1 -1
  95. package/dist/components/form/inputs/DatePicker.d.ts +33 -0
  96. package/dist/components/form/inputs/DatePicker.d.ts.map +1 -0
  97. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
  98. package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
  99. package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
  100. package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
  101. package/dist/components/form/inputs/FileUpload.d.ts +108 -0
  102. package/dist/components/form/inputs/FileUpload.d.ts.map +1 -0
  103. package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
  104. package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
  105. package/dist/components/form/inputs/JSONInput.d.ts +53 -0
  106. package/dist/components/form/inputs/JSONInput.d.ts.map +1 -0
  107. package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
  108. package/dist/components/form/inputs/Password.vue.d.ts +3 -3
  109. package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
  110. package/dist/components/form/inputs/RadioGroup.d.ts +42 -0
  111. package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -0
  112. package/dist/components/form/inputs/RadioPillsInput.d.ts +48 -0
  113. package/dist/components/form/inputs/RadioPillsInput.d.ts.map +1 -0
  114. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
  115. package/dist/components/form/inputs/RichText.d.ts +20 -0
  116. package/dist/components/form/inputs/RichText.d.ts.map +1 -0
  117. package/dist/components/form/inputs/RichText2/Toolbar.d.ts +22 -0
  118. package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +1 -0
  119. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
  120. package/dist/components/form/inputs/RichText2/index.d.ts +24 -0
  121. package/dist/components/form/inputs/RichText2/index.d.ts.map +1 -0
  122. package/dist/components/form/inputs/RichText2/index.vue.d.ts +1 -0
  123. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
  124. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
  125. package/dist/components/form/inputs/SelectField.vue.d.ts +6 -8
  126. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  127. package/dist/components/form/inputs/SelectInput.d.ts +55 -0
  128. package/dist/components/form/inputs/SelectInput.d.ts.map +1 -0
  129. package/dist/components/form/inputs/SignaturePad.d.ts +72 -0
  130. package/dist/components/form/inputs/SignaturePad.d.ts.map +1 -0
  131. package/dist/components/form/inputs/TableField.d.ts +45 -0
  132. package/dist/components/form/inputs/TableField.d.ts.map +1 -0
  133. package/dist/components/form/inputs/TelInput.d.ts +241 -0
  134. package/dist/components/form/inputs/TelInput.d.ts.map +1 -0
  135. package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
  136. package/dist/components/form/inputs/TextInput.d.ts +90 -0
  137. package/dist/components/form/inputs/TextInput.d.ts.map +1 -0
  138. package/dist/components/form/inputs/ToggleInput.d.ts +58 -0
  139. package/dist/components/form/inputs/ToggleInput.d.ts.map +1 -0
  140. package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts +3 -20
  141. package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts.map +1 -1
  142. package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
  143. package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
  144. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
  145. package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
  146. package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
  147. package/dist/components/formkit/Toggle.vue.d.ts +2 -2
  148. package/dist/components/layout/BottomMenu.d.ts +27 -0
  149. package/dist/components/layout/BottomMenu.d.ts.map +1 -0
  150. package/dist/components/layout/Layout.d.ts +58 -0
  151. package/dist/components/layout/Layout.d.ts.map +1 -0
  152. package/dist/components/layout/SidebarMenu.d.ts +38 -0
  153. package/dist/components/layout/SidebarMenu.d.ts.map +1 -0
  154. package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
  155. package/dist/components/layout/Skeleton.vue.d.ts.map +1 -1
  156. package/dist/components/layout/TabbedLayout.d.ts +42 -0
  157. package/dist/components/layout/TabbedLayout.d.ts.map +1 -0
  158. package/dist/components/layout/Tabs.d.ts +31 -0
  159. package/dist/components/layout/Tabs.d.ts.map +1 -0
  160. package/dist/components/layout/TabsBody.d.ts +23 -0
  161. package/dist/components/layout/TabsBody.d.ts.map +1 -0
  162. package/dist/components/layout/TabsNav.d.ts +35 -0
  163. package/dist/components/layout/TabsNav.d.ts.map +1 -0
  164. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +4 -3
  165. package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
  166. package/dist/index.cjs +1164 -9719
  167. package/dist/index.mjs +1165 -9720
  168. package/dist/style.css +370 -125
  169. package/dist/styles.css +14073 -0
  170. package/dist/utils/BagelFormUtils.d.ts +16 -4
  171. package/dist/utils/BagelFormUtils.d.ts.map +1 -1
  172. package/dist/utils/objects.d.ts +1 -0
  173. package/dist/vue.css +14073 -0
  174. package/package.json +5 -5
  175. package/src/components/Calendar/Index.vue +1 -1
  176. package/src/components/Calendar/helpers/EventConcurrency.ts +1 -1
  177. package/src/components/Calendar/helpers/Time.ts +2 -2
  178. package/src/components/Calendar/models/Event.ts +80 -80
  179. package/src/components/Calendar/typings/interfaces/time-modes.ts +9 -7
  180. package/src/components/Calendar/typings/types.ts +17 -15
  181. package/src/components/Draggable/Draggable.vue +1 -1
  182. package/src/components/Modal.vue +3 -3
  183. package/src/components/Pill.vue +2 -1
  184. package/src/components/Spreadsheet/Index.vue +2 -2
  185. package/src/components/dashboard/Lineart.vue +1 -1
  186. package/src/components/form/inputs/DateInput.vue +7 -1
  187. package/src/components/form/inputs/DatePick.vue +10 -10
  188. package/src/components/form/inputs/DatePicker.vue +9 -9
  189. package/src/components/form/inputs/Upload/UploadInput.vue +2 -20
  190. package/src/components/form/inputs/Upload/upload.types.d.ts +20 -0
  191. package/src/components/layout/SidebarMenu.vue +2 -1
  192. package/src/components/layout/Skeleton.vue +2 -1
  193. package/src/composables/useSchemaField.ts +6 -6
  194. package/src/directives/pattern.ts +1 -1
  195. package/src/styles/layout.css +169 -0
  196. package/src/styles/mobilLayout.css +161 -0
  197. package/src/utils/BagelFormUtils.ts +2 -3
  198. package/vite.config.ts +1 -1
  199. package/dist/common-C_IH8b5S.cjs +0 -12580
  200. package/dist/common-DoeNgx31.js +0 -12579
  201. package/dist/components/AddressSaerch.vue.d.ts +0 -7
  202. package/dist/components/AddressSaerch.vue.d.ts.map +0 -1
  203. package/dist/components/Calendar/index.d.ts +0 -4
  204. package/dist/components/Calendar/index.d.ts.map +0 -1
  205. package/dist/components/Popover.vue.d.ts +0 -10
  206. package/dist/components/Popover.vue.d.ts.map +0 -1
  207. package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts +0 -14
  208. package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts.map +0 -1
  209. package/dist/components/form/inputs/RichText/formatting.d.ts +0 -11
  210. package/dist/components/form/inputs/RichText/formatting.d.ts.map +0 -1
  211. package/dist/components/form/inputs/RichText/richtext-types.d.ts +0 -3
  212. package/dist/components/form/inputs/RichText/richtext-types.d.ts.map +0 -1
  213. package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts +0 -86
  214. package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts.map +0 -1
  215. package/dist/components/sortable/Animation.d.ts +0 -43
  216. package/dist/components/sortable/Animation.d.ts.map +0 -1
  217. package/dist/components/sortable/BrowserInfo.d.ts +0 -7
  218. package/dist/components/sortable/BrowserInfo.d.ts.map +0 -1
  219. package/dist/components/sortable/EventDispatcher.d.ts +0 -13
  220. package/dist/components/sortable/EventDispatcher.d.ts.map +0 -1
  221. package/dist/components/sortable/PluginManager.d.ts +0 -27
  222. package/dist/components/sortable/PluginManager.d.ts.map +0 -1
  223. package/dist/components/sortable/Sortable.d.ts +0 -81
  224. package/dist/components/sortable/Sortable.d.ts.map +0 -1
  225. package/dist/components/sortable/index.d.ts +0 -5
  226. package/dist/components/sortable/index.d.ts.map +0 -1
  227. package/dist/components/sortable/utils.d.ts +0 -49
  228. package/dist/components/sortable/utils.d.ts.map +0 -1
  229. package/dist/composables/drag-n-drop/useDraggable.d.ts +0 -2
  230. package/dist/composables/drag-n-drop/useDraggable.d.ts.map +0 -1
  231. package/dist/editor-CUDRLdmS.js +0 -4
  232. package/dist/editor-Cu374vEW.cjs +0 -4
  233. package/dist/editor-a8DSbb6P.js +0 -4
  234. package/dist/editor-xBt_vIha.cjs +0 -4
  235. package/dist/heic2any-8wMqMfB_.js +0 -933
  236. package/dist/heic2any-BrqcNzfV.js +0 -935
  237. package/dist/heic2any-C8KwH72N.cjs +0 -934
  238. package/dist/heic2any-k9wDCKka.cjs +0 -932
  239. package/dist/index-DiG-xM9T.cjs +0 -35016
  240. package/dist/index-nGuSAiY2.js +0 -35017
  241. package/dist/plugins/drag-n-drop/draggable.d.ts +0 -4
  242. package/dist/plugins/drag-n-drop/draggable.d.ts.map +0 -1
  243. package/dist/plugins/drag-n-drop/droppable.d.ts +0 -4
  244. package/dist/plugins/drag-n-drop/droppable.d.ts.map +0 -1
  245. package/dist/plugins/drag-n-drop/index.d.ts +0 -5
  246. package/dist/plugins/drag-n-drop/index.d.ts.map +0 -1
  247. package/dist/plugins/drag-n-drop/useDraggable.d.ts +0 -8
  248. package/dist/plugins/drag-n-drop/useDraggable.d.ts.map +0 -1
  249. package/dist/plugins/drag-n-drop/useDroppable.d.ts +0 -7
  250. package/dist/plugins/drag-n-drop/useDroppable.d.ts.map +0 -1
  251. package/dist/types/materialIcon.d.ts +0 -2
  252. package/dist/types/materialIcon.d.ts.map +0 -1
  253. package/src/components/Calendar/env.d.ts +0 -8
  254. /package/src/components/{Dialog → dialog}/index.ts +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1276",
4
+ "version": "0.0.1288",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -53,10 +53,10 @@
53
53
  ],
54
54
  "devDependencies": {
55
55
  "@types/leaflet": "^1.9.16",
56
- "@types/signature_pad": "^2.3.6",
56
+ "@types/signature_pad": "^4.0.0",
57
57
  "@vue-macros/reactivity-transform": "^1.1.6",
58
58
  "vue": "^3.5.13",
59
- "vue-component-type-helpers": "^2.2.0"
59
+ "vue-component-type-helpers": "^2.2.2"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@bagelink/sdk": "*",
@@ -82,10 +82,10 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "date-fns": "^4.1.0",
85
- "@vueuse/core": "^12.5.0",
85
+ "@vueuse/core": "^12.7.0",
86
86
  "axios": "^1.7.9",
87
87
  "floating-vue": "^5.2.2",
88
- "libphonenumber-js": "1.11.19",
88
+ "libphonenumber-js": "1.11.20",
89
89
  "signature_pad": "^5.0.4"
90
90
  },
91
91
  "scripts": {
@@ -57,7 +57,7 @@ const time = ref(new Time(props.config.week?.startsOn, props.config.locale || nu
57
57
  start: setTimePointsFromDayBoundary(props.config.dayBoundaries?.start || 0),
58
58
  end: setTimePointsFromDayBoundary(props.config.dayBoundaries?.end || 24),
59
59
  }) as Time | any)
60
- const fontFamily = computed(() => props.config.style?.fontFamily || '\'Verdana\', \'Open Sans\', serif')
60
+ // const UNUSED_fontFamily = computed(() => props.config.style?.fontFamily || '\'Verdana\', \'Open Sans\', serif')
61
61
  const eventRenderingKey = ref(0)
62
62
  const eventsDataProperty = ref(props.events)
63
63
  const isSmall = ref(false)
@@ -28,7 +28,7 @@ export default class EventConcurrency {
28
28
  for (const [index, calendarEvent] of updatedEvents.entries()) {
29
29
  if (index === 0) continue
30
30
 
31
- let previousEvent = updatedEvents[index - 1]
31
+ // let _unused_previousEvent = updatedEvents[index - 1]
32
32
 
33
33
  // Set nOfPreviousConcurrentEvents
34
34
  let iterator = 0
@@ -75,8 +75,8 @@ export default class Time {
75
75
  }
76
76
 
77
77
  getDatesBetweenTwoDates(start: Date, end: Date): Date[] {
78
- let arr = []
79
- let dt = new Date(start)
78
+ const arr = []
79
+ const dt = new Date(start)
80
80
  // eslint-disable-next-line no-unmodified-loop-condition
81
81
  while (dt <= end) {
82
82
  arr.push(new Date(dt.getFullYear(), dt.getMonth(), dt.getDate()))
@@ -1,112 +1,112 @@
1
- import type {EventColor, EventID, EventInterface} from "../typings/interfaces/event.interface";
2
- import type {modeType} from "../typings/types";
1
+ import type { EventColor, EventID, EventInterface } from '../typings/interfaces/event.interface'
2
+ import type { modeType } from '../typings/types'
3
3
 
4
4
  export class EventImpl implements EventInterface {
5
- title?: string;
6
- description?: string;
7
- topic?: string;
8
- location?: string;
9
- with?: string;
10
- colorScheme?: string;
11
- color?: EventColor;
12
- isEditable?: boolean;
13
- disableDnD?: modeType[];
14
- disableResize?: modeType[];
15
- isCustom?: boolean | modeType[];
16
-
17
- // Properties that should not be set from outside Qalendar
18
- nOfPreviousConcurrentEvents?: number;
19
-
20
- constructor(
21
- public time: { start: string; end: string },
22
- public id: EventID,
23
- ) {}
5
+ title?: string
6
+ description?: string
7
+ topic?: string
8
+ location?: string
9
+ with?: string
10
+ colorScheme?: string
11
+ color?: EventColor
12
+ isEditable?: boolean
13
+ disableDnD?: modeType[]
14
+ disableResize?: modeType[]
15
+ isCustom?: boolean | modeType[]
16
+
17
+ // Properties that should not be set from outside Qalendar
18
+ nOfPreviousConcurrentEvents?: number
19
+
20
+ constructor(
21
+ public time: { start: string, end: string },
22
+ public id: EventID,
23
+ ) {}
24
24
  }
25
25
 
26
26
  export class EventBuilder {
27
- private eventImpl: EventImpl;
27
+ private eventImpl: EventImpl
28
28
 
29
- constructor(
30
- public time: { start: string; end: string },
31
- id?: EventID,
32
- ) {
33
- if (!id) id = Math.random().toString(36).substring(2, 9);
34
- this.eventImpl = new EventImpl(time, id);
35
- }
29
+ constructor(
30
+ public time: { start: string, end: string },
31
+ id?: EventID,
32
+ ) {
33
+ if (!id) id = Math.random().toString(36).substring(2, 9)
34
+ this.eventImpl = new EventImpl(time, id)
35
+ }
36
36
 
37
- build() {
38
- return this.eventImpl;
39
- }
37
+ build() {
38
+ return this.eventImpl
39
+ }
40
40
 
41
- withTitle(title: string) {
42
- this.eventImpl.title = title;
41
+ withTitle(title: string) {
42
+ this.eventImpl.title = title
43
43
 
44
- return this;
45
- }
44
+ return this
45
+ }
46
46
 
47
- withColor(color: EventColor) {
48
- this.eventImpl.color = color;
47
+ withColor(color: EventColor) {
48
+ this.eventImpl.color = color
49
49
 
50
- return this;
51
- }
50
+ return this
51
+ }
52
52
 
53
- withColorScheme(colorScheme: string) {
54
- this.eventImpl.colorScheme = colorScheme;
53
+ withColorScheme(colorScheme: string) {
54
+ this.eventImpl.colorScheme = colorScheme
55
55
 
56
- return this;
57
- }
56
+ return this
57
+ }
58
58
 
59
- withDescription(description: string) {
60
- this.eventImpl.description = description;
59
+ withDescription(description: string) {
60
+ this.eventImpl.description = description
61
61
 
62
- return this;
63
- }
62
+ return this
63
+ }
64
64
 
65
- withTopic(topic: string) {
66
- this.eventImpl.topic = topic;
65
+ withTopic(topic: string) {
66
+ this.eventImpl.topic = topic
67
67
 
68
- return this;
69
- }
68
+ return this
69
+ }
70
70
 
71
- withLocation(location: string) {
72
- this.eventImpl.location = location;
71
+ withLocation(location: string) {
72
+ this.eventImpl.location = location
73
73
 
74
- return this;
75
- }
74
+ return this
75
+ }
76
76
 
77
- withWith($with: string) {
78
- this.eventImpl.with = $with;
77
+ withWith($with: string) {
78
+ this.eventImpl.with = $with
79
79
 
80
- return this;
81
- }
80
+ return this
81
+ }
82
82
 
83
- withNOfPreviousConcurrentEvents(nOfPreviousConcurrentEvents: number) {
84
- this.eventImpl.nOfPreviousConcurrentEvents = nOfPreviousConcurrentEvents;
83
+ withNOfPreviousConcurrentEvents(nOfPreviousConcurrentEvents: number) {
84
+ this.eventImpl.nOfPreviousConcurrentEvents = nOfPreviousConcurrentEvents
85
85
 
86
- return this;
87
- }
86
+ return this
87
+ }
88
88
 
89
- withIsEditable(isEditable: boolean) {
90
- this.eventImpl.isEditable = isEditable;
89
+ withIsEditable(isEditable: boolean) {
90
+ this.eventImpl.isEditable = isEditable
91
91
 
92
- return this;
93
- }
92
+ return this
93
+ }
94
94
 
95
- withIsCustom(isCustom: boolean | modeType[]) {
96
- this.eventImpl.isCustom = isCustom;
95
+ withIsCustom(isCustom: boolean | modeType[]) {
96
+ this.eventImpl.isCustom = isCustom
97
97
 
98
- return this;
99
- }
98
+ return this
99
+ }
100
100
 
101
- withDisableDnD(disableDnD: modeType[]) {
102
- this.eventImpl.disableDnD = disableDnD;
101
+ withDisableDnD(disableDnD: modeType[]) {
102
+ this.eventImpl.disableDnD = disableDnD
103
103
 
104
- return this;
105
- }
104
+ return this
105
+ }
106
106
 
107
- withDisableResize(disableResize: modeType[]) {
108
- this.eventImpl.disableResize = disableResize;
107
+ withDisableResize(disableResize: modeType[]) {
108
+ this.eventImpl.disableResize = disableResize
109
109
 
110
- return this;
111
- }
110
+ return this
111
+ }
112
112
  }
@@ -1,9 +1,11 @@
1
+ // ! @natanelyoung PLEASE DON'T USE ENUMS 🙏🏼
2
+ // * please see: https://tduyng.medium.com/why-you-might-be-using-enums-in-typescript-wrong-6d9c5742db5a
1
3
  export enum DAY_MODE {
2
- // a regular day, starting and ending at 0:00 and 24:00
3
- REGULAR = 'regular',
4
- // a day with custom day boundaries, but within an actual calendar day
5
- SHORTENED = 'shortened',
6
- // a day with custom day boundaries, but spanning two actual calendar days,
7
- // for example, a day that starts at 06:00 and ends at 04:00 the day after
8
- FLEXIBLE = 'flexible',
4
+ // a regular day, starting and ending at 0:00 and 24:00
5
+ REGULAR = 'regular',
6
+ // a day with custom day boundaries, but within an actual calendar day
7
+ SHORTENED = 'shortened',
8
+ // a day with custom day boundaries, but spanning two actual calendar days,
9
+ // for example, a day that starts at 06:00 and ends at 04:00 the day after
10
+ FLEXIBLE = 'flexible',
9
11
  }
@@ -1,23 +1,25 @@
1
1
  export interface DOMRect {
2
- bottom: number;
3
- height: number;
4
- left: number;
5
- right: number;
6
- top: number;
7
- width: number;
8
- x: number;
9
- y: number;
2
+ bottom: number
3
+ height: number
4
+ left: number
5
+ right: number
6
+ top: number
7
+ width: number
8
+ x: number
9
+ y: number
10
10
  }
11
11
 
12
- export type modeType = "day" | "week" | "month" | "agenda";
12
+ export type modeType = 'day' | 'week' | 'month' | 'agenda'
13
13
 
14
+ // ! @natanelyoung PLEASE DON'T USE ENUMS 🙏🏼
15
+ // * please see: https://tduyng.medium.com/why-you-might-be-using-enums-in-typescript-wrong-6d9c5742db5a
14
16
  export enum DRAG_N_RESIZE_DIRECTION {
15
- BACKWARDS = "backwards",
16
- FORWARDS = "forwards",
17
+ BACKWARDS = 'backwards',
18
+ FORWARDS = 'forwards',
17
19
  }
18
20
 
19
- export type DayInfo = {
20
- daysTotalN: number;
21
- thisDayIndex: number,
22
- dateTimeString: string
21
+ export interface DayInfo {
22
+ daysTotalN: number
23
+ thisDayIndex: number
24
+ dateTimeString: string
23
25
  }
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" setup>
2
- import { ref, watch, onMounted, nextTick } from 'vue'
3
2
  import type { DraggableEvent } from './useDraggable'
3
+ import { ref, watch, onMounted, nextTick } from 'vue'
4
4
  import { useDraggable } from './useDraggable'
5
5
 
6
6
  const props = withDefaults(defineProps<{
@@ -1,8 +1,8 @@
1
1
  <script lang="ts" setup>
2
2
  import type { BtnOptions } from '@bagelink/vue'
3
+ import type { SetupContext } from 'vue'
3
4
  import {
4
5
  Btn,
5
-
6
6
  Card,
7
7
  Title,
8
8
  useEscape
@@ -11,7 +11,7 @@ import {
11
11
  onMounted,
12
12
  onUnmounted,
13
13
  useSlots,
14
- watch,
14
+ watch
15
15
  } from 'vue'
16
16
  import '../styles/modal.css'
17
17
 
@@ -27,7 +27,7 @@ const props = defineProps<{
27
27
 
28
28
  const emit = defineEmits(['update:visible'])
29
29
 
30
- const slots = useSlots()
30
+ const slots: SetupContext['slots'] = useSlots()
31
31
 
32
32
  let isVisible = $ref<boolean>(false)
33
33
 
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import type { IconType, ThemeType } from '@bagelink/vue'
3
+ import type { SetupContext } from 'vue'
3
4
  import { Btn, Icon } from '@bagelink/vue'
4
5
  import { useSlots } from 'vue'
5
6
 
@@ -26,7 +27,7 @@ const props = defineProps<{
26
27
  btnEnd?: BtnProp
27
28
  }>()
28
29
 
29
- const slots = useSlots()
30
+ const slots: SetupContext['slots'] = useSlots()
30
31
 
31
32
  const computedTheme = $computed(
32
33
  () => {
@@ -33,7 +33,7 @@ function flattenObject(obj: Record<string, any>, prefix = ''): Record<string, an
33
33
  const flattened: Record<string, any> = {}
34
34
 
35
35
  for (const key in obj) {
36
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
36
+ if (Object.hasOwn(obj, key)) {
37
37
  const value = obj[key]
38
38
  const newKey = prefix ? `${prefix}.${key}` : key
39
39
 
@@ -53,7 +53,7 @@ function unflattenObject(obj: Record<string, any>): Record<string, any> {
53
53
  const result: Record<string, any> = {}
54
54
 
55
55
  for (const key in obj) {
56
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
56
+ if (Object.hasOwn(obj, key)) {
57
57
  const keys = key.split('.')
58
58
  let current = result
59
59
 
@@ -32,7 +32,7 @@ const axisConfig = $computed<ChartAxis>(() => ({
32
32
  ticks: 5,
33
33
  domain: ['dataMin', 'dataMax'],
34
34
  tickValues:
35
- props.data.length > 100 ? [''] : props.data.map((d: any) => d.date),
35
+ props.data.length > 100 ? [''] : props.data.map((d: any) => d.date),
36
36
  },
37
37
  secondary: {
38
38
  domain: ['dataMin', 'dataMax * 1.05'],
@@ -364,7 +364,13 @@ function useInputHandling() {
364
364
  }
365
365
 
366
366
  // Initialize input handling
367
- const { inputValue, handleInput, handleFocus, handleClick, handleKeydown } = useInputHandling()
367
+ const {
368
+ // inputValue: unused_inputValue,
369
+ handleInput,
370
+ handleFocus,
371
+ handleClick,
372
+ handleKeydown
373
+ } = useInputHandling()
368
374
 
369
375
  // Initialize remaining composables
370
376
  const { currentMonthDays, currentMonthValue, months, years, weekDays, isSelected, isToday, isNotInMonth } = useCalendarView()
@@ -184,16 +184,16 @@ function selectDate(date: Date | null) {
184
184
  emit('update:modelValue', newDate)
185
185
  }
186
186
 
187
- function handleInput(event: Event) {
188
- const input = event.target as HTMLInputElement
189
- if (!input.value) {
190
- emit('update:modelValue', '')
191
- return
192
- }
193
-
194
- const date = new Date(input.value)
195
- emit('update:modelValue', props.enableTime ? date.toISOString() : date.toISOString().split('T')[0])
196
- }
187
+ // function _UNUSED_handleInput(event: Event) {
188
+ // const input = event.target as HTMLInputElement
189
+ // if (!input.value) {
190
+ // emit('update:modelValue', '')
191
+ // return
192
+ // }
193
+
194
+ // const date = new Date(input.value)
195
+ // emit('update:modelValue', props.enableTime ? date.toISOString() : date.toISOString().split('T')[0])
196
+ // }
197
197
 
198
198
  const hours = $computed(() => selectedDate?.getHours() ?? 0)
199
199
  const minutes = $computed(() => selectedDate?.getMinutes() ?? 0)
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import VDatepicker from '@vuepic/vue-datepicker'
2
+ // import _UNUSED_VDatepicker from '@vuepic/vue-datepicker'
3
3
  import '@vuepic/vue-datepicker/dist/main.css'
4
4
 
5
- const props = defineProps<{
5
+ defineProps<{
6
6
  label?: string
7
7
  id?: string
8
8
  options?: { [key: string]: any }
@@ -14,13 +14,13 @@ const props = defineProps<{
14
14
 
15
15
  const emit = defineEmits(['update:modelValue'])
16
16
 
17
- const selectedDate = $computed({
18
- get: () => props.modelValue || new Date(),
19
- set: (value: Date) => {
20
- // console.log(value)
21
- emit('update:modelValue', value)
22
- },
23
- })
17
+ // const _UNUSED_selectedDate = $computed({
18
+ // get: () => props.modelValue || new Date(),
19
+ // set: (value: Date) => {
20
+ // // console.log(value)
21
+ // emit('update:modelValue', value)
22
+ // },
23
+ // })
24
24
  const selectedHour = $ref()
25
25
 
26
26
  const hours = Array.from({ length: 18 }, (_, index) => {
@@ -1,28 +1,10 @@
1
1
  <script setup lang="ts">
2
- import type { BglFile, QueueFile } from './upload.types'
2
+ import type { BglFile, QueueFile, UploadInputProps } from './upload.types'
3
3
  import { Btn, IMAGE_FORMATS_REGEXP, Icon, useBagel, Card, Image, pathKeyToURL } from '@bagelink/vue'
4
4
  import { watch } from 'vue'
5
5
  import { files } from './upload'
6
6
 
7
- const props = withDefaults(defineProps<{
8
- label?: string
9
- multiple?: boolean
10
- modelValue?: string | string[]
11
- width?: string
12
- height?: string | 'auto'
13
- dirPath?: string
14
- fill?: boolean
15
- oval?: boolean
16
- theme?: 'dropzone' | 'basic'
17
- accept?: string
18
- required?: boolean
19
- disabled?: boolean
20
- baseURL?: string
21
- dropPlaceholder?: string
22
- noFilePlaceholder?: string
23
- btnPlaceholder?: string
24
-
25
- }>(), {
7
+ const props = withDefaults(defineProps<UploadInputProps>(), {
26
8
  height: '215px',
27
9
  theme: 'dropzone',
28
10
  accept: '*'
@@ -41,3 +41,23 @@ export interface QueueFile {
41
41
  name?: string
42
42
  uploaded?: boolean
43
43
  }
44
+
45
+
46
+ export interface UploadInputProps {
47
+ label?: string
48
+ multiple?: boolean
49
+ modelValue?: string | string[]
50
+ width?: string
51
+ height?: string | 'auto'
52
+ dirPath?: string
53
+ fill?: boolean
54
+ oval?: boolean
55
+ theme?: 'dropzone' | 'basic'
56
+ accept?: string
57
+ required?: boolean
58
+ disabled?: boolean
59
+ baseURL?: string
60
+ dropPlaceholder?: string
61
+ noFilePlaceholder?: string
62
+ btnPlaceholder?: string
63
+ }
@@ -1,5 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import type { NavLink } from '@bagelink/vue'
3
+ import type { SetupContext } from 'vue'
3
4
  import { Btn, Card, Icon, useDebounceFn } from '@bagelink/vue'
4
5
  import { useSlots } from 'vue'
5
6
 
@@ -11,7 +12,7 @@ const props = defineProps<{
11
12
 
12
13
  const emit = defineEmits(['update:open'])
13
14
 
14
- const slots = useSlots()
15
+ const slots: SetupContext['slots'] = useSlots()
15
16
 
16
17
  let isOpen = $ref(props.open)
17
18
  const toggleMenu = useDebounceFn(() => {
@@ -14,9 +14,10 @@ const {
14
14
  borderRadius?: string
15
15
  class?: string
16
16
  }>()
17
+ import type { SetupContext } from 'vue'
17
18
  import { useSlots } from 'vue'
18
19
 
19
- const slots = useSlots()
20
+ const slots: SetupContext['slots'] = useSlots()
20
21
  </script>
21
22
 
22
23
  <template>
@@ -94,12 +94,12 @@ export function useSchemaField<T extends { [key: string]: any }>(options: UseSch
94
94
  }
95
95
 
96
96
  const {
97
- $el,
97
+ // $el,
98
98
  children,
99
- options,
100
- attrs,
99
+ // options,
100
+ // attrs,
101
101
  class: fieldClass,
102
- id,
102
+ // id,
103
103
  transform,
104
104
  slots: fieldSlots,
105
105
  required,
@@ -201,10 +201,10 @@ export function useSchemaField<T extends { [key: string]: any }>(options: UseSch
201
201
  if (Array.isArray(slot)) {
202
202
  // Handle BglFormSchemaT array
203
203
  return slot.map(schemaField => renderField(schemaField as BaseBagelField<T>, slots))
204
- } else if (isVNode(slot)) {
204
+ } if (isVNode(slot)) {
205
205
  // Handle VNode
206
206
  return slot
207
- } else if (typeof slot === 'function') {
207
+ } if (typeof slot === 'function') {
208
208
  // Handle function slot
209
209
  const slotFn = slot as (props: SlotProps<T>) => any
210
210
  return slotFn({ row: rowData, field })
@@ -7,7 +7,7 @@ interface PatternValue {
7
7
 
8
8
  const DEFAULT_PATTERNS: Record<string, PatternValue> = {
9
9
  pint: { pattern: /\d/ },
10
- int: { pattern: /[\d\-]/ },
10
+ int: { pattern: /[\d-]/ },
11
11
  pnum: { pattern: /[\d.]/ },
12
12
  money: { pattern: /[\d.\s,]/ },
13
13
  number: { pattern: /[\d\-.]/ },