@bagelink/vue 1.0.57 → 1.0.62
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/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- 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/dashboard/Lineart.vue.d.ts.map +1 -1
- package/dist/components/dashboard/index.d.ts.map +1 -1
- package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -0
- 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.map +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/OTP.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +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 +6 -6
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/Layout.vue.d.ts.map +1 -1
- 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.vue.d.ts.map +1 -1
- package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsBody.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/tabsManager.d.ts.map +1 -1
- package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/components/lightbox/index.d.ts +3 -5
- package/dist/components/lightbox/index.d.ts.map +1 -1
- package/dist/components/lightbox/lightbox.types.d.ts.map +1 -1
- package/dist/index.cjs +735 -763
- package/dist/index.mjs +736 -764
- package/dist/plugins/bagel.d.ts +3 -3
- package/dist/plugins/bagel.d.ts.map +1 -1
- package/dist/style.css +270 -271
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +7 -6
- package/src/components/DataPreview.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 +45 -94
- package/src/components/form/inputs/DatePick.vue +2 -2
- package/src/components/form/inputs/NumberInput.vue +2 -2
- 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 +6 -7
- package/src/components/{Lightbox → lightbox}/index.ts +5 -2
- package/src/plugins/bagel.ts +9 -9
- package/tsconfig.json +3 -2
- package/vite.config.ts +13 -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 +0 -30
- 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 → Dropdown.vue.d.ts} +0 -0
- /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}/tableTypes.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/{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/{Dashboard → dashboard}/Lineart.vue +0 -0
- /package/src/components/{Dashboard → dashboard}/index.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/src/components/{Layout → layout}/BottomMenu.vue +0 -0
- /package/src/components/{Layout → layout}/Layout.vue +0 -0
- /package/src/components/{Layout → layout}/SidebarMenu.vue +0 -0
- /package/src/components/{Layout → layout}/Skeleton.vue +0 -0
- /package/src/components/{Layout → layout}/TabbedLayout.vue +0 -0
- /package/src/components/{Layout → layout}/Tabs.vue +0 -0
- /package/src/components/{Layout → layout}/TabsBody.vue +0 -0
- /package/src/components/{Layout → layout}/TabsNav.vue +0 -0
- /package/src/components/{Layout → layout}/index.ts +0 -0
- /package/src/components/{Layout → layout}/tabsManager.ts +0 -0
- /package/src/components/{Lightbox → lightbox}/Lightbox.vue +0 -0
- /package/src/components/{Lightbox → lightbox}/lightbox.types.ts +0 -0
|
@@ -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;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EACnD,KAAK,CAAC,EAAE,UAAU,EAClB,QAAQ,CAAC,EAAE,GAAG,EACd,GAAG,CAAC,EAAE,CAAC,OAcP;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,OAO9C;AAED,wBAAgB,SAAS,CAAC,QAAQ,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,OAAO,CAAC,EAAE,MAAM,OAG5E;AAED,eAAO,MAAM,MAAM,
|
|
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;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EACnD,KAAK,CAAC,EAAE,UAAU,EAClB,QAAQ,CAAC,EAAE,GAAG,EACd,GAAG,CAAC,EAAE,CAAC,OAcP;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,OAO9C;AAED,wBAAgB,SAAS,CAAC,QAAQ,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,OAAO,CAAC,EAAE,MAAM,OAG5E;AAED,eAAO,MAAM,MAAM,GAAI,YAAY,GAAG,YAA0C,CAAA;AAEhF,wBAAgB,iBAAiB,CAAC,CAAC,EAClC,IAAI,CAAC,EAAE,GAAG,EAAE,EACZ,OAAO,CAAC,EAAE,MAAM,EAAE,GAChB,cAAc,CAAC,CAAC,CAAC,CAgBnB;AAED,wBAAgB,KAAK,CAAC,EAAE,GAAE,MAAY,oBAErC;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBlF;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAatD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,UAIvC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,aAAa,SAAO,GAAG,MAAM,GAAG,SAAS,CAG/G;AAED,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAK5C,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,sBAO5C;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,YAAY,GAAE,GAAe,GAAG,GAAG,CAa1F"}
|
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.62",
|
|
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,13 +28,6 @@ const props = withDefaults(
|
|
|
29
28
|
enableTime: false,
|
|
30
29
|
editMode: true,
|
|
31
30
|
small: false,
|
|
32
|
-
timezone: () => {
|
|
33
|
-
try {
|
|
34
|
-
return Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
35
|
-
} catch {
|
|
36
|
-
return 'UTC'
|
|
37
|
-
}
|
|
38
|
-
}, // Default to UTC, will be updated in onMounted if not explicitly set
|
|
39
31
|
mode: 'day',
|
|
40
32
|
firstDayOfWeek: WEEK_START_DAY.SUNDAY,
|
|
41
33
|
locale: ''
|
|
@@ -52,6 +44,13 @@ const currentView = ref<ViewMode>('days')
|
|
|
52
44
|
// Time helper instance
|
|
53
45
|
const time = new Time(props.firstDayOfWeek, props.locale)
|
|
54
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
|
+
|
|
55
54
|
// Date formatting composable
|
|
56
55
|
function useFormatting() {
|
|
57
56
|
const formatDisplayDate = (date: Date | string | undefined): string => {
|
|
@@ -83,7 +82,6 @@ function useFormatting() {
|
|
|
83
82
|
|
|
84
83
|
return {
|
|
85
84
|
formatDisplayDate,
|
|
86
|
-
|
|
87
85
|
parseUserInput
|
|
88
86
|
}
|
|
89
87
|
}
|
|
@@ -92,8 +90,8 @@ function useFormatting() {
|
|
|
92
90
|
function useDateValidation() {
|
|
93
91
|
const isDateDisabled = (date: Date | null) => {
|
|
94
92
|
if (!date) return true
|
|
95
|
-
const minDate =
|
|
96
|
-
const maxDate =
|
|
93
|
+
const minDate = parseDate(props.min)
|
|
94
|
+
const maxDate = parseDate(props.max)
|
|
97
95
|
|
|
98
96
|
if (minDate && date < minDate) return true
|
|
99
97
|
if (maxDate && date > maxDate) return true
|
|
@@ -101,8 +99,8 @@ function useDateValidation() {
|
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
const isYearDisabled = (year: number) => {
|
|
104
|
-
const minDate =
|
|
105
|
-
const maxDate =
|
|
102
|
+
const minDate = parseDate(props.min)
|
|
103
|
+
const maxDate = parseDate(props.max)
|
|
106
104
|
|
|
107
105
|
if (minDate && year < minDate.getFullYear()) return true
|
|
108
106
|
if (maxDate && year > maxDate.getFullYear()) return true
|
|
@@ -123,9 +121,7 @@ function useDateState() {
|
|
|
123
121
|
const formattedMin = computed(() => formatDate(props.min, props.enableTime ? 'dd.mm.yy HH:MM' : 'dd.mm.yy'))
|
|
124
122
|
const formattedMax = computed(() => formatDate(props.max, props.enableTime ? 'dd.mm.yy HH:MM' : 'dd.mm.yy'))
|
|
125
123
|
const selectedDate = computed(() => {
|
|
126
|
-
|
|
127
|
-
if (!value) return null
|
|
128
|
-
return typeof value === 'string' ? new Date(value) : value
|
|
124
|
+
return parseDate(props.modelValue || props.defaultValue)
|
|
129
125
|
})
|
|
130
126
|
|
|
131
127
|
return {
|
|
@@ -262,34 +258,32 @@ function useTimeHandling() {
|
|
|
262
258
|
if (!selectedDate.value) return
|
|
263
259
|
const newDate = new Date(selectedDate.value)
|
|
264
260
|
newDate.setHours(value)
|
|
265
|
-
|
|
261
|
+
emitDateValue(newDate)
|
|
266
262
|
}
|
|
267
263
|
|
|
268
264
|
const handleMinuteInput = (value: number) => {
|
|
269
265
|
if (!selectedDate.value) return
|
|
270
266
|
const newDate = new Date(selectedDate.value)
|
|
271
267
|
newDate.setMinutes(value)
|
|
272
|
-
|
|
268
|
+
emitDateValue(newDate)
|
|
273
269
|
}
|
|
274
270
|
|
|
275
|
-
const timezoneDisplay = computed(() => {
|
|
276
|
-
if (!props.enableTime) return ''
|
|
277
|
-
try {
|
|
278
|
-
return new Date().toLocaleString('en-US', {
|
|
279
|
-
timeZoneName: 'short',
|
|
280
|
-
timeZone: props.timezone
|
|
281
|
-
}).split(' ').pop()
|
|
282
|
-
} catch {
|
|
283
|
-
return 'UTC'
|
|
284
|
-
}
|
|
285
|
-
})
|
|
286
|
-
|
|
287
271
|
return {
|
|
288
272
|
hours,
|
|
289
273
|
minutes,
|
|
290
274
|
handleHourInput,
|
|
291
|
-
handleMinuteInput
|
|
292
|
-
|
|
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'))
|
|
293
287
|
}
|
|
294
288
|
}
|
|
295
289
|
|
|
@@ -304,25 +298,7 @@ function useInputHandling() {
|
|
|
304
298
|
|
|
305
299
|
const date = parseUserInput(input.value)
|
|
306
300
|
if (date) {
|
|
307
|
-
|
|
308
|
-
// Apply timezone adjustments
|
|
309
|
-
try {
|
|
310
|
-
// Convert to ISO string in the target timezone
|
|
311
|
-
const targetDate = new Date(date.toLocaleString('en-US', { timeZone: props.timezone }))
|
|
312
|
-
const tzOffset = targetDate.getTime() - date.getTime()
|
|
313
|
-
date.setTime(date.getTime() - tzOffset)
|
|
314
|
-
} catch {
|
|
315
|
-
// Fallback to old behavior for UTC
|
|
316
|
-
if (props.timezone === 'UTC') {
|
|
317
|
-
const tzOffset = new Date().getTimezoneOffset()
|
|
318
|
-
date.setMinutes(date.getMinutes() + tzOffset)
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
emit('update:modelValue', date.toISOString())
|
|
322
|
-
} else {
|
|
323
|
-
const utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))
|
|
324
|
-
emit('update:modelValue', utcDate.toISOString().split('T')[0])
|
|
325
|
-
}
|
|
301
|
+
emitDateValue(date)
|
|
326
302
|
}
|
|
327
303
|
}
|
|
328
304
|
|
|
@@ -343,25 +319,7 @@ function useInputHandling() {
|
|
|
343
319
|
} else if (event.key === 'Enter' && inputValue.value) {
|
|
344
320
|
const date = parseUserInput(inputValue.value)
|
|
345
321
|
if (date) {
|
|
346
|
-
|
|
347
|
-
// Apply timezone adjustments
|
|
348
|
-
try {
|
|
349
|
-
// Convert to ISO string in the target timezone
|
|
350
|
-
const targetDate = new Date(date.toLocaleString('en-US', { timeZone: props.timezone }))
|
|
351
|
-
const tzOffset = targetDate.getTime() - date.getTime()
|
|
352
|
-
date.setTime(date.getTime() - tzOffset)
|
|
353
|
-
} catch {
|
|
354
|
-
// Fallback to old behavior for UTC
|
|
355
|
-
if (props.timezone === 'UTC') {
|
|
356
|
-
const tzOffset = new Date().getTimezoneOffset()
|
|
357
|
-
date.setMinutes(date.getMinutes() + tzOffset)
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
emit('update:modelValue', date.toISOString())
|
|
361
|
-
} else {
|
|
362
|
-
const utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))
|
|
363
|
-
emit('update:modelValue', utcDate.toISOString().split('T')[0])
|
|
364
|
-
}
|
|
322
|
+
emitDateValue(date)
|
|
365
323
|
isOpen.value = false
|
|
366
324
|
}
|
|
367
325
|
}
|
|
@@ -388,40 +346,25 @@ const {
|
|
|
388
346
|
// Initialize remaining composables
|
|
389
347
|
const { currentMonthDays, currentMonthValue, months, years, weekDays, isSelected, isToday, isNotInMonth } = useCalendarView()
|
|
390
348
|
const { selectMonth, selectYear, previousMonth, nextMonth, previousYear, nextYear } = useNavigation()
|
|
391
|
-
const { hours, minutes, handleHourInput, handleMinuteInput
|
|
349
|
+
const { hours, minutes, handleHourInput, handleMinuteInput } = useTimeHandling()
|
|
392
350
|
|
|
393
351
|
// Date selection handler
|
|
394
352
|
function selectDate(date: Date | null) {
|
|
395
353
|
if (!date || !props.editMode) return
|
|
396
354
|
|
|
397
355
|
if (props.enableTime) {
|
|
398
|
-
// Create date
|
|
356
|
+
// Create date with current time values
|
|
399
357
|
const newDate = new Date(date.getFullYear(), date.getMonth(), date.getDate())
|
|
400
358
|
const currentHours = selectedDate.value?.getHours() ?? new Date().getHours()
|
|
401
359
|
const currentMinutes = selectedDate.value?.getMinutes() ?? new Date().getMinutes()
|
|
402
360
|
newDate.setHours(currentHours)
|
|
403
361
|
newDate.setMinutes(currentMinutes)
|
|
404
362
|
|
|
405
|
-
|
|
406
|
-
try {
|
|
407
|
-
// Convert to ISO string in the target timezone
|
|
408
|
-
const targetDate = new Date(newDate.toLocaleString('en-US', { timeZone: props.timezone }))
|
|
409
|
-
const tzOffset = targetDate.getTime() - newDate.getTime()
|
|
410
|
-
newDate.setTime(newDate.getTime() - tzOffset)
|
|
411
|
-
} catch {
|
|
412
|
-
// Fallback to old behavior for UTC
|
|
413
|
-
if (props.timezone === 'UTC') {
|
|
414
|
-
const tzOffset = new Date().getTimezoneOffset()
|
|
415
|
-
newDate.setMinutes(newDate.getMinutes() + tzOffset)
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
emit('update:modelValue', newDate.toISOString())
|
|
363
|
+
emitDateValue(newDate)
|
|
420
364
|
} else {
|
|
421
|
-
// For date-only selection,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
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)
|
|
425
368
|
isOpen.value = false
|
|
426
369
|
}
|
|
427
370
|
}
|
|
@@ -430,6 +373,15 @@ const datePickerRef = ref<HTMLElement | null>(null)
|
|
|
430
373
|
const calendarRef = ref<HTMLElement | null>(null)
|
|
431
374
|
|
|
432
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
|
+
|
|
433
385
|
const handleDocumentClick = (e: MouseEvent) => {
|
|
434
386
|
const target = e.target as HTMLElement
|
|
435
387
|
if (!datePickerRef.value?.contains(target) && !calendarRef.value?.contains(target)) {
|
|
@@ -587,7 +539,6 @@ onMounted(() => {
|
|
|
587
539
|
@update:model-value="handleMinuteInput"
|
|
588
540
|
/>
|
|
589
541
|
</div>
|
|
590
|
-
<span class="txt-center opacity-6 txt14">{{ timezoneDisplay }}</span>
|
|
591
542
|
<Btn v-if="selectedDate" flat @click="isOpen = false">
|
|
592
543
|
Done
|
|
593
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']
|
|
@@ -77,7 +77,7 @@ const canDecrement = $computed(() => min === undefined || subtract(numberValue,
|
|
|
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
|
-
export * from './
|
|
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'
|
|
@@ -23,7 +22,7 @@ export * from './form'
|
|
|
23
22
|
export { default as Icon } from './Icon/Icon.vue'
|
|
24
23
|
export { default as IframeVue } from './IframeVue.vue'
|
|
25
24
|
export { default as Image } from './Image.vue'
|
|
26
|
-
export * from './
|
|
25
|
+
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'
|
|
@@ -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
|
package/src/plugins/bagel.ts
CHANGED
|
@@ -2,7 +2,8 @@ import type { InjectionKey, Plugin } from 'vue'
|
|
|
2
2
|
import { Bagel } from '@bagelink/sdk'
|
|
3
3
|
import FloatingVue from 'floating-vue'
|
|
4
4
|
import { inject } from 'vue'
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
import lightboxPlugin from '../components/lightbox/index'
|
|
6
7
|
import { ripple, pattern } from '../directives'
|
|
7
8
|
import { useLang } from '../utils'
|
|
8
9
|
import clickOutside from '../utils/clickOutside'
|
|
@@ -10,16 +11,15 @@ import clickOutside from '../utils/clickOutside'
|
|
|
10
11
|
export const bagelInjectionKey = Symbol('bagel') as InjectionKey<Bagel>
|
|
11
12
|
export const i18nTInjectionKey = Symbol('bagel') as InjectionKey<(key: string) => string>
|
|
12
13
|
|
|
13
|
-
export function useBagel() {
|
|
14
|
-
const bagel = inject(
|
|
14
|
+
export function useBagel(injectionKey: InjectionKey<Bagel> = bagelInjectionKey): Bagel {
|
|
15
|
+
const bagel = inject(injectionKey)
|
|
15
16
|
if (!bagel) throw new Error('No bagel provided')
|
|
16
17
|
return bagel
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
export function useI18nT() {
|
|
20
|
-
const i18nT = inject(
|
|
20
|
+
export function useI18nT(injectionKey: typeof i18nTInjectionKey = i18nTInjectionKey) {
|
|
21
|
+
const i18nT = inject(injectionKey)
|
|
21
22
|
if (!i18nT) throw new Error('No i18nT provided')
|
|
22
|
-
|
|
23
23
|
return i18nT
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -33,13 +33,13 @@ export interface BagelOptions {
|
|
|
33
33
|
|
|
34
34
|
i18nT?: (key: string) => string
|
|
35
35
|
}
|
|
36
|
-
export const BagelVue: Plugin = {
|
|
37
|
-
install: (app, options
|
|
36
|
+
export const BagelVue: Plugin<BagelOptions> = {
|
|
37
|
+
install: (app, options) => {
|
|
38
38
|
const bagel = new Bagel({ host: options.host, fileBaseUrl: options.fileBaseUrl, onError: options.onError })
|
|
39
39
|
app.directive('click-outside', clickOutside)
|
|
40
40
|
app.directive('ripple', ripple)
|
|
41
41
|
app.directive('pattern', pattern)
|
|
42
|
-
app.use(
|
|
42
|
+
app.use(lightboxPlugin)
|
|
43
43
|
app.use(FloatingVue, {
|
|
44
44
|
themes: {
|
|
45
45
|
'bgl-theme': {
|
package/tsconfig.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"types": [
|
|
30
30
|
"vite/client",
|
|
31
|
+
"vitest/globals",
|
|
31
32
|
"@vue-macros/reactivity-transform/macros-global"
|
|
32
33
|
],
|
|
33
34
|
"paths": {
|
|
@@ -48,6 +49,6 @@
|
|
|
48
49
|
"**/**/*.vue",
|
|
49
50
|
"**/**/*.d.ts",
|
|
50
51
|
"./vite.config.ts",
|
|
51
|
-
"src/directives/pattern"
|
|
52
|
+
"src/directives/pattern",
|
|
52
53
|
]
|
|
53
|
-
}
|
|
54
|
+
}
|
package/vite.config.ts
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import { resolve } from 'node:path'
|
|
2
|
-
import { fileURLToPath, URL } from 'node:url'
|
|
2
|
+
// import { fileURLToPath, URL } from 'node:url'
|
|
3
3
|
import vue from '@vitejs/plugin-vue'
|
|
4
4
|
import ReactivityTransform from '@vue-macros/reactivity-transform/vite'
|
|
5
5
|
import { defineConfig } from 'vite'
|
|
6
6
|
import dts from 'vite-plugin-dts'
|
|
7
|
+
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
7
8
|
|
|
8
9
|
const indexDir = resolve(import.meta.dirname, 'src')
|
|
9
10
|
|
|
10
11
|
export default defineConfig(() => ({
|
|
11
|
-
plugins: [
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
plugins: [
|
|
13
|
+
tsconfigPaths(),
|
|
14
|
+
ReactivityTransform(),
|
|
15
|
+
vue(),
|
|
16
|
+
dts({
|
|
17
|
+
entryRoot: indexDir,
|
|
18
|
+
}),
|
|
19
|
+
],
|
|
14
20
|
resolve: {
|
|
15
21
|
alias: {
|
|
16
|
-
'@bagelink/vue':
|
|
22
|
+
'@bagelink/vue': indexDir,
|
|
17
23
|
},
|
|
18
24
|
},
|
|
19
25
|
build: {
|
|
@@ -21,7 +27,8 @@ export default defineConfig(() => ({
|
|
|
21
27
|
lib: {
|
|
22
28
|
entry: resolve(indexDir, 'index.ts'),
|
|
23
29
|
formats: ['es', 'cjs'],
|
|
24
|
-
fileName: (module, entry) =>
|
|
30
|
+
fileName: (module, entry) =>
|
|
31
|
+
`${entry}.${module === 'es' ? 'mjs' : module}`,
|
|
25
32
|
cssFileName: 'style',
|
|
26
33
|
},
|
|
27
34
|
rollupOptions: {
|