From 31f7e4b58d293a87e9c993a5e59906f4b8c8e301 Mon Sep 17 00:00:00 2001 From: Jesus Vilar Date: Wed, 2 Oct 2024 10:48:44 +0200 Subject: [PATCH] revert: revert changes after 3.1.2 --- .../calendar/AttributesPopoverLabels.vue | 10 +- .../calendar/AttributesPopoverSlot.vue | 6 +- .../datepicker/DatePopoverCustom.vue | 2 +- .../datepicker/DatePopoverManual.vue | 12 +- .../datepicker/DateRangePopover.vue | 5 +- .../components/datepicker/DateSimpleSlot.vue | 4 +- .../components/examples/ExampleDateForm.vue | 2 +- docs/.vitepress/theme/styles/index.css | 21 +- docs/.vitepress/theme/styles/nr-doc.css | 83 +-- docs/calendar/attributes.md | 23 +- docs/datepicker/custom-attributes.md | 5 +- docs/datepicker/slot-content.md | 13 +- docs/package.json | 2 +- .../{postcss.config.cjs => postcss.config.js} | 0 ...tailwind.config.cjs => tailwind.config.js} | 0 docs/yarn.lock | 5 + package.json | 3 +- src/components/Calendar/Calendar.vue | 12 + src/components/Calendar/CalendarDay.vue | 52 +- .../Calendar/CalendarDayPopover.vue | 31 +- src/components/Calendar/CalendarHeader.vue | 23 +- .../Calendar/CalendarNavPopover.vue | 10 +- src/components/CalendarGrid/CalendarCell.vue | 2 + .../CalendarGrid/CalendarCellPopover.vue | 22 +- src/components/DatePicker/DatePicker.vue | 49 +- .../DatePicker/DatePickerPopover.vue | 37 ++ src/components/Popover/Popover.vue | 544 ++++++++++++++++++ .../PopoverRow.vue} | 0 src/components/index.ts | 3 +- src/index.ts | 6 +- src/styles/index.css | 12 +- src/styles/theme.css | 18 + src/use/calendar.ts | 46 +- src/use/datePicker.ts | 69 +-- src/utils/attribute.ts | 26 +- src/utils/calendar/event.ts | 2 +- src/utils/date/range.ts | 2 +- src/utils/date/rules.ts | 14 +- src/utils/defaults/index.ts | 81 +-- src/utils/helpers.ts | 142 +---- src/utils/page.ts | 51 +- src/utils/plugins/index.ts | 2 +- src/utils/popovers.ts | 212 +++++++ 43 files changed, 1107 insertions(+), 557 deletions(-) rename docs/{postcss.config.cjs => postcss.config.js} (100%) rename docs/{tailwind.config.cjs => tailwind.config.js} (100%) create mode 100644 src/components/DatePicker/DatePickerPopover.vue create mode 100644 src/components/Popover/Popover.vue rename src/components/{Calendar/CalendarDayPopoverRow.vue => Popover/PopoverRow.vue} (100%) create mode 100644 src/utils/popovers.ts diff --git a/docs/.vitepress/components/calendar/AttributesPopoverLabels.vue b/docs/.vitepress/components/calendar/AttributesPopoverLabels.vue index e9f57bb9e..4b3aa0583 100644 --- a/docs/.vitepress/components/calendar/AttributesPopoverLabels.vue +++ b/docs/.vitepress/components/calendar/AttributesPopoverLabels.vue @@ -1,9 +1,9 @@