@bagelink/vue 1.0.54 → 1.0.60
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/AddressSearch.vue.d.ts +9 -9
- package/dist/components/Alert.vue.d.ts +1 -1
- package/dist/components/Badge.vue.d.ts +1 -1
- package/dist/components/Btn.vue.d.ts +1 -1
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/{DropDown.vue.d.ts → Dropdown.vue.d.ts} +1 -1
- package/dist/components/Icon/Icon.vue.d.ts +1 -1
- package/dist/components/ListItem.vue.d.ts +1 -1
- package/dist/components/{MapEmbed.vue.d.ts → MapEmbed/Index.vue.d.ts} +1 -1
- package/dist/components/MapEmbed/Index.vue.d.ts.map +1 -0
- package/dist/components/Modal.vue.d.ts +1 -1
- package/dist/components/ModalConfirm.vue.d.ts +1 -1
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts +1 -1
- package/dist/components/Pill.vue.d.ts +1 -1
- package/dist/components/Spreadsheet/Index.vue.d.ts +4 -4
- package/dist/components/{Calendar → calendar}/Index.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/header/Header.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/month/AgendaEventTile.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/month/AgendaEvents.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/month/Day.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/month/Event.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/month/Month.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/month/WeekDay.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/partials/EventFlyout.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/week/Day.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/week/DayEvent.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/week/DayTimeline.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/week/FullDayEvent.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/week/Week.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/components/week/WeekTimeline.vue.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/constants.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/DayIntervals.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/EDate.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/Errors.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/EventChange.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/EventConcurrency.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/EventFlyoutPosition.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/EventPosition.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/EventsFilter.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/Helpers.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/Time.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/helpers/Week.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/language/index.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/language/keys.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/models/Event.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/typings/config.interface.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/typings/interfaces/day.interface.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/typings/interfaces/event.interface.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/typings/interfaces/full-day-events-week.type.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/typings/interfaces/period.interface.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/typings/interfaces/time-modes.d.ts.map +1 -1
- package/dist/components/{Calendar → calendar}/typings/types.d.ts.map +1 -1
- package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -0
- package/dist/components/{DataTable → dataTable}/tableTypes.d.ts +1 -1
- package/dist/components/{DataTable → dataTable}/tableTypes.d.ts.map +1 -1
- package/dist/components/{DataTable → dataTable}/useSorting.d.ts.map +1 -1
- package/dist/components/{DataTable → dataTable}/useTableData.d.ts.map +1 -1
- package/dist/components/{DataTable → dataTable}/useTableSelection.d.ts.map +1 -1
- package/dist/components/{DataTable → dataTable}/useTableVirtualization.d.ts.map +1 -1
- package/dist/components/dialog/index.d.ts.map +1 -1
- package/dist/components/{Draggable → draggable}/Draggable.vue.d.ts.map +1 -1
- package/dist/components/{Draggable → draggable}/index.d.ts.map +1 -1
- package/dist/components/{Draggable → draggable}/useDraggable.d.ts.map +1 -1
- package/dist/components/{Draggable → draggable}/vDraggable.d.ts.map +1 -1
- package/dist/components/form/BagelForm.vue.d.ts +1 -1
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
- package/dist/components/form/FieldArray.vue.d.ts +1 -1
- package/dist/components/form/FieldArray.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +2 -4
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePick.vue.d.ts +2 -2
- package/dist/components/form/inputs/FileUpload.vue.d.ts +1 -1
- package/dist/components/form/inputs/NumberInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/OTP.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/PhoneInput.vue.d.ts +4 -4
- package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/RichText/utils/media.d.ts +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +7 -7
- package/dist/components/form/inputs/TextInput.vue.d.ts +1 -1
- package/dist/components/form/useBagelFormState.d.ts +1 -1
- package/dist/components/form/useBagelFormState.d.ts.map +1 -1
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/BottomMenu.vue.d.ts +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts +1 -1
- package/dist/components/layout/Tabs.vue.d.ts +1 -1
- package/dist/components/layout/TabsNav.vue.d.ts +1 -1
- package/dist/components/lightbox/index.d.ts +3 -5
- package/dist/components/lightbox/index.d.ts.map +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/useFormField.d.ts +1 -1
- package/dist/index.cjs +737 -736
- package/dist/index.mjs +738 -737
- package/dist/plugins/bagel.d.ts +3 -3
- package/dist/plugins/bagel.d.ts.map +1 -1
- package/dist/plugins/modalTypes.d.ts +1 -1
- package/dist/style.css +204 -205
- package/dist/types/BagelForm.d.ts +1 -1
- package/dist/types/NavLink.d.ts +1 -1
- package/dist/types/TableSchema.d.ts +1 -1
- package/dist/utils/BagelFormUtils.d.ts +9 -4
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/timeAgo.d.ts.map +1 -1
- package/package.json +7 -6
- package/src/components/DataPreview.vue +1 -1
- package/src/components/{MapEmbed.vue → MapEmbed/Index.vue} +1 -1
- package/src/components/{Calendar → calendar}/Index.vue +1 -1
- package/src/components/{Calendar → calendar}/models/Event.ts +1 -1
- package/src/components/form/inputs/DateInput.vue +46 -55
- package/src/components/form/inputs/DatePick.vue +2 -2
- package/src/components/form/inputs/NumberInput.vue +3 -3
- package/src/components/form/inputs/OTP.vue +1 -2
- package/src/components/form/inputs/RichText/utils/media.ts +8 -8
- package/src/components/form/inputs/TelInput.vue +4 -4
- package/src/components/form/inputs/Upload/UploadInput.vue +2 -2
- package/src/components/form/useBagelFormState.ts +2 -2
- package/src/components/index.ts +5 -6
- package/src/components/lightbox/index.ts +5 -2
- package/src/plugins/bagel.ts +9 -10
- package/src/utils/BagelFormUtils.ts +10 -1
- package/src/utils/timeAgo.ts +9 -17
- package/tsconfig.json +3 -1
- package/vite.config.ts +14 -6
- 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/BglComponent.vue.d.ts +0 -24
- package/dist/components/BglComponent.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/ComboBox.vue.d.ts +0 -45
- package/dist/components/ComboBox.vue.d.ts.map +0 -1
- package/dist/components/Comments.vue.d.ts +0 -20
- package/dist/components/Comments.vue.d.ts.map +0 -1
- package/dist/components/ContactSubmissions.vue.d.ts +0 -13
- package/dist/components/ContactSubmissions.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +0 -1
- package/dist/components/FormSchema.vue.d.ts +0 -27
- package/dist/components/FormSchema.vue.d.ts.map +0 -1
- package/dist/components/LangText.vue.d.ts +0 -16
- package/dist/components/LangText.vue.d.ts.map +0 -1
- package/dist/components/MapEmbed.vue.d.ts.map +0 -1
- package/dist/components/MaterialIcon.vue.d.ts +0 -11
- package/dist/components/MaterialIcon.vue.d.ts.map +0 -1
- package/dist/components/ModalBglForm.vue.d.ts +0 -63
- package/dist/components/ModalBglForm.vue.d.ts.map +0 -1
- package/dist/components/PersonPreview.vue.d.ts +0 -22
- package/dist/components/PersonPreview.vue.d.ts.map +0 -1
- package/dist/components/PersonPreviewFormkit.vue.d.ts +0 -21
- package/dist/components/PersonPreviewFormkit.vue.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/RTXEditor.vue.d.ts +0 -41
- package/dist/components/RTXEditor.vue.d.ts.map +0 -1
- package/dist/components/TabbedLayout.vue.d.ts +0 -38
- package/dist/components/TabbedLayout.vue.d.ts.map +0 -1
- package/dist/components/TableSchema.vue.d.ts +0 -40
- package/dist/components/TableSchema.vue.d.ts.map +0 -1
- package/dist/components/charts/BarChart.vue.d.ts +0 -34
- package/dist/components/charts/BarChart.vue.d.ts.map +0 -1
- package/dist/components/charts/index.d.ts +0 -2
- package/dist/components/charts/index.d.ts.map +0 -1
- package/dist/components/form/BglField.vue.d.ts +0 -22
- package/dist/components/form/BglField.vue.d.ts.map +0 -1
- package/dist/components/form/BglForm.vue.d.ts +0 -70
- package/dist/components/form/BglForm.vue.d.ts.map +0 -1
- package/dist/components/form/BglMultiStepForm.vue.d.ts +0 -50
- package/dist/components/form/BglMultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/form/ItemRef.vue.d.ts +0 -21
- package/dist/components/form/ItemRef.vue.d.ts.map +0 -1
- package/dist/components/form/MaterialIcon.vue.d.ts +0 -19
- package/dist/components/form/MaterialIcon.vue.d.ts.map +0 -1
- package/dist/components/form/PlainInputField.vue.d.ts +0 -30
- package/dist/components/form/PlainInputField.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/ColorPicker.vue.d.ts +0 -21
- package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +0 -42
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +0 -53
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/DurationInput.vue.d.ts +0 -53
- package/dist/components/form/inputs/DurationInput.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +0 -56
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/EmailInput.vue.d.ts +0 -53
- package/dist/components/form/inputs/EmailInput.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/FloatInput.vue.d.ts +0 -53
- package/dist/components/form/inputs/FloatInput.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/IntInput.vue.d.ts +0 -53
- package/dist/components/form/inputs/IntInput.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/LinkField.vue.d.ts +0 -64
- package/dist/components/form/inputs/LinkField.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/Password.vue.d.ts +0 -46
- package/dist/components/form/inputs/Password.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/PlainText.vue.d.ts +0 -46
- package/dist/components/form/inputs/PlainText.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +0 -20
- package/dist/components/form/inputs/ReadOnlyInput.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/components/Toolbar.vue.d.ts +0 -12
- package/dist/components/form/inputs/RichText/components/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/RichText.vue.d.ts +0 -11
- package/dist/components/form/inputs/RichText.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts +0 -12
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/formatting.d.ts +0 -11
- package/dist/components/form/inputs/RichText2/formatting.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts +0 -14
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/richtext-types.d.ts +0 -3
- package/dist/components/form/inputs/RichText2/richtext-types.d.ts.map +0 -1
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +0 -53
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts +0 -55
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +0 -92
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +0 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +0 -59
- package/dist/components/form/inputs/TextArea.vue.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/formkit/AddressArray.vue.d.ts +0 -35
- package/dist/components/formkit/AddressArray.vue.d.ts.map +0 -1
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +0 -37
- package/dist/components/formkit/BankDetailsArray.vue.d.ts.map +0 -1
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +0 -33
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts.map +0 -1
- package/dist/components/formkit/FileUploader.vue.d.ts +0 -42
- package/dist/components/formkit/FileUploader.vue.d.ts.map +0 -1
- package/dist/components/formkit/MiscFields.vue.d.ts +0 -18
- package/dist/components/formkit/MiscFields.vue.d.ts.map +0 -1
- package/dist/components/formkit/Toggle.vue.d.ts +0 -7
- package/dist/components/formkit/Toggle.vue.d.ts.map +0 -1
- package/dist/components/formkit/index.d.ts +0 -2
- package/dist/components/formkit/index.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/components/whatsapp/form/MsgTemplate.vue.d.ts +0 -39
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts.map +0 -1
- package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +0 -7
- package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts.map +0 -1
- package/dist/components/whatsapp/index.d.ts +0 -1
- package/dist/components/whatsapp/index.d.ts.map +0 -1
- package/dist/components/whatsapp/interfaces.d.ts +0 -50
- package/dist/components/whatsapp/interfaces.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-B3mMCQSg.cjs +0 -4
- package/dist/editor-BKPRpAjr.js +0 -4
- package/dist/editor-BPwswoA2.cjs +0 -4
- package/dist/editor-CUDRLdmS.js +0 -4
- package/dist/editor-ChLRSWzW.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/plugins/ripple.d.ts +0 -4
- package/dist/plugins/ripple.d.ts.map +0 -1
- package/dist/types/BagelField.d.ts +0 -33
- package/dist/types/BagelField.d.ts.map +0 -1
- package/dist/types/Person.d.ts +0 -48
- package/dist/types/Person.d.ts.map +0 -1
- package/dist/types/materialIcon.d.ts +0 -2
- package/dist/types/materialIcon.d.ts.map +0 -1
- package/dist/types/materialIcons.d.ts +0 -2
- package/dist/types/materialIcons.d.ts.map +0 -1
- package/dist/utils/objects.d.ts +0 -4
- package/dist/utils/objects.d.ts.map +0 -1
- /package/dist/components/{DropDown.vue.d.ts.map → Dropdown.vue.d.ts.map} +0 -0
- /package/dist/components/{Calendar → calendar}/Index.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/header/Header.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/month/AgendaEventTile.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/month/AgendaEvents.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/month/Day.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/month/Event.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/month/Month.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/month/WeekDay.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/partials/EventFlyout.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/week/Day.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/week/DayEvent.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/week/DayTimeline.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/week/FullDayEvent.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/week/Week.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/components/week/WeekTimeline.vue.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/constants.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/DayIntervals.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/EDate.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/Errors.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/EventChange.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/EventConcurrency.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/EventFlyoutPosition.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/EventPosition.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/EventsFilter.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/Helpers.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/Time.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/helpers/Week.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/language/index.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/language/keys.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/models/Event.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/typings/config.interface.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/typings/interfaces/day.interface.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/typings/interfaces/event.interface.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/typings/interfaces/full-day-events-week.type.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/typings/interfaces/period.interface.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/typings/interfaces/time-modes.d.ts +0 -0
- /package/dist/components/{Calendar → calendar}/typings/types.d.ts +0 -0
- /package/dist/components/{DataTable → dataTable}/DataTable.vue.d.ts +0 -0
- /package/dist/components/{DataTable → dataTable}/useSorting.d.ts +0 -0
- /package/dist/components/{DataTable → dataTable}/useTableData.d.ts +0 -0
- /package/dist/components/{DataTable → dataTable}/useTableSelection.d.ts +0 -0
- /package/dist/components/{DataTable → dataTable}/useTableVirtualization.d.ts +0 -0
- /package/dist/components/{Draggable → draggable}/Draggable.vue.d.ts +0 -0
- /package/dist/components/{Draggable → draggable}/index.d.ts +0 -0
- /package/dist/components/{Draggable → draggable}/useDraggable.d.ts +0 -0
- /package/dist/components/{Draggable → draggable}/vDraggable.d.ts +0 -0
- /package/src/components/{leaflet → MapEmbed}/leaflet.css +0 -0
- /package/src/components/{Calendar → calendar}/assets/base.css +0 -0
- /package/src/components/{Calendar → calendar}/components/header/Header.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/month/AgendaEventTile.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/month/AgendaEvents.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/month/Day.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/month/Event.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/month/Month.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/month/WeekDay.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/partials/EventFlyout.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/week/Day.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/week/DayEvent.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/week/DayTimeline.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/week/FullDayEvent.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/week/Week.vue +0 -0
- /package/src/components/{Calendar → calendar}/components/week/WeekTimeline.vue +0 -0
- /package/src/components/{Calendar → calendar}/constants.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/DayIntervals.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/EDate.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/Errors.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/EventChange.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/EventConcurrency.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/EventFlyoutPosition.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/EventPosition.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/EventsFilter.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/Helpers.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/Time.ts +0 -0
- /package/src/components/{Calendar → calendar}/helpers/Week.ts +0 -0
- /package/src/components/{Calendar → calendar}/language/index.ts +0 -0
- /package/src/components/{Calendar → calendar}/language/keys.ts +0 -0
- /package/src/components/{Calendar → calendar}/styles/_mixins.css +0 -0
- /package/src/components/{Calendar → calendar}/styles/_variables.css +0 -0
- /package/src/components/{Calendar → calendar}/typings/config.interface.ts +0 -0
- /package/src/components/{Calendar → calendar}/typings/interfaces/day.interface.ts +0 -0
- /package/src/components/{Calendar → calendar}/typings/interfaces/event.interface.ts +0 -0
- /package/src/components/{Calendar → calendar}/typings/interfaces/full-day-events-week.type.ts +0 -0
- /package/src/components/{Calendar → calendar}/typings/interfaces/period.interface.ts +0 -0
- /package/src/components/{Calendar → calendar}/typings/interfaces/time-modes.ts +0 -0
- /package/src/components/{Calendar → calendar}/typings/types.ts +0 -0
- /package/src/components/{DataTable → dataTable}/DataTable.vue +0 -0
- /package/src/components/{DataTable → dataTable}/tableTypes.ts +0 -0
- /package/src/components/{DataTable → dataTable}/useSorting.ts +0 -0
- /package/src/components/{DataTable → dataTable}/useTableData.ts +0 -0
- /package/src/components/{DataTable → dataTable}/useTableSelection.ts +0 -0
- /package/src/components/{DataTable → dataTable}/useTableVirtualization.ts +0 -0
- /package/src/components/{Dialog → dialog}/index.ts +0 -0
- /package/src/components/{Draggable → draggable}/Draggable.vue +0 -0
- /package/src/components/{Draggable → draggable}/index.ts +0 -0
- /package/src/components/{Draggable → draggable}/useDraggable.ts +0 -0
- /package/src/components/{Draggable → draggable}/vDraggable.ts +0 -0
package/dist/types/NavLink.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BglFormSchemaT, Field, Option, DotNotation } from '
|
|
1
|
+
import { BglFormSchemaT, Field, Option, DotNotation } from '../index.ts';
|
|
2
2
|
import { UploadInputProps } from '../components/form/inputs/Upload/upload.types';
|
|
3
3
|
interface InputOptions {
|
|
4
4
|
required?: boolean;
|
|
@@ -10,7 +10,12 @@ interface InputOptions {
|
|
|
10
10
|
autocomplete?: string;
|
|
11
11
|
vIf?: boolean | ((item: any, row: any) => boolean);
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface DateOptions extends InputOptions {
|
|
14
|
+
enableTime?: boolean;
|
|
15
|
+
mode?: 'day' | 'month' | 'year';
|
|
16
|
+
locale?: string;
|
|
17
|
+
timezone?: string;
|
|
18
|
+
}
|
|
14
19
|
interface TextInputOptions extends InputOptions {
|
|
15
20
|
type?: 'text' | 'tel' | 'email';
|
|
16
21
|
pattern?: string;
|
|
@@ -105,14 +110,14 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
105
110
|
$el: string;
|
|
106
111
|
id: string;
|
|
107
112
|
attrs: {
|
|
108
|
-
schema: (string | import('
|
|
113
|
+
schema: (string | import('../index.ts').BaseBagelField<{
|
|
109
114
|
[key: string]: any;
|
|
110
115
|
}>)[];
|
|
111
116
|
};
|
|
112
117
|
} | {
|
|
113
118
|
$el: string;
|
|
114
119
|
attrs: {
|
|
115
|
-
schema: (import('
|
|
120
|
+
schema: (import('../index.ts').BaseBagelField<{
|
|
116
121
|
[key: string]: any;
|
|
117
122
|
}> | undefined)[];
|
|
118
123
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts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,EACxD,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,EAC3B,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,cAAc,GAAG,SAAS,EACxC,OAAO,CAAC,EAAE,iBAAiB,GACzB,KAAK,CAAC,CAAC,CAAC,CAWV"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Attributes, BglFormSchemaT } from '
|
|
1
|
+
import { Attributes, BglFormSchemaT } from '../index.ts';
|
|
2
2
|
export declare function debounce(fn: () => void, wait?: number): void;
|
|
3
3
|
export declare function slugify(str: string): string;
|
|
4
4
|
export declare function keyToLabel(key?: string): string | undefined;
|
|
@@ -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;AAI/D,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,IAAI,EAAE,IAAI,GAAE,MAAY,QAO1D;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,UAMlC;AAED,wBAAgB,UAAU,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ3D;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,iBAGtE;AAED,wBAAgB,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,UAG3C;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,IAAI,QAIrE;AAED,wBAAgB,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,UAOpE;AAED,wBAAgB,SAAS,CAAC,CAAC,GAAG;IA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AG,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,YAAY,GAAE,GAAe,GAAG,GAAG,CAa1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeAgo.d.ts","sourceRoot":"","sources":["../../src/utils/timeAgo.ts"],"names":[],"mappings":"AAWA,KAAK,sBAAsB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAqDvD,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,GAAE,sBAA6B,UAsD/E;AASD,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,GAAE,MAAmB,EAAE,MAAM,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"timeAgo.d.ts","sourceRoot":"","sources":["../../src/utils/timeAgo.ts"],"names":[],"mappings":"AAWA,KAAK,sBAAsB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAqDvD,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,GAAE,sBAA6B,UAsD/E;AASD,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,GAAE,MAAmB,EAAE,MAAM,CAAC,EAAE,MAAM,UAiF5F"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.60",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Neveh Allon",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"./style.css": "./dist/style.css",
|
|
35
35
|
"./*": "./*"
|
|
36
36
|
},
|
|
37
|
-
"main": "./dist/index.
|
|
37
|
+
"main": "./dist/index.cjs",
|
|
38
38
|
"module": "./dist/index.mjs",
|
|
39
39
|
"types": "./dist/index.d.ts",
|
|
40
40
|
"typesVersions": {
|
|
@@ -82,15 +82,16 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"date-fns": "^4.1.0",
|
|
85
|
-
"@vueuse/core": "^
|
|
86
|
-
"axios": "^1.8.
|
|
85
|
+
"@vueuse/core": "^13.0.0",
|
|
86
|
+
"axios": "^1.8.2",
|
|
87
87
|
"floating-vue": "^5.2.2",
|
|
88
|
-
"libphonenumber-js": "1.12.
|
|
88
|
+
"libphonenumber-js": "1.12.5",
|
|
89
89
|
"signature_pad": "^5.0.4"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"dev": "tsx watch src/index.ts",
|
|
93
93
|
"build": "vite build",
|
|
94
|
-
"start": "tsx src/index.ts"
|
|
94
|
+
"start": "tsx src/index.ts",
|
|
95
|
+
"test": "vitest"
|
|
95
96
|
}
|
|
96
97
|
}
|
|
@@ -4,7 +4,7 @@ import type { Slots } from 'vue'
|
|
|
4
4
|
import type { TableSchemaProps } from '../types/TableSchema'
|
|
5
5
|
import { computed, useSlots } from 'vue'
|
|
6
6
|
import { useSchemaField } from '../composables/useSchemaField'
|
|
7
|
-
import { useTableData } from './
|
|
7
|
+
import { useTableData } from './dataTable/useTableData'
|
|
8
8
|
|
|
9
9
|
const props = defineProps<Omit<TableSchemaProps<T>, 'data'> & { modelValue: T, includeUnset?: boolean }>()
|
|
10
10
|
const slots = useSlots() as Slots & Record<string, (props: { row: T, field: BaseBagelField<T> }) => any>
|
|
@@ -332,7 +332,7 @@ function handleDateWasClicked(payload: string) {
|
|
|
332
332
|
</template>
|
|
333
333
|
|
|
334
334
|
<!-- <style src="../../styles/_variables.css"></style> -->
|
|
335
|
-
<style src="../
|
|
335
|
+
<style src="../calendar/styles/_variables.css"></style>
|
|
336
336
|
|
|
337
337
|
<style>
|
|
338
338
|
.calendar-root-wrapper {
|
|
@@ -14,7 +14,7 @@ export class EventImpl implements EventInterface {
|
|
|
14
14
|
disableResize?: modeType[]
|
|
15
15
|
isCustom?: boolean | modeType[]
|
|
16
16
|
|
|
17
|
-
// Properties that should not be set from outside
|
|
17
|
+
// Properties that should not be set from outside Calendar
|
|
18
18
|
nOfPreviousConcurrentEvents?: number
|
|
19
19
|
|
|
20
20
|
constructor(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { modeType } from '../../
|
|
2
|
+
import type { modeType } from '../../calendar/typings/types'
|
|
3
3
|
import { Btn, NumberInput, Dropdown, TextInput, formatDate } from '@bagelink/vue'
|
|
4
4
|
import { computed, ref, onMounted, onBeforeUnmount } from 'vue'
|
|
5
|
-
import Time, { WEEK_START_DAY } from '../../
|
|
5
|
+
import Time, { WEEK_START_DAY } from '../../calendar/helpers/Time'
|
|
6
6
|
|
|
7
7
|
// Types
|
|
8
8
|
type ViewMode = 'days' | 'months' | 'years'
|
|
@@ -18,7 +18,6 @@ const props = withDefaults(
|
|
|
18
18
|
modelValue?: string | Date
|
|
19
19
|
min?: string | Date
|
|
20
20
|
max?: string | Date
|
|
21
|
-
timezone?: string
|
|
22
21
|
mode?: modeType
|
|
23
22
|
defaultValue?: string | Date
|
|
24
23
|
firstDayOfWeek?: WEEK_START_DAY
|
|
@@ -29,7 +28,6 @@ const props = withDefaults(
|
|
|
29
28
|
enableTime: false,
|
|
30
29
|
editMode: true,
|
|
31
30
|
small: false,
|
|
32
|
-
timezone: 'UTC',
|
|
33
31
|
mode: 'day',
|
|
34
32
|
firstDayOfWeek: WEEK_START_DAY.SUNDAY,
|
|
35
33
|
locale: ''
|
|
@@ -46,6 +44,13 @@ const currentView = ref<ViewMode>('days')
|
|
|
46
44
|
// Time helper instance
|
|
47
45
|
const time = new Time(props.firstDayOfWeek, props.locale)
|
|
48
46
|
|
|
47
|
+
// Parse a date string or object into a Date object
|
|
48
|
+
function parseDate(value: string | Date | undefined): Date | null {
|
|
49
|
+
if (!value) return null
|
|
50
|
+
const date = typeof value === 'string' ? new Date(value) : value
|
|
51
|
+
return Number.isNaN(date.getTime()) ? null : date
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
// Date formatting composable
|
|
50
55
|
function useFormatting() {
|
|
51
56
|
const formatDisplayDate = (date: Date | string | undefined): string => {
|
|
@@ -77,7 +82,6 @@ function useFormatting() {
|
|
|
77
82
|
|
|
78
83
|
return {
|
|
79
84
|
formatDisplayDate,
|
|
80
|
-
|
|
81
85
|
parseUserInput
|
|
82
86
|
}
|
|
83
87
|
}
|
|
@@ -86,8 +90,8 @@ function useFormatting() {
|
|
|
86
90
|
function useDateValidation() {
|
|
87
91
|
const isDateDisabled = (date: Date | null) => {
|
|
88
92
|
if (!date) return true
|
|
89
|
-
const minDate =
|
|
90
|
-
const maxDate =
|
|
93
|
+
const minDate = parseDate(props.min)
|
|
94
|
+
const maxDate = parseDate(props.max)
|
|
91
95
|
|
|
92
96
|
if (minDate && date < minDate) return true
|
|
93
97
|
if (maxDate && date > maxDate) return true
|
|
@@ -95,8 +99,8 @@ function useDateValidation() {
|
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
const isYearDisabled = (year: number) => {
|
|
98
|
-
const minDate =
|
|
99
|
-
const maxDate =
|
|
102
|
+
const minDate = parseDate(props.min)
|
|
103
|
+
const maxDate = parseDate(props.max)
|
|
100
104
|
|
|
101
105
|
if (minDate && year < minDate.getFullYear()) return true
|
|
102
106
|
if (maxDate && year > maxDate.getFullYear()) return true
|
|
@@ -117,9 +121,7 @@ function useDateState() {
|
|
|
117
121
|
const formattedMin = computed(() => formatDate(props.min, props.enableTime ? 'dd.mm.yy HH:MM' : 'dd.mm.yy'))
|
|
118
122
|
const formattedMax = computed(() => formatDate(props.max, props.enableTime ? 'dd.mm.yy HH:MM' : 'dd.mm.yy'))
|
|
119
123
|
const selectedDate = computed(() => {
|
|
120
|
-
|
|
121
|
-
if (!value) return null
|
|
122
|
-
return typeof value === 'string' ? new Date(value) : value
|
|
124
|
+
return parseDate(props.modelValue || props.defaultValue)
|
|
123
125
|
})
|
|
124
126
|
|
|
125
127
|
return {
|
|
@@ -256,34 +258,32 @@ function useTimeHandling() {
|
|
|
256
258
|
if (!selectedDate.value) return
|
|
257
259
|
const newDate = new Date(selectedDate.value)
|
|
258
260
|
newDate.setHours(value)
|
|
259
|
-
|
|
261
|
+
emitDateValue(newDate)
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
const handleMinuteInput = (value: number) => {
|
|
263
265
|
if (!selectedDate.value) return
|
|
264
266
|
const newDate = new Date(selectedDate.value)
|
|
265
267
|
newDate.setMinutes(value)
|
|
266
|
-
|
|
268
|
+
emitDateValue(newDate)
|
|
267
269
|
}
|
|
268
270
|
|
|
269
|
-
const timezoneDisplay = computed(() => {
|
|
270
|
-
if (!props.enableTime) return ''
|
|
271
|
-
try {
|
|
272
|
-
return new Date().toLocaleString('en-US', {
|
|
273
|
-
timeZoneName: 'short',
|
|
274
|
-
timeZone: props.timezone
|
|
275
|
-
}).split(' ').pop()
|
|
276
|
-
} catch {
|
|
277
|
-
return 'UTC'
|
|
278
|
-
}
|
|
279
|
-
})
|
|
280
|
-
|
|
281
271
|
return {
|
|
282
272
|
hours,
|
|
283
273
|
minutes,
|
|
284
274
|
handleHourInput,
|
|
285
|
-
handleMinuteInput
|
|
286
|
-
|
|
275
|
+
handleMinuteInput
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// Centralized date emission function
|
|
280
|
+
function emitDateValue(date: Date) {
|
|
281
|
+
if (props.enableTime) {
|
|
282
|
+
// For dates with time, emit the date object directly
|
|
283
|
+
emit('update:modelValue', formatDate(date, 'yyyy-mm-dd HH:MM'))
|
|
284
|
+
} else {
|
|
285
|
+
// For date-only, emit a date with time set to midnight
|
|
286
|
+
emit('update:modelValue', formatDate(date, 'yyyy-mm-dd'))
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
|
|
@@ -298,12 +298,7 @@ function useInputHandling() {
|
|
|
298
298
|
|
|
299
299
|
const date = parseUserInput(input.value)
|
|
300
300
|
if (date) {
|
|
301
|
-
|
|
302
|
-
emit('update:modelValue', date.toISOString())
|
|
303
|
-
} else {
|
|
304
|
-
const utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))
|
|
305
|
-
emit('update:modelValue', utcDate.toISOString().split('T')[0])
|
|
306
|
-
}
|
|
301
|
+
emitDateValue(date)
|
|
307
302
|
}
|
|
308
303
|
}
|
|
309
304
|
|
|
@@ -324,12 +319,7 @@ function useInputHandling() {
|
|
|
324
319
|
} else if (event.key === 'Enter' && inputValue.value) {
|
|
325
320
|
const date = parseUserInput(inputValue.value)
|
|
326
321
|
if (date) {
|
|
327
|
-
|
|
328
|
-
emit('update:modelValue', date.toISOString())
|
|
329
|
-
} else {
|
|
330
|
-
const utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))
|
|
331
|
-
emit('update:modelValue', utcDate.toISOString().split('T')[0])
|
|
332
|
-
}
|
|
322
|
+
emitDateValue(date)
|
|
333
323
|
isOpen.value = false
|
|
334
324
|
}
|
|
335
325
|
}
|
|
@@ -356,31 +346,25 @@ const {
|
|
|
356
346
|
// Initialize remaining composables
|
|
357
347
|
const { currentMonthDays, currentMonthValue, months, years, weekDays, isSelected, isToday, isNotInMonth } = useCalendarView()
|
|
358
348
|
const { selectMonth, selectYear, previousMonth, nextMonth, previousYear, nextYear } = useNavigation()
|
|
359
|
-
const { hours, minutes, handleHourInput, handleMinuteInput
|
|
349
|
+
const { hours, minutes, handleHourInput, handleMinuteInput } = useTimeHandling()
|
|
360
350
|
|
|
361
351
|
// Date selection handler
|
|
362
352
|
function selectDate(date: Date | null) {
|
|
363
353
|
if (!date || !props.editMode) return
|
|
364
354
|
|
|
365
355
|
if (props.enableTime) {
|
|
366
|
-
// Create date
|
|
356
|
+
// Create date with current time values
|
|
367
357
|
const newDate = new Date(date.getFullYear(), date.getMonth(), date.getDate())
|
|
368
358
|
const currentHours = selectedDate.value?.getHours() ?? new Date().getHours()
|
|
369
359
|
const currentMinutes = selectedDate.value?.getMinutes() ?? new Date().getMinutes()
|
|
370
360
|
newDate.setHours(currentHours)
|
|
371
361
|
newDate.setMinutes(currentMinutes)
|
|
372
362
|
|
|
373
|
-
|
|
374
|
-
if (props.timezone === 'UTC') {
|
|
375
|
-
const tzOffset = new Date().getTimezoneOffset()
|
|
376
|
-
newDate.setMinutes(newDate.getMinutes() + tzOffset)
|
|
377
|
-
}
|
|
378
|
-
emit('update:modelValue', newDate.toISOString())
|
|
363
|
+
emitDateValue(newDate)
|
|
379
364
|
} else {
|
|
380
|
-
// For date-only selection,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
emit('update:modelValue', utcDate.toISOString().split('T')[0])
|
|
365
|
+
// For date-only selection, create a date at midnight
|
|
366
|
+
const newDate = new Date(date.getFullYear(), date.getMonth(), date.getDate())
|
|
367
|
+
emitDateValue(newDate)
|
|
384
368
|
isOpen.value = false
|
|
385
369
|
}
|
|
386
370
|
}
|
|
@@ -389,6 +373,15 @@ const datePickerRef = ref<HTMLElement | null>(null)
|
|
|
389
373
|
const calendarRef = ref<HTMLElement | null>(null)
|
|
390
374
|
|
|
391
375
|
onMounted(() => {
|
|
376
|
+
// Initialize calendar view with selected date if available
|
|
377
|
+
if (selectedDate.value) {
|
|
378
|
+
currentMonth.value = new Date(
|
|
379
|
+
selectedDate.value.getFullYear(),
|
|
380
|
+
selectedDate.value.getMonth(),
|
|
381
|
+
1
|
|
382
|
+
)
|
|
383
|
+
}
|
|
384
|
+
|
|
392
385
|
const handleDocumentClick = (e: MouseEvent) => {
|
|
393
386
|
const target = e.target as HTMLElement
|
|
394
387
|
if (!datePickerRef.value?.contains(target) && !calendarRef.value?.contains(target)) {
|
|
@@ -410,7 +403,6 @@ onMounted(() => {
|
|
|
410
403
|
{{ label }}
|
|
411
404
|
<span v-if="required" class="required">*</span>
|
|
412
405
|
</label>
|
|
413
|
-
|
|
414
406
|
<Dropdown
|
|
415
407
|
:shown="isOpen"
|
|
416
408
|
placement="bottom-start"
|
|
@@ -521,7 +513,7 @@ onMounted(() => {
|
|
|
521
513
|
</div>
|
|
522
514
|
</div>
|
|
523
515
|
|
|
524
|
-
<div v-if="enableTime && currentView === 'days'" class="time-picker border-start flex column gap-1 w-120px">
|
|
516
|
+
<div v-if="enableTime && currentView === 'days'" class="time-picker border-start flex column gap-1 w-120px px-025">
|
|
525
517
|
<div class="flex gap-025">
|
|
526
518
|
<NumberInput
|
|
527
519
|
center
|
|
@@ -547,7 +539,6 @@ onMounted(() => {
|
|
|
547
539
|
@update:model-value="handleMinuteInput"
|
|
548
540
|
/>
|
|
549
541
|
</div>
|
|
550
|
-
<span class="txt-center opacity-6 txt14">{{ timezoneDisplay }}</span>
|
|
551
542
|
<Btn v-if="selectedDate" flat @click="isOpen = false">
|
|
552
543
|
Done
|
|
553
544
|
</Btn>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { modeType } from '../../
|
|
2
|
+
import type { modeType } from '../../calendar/typings/types'
|
|
3
3
|
import { Btn, NumberInput, Dropdown, formatDate } from '@bagelink/vue'
|
|
4
|
-
import Time, { WEEK_START_DAY } from '../../
|
|
4
|
+
import Time, { WEEK_START_DAY } from '../../calendar/helpers/Time'
|
|
5
5
|
|
|
6
6
|
const props = withDefaults(
|
|
7
7
|
defineProps<{
|
|
@@ -53,7 +53,7 @@ let numberValue = $ref<number>()
|
|
|
53
53
|
onMounted(() => {
|
|
54
54
|
const num = modelValue !== undefined ? Number.parseFloat(`${modelValue}`) : undefined
|
|
55
55
|
const defaultNum = defaultValue !== undefined ? Number.parseFloat(`${defaultValue}`) : undefined
|
|
56
|
-
numberValue = num
|
|
56
|
+
numberValue = num ?? defaultNum
|
|
57
57
|
})
|
|
58
58
|
|
|
59
59
|
const btnLayouts: NumberLayout[] = ['horizontal', 'vertical']
|
|
@@ -71,13 +71,13 @@ function subtract(...numbers: (number | undefined)[]) {
|
|
|
71
71
|
return Number.parseFloat(numArr.reduce((acc, curr) => acc - curr, firstNum).toFixed(precision))
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
const canAdd = $computed(() =>
|
|
74
|
+
const canAdd = $computed(() => max === undefined || add(numberValue, step) <= max)
|
|
75
75
|
const canDecrement = $computed(() => min === undefined || subtract(numberValue, step) >= min)
|
|
76
76
|
|
|
77
77
|
// Methods
|
|
78
78
|
function increment() {
|
|
79
79
|
if (!canAdd) return
|
|
80
|
-
numberValue = add(numberValue
|
|
80
|
+
numberValue = add(numberValue ?? 0, step)
|
|
81
81
|
emit('update:modelValue', numberValue)
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -121,8 +121,7 @@ function isDigitsFull() {
|
|
|
121
121
|
caret-color: transparent;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.digit-box::-webkit-outer-spin-button
|
|
125
|
-
.digit-box::-webkit-inner-spin-button {
|
|
124
|
+
.digit-box::-webkit-outer-spin-button {
|
|
126
125
|
-webkit-appearance: none; /* Chrome, Safari, Edge, Opera */
|
|
127
126
|
margin: 0;
|
|
128
127
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Modal } from '@bagelink/vue'
|
|
2
2
|
import type { EditorState } from '../richTextTypes'
|
|
3
|
-
import { bagelFormUtils } from '@bagelink/vue'
|
|
3
|
+
import { bagelFormUtils as bglFrmUtil } from '@bagelink/vue'
|
|
4
4
|
|
|
5
|
-
const { frmRow, numField } = bagelFormUtils
|
|
5
|
+
// const { frmRow, numField } = bagelFormUtils
|
|
6
6
|
|
|
7
7
|
export function insertImage(modal: typeof Modal, state: EditorState) {
|
|
8
8
|
const { range, doc } = state
|
|
@@ -13,9 +13,9 @@ export function insertImage(modal: typeof Modal, state: EditorState) {
|
|
|
13
13
|
schema: [
|
|
14
14
|
{ id: 'src', $el: 'file', attrs: { bindkey: 'url' } },
|
|
15
15
|
{ id: 'alt', $el: 'text', label: 'Alt Text' },
|
|
16
|
-
frmRow(
|
|
17
|
-
numField('width', 'Width', { min: 1 }),
|
|
18
|
-
numField('height', 'Height', { min: 1 }),
|
|
16
|
+
bglFrmUtil.frmRow(
|
|
17
|
+
bglFrmUtil.numField('width', 'Width', { min: 1 }),
|
|
18
|
+
bglFrmUtil.numField('height', 'Height', { min: 1 }),
|
|
19
19
|
),
|
|
20
20
|
{ id: 'figcaption', $el: 'check', label: 'Show Caption' },
|
|
21
21
|
],
|
|
@@ -77,9 +77,9 @@ export function insertEmbed(modal: typeof Modal, state: EditorState) {
|
|
|
77
77
|
title: 'Insert Embed',
|
|
78
78
|
schema: [
|
|
79
79
|
{ id: 'url', $el: 'text', label: 'URL', attrs: { placeholder: 'Enter URL (YouTube, Vimeo, etc.)' } },
|
|
80
|
-
frmRow(
|
|
81
|
-
numField('width', 'Width', { min: 200, placeholder: '560' }),
|
|
82
|
-
numField('height', 'Height', { min: 200, placeholder: '315' })
|
|
80
|
+
bglFrmUtil.frmRow(
|
|
81
|
+
bglFrmUtil.numField('width', 'Width', { min: 200, placeholder: '560' }),
|
|
82
|
+
bglFrmUtil.numField('height', 'Height', { min: 200, placeholder: '315' })
|
|
83
83
|
),
|
|
84
84
|
{ id: 'allowFullscreen', $el: 'check', label: 'Allow Fullscreen', value: true },
|
|
85
85
|
],
|
|
@@ -14,7 +14,7 @@ import axios from 'axios'
|
|
|
14
14
|
import { parsePhoneNumberFromString } from 'libphonenumber-js'
|
|
15
15
|
import { onMounted, watch, ref, computed } from 'vue'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface TelInputProps {
|
|
18
18
|
label?: string
|
|
19
19
|
id?: string
|
|
20
20
|
class?: string
|
|
@@ -38,7 +38,7 @@ export interface Props {
|
|
|
38
38
|
parseArg?: { extract?: boolean }
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
const props = withDefaults(defineProps<
|
|
41
|
+
const props = withDefaults(defineProps<TelInputProps>(), {
|
|
42
42
|
modelValue: '',
|
|
43
43
|
autocomplete: 'on',
|
|
44
44
|
allCountries: () => allCountries,
|
|
@@ -107,7 +107,7 @@ const computedInputOptions = $computed(() => ({
|
|
|
107
107
|
}))
|
|
108
108
|
|
|
109
109
|
// Composables
|
|
110
|
-
function useCountrySelection(props:
|
|
110
|
+
function useCountrySelection(props: TelInputProps, emit: any) {
|
|
111
111
|
const activeCountryCode = ref<CountryCode>()
|
|
112
112
|
const selectedIndex = ref<number>()
|
|
113
113
|
const searchQuery = ref('')
|
|
@@ -227,7 +227,7 @@ function useCountrySelection(props: Props, emit: any) {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
function usePhoneNumberFormatting(props:
|
|
230
|
+
function usePhoneNumberFormatting(props: TelInputProps, activeCountryCode: Ref<CountryCode | undefined>) {
|
|
231
231
|
const parseArgs = computed(() => ({
|
|
232
232
|
...props.parseArg,
|
|
233
233
|
defaultCountry: activeCountryCode.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { BglFile, QueueFile, UploadInputProps } from './upload.types'
|
|
3
|
-
import { Btn, IMAGE_FORMATS_REGEXP, Icon, useBagel, Card, Image, pathKeyToURL } from '@bagelink/vue'
|
|
3
|
+
import { Btn, IMAGE_FORMATS_REGEXP, Icon, useBagel, Card, Image, pathKeyToURL, bagelInjectionKey } from '@bagelink/vue'
|
|
4
4
|
import { watch } from 'vue'
|
|
5
5
|
import { files } from './upload'
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ const props = withDefaults(defineProps<UploadInputProps>(), {
|
|
|
11
11
|
})
|
|
12
12
|
|
|
13
13
|
const emit = defineEmits(['update:modelValue', 'addFileStart'])
|
|
14
|
-
const bagel = useBagel()
|
|
14
|
+
const bagel = useBagel(bagelInjectionKey)
|
|
15
15
|
|
|
16
16
|
files.setBaseUrl(bagel.host)
|
|
17
17
|
|
|
@@ -69,8 +69,8 @@ export function provideBagelFormState<T>(initialData: T) {
|
|
|
69
69
|
return state
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export function useBagelFormState<T>() {
|
|
73
|
-
const state = inject<BagelFormState<T>>(
|
|
72
|
+
export function useBagelFormState<T>(injectionKey: typeof FORM_STATE_KEY = FORM_STATE_KEY): BagelFormState<T> {
|
|
73
|
+
const state = inject<BagelFormState<T>>(injectionKey)
|
|
74
74
|
if (!state) throw new Error('BagelFormState must be provided')
|
|
75
75
|
return state
|
|
76
76
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -6,16 +6,15 @@ export { default as Avatar } from './Avatar.vue'
|
|
|
6
6
|
export { default as Badge } from './Badge.vue'
|
|
7
7
|
export { default as BglVideo } from './BglVideo.vue'
|
|
8
8
|
export { default as Btn } from './Btn.vue'
|
|
9
|
-
|
|
10
|
-
export { default as Calendar } from './Calendar/Index.vue'
|
|
9
|
+
export { default as Calendar } from './calendar/Index.vue'
|
|
11
10
|
export { default as Card } from './Card.vue'
|
|
12
11
|
export { default as Carousel } from './Carousel.vue'
|
|
13
12
|
export * from './dashboard'
|
|
14
13
|
export { default as DataPreview } from './DataPreview.vue'
|
|
15
|
-
export { default as DataTable } from './
|
|
14
|
+
export { default as DataTable } from './dataTable/DataTable.vue'
|
|
16
15
|
/** @deprecated Use DataTable instead. TableSchema is an alias that will be removed in a future version. */
|
|
17
|
-
export { default as TableSchema } from './
|
|
18
|
-
export { Draggable, useDraggable, vDraggable } from './
|
|
16
|
+
export { default as TableSchema } from './dataTable/DataTable.vue'
|
|
17
|
+
export { Draggable, useDraggable, vDraggable } from './draggable'
|
|
19
18
|
export { default as Dropdown } from './Dropdown.vue'
|
|
20
19
|
export { default as FieldSetVue } from './FieldSetVue.vue'
|
|
21
20
|
export { default as Flag } from './Flag.vue'
|
|
@@ -27,7 +26,7 @@ export * from './layout'
|
|
|
27
26
|
export { default as ListItem } from './ListItem.vue'
|
|
28
27
|
export { default as ListView } from './ListView.vue'
|
|
29
28
|
export { default as Loading } from './Loading.vue'
|
|
30
|
-
export { default as MapEmbed } from './MapEmbed.vue'
|
|
29
|
+
export { default as MapEmbed } from './MapEmbed/Index.vue'
|
|
31
30
|
export { default as Modal } from './Modal.vue'
|
|
32
31
|
export { default as ModalConfirm } from './ModalConfirm.vue'
|
|
33
32
|
export { default as ModalForm } from './ModalForm.vue'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { App, Directive, DirectiveBinding } from 'vue'
|
|
1
|
+
import type { App, Directive, DirectiveBinding, Plugin } from 'vue'
|
|
2
|
+
|
|
2
3
|
import type { LightboxItem } from './lightbox.types'
|
|
3
4
|
import { IMAGE_FORMATS_REGEXP, pathKeyToURL, VIDEO_FORMATS_REGEXP } from '@bagelink/vue'
|
|
4
5
|
import { createApp } from 'vue'
|
|
@@ -86,8 +87,10 @@ function getLightboxInstance(): InstanceType<typeof Lightbox> {
|
|
|
86
87
|
return lightboxInstance
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
const lightboxPlugin: Plugin = {
|
|
90
91
|
install(app: App) {
|
|
91
92
|
app.directive('lightbox', lightboxDirective)
|
|
92
93
|
},
|
|
93
94
|
}
|
|
95
|
+
|
|
96
|
+
export default lightboxPlugin
|