@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.
- package/dist/components/Accordion.d.ts +12 -0
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/AccordionItem.d.ts +34 -0
- package/dist/components/AccordionItem.d.ts.map +1 -0
- package/dist/components/Alert.d.ts +34 -0
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/components/Avatar.d.ts +36 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Badge.d.ts +22 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/BglVideo.d.ts +20 -0
- package/dist/components/BglVideo.d.ts.map +1 -0
- package/dist/components/Btn.d.ts +99 -0
- package/dist/components/Btn.d.ts.map +1 -0
- package/dist/components/Calendar/Index.vue.d.ts.map +1 -1
- package/dist/components/Calendar/models/Event.d.ts.map +1 -1
- package/dist/components/Calendar/typings/interfaces/time-modes.d.ts.map +1 -1
- package/dist/components/Calendar/typings/types.d.ts +3 -3
- package/dist/components/Calendar/typings/types.d.ts.map +1 -1
- package/dist/components/Card.d.ts +39 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Carousel.d.ts +74 -0
- package/dist/components/Carousel.d.ts.map +1 -0
- package/dist/components/ComboBox.vue.d.ts +3 -3
- package/dist/components/Comments.vue.d.ts +2 -2
- package/dist/components/ContactSubmissions.vue.d.ts +2 -2
- package/dist/components/DataPreview.d.ts +42 -0
- package/dist/components/DataPreview.d.ts.map +1 -0
- package/dist/components/Draggable/Draggable.vue.d.ts.map +1 -1
- package/dist/components/Drop.vue.d.ts +34 -0
- package/dist/components/Drop.vue.d.ts.map +1 -0
- package/dist/components/FileUploader.vue.d.ts +60 -0
- package/dist/components/FileUploader.vue.d.ts.map +1 -0
- package/dist/components/Flag.d.ts +20 -0
- package/dist/components/Flag.d.ts.map +1 -0
- package/dist/components/FormSchema.vue.d.ts +5 -4
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/ListItem.d.ts +34 -0
- package/dist/components/ListItem.d.ts.map +1 -0
- package/dist/components/ListView.d.ts +13 -0
- package/dist/components/ListView.d.ts.map +1 -0
- package/dist/components/MapEmbed.d.ts +3 -0
- package/dist/components/MapEmbed.d.ts.map +1 -0
- package/dist/components/MaterialIcon.d.ts +26 -0
- package/dist/components/MaterialIcon.d.ts.map +1 -0
- package/dist/components/Modal.d.ts +46 -0
- package/dist/components/Modal.d.ts.map +1 -0
- package/dist/components/ModalBglForm.vue.d.ts +21 -20
- package/dist/components/ModalConfirm.d.ts +24 -0
- package/dist/components/ModalConfirm.d.ts.map +1 -0
- package/dist/components/ModalForm.d.ts +78 -0
- package/dist/components/ModalForm.d.ts.map +1 -0
- package/dist/components/NavBar.d.ts +64 -0
- package/dist/components/NavBar.d.ts.map +1 -0
- package/dist/components/PageTitle.d.ts +24 -0
- package/dist/components/PageTitle.d.ts.map +1 -0
- package/dist/components/PersonPreview.vue.d.ts +5 -4
- package/dist/components/PersonPreviewFormkit.vue.d.ts +4 -3
- package/dist/components/Pill.vue.d.ts.map +1 -1
- package/dist/components/RTXEditor.vue.d.ts +3 -3
- package/dist/components/RouterWrapper.d.ts +3 -0
- package/dist/components/RouterWrapper.d.ts.map +1 -0
- package/dist/components/TabbedLayout.vue.d.ts +5 -4
- package/dist/components/TableSchema.d.ts +35 -0
- package/dist/components/TableSchema.d.ts.map +1 -0
- package/dist/components/TableSchema.vue.d.ts +2 -2
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/Title.d.ts +42 -0
- package/dist/components/Title.d.ts.map +1 -0
- package/dist/components/TopBar.d.ts +12 -0
- package/dist/components/TopBar.d.ts.map +1 -0
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/dashboard/Lineart.d.ts +20 -0
- package/dist/components/dashboard/Lineart.d.ts.map +1 -0
- package/dist/components/dialog/index.d.ts.map +1 -1
- package/dist/components/form/BglField.d.ts +25 -0
- package/dist/components/form/BglField.d.ts.map +1 -0
- package/dist/components/form/BglForm.d.ts +75 -0
- package/dist/components/form/BglForm.d.ts.map +1 -0
- package/dist/components/form/ItemRef.vue.d.ts +5 -3
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/MaterialIcon.vue.d.ts +4 -3
- package/dist/components/form/PlainInputField.vue.d.ts +3 -3
- package/dist/components/form/inputs/CheckInput.d.ts +56 -0
- package/dist/components/form/inputs/CheckInput.d.ts.map +1 -0
- package/dist/components/form/inputs/Checkbox.d.ts +16 -0
- package/dist/components/form/inputs/Checkbox.d.ts.map +1 -0
- package/dist/components/form/inputs/ColorPicker.d.ts +48 -0
- package/dist/components/form/inputs/ColorPicker.d.ts.map +1 -0
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DateInput.d.ts +64 -0
- package/dist/components/form/inputs/DateInput.d.ts.map +1 -0
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePick.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.d.ts +33 -0
- package/dist/components/form/inputs/DatePicker.d.ts.map +1 -0
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/FileUpload.d.ts +108 -0
- package/dist/components/form/inputs/FileUpload.d.ts.map +1 -0
- package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/JSONInput.d.ts +53 -0
- package/dist/components/form/inputs/JSONInput.d.ts.map +1 -0
- package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/Password.vue.d.ts +3 -3
- package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
- package/dist/components/form/inputs/RadioGroup.d.ts +42 -0
- package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -0
- package/dist/components/form/inputs/RadioPillsInput.d.ts +48 -0
- package/dist/components/form/inputs/RadioPillsInput.d.ts.map +1 -0
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichText.d.ts +20 -0
- package/dist/components/form/inputs/RichText.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts +22 -0
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.d.ts +24 -0
- package/dist/components/form/inputs/RichText2/index.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/index.vue.d.ts +1 -0
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
- package/dist/components/form/inputs/SelectField.vue.d.ts +6 -8
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.d.ts +55 -0
- package/dist/components/form/inputs/SelectInput.d.ts.map +1 -0
- package/dist/components/form/inputs/SignaturePad.d.ts +72 -0
- package/dist/components/form/inputs/SignaturePad.d.ts.map +1 -0
- package/dist/components/form/inputs/TableField.d.ts +45 -0
- package/dist/components/form/inputs/TableField.d.ts.map +1 -0
- package/dist/components/form/inputs/TelInput.d.ts +241 -0
- package/dist/components/form/inputs/TelInput.d.ts.map +1 -0
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- package/dist/components/form/inputs/TextInput.d.ts +90 -0
- package/dist/components/form/inputs/TextInput.d.ts.map +1 -0
- package/dist/components/form/inputs/ToggleInput.d.ts +58 -0
- package/dist/components/form/inputs/ToggleInput.d.ts.map +1 -0
- package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts +3 -20
- package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts.map +1 -1
- package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
- package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
- package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
- package/dist/components/formkit/Toggle.vue.d.ts +2 -2
- package/dist/components/layout/BottomMenu.d.ts +27 -0
- package/dist/components/layout/BottomMenu.d.ts.map +1 -0
- package/dist/components/layout/Layout.d.ts +58 -0
- package/dist/components/layout/Layout.d.ts.map +1 -0
- package/dist/components/layout/SidebarMenu.d.ts +38 -0
- package/dist/components/layout/SidebarMenu.d.ts.map +1 -0
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/layout/TabbedLayout.d.ts +42 -0
- package/dist/components/layout/TabbedLayout.d.ts.map +1 -0
- package/dist/components/layout/Tabs.d.ts +31 -0
- package/dist/components/layout/Tabs.d.ts.map +1 -0
- package/dist/components/layout/TabsBody.d.ts +23 -0
- package/dist/components/layout/TabsBody.d.ts.map +1 -0
- package/dist/components/layout/TabsNav.d.ts +35 -0
- package/dist/components/layout/TabsNav.d.ts.map +1 -0
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +4 -3
- package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
- package/dist/index.cjs +1164 -9719
- package/dist/index.mjs +1165 -9720
- package/dist/style.css +370 -125
- package/dist/styles.css +14073 -0
- package/dist/utils/BagelFormUtils.d.ts +16 -4
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/dist/utils/objects.d.ts +1 -0
- package/dist/vue.css +14073 -0
- package/package.json +5 -5
- package/src/components/Calendar/Index.vue +1 -1
- package/src/components/Calendar/helpers/EventConcurrency.ts +1 -1
- package/src/components/Calendar/helpers/Time.ts +2 -2
- package/src/components/Calendar/models/Event.ts +80 -80
- package/src/components/Calendar/typings/interfaces/time-modes.ts +9 -7
- package/src/components/Calendar/typings/types.ts +17 -15
- package/src/components/Draggable/Draggable.vue +1 -1
- package/src/components/Modal.vue +3 -3
- package/src/components/Pill.vue +2 -1
- package/src/components/Spreadsheet/Index.vue +2 -2
- package/src/components/dashboard/Lineart.vue +1 -1
- package/src/components/form/inputs/DateInput.vue +7 -1
- package/src/components/form/inputs/DatePick.vue +10 -10
- package/src/components/form/inputs/DatePicker.vue +9 -9
- package/src/components/form/inputs/Upload/UploadInput.vue +2 -20
- package/src/components/form/inputs/Upload/upload.types.d.ts +20 -0
- package/src/components/layout/SidebarMenu.vue +2 -1
- package/src/components/layout/Skeleton.vue +2 -1
- package/src/composables/useSchemaField.ts +6 -6
- package/src/directives/pattern.ts +1 -1
- package/src/styles/layout.css +169 -0
- package/src/styles/mobilLayout.css +161 -0
- package/src/utils/BagelFormUtils.ts +2 -3
- package/vite.config.ts +1 -1
- package/dist/common-C_IH8b5S.cjs +0 -12580
- package/dist/common-DoeNgx31.js +0 -12579
- package/dist/components/AddressSaerch.vue.d.ts +0 -7
- package/dist/components/AddressSaerch.vue.d.ts.map +0 -1
- package/dist/components/Calendar/index.d.ts +0 -4
- package/dist/components/Calendar/index.d.ts.map +0 -1
- package/dist/components/Popover.vue.d.ts +0 -10
- package/dist/components/Popover.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts +0 -14
- package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText/formatting.d.ts +0 -11
- package/dist/components/form/inputs/RichText/formatting.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText/richtext-types.d.ts +0 -3
- package/dist/components/form/inputs/RichText/richtext-types.d.ts.map +0 -1
- package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts +0 -86
- package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts.map +0 -1
- package/dist/components/sortable/Animation.d.ts +0 -43
- package/dist/components/sortable/Animation.d.ts.map +0 -1
- package/dist/components/sortable/BrowserInfo.d.ts +0 -7
- package/dist/components/sortable/BrowserInfo.d.ts.map +0 -1
- package/dist/components/sortable/EventDispatcher.d.ts +0 -13
- package/dist/components/sortable/EventDispatcher.d.ts.map +0 -1
- package/dist/components/sortable/PluginManager.d.ts +0 -27
- package/dist/components/sortable/PluginManager.d.ts.map +0 -1
- package/dist/components/sortable/Sortable.d.ts +0 -81
- package/dist/components/sortable/Sortable.d.ts.map +0 -1
- package/dist/components/sortable/index.d.ts +0 -5
- package/dist/components/sortable/index.d.ts.map +0 -1
- package/dist/components/sortable/utils.d.ts +0 -49
- package/dist/components/sortable/utils.d.ts.map +0 -1
- package/dist/composables/drag-n-drop/useDraggable.d.ts +0 -2
- package/dist/composables/drag-n-drop/useDraggable.d.ts.map +0 -1
- package/dist/editor-CUDRLdmS.js +0 -4
- package/dist/editor-Cu374vEW.cjs +0 -4
- package/dist/editor-a8DSbb6P.js +0 -4
- package/dist/editor-xBt_vIha.cjs +0 -4
- package/dist/heic2any-8wMqMfB_.js +0 -933
- package/dist/heic2any-BrqcNzfV.js +0 -935
- package/dist/heic2any-C8KwH72N.cjs +0 -934
- package/dist/heic2any-k9wDCKka.cjs +0 -932
- package/dist/index-DiG-xM9T.cjs +0 -35016
- package/dist/index-nGuSAiY2.js +0 -35017
- package/dist/plugins/drag-n-drop/draggable.d.ts +0 -4
- package/dist/plugins/drag-n-drop/draggable.d.ts.map +0 -1
- package/dist/plugins/drag-n-drop/droppable.d.ts +0 -4
- package/dist/plugins/drag-n-drop/droppable.d.ts.map +0 -1
- package/dist/plugins/drag-n-drop/index.d.ts +0 -5
- package/dist/plugins/drag-n-drop/index.d.ts.map +0 -1
- package/dist/plugins/drag-n-drop/useDraggable.d.ts +0 -8
- package/dist/plugins/drag-n-drop/useDraggable.d.ts.map +0 -1
- package/dist/plugins/drag-n-drop/useDroppable.d.ts +0 -7
- package/dist/plugins/drag-n-drop/useDroppable.d.ts.map +0 -1
- package/dist/types/materialIcon.d.ts +0 -2
- package/dist/types/materialIcon.d.ts.map +0 -1
- package/src/components/Calendar/env.d.ts +0 -8
- /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.
|
|
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": "^
|
|
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.
|
|
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.
|
|
85
|
+
"@vueuse/core": "^12.7.0",
|
|
86
86
|
"axios": "^1.7.9",
|
|
87
87
|
"floating-vue": "^5.2.2",
|
|
88
|
-
"libphonenumber-js": "1.11.
|
|
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
|
|
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
|
|
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
|
-
|
|
79
|
-
|
|
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
|
|
2
|
-
import type {modeType} from
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
27
|
+
private eventImpl: EventImpl
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
build() {
|
|
38
|
+
return this.eventImpl
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
withTitle(title: string) {
|
|
42
|
+
this.eventImpl.title = title
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
return this
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
withColor(color: EventColor) {
|
|
48
|
+
this.eventImpl.color = color
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
return this
|
|
51
|
+
}
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
withColorScheme(colorScheme: string) {
|
|
54
|
+
this.eventImpl.colorScheme = colorScheme
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
return this
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
withDescription(description: string) {
|
|
60
|
+
this.eventImpl.description = description
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
return this
|
|
63
|
+
}
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
withTopic(topic: string) {
|
|
66
|
+
this.eventImpl.topic = topic
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
return this
|
|
69
|
+
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
withLocation(location: string) {
|
|
72
|
+
this.eventImpl.location = location
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
return this
|
|
75
|
+
}
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
withWith($with: string) {
|
|
78
|
+
this.eventImpl.with = $with
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
return this
|
|
81
|
+
}
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
withNOfPreviousConcurrentEvents(nOfPreviousConcurrentEvents: number) {
|
|
84
|
+
this.eventImpl.nOfPreviousConcurrentEvents = nOfPreviousConcurrentEvents
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
return this
|
|
87
|
+
}
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
withIsEditable(isEditable: boolean) {
|
|
90
|
+
this.eventImpl.isEditable = isEditable
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
return this
|
|
93
|
+
}
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
withIsCustom(isCustom: boolean | modeType[]) {
|
|
96
|
+
this.eventImpl.isCustom = isCustom
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
return this
|
|
99
|
+
}
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
withDisableDnD(disableDnD: modeType[]) {
|
|
102
|
+
this.eventImpl.disableDnD = disableDnD
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
return this
|
|
105
|
+
}
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
withDisableResize(disableResize: modeType[]) {
|
|
108
|
+
this.eventImpl.disableResize = disableResize
|
|
109
109
|
|
|
110
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 =
|
|
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
|
-
|
|
16
|
-
|
|
17
|
+
BACKWARDS = 'backwards',
|
|
18
|
+
FORWARDS = 'forwards',
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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<{
|
package/src/components/Modal.vue
CHANGED
|
@@ -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
|
|
package/src/components/Pill.vue
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
-
|
|
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 {
|
|
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
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
|
2
|
+
// import _UNUSED_VDatepicker from '@vuepic/vue-datepicker'
|
|
3
3
|
import '@vuepic/vue-datepicker/dist/main.css'
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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(() => {
|
|
@@ -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
|
-
}
|
|
204
|
+
} if (isVNode(slot)) {
|
|
205
205
|
// Handle VNode
|
|
206
206
|
return slot
|
|
207
|
-
}
|
|
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\-.]/ },
|