@btst/stack 1.4.1 → 1.5.0
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/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.cjs +85 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.mjs +83 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.cjs +237 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.mjs +235 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzName/index.cjs +41 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzName/index.mjs +39 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.cjs +46 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.mjs +44 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.3.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_c1e3fbdebd5ee34a254141dc5a2dcd28/node_modules/@radix-ui/react-checkbox/dist/index.cjs +296 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.3.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_c1e3fbdebd5ee34a254141dc5a2dcd28/node_modules/@radix-ui/react-checkbox/dist/index.mjs +271 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_5c5a3ca63b34dfe7d9d23f1e8cee675c/node_modules/@radix-ui/react-popover/dist/index.cjs +325 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_5c5a3ca63b34dfe7d9d23f1e8cee675c/node_modules/@radix-ui/react-popover/dist/index.mjs +299 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.4_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_43b950ce9f6b8d55739cce33fe173a1c/node_modules/@radix-ui/react-primitive/dist/index.cjs +56 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.4_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_43b950ce9f6b8d55739cce33fe173a1c/node_modules/@radix-ui/react-primitive/dist/index.mjs +40 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_e0d4db654009398ea41c8e459eeae4ee/node_modules/@radix-ui/react-radio-group/dist/index.cjs +304 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_e0d4db654009398ea41c8e459eeae4ee/node_modules/@radix-ui/react-radio-group/dist/index.mjs +283 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_8aae318b88145540882c32de0262377a/node_modules/@radix-ui/react-separator/dist/index.cjs +47 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_8aae318b88145540882c32de0262377a/node_modules/@radix-ui/react-separator/dist/index.mjs +30 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/DayPicker.cjs +326 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/DayPicker.mjs +320 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/UI.cjs +122 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/UI.mjs +122 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.mjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.cjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/DateLib.cjs +577 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/DateLib.mjs +573 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Button.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Button.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Chevron.cjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Chevron.mjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Day.cjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Day.mjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DayButton.cjs +25 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DayButton.mjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Dropdown.cjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Dropdown.mjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Footer.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Footer.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Month.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Month.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Months.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Months.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Nav.cjs +37 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Nav.mjs +31 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Option.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Option.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Root.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Root.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Select.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Select.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Week.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Week.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekday.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekday.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekdays.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekdays.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weeks.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weeks.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/custom-components.cjs +57 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/custom-components.mjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.mjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.mjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.mjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.cjs +23 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.mjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.cjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.mjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.cjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.mjs +23 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/index.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/index.mjs +7 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.cjs +75 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.mjs +73 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.cjs +97 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.mjs +95 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.cjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.mjs +22 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.cjs +30 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.mjs +28 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.mjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.cjs +22 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.mjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.mjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDates.cjs +61 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDates.mjs +59 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDays.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDays.mjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.mjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.cjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.mjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.cjs +48 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.mjs +46 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.cjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.mjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.mjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getLabels.cjs +55 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getLabels.mjs +53 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.mjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.cjs +71 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.mjs +69 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.cjs +53 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.mjs +51 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.cjs +42 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.mjs +40 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.cjs +38 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.mjs +36 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.cjs +39 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.mjs +37 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.mjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.cjs +28 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.mjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.cjs +38 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.mjs +36 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.mjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.cjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.mjs +31 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/index.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/index.mjs +11 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.mjs +32 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.cjs +28 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.mjs +25 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.cjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.mjs +22 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNav.cjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNav.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNext.cjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNext.mjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.cjs +17 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.cjs +17 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.mjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/locale/en-US.cjs +69 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/locale/en-US.mjs +67 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useMulti.cjs +59 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useMulti.mjs +57 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useRange.cjs +47 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useRange.mjs +45 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useSingle.cjs +46 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useSingle.mjs +44 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useAnimation.cjs +176 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useAnimation.mjs +174 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useCalendar.cjs +115 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useCalendar.mjs +113 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useDayPicker.cjs +28 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useDayPicker.mjs +25 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useFocus.cjs +58 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useFocus.mjs +56 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useSelection.cjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useSelection.mjs +31 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/addToRange.cjs +97 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/addToRange.mjs +95 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.cjs +59 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.mjs +57 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.cjs +64 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.mjs +62 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.cjs +32 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.mjs +30 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.cjs +76 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.mjs +74 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.cjs +37 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.mjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.cjs +23 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.mjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/toTimeZone.cjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/toTimeZone.mjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/typeguards.cjs +73 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/typeguards.mjs +66 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.cjs +7 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.mjs +7 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +131 -124
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.mjs +131 -124
- package/dist/packages/better-stack/src/plugins/ai-chat/schemas.cjs +23 -23
- package/dist/packages/better-stack/src/plugins/blog/api/plugin.cjs +28 -12
- package/dist/packages/better-stack/src/plugins/blog/api/plugin.mjs +18 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/form-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/form-page-skeleton.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/list-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/list-page-skeleton.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/post-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/post-page-skeleton.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/page-wrapper.cjs +10 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/page-wrapper.mjs +11 -7
- package/dist/packages/better-stack/src/plugins/blog/schemas.cjs +17 -17
- package/dist/packages/better-stack/src/plugins/cms/api/plugin.cjs +457 -0
- package/dist/packages/better-stack/src/plugins/cms/api/plugin.mjs +455 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +299 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +297 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +118 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.mjs +116 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/dashboard-skeleton.cjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/dashboard-skeleton.mjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/editor-skeleton.cjs +32 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/editor-skeleton.mjs +30 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/list-skeleton.cjs +32 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/list-skeleton.mjs +30 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/404-page.cjs +20 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/404-page.mjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.cjs +46 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +83 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.mjs +81 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.mjs +44 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.cjs +43 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +152 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.mjs +150 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.mjs +41 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.cjs +39 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +68 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.mjs +66 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.mjs +37 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.mjs +14 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/page-wrapper.cjs +27 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/page-wrapper.mjs +25 -0
- package/dist/packages/better-stack/src/plugins/cms/client/hooks/cms-hooks.cjs +402 -0
- package/dist/packages/better-stack/src/plugins/cms/client/hooks/cms-hooks.mjs +390 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-common.cjs +29 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-common.mjs +27 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-dashboard.cjs +13 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-dashboard.mjs +11 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-editor.cjs +12 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-editor.mjs +10 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-list.cjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-list.mjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-toasts.cjs +12 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-toasts.mjs +10 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/index.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/index.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.cjs +185 -0
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.mjs +183 -0
- package/dist/packages/better-stack/src/plugins/cms/db.cjs +76 -0
- package/dist/packages/better-stack/src/plugins/cms/db.mjs +74 -0
- package/dist/packages/better-stack/src/plugins/cms/schemas.cjs +54 -0
- package/dist/packages/better-stack/src/plugins/cms/schemas.mjs +49 -0
- package/dist/packages/better-stack/src/plugins/cms/utils.cjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/utils.mjs +9 -0
- package/dist/packages/ui/src/components/calendar.cjs +205 -0
- package/dist/packages/ui/src/components/calendar.mjs +188 -0
- package/dist/packages/ui/src/components/checkbox.cjs +34 -0
- package/dist/packages/ui/src/components/checkbox.mjs +32 -0
- package/dist/packages/ui/src/components/date-picker.cjs +41 -0
- package/dist/packages/ui/src/components/date-picker.mjs +39 -0
- package/dist/packages/ui/src/components/form.mjs +1 -1
- package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/components}/page-layout.cjs +2 -1
- package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/components}/page-layout.mjs +2 -1
- package/dist/packages/ui/src/components/page-wrapper.cjs +20 -0
- package/dist/packages/ui/src/components/page-wrapper.mjs +18 -0
- package/dist/packages/ui/src/components/popover.cjs +41 -0
- package/dist/packages/ui/src/components/popover.mjs +37 -0
- package/dist/packages/ui/src/components/radio-group.cjs +48 -0
- package/dist/packages/ui/src/components/radio-group.mjs +45 -0
- package/dist/packages/ui/src/components/separator.cjs +29 -0
- package/dist/packages/ui/src/components/separator.mjs +27 -0
- package/dist/packages/ui/src/components/table.cjs +89 -0
- package/dist/packages/ui/src/components/table.mjs +82 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/label.cjs +18 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/label.mjs +16 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/tooltip.cjs +9 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/tooltip.mjs +7 -0
- package/dist/packages/ui/src/components/ui/auto-form/config.cjs +42 -0
- package/dist/packages/ui/src/components/ui/auto-form/config.mjs +39 -0
- package/dist/packages/ui/src/components/ui/auto-form/dependencies.cjs +48 -0
- package/dist/packages/ui/src/components/ui/auto-form/dependencies.mjs +46 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/array.cjs +103 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/array.mjs +87 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/checkbox.cjs +38 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/checkbox.mjs +36 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/date.cjs +37 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/date.mjs +35 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/enum.cjs +73 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/enum.mjs +71 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/file.cjs +63 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/file.mjs +61 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/input.cjs +32 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/input.mjs +30 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/number.cjs +31 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/number.mjs +29 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/object.cjs +149 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/object.mjs +133 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/radio-group.cjs +67 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/radio-group.mjs +65 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/switch.cjs +38 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/switch.mjs +36 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/textarea.cjs +31 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/textarea.mjs +29 -0
- package/dist/packages/ui/src/components/ui/auto-form/index.cjs +87 -0
- package/dist/packages/ui/src/components/ui/auto-form/index.mjs +78 -0
- package/dist/packages/ui/src/components/ui/auto-form/types.cjs +11 -0
- package/dist/packages/ui/src/components/ui/auto-form/types.mjs +9 -0
- package/dist/packages/ui/src/components/ui/auto-form/utils.cjs +179 -0
- package/dist/packages/ui/src/components/ui/auto-form/utils.mjs +169 -0
- package/dist/plugins/ai-chat/api/index.d.cts +1 -1
- package/dist/plugins/ai-chat/api/index.d.mts +1 -1
- package/dist/plugins/ai-chat/api/index.d.ts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.cts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.mts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.ts +1 -1
- package/dist/plugins/ai-chat/query-keys.d.cts +56 -250
- package/dist/plugins/ai-chat/query-keys.d.mts +56 -250
- package/dist/plugins/ai-chat/query-keys.d.ts +56 -250
- package/dist/plugins/blog/query-keys.d.cts +102 -362
- package/dist/plugins/blog/query-keys.d.mts +102 -362
- package/dist/plugins/blog/query-keys.d.ts +102 -362
- package/dist/plugins/cms/api/index.cjs +7 -0
- package/dist/plugins/cms/api/index.d.cts +101 -0
- package/dist/plugins/cms/api/index.d.mts +101 -0
- package/dist/plugins/cms/api/index.d.ts +101 -0
- package/dist/plugins/cms/api/index.mjs +1 -0
- package/dist/plugins/cms/client/components/index.cjs +14 -0
- package/dist/plugins/cms/client/components/index.d.cts +20 -0
- package/dist/plugins/cms/client/components/index.d.mts +20 -0
- package/dist/plugins/cms/client/components/index.d.ts +20 -0
- package/dist/plugins/cms/client/components/index.mjs +10 -0
- package/dist/plugins/cms/client/hooks/index.cjs +17 -0
- package/dist/plugins/cms/client/hooks/index.d.cts +203 -0
- package/dist/plugins/cms/client/hooks/index.d.mts +203 -0
- package/dist/plugins/cms/client/hooks/index.d.ts +203 -0
- package/dist/plugins/cms/client/hooks/index.mjs +1 -0
- package/dist/plugins/cms/client/index.cjs +9 -0
- package/dist/plugins/cms/client/index.d.cts +344 -0
- package/dist/plugins/cms/client/index.d.mts +344 -0
- package/dist/plugins/cms/client/index.d.ts +344 -0
- package/dist/plugins/cms/client/index.mjs +2 -0
- package/dist/plugins/cms/client.css +2 -0
- package/dist/plugins/cms/query-keys.cjs +137 -0
- package/dist/plugins/cms/query-keys.d.cts +79 -0
- package/dist/plugins/cms/query-keys.d.mts +79 -0
- package/dist/plugins/cms/query-keys.d.ts +79 -0
- package/dist/plugins/cms/query-keys.mjs +135 -0
- package/dist/plugins/cms/style.css +19 -0
- package/dist/shared/stack.BwkyFwF8.d.cts +135 -0
- package/dist/shared/stack.DBqxCs0V.d.mts +135 -0
- package/dist/shared/stack.DwnJA87a.d.ts +135 -0
- package/dist/shared/stack.NZJogTUn.d.cts +66 -0
- package/dist/shared/stack.NZJogTUn.d.mts +66 -0
- package/dist/shared/stack.NZJogTUn.d.ts +66 -0
- package/package.json +58 -5
- package/src/plugins/ai-chat/client/components/chat-interface.tsx +15 -0
- package/src/plugins/ai-chat/client/components/chat-sidebar.tsx +4 -1
- package/src/plugins/blog/api/plugin.ts +29 -2
- package/src/plugins/blog/client/components/loading/form-page-skeleton.tsx +1 -1
- package/src/plugins/blog/client/components/loading/list-page-skeleton.tsx +1 -1
- package/src/plugins/blog/client/components/loading/post-page-skeleton.tsx +1 -1
- package/src/plugins/blog/client/components/shared/page-wrapper.tsx +9 -9
- package/src/plugins/cms/__tests__/schema-roundtrip.test.ts +611 -0
- package/src/plugins/cms/api/index.ts +1 -0
- package/src/plugins/cms/api/plugin.ts +611 -0
- package/src/plugins/cms/client/components/forms/content-form.tsx +477 -0
- package/src/plugins/cms/client/components/forms/file-upload.tsx +164 -0
- package/src/plugins/cms/client/components/index.tsx +10 -0
- package/src/plugins/cms/client/components/loading/dashboard-skeleton.tsx +22 -0
- package/src/plugins/cms/client/components/loading/editor-skeleton.tsx +35 -0
- package/src/plugins/cms/client/components/loading/index.tsx +3 -0
- package/src/plugins/cms/client/components/loading/list-skeleton.tsx +38 -0
- package/src/plugins/cms/client/components/pages/404-page.tsx +27 -0
- package/src/plugins/cms/client/components/pages/content-editor-page.internal.tsx +121 -0
- package/src/plugins/cms/client/components/pages/content-editor-page.tsx +50 -0
- package/src/plugins/cms/client/components/pages/content-list-page.internal.tsx +198 -0
- package/src/plugins/cms/client/components/pages/content-list-page.tsx +45 -0
- package/src/plugins/cms/client/components/pages/dashboard-page.internal.tsx +94 -0
- package/src/plugins/cms/client/components/pages/dashboard-page.tsx +37 -0
- package/src/plugins/cms/client/components/shared/default-error.tsx +30 -0
- package/src/plugins/cms/client/components/shared/empty-state.tsx +26 -0
- package/src/plugins/cms/client/components/shared/page-wrapper.tsx +32 -0
- package/src/plugins/cms/client/components/shared/pagination.tsx +72 -0
- package/src/plugins/cms/client/hooks/cms-hooks.tsx +724 -0
- package/src/plugins/cms/client/hooks/index.tsx +1 -0
- package/src/plugins/cms/client/index.ts +13 -0
- package/src/plugins/cms/client/localization/cms-common.ts +29 -0
- package/src/plugins/cms/client/localization/cms-dashboard.ts +10 -0
- package/src/plugins/cms/client/localization/cms-editor.ts +8 -0
- package/src/plugins/cms/client/localization/cms-list.ts +14 -0
- package/src/plugins/cms/client/localization/cms-toasts.ts +8 -0
- package/src/plugins/cms/client/localization/index.ts +15 -0
- package/src/plugins/cms/client/overrides.ts +166 -0
- package/src/plugins/cms/client/plugin.tsx +283 -0
- package/src/plugins/cms/client.css +2 -0
- package/src/plugins/cms/db.ts +76 -0
- package/src/plugins/cms/query-keys.ts +186 -0
- package/src/plugins/cms/schemas.ts +81 -0
- package/src/plugins/cms/style.css +19 -0
- package/src/plugins/cms/types.ts +220 -0
- package/src/plugins/cms/utils.ts +11 -0
- package/src/plugins/blog/client/components/shared/page-layout.tsx +0 -23
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const DateLib = require('../classes/DateLib.cjs');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Adds a date to an existing range, considering constraints like minimum and
|
|
7
|
+
* maximum range size.
|
|
8
|
+
*
|
|
9
|
+
* @param date - The date to add to the range.
|
|
10
|
+
* @param initialRange - The initial range to which the date will be added.
|
|
11
|
+
* @param min - The minimum number of days in the range.
|
|
12
|
+
* @param max - The maximum number of days in the range.
|
|
13
|
+
* @param required - Whether the range must always include at least one date.
|
|
14
|
+
* @param dateLib - The date utility library instance.
|
|
15
|
+
* @returns The updated date range, or `undefined` if the range is cleared.
|
|
16
|
+
* @group Utilities
|
|
17
|
+
*/
|
|
18
|
+
function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = DateLib.defaultDateLib) {
|
|
19
|
+
const { from, to } = initialRange || {};
|
|
20
|
+
const { isSameDay, isAfter, isBefore } = dateLib;
|
|
21
|
+
let range;
|
|
22
|
+
if (!from && !to) {
|
|
23
|
+
// the range is empty, add the date
|
|
24
|
+
range = { from: date, to: min > 0 ? undefined : date };
|
|
25
|
+
}
|
|
26
|
+
else if (from && !to) {
|
|
27
|
+
// adding date to an incomplete range
|
|
28
|
+
if (isSameDay(from, date)) {
|
|
29
|
+
// adding a date equal to the start of the range
|
|
30
|
+
if (min === 0) {
|
|
31
|
+
range = { from, to: date };
|
|
32
|
+
}
|
|
33
|
+
else if (required) {
|
|
34
|
+
range = { from, to: undefined };
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
range = undefined;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else if (isBefore(date, from)) {
|
|
41
|
+
// adding a date before the start of the range
|
|
42
|
+
range = { from: date, to: from };
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
// adding a date after the start of the range
|
|
46
|
+
range = { from, to: date };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else if (from && to) {
|
|
50
|
+
// adding date to a complete range
|
|
51
|
+
if (isSameDay(from, date) && isSameDay(to, date)) {
|
|
52
|
+
// adding a date that is equal to both start and end of the range
|
|
53
|
+
if (required) {
|
|
54
|
+
range = { from, to };
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
range = undefined;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else if (isSameDay(from, date)) {
|
|
61
|
+
// adding a date equal to the the start of the range
|
|
62
|
+
range = { from, to: min > 0 ? undefined : date };
|
|
63
|
+
}
|
|
64
|
+
else if (isSameDay(to, date)) {
|
|
65
|
+
// adding a dare equal to the end of the range
|
|
66
|
+
range = { from: date, to: min > 0 ? undefined : date };
|
|
67
|
+
}
|
|
68
|
+
else if (isBefore(date, from)) {
|
|
69
|
+
// adding a date before the start of the range
|
|
70
|
+
range = { from: date, to: to };
|
|
71
|
+
}
|
|
72
|
+
else if (isAfter(date, from)) {
|
|
73
|
+
// adding a date after the start of the range
|
|
74
|
+
range = { from, to: date };
|
|
75
|
+
}
|
|
76
|
+
else if (isAfter(date, to)) {
|
|
77
|
+
// adding a date after the end of the range
|
|
78
|
+
range = { from, to: date };
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
throw new Error("Invalid range");
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// check for min / max
|
|
85
|
+
if (range?.from && range?.to) {
|
|
86
|
+
const diff = dateLib.differenceInCalendarDays(range.to, range.from);
|
|
87
|
+
if (max > 0 && diff > max) {
|
|
88
|
+
range = { from: date, to: undefined };
|
|
89
|
+
}
|
|
90
|
+
else if (min > 1 && diff < min) {
|
|
91
|
+
range = { from: date, to: undefined };
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return range;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
exports.addToRange = addToRange;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Adds a date to an existing range, considering constraints like minimum and
|
|
5
|
+
* maximum range size.
|
|
6
|
+
*
|
|
7
|
+
* @param date - The date to add to the range.
|
|
8
|
+
* @param initialRange - The initial range to which the date will be added.
|
|
9
|
+
* @param min - The minimum number of days in the range.
|
|
10
|
+
* @param max - The maximum number of days in the range.
|
|
11
|
+
* @param required - Whether the range must always include at least one date.
|
|
12
|
+
* @param dateLib - The date utility library instance.
|
|
13
|
+
* @returns The updated date range, or `undefined` if the range is cleared.
|
|
14
|
+
* @group Utilities
|
|
15
|
+
*/
|
|
16
|
+
function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {
|
|
17
|
+
const { from, to } = initialRange || {};
|
|
18
|
+
const { isSameDay, isAfter, isBefore } = dateLib;
|
|
19
|
+
let range;
|
|
20
|
+
if (!from && !to) {
|
|
21
|
+
// the range is empty, add the date
|
|
22
|
+
range = { from: date, to: min > 0 ? undefined : date };
|
|
23
|
+
}
|
|
24
|
+
else if (from && !to) {
|
|
25
|
+
// adding date to an incomplete range
|
|
26
|
+
if (isSameDay(from, date)) {
|
|
27
|
+
// adding a date equal to the start of the range
|
|
28
|
+
if (min === 0) {
|
|
29
|
+
range = { from, to: date };
|
|
30
|
+
}
|
|
31
|
+
else if (required) {
|
|
32
|
+
range = { from, to: undefined };
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
range = undefined;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else if (isBefore(date, from)) {
|
|
39
|
+
// adding a date before the start of the range
|
|
40
|
+
range = { from: date, to: from };
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
// adding a date after the start of the range
|
|
44
|
+
range = { from, to: date };
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else if (from && to) {
|
|
48
|
+
// adding date to a complete range
|
|
49
|
+
if (isSameDay(from, date) && isSameDay(to, date)) {
|
|
50
|
+
// adding a date that is equal to both start and end of the range
|
|
51
|
+
if (required) {
|
|
52
|
+
range = { from, to };
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
range = undefined;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else if (isSameDay(from, date)) {
|
|
59
|
+
// adding a date equal to the the start of the range
|
|
60
|
+
range = { from, to: min > 0 ? undefined : date };
|
|
61
|
+
}
|
|
62
|
+
else if (isSameDay(to, date)) {
|
|
63
|
+
// adding a dare equal to the end of the range
|
|
64
|
+
range = { from: date, to: min > 0 ? undefined : date };
|
|
65
|
+
}
|
|
66
|
+
else if (isBefore(date, from)) {
|
|
67
|
+
// adding a date before the start of the range
|
|
68
|
+
range = { from: date, to: to };
|
|
69
|
+
}
|
|
70
|
+
else if (isAfter(date, from)) {
|
|
71
|
+
// adding a date after the start of the range
|
|
72
|
+
range = { from, to: date };
|
|
73
|
+
}
|
|
74
|
+
else if (isAfter(date, to)) {
|
|
75
|
+
// adding a date after the end of the range
|
|
76
|
+
range = { from, to: date };
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
throw new Error("Invalid range");
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// check for min / max
|
|
83
|
+
if (range?.from && range?.to) {
|
|
84
|
+
const diff = dateLib.differenceInCalendarDays(range.to, range.from);
|
|
85
|
+
if (max > 0 && diff > max) {
|
|
86
|
+
range = { from: date, to: undefined };
|
|
87
|
+
}
|
|
88
|
+
else if (min > 1 && diff < min) {
|
|
89
|
+
range = { from: date, to: undefined };
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return range;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { addToRange };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const toTimeZone = require('./toTimeZone.cjs');
|
|
4
|
+
const typeguards = require('./typeguards.cjs');
|
|
5
|
+
|
|
6
|
+
function convertMatcher(matcher, timeZone) {
|
|
7
|
+
if (typeof matcher === "boolean" || typeof matcher === "function") {
|
|
8
|
+
return matcher;
|
|
9
|
+
}
|
|
10
|
+
if (matcher instanceof Date) {
|
|
11
|
+
return toTimeZone.toTimeZone(matcher, timeZone);
|
|
12
|
+
}
|
|
13
|
+
if (Array.isArray(matcher)) {
|
|
14
|
+
return matcher.map((value) => value instanceof Date ? toTimeZone.toTimeZone(value, timeZone) : value);
|
|
15
|
+
}
|
|
16
|
+
if (typeguards.isDateRange(matcher)) {
|
|
17
|
+
return {
|
|
18
|
+
...matcher,
|
|
19
|
+
from: matcher.from ? toTimeZone.toTimeZone(matcher.from, timeZone) : matcher.from,
|
|
20
|
+
to: matcher.to ? toTimeZone.toTimeZone(matcher.to, timeZone) : matcher.to,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (typeguards.isDateInterval(matcher)) {
|
|
24
|
+
return {
|
|
25
|
+
before: toTimeZone.toTimeZone(matcher.before, timeZone),
|
|
26
|
+
after: toTimeZone.toTimeZone(matcher.after, timeZone),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (typeguards.isDateAfterType(matcher)) {
|
|
30
|
+
return {
|
|
31
|
+
after: toTimeZone.toTimeZone(matcher.after, timeZone),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
if (typeguards.isDateBeforeType(matcher)) {
|
|
35
|
+
return {
|
|
36
|
+
before: toTimeZone.toTimeZone(matcher.before, timeZone),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return matcher;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Convert any {@link Matcher} or array of matchers to the specified time zone.
|
|
43
|
+
*
|
|
44
|
+
* @param matchers - The matcher or matchers to convert.
|
|
45
|
+
* @param timeZone - The target IANA time zone.
|
|
46
|
+
* @returns The converted matcher(s).
|
|
47
|
+
* @group Utilities
|
|
48
|
+
*/
|
|
49
|
+
function convertMatchersToTimeZone(matchers, timeZone) {
|
|
50
|
+
if (!matchers) {
|
|
51
|
+
return matchers;
|
|
52
|
+
}
|
|
53
|
+
if (Array.isArray(matchers)) {
|
|
54
|
+
return matchers.map((matcher) => convertMatcher(matcher, timeZone));
|
|
55
|
+
}
|
|
56
|
+
return convertMatcher(matchers, timeZone);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
exports.convertMatchersToTimeZone = convertMatchersToTimeZone;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { toTimeZone } from './toTimeZone.mjs';
|
|
2
|
+
import { isDateRange, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.mjs';
|
|
3
|
+
|
|
4
|
+
function convertMatcher(matcher, timeZone) {
|
|
5
|
+
if (typeof matcher === "boolean" || typeof matcher === "function") {
|
|
6
|
+
return matcher;
|
|
7
|
+
}
|
|
8
|
+
if (matcher instanceof Date) {
|
|
9
|
+
return toTimeZone(matcher, timeZone);
|
|
10
|
+
}
|
|
11
|
+
if (Array.isArray(matcher)) {
|
|
12
|
+
return matcher.map((value) => value instanceof Date ? toTimeZone(value, timeZone) : value);
|
|
13
|
+
}
|
|
14
|
+
if (isDateRange(matcher)) {
|
|
15
|
+
return {
|
|
16
|
+
...matcher,
|
|
17
|
+
from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,
|
|
18
|
+
to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (isDateInterval(matcher)) {
|
|
22
|
+
return {
|
|
23
|
+
before: toTimeZone(matcher.before, timeZone),
|
|
24
|
+
after: toTimeZone(matcher.after, timeZone),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (isDateAfterType(matcher)) {
|
|
28
|
+
return {
|
|
29
|
+
after: toTimeZone(matcher.after, timeZone),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (isDateBeforeType(matcher)) {
|
|
33
|
+
return {
|
|
34
|
+
before: toTimeZone(matcher.before, timeZone),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return matcher;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Convert any {@link Matcher} or array of matchers to the specified time zone.
|
|
41
|
+
*
|
|
42
|
+
* @param matchers - The matcher or matchers to convert.
|
|
43
|
+
* @param timeZone - The target IANA time zone.
|
|
44
|
+
* @returns The converted matcher(s).
|
|
45
|
+
* @group Utilities
|
|
46
|
+
*/
|
|
47
|
+
function convertMatchersToTimeZone(matchers, timeZone) {
|
|
48
|
+
if (!matchers) {
|
|
49
|
+
return matchers;
|
|
50
|
+
}
|
|
51
|
+
if (Array.isArray(matchers)) {
|
|
52
|
+
return matchers.map((matcher) => convertMatcher(matcher, timeZone));
|
|
53
|
+
}
|
|
54
|
+
return convertMatcher(matchers, timeZone);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { convertMatchersToTimeZone };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const DateLib = require('../classes/DateLib.cjs');
|
|
4
|
+
const rangeIncludesDate = require('./rangeIncludesDate.cjs');
|
|
5
|
+
const typeguards = require('./typeguards.cjs');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Checks if a given date matches at least one of the specified {@link Matcher}.
|
|
9
|
+
*
|
|
10
|
+
* @param date - The date to check.
|
|
11
|
+
* @param matchers - The matchers to check against.
|
|
12
|
+
* @param dateLib - The date utility library instance.
|
|
13
|
+
* @returns `true` if the date matches any of the matchers, otherwise `false`.
|
|
14
|
+
* @group Utilities
|
|
15
|
+
*/
|
|
16
|
+
function dateMatchModifiers(date, matchers, dateLib = DateLib.defaultDateLib) {
|
|
17
|
+
const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;
|
|
18
|
+
const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;
|
|
19
|
+
return matchersArr.some((matcher) => {
|
|
20
|
+
if (typeof matcher === "boolean") {
|
|
21
|
+
return matcher;
|
|
22
|
+
}
|
|
23
|
+
if (dateLib.isDate(matcher)) {
|
|
24
|
+
return isSameDay(date, matcher);
|
|
25
|
+
}
|
|
26
|
+
if (typeguards.isDatesArray(matcher, dateLib)) {
|
|
27
|
+
return matcher.some((matcherDate) => isSameDay(date, matcherDate));
|
|
28
|
+
}
|
|
29
|
+
if (typeguards.isDateRange(matcher)) {
|
|
30
|
+
return rangeIncludesDate.rangeIncludesDate(matcher, date, false, dateLib);
|
|
31
|
+
}
|
|
32
|
+
if (typeguards.isDayOfWeekType(matcher)) {
|
|
33
|
+
if (!Array.isArray(matcher.dayOfWeek)) {
|
|
34
|
+
return matcher.dayOfWeek === date.getDay();
|
|
35
|
+
}
|
|
36
|
+
return matcher.dayOfWeek.includes(date.getDay());
|
|
37
|
+
}
|
|
38
|
+
if (typeguards.isDateInterval(matcher)) {
|
|
39
|
+
const diffBefore = differenceInCalendarDays(matcher.before, date);
|
|
40
|
+
const diffAfter = differenceInCalendarDays(matcher.after, date);
|
|
41
|
+
const isDayBefore = diffBefore > 0;
|
|
42
|
+
const isDayAfter = diffAfter < 0;
|
|
43
|
+
const isClosedInterval = isAfter(matcher.before, matcher.after);
|
|
44
|
+
if (isClosedInterval) {
|
|
45
|
+
return isDayAfter && isDayBefore;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return isDayBefore || isDayAfter;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (typeguards.isDateAfterType(matcher)) {
|
|
52
|
+
return differenceInCalendarDays(date, matcher.after) > 0;
|
|
53
|
+
}
|
|
54
|
+
if (typeguards.isDateBeforeType(matcher)) {
|
|
55
|
+
return differenceInCalendarDays(matcher.before, date) > 0;
|
|
56
|
+
}
|
|
57
|
+
if (typeof matcher === "function") {
|
|
58
|
+
return matcher(date);
|
|
59
|
+
}
|
|
60
|
+
return false;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.dateMatchModifiers = dateMatchModifiers;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.mjs';
|
|
2
|
+
import { rangeIncludesDate } from './rangeIncludesDate.mjs';
|
|
3
|
+
import { isDatesArray, isDateRange, isDayOfWeekType, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.mjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Checks if a given date matches at least one of the specified {@link Matcher}.
|
|
7
|
+
*
|
|
8
|
+
* @param date - The date to check.
|
|
9
|
+
* @param matchers - The matchers to check against.
|
|
10
|
+
* @param dateLib - The date utility library instance.
|
|
11
|
+
* @returns `true` if the date matches any of the matchers, otherwise `false`.
|
|
12
|
+
* @group Utilities
|
|
13
|
+
*/
|
|
14
|
+
function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
|
|
15
|
+
const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;
|
|
16
|
+
const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;
|
|
17
|
+
return matchersArr.some((matcher) => {
|
|
18
|
+
if (typeof matcher === "boolean") {
|
|
19
|
+
return matcher;
|
|
20
|
+
}
|
|
21
|
+
if (dateLib.isDate(matcher)) {
|
|
22
|
+
return isSameDay(date, matcher);
|
|
23
|
+
}
|
|
24
|
+
if (isDatesArray(matcher, dateLib)) {
|
|
25
|
+
return matcher.some((matcherDate) => isSameDay(date, matcherDate));
|
|
26
|
+
}
|
|
27
|
+
if (isDateRange(matcher)) {
|
|
28
|
+
return rangeIncludesDate(matcher, date, false, dateLib);
|
|
29
|
+
}
|
|
30
|
+
if (isDayOfWeekType(matcher)) {
|
|
31
|
+
if (!Array.isArray(matcher.dayOfWeek)) {
|
|
32
|
+
return matcher.dayOfWeek === date.getDay();
|
|
33
|
+
}
|
|
34
|
+
return matcher.dayOfWeek.includes(date.getDay());
|
|
35
|
+
}
|
|
36
|
+
if (isDateInterval(matcher)) {
|
|
37
|
+
const diffBefore = differenceInCalendarDays(matcher.before, date);
|
|
38
|
+
const diffAfter = differenceInCalendarDays(matcher.after, date);
|
|
39
|
+
const isDayBefore = diffBefore > 0;
|
|
40
|
+
const isDayAfter = diffAfter < 0;
|
|
41
|
+
const isClosedInterval = isAfter(matcher.before, matcher.after);
|
|
42
|
+
if (isClosedInterval) {
|
|
43
|
+
return isDayAfter && isDayBefore;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return isDayBefore || isDayAfter;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (isDateAfterType(matcher)) {
|
|
50
|
+
return differenceInCalendarDays(date, matcher.after) > 0;
|
|
51
|
+
}
|
|
52
|
+
if (isDateBeforeType(matcher)) {
|
|
53
|
+
return differenceInCalendarDays(matcher.before, date) > 0;
|
|
54
|
+
}
|
|
55
|
+
if (typeof matcher === "function") {
|
|
56
|
+
return matcher(date);
|
|
57
|
+
}
|
|
58
|
+
return false;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { dateMatchModifiers };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const DateLib = require('../classes/DateLib.cjs');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Checks if a date range contains one or more specified days of the week.
|
|
7
|
+
*
|
|
8
|
+
* @since 9.2.2
|
|
9
|
+
* @param range - The date range to check.
|
|
10
|
+
* @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is
|
|
11
|
+
* Sunday).
|
|
12
|
+
* @param dateLib - The date utility library instance.
|
|
13
|
+
* @returns `true` if the range contains the specified day(s) of the week,
|
|
14
|
+
* otherwise `false`.
|
|
15
|
+
* @group Utilities
|
|
16
|
+
*/
|
|
17
|
+
function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = DateLib.defaultDateLib) {
|
|
18
|
+
const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;
|
|
19
|
+
let date = range.from;
|
|
20
|
+
const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);
|
|
21
|
+
// iterate at maximum one week or the total days if the range is shorter than one week
|
|
22
|
+
const totalDaysLimit = Math.min(totalDays, 6);
|
|
23
|
+
for (let i = 0; i <= totalDaysLimit; i++) {
|
|
24
|
+
if (dayOfWeekArr.includes(date.getDay())) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
date = dateLib.addDays(date, 1);
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
exports.rangeContainsDayOfWeek = rangeContainsDayOfWeek;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if a date range contains one or more specified days of the week.
|
|
5
|
+
*
|
|
6
|
+
* @since 9.2.2
|
|
7
|
+
* @param range - The date range to check.
|
|
8
|
+
* @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is
|
|
9
|
+
* Sunday).
|
|
10
|
+
* @param dateLib - The date utility library instance.
|
|
11
|
+
* @returns `true` if the range contains the specified day(s) of the week,
|
|
12
|
+
* otherwise `false`.
|
|
13
|
+
* @group Utilities
|
|
14
|
+
*/
|
|
15
|
+
function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
|
|
16
|
+
const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;
|
|
17
|
+
let date = range.from;
|
|
18
|
+
const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);
|
|
19
|
+
// iterate at maximum one week or the total days if the range is shorter than one week
|
|
20
|
+
const totalDaysLimit = Math.min(totalDays, 6);
|
|
21
|
+
for (let i = 0; i <= totalDaysLimit; i++) {
|
|
22
|
+
if (dayOfWeekArr.includes(date.getDay())) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
date = dateLib.addDays(date, 1);
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { rangeContainsDayOfWeek };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const DateLib = require('../classes/DateLib.cjs');
|
|
4
|
+
const dateMatchModifiers = require('./dateMatchModifiers.cjs');
|
|
5
|
+
const rangeContainsDayOfWeek = require('./rangeContainsDayOfWeek.cjs');
|
|
6
|
+
const rangeIncludesDate = require('./rangeIncludesDate.cjs');
|
|
7
|
+
const rangeOverlaps = require('./rangeOverlaps.cjs');
|
|
8
|
+
const typeguards = require('./typeguards.cjs');
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Checks if a date range contains dates that match the given modifiers.
|
|
12
|
+
*
|
|
13
|
+
* @since 9.2.2
|
|
14
|
+
* @param range - The date range to check.
|
|
15
|
+
* @param modifiers - The modifiers to match against.
|
|
16
|
+
* @param dateLib - The date utility library instance.
|
|
17
|
+
* @returns `true` if the range contains matching dates, otherwise `false`.
|
|
18
|
+
* @group Utilities
|
|
19
|
+
*/
|
|
20
|
+
function rangeContainsModifiers(range, modifiers, dateLib = DateLib.defaultDateLib) {
|
|
21
|
+
const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];
|
|
22
|
+
// Defer function matchers evaluation as they are the least performant.
|
|
23
|
+
const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== "function");
|
|
24
|
+
const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {
|
|
25
|
+
if (typeof matcher === "boolean")
|
|
26
|
+
return matcher;
|
|
27
|
+
if (dateLib.isDate(matcher)) {
|
|
28
|
+
return rangeIncludesDate.rangeIncludesDate(range, matcher, false, dateLib);
|
|
29
|
+
}
|
|
30
|
+
if (typeguards.isDatesArray(matcher, dateLib)) {
|
|
31
|
+
return matcher.some((date) => rangeIncludesDate.rangeIncludesDate(range, date, false, dateLib));
|
|
32
|
+
}
|
|
33
|
+
if (typeguards.isDateRange(matcher)) {
|
|
34
|
+
if (matcher.from && matcher.to) {
|
|
35
|
+
return rangeOverlaps.rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (typeguards.isDayOfWeekType(matcher)) {
|
|
40
|
+
return rangeContainsDayOfWeek.rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);
|
|
41
|
+
}
|
|
42
|
+
if (typeguards.isDateInterval(matcher)) {
|
|
43
|
+
const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);
|
|
44
|
+
if (isClosedInterval) {
|
|
45
|
+
return rangeOverlaps.rangeOverlaps(range, {
|
|
46
|
+
from: dateLib.addDays(matcher.after, 1),
|
|
47
|
+
to: dateLib.addDays(matcher.before, -1),
|
|
48
|
+
}, dateLib);
|
|
49
|
+
}
|
|
50
|
+
return (dateMatchModifiers.dateMatchModifiers(range.from, matcher, dateLib) ||
|
|
51
|
+
dateMatchModifiers.dateMatchModifiers(range.to, matcher, dateLib));
|
|
52
|
+
}
|
|
53
|
+
if (typeguards.isDateAfterType(matcher) || typeguards.isDateBeforeType(matcher)) {
|
|
54
|
+
return (dateMatchModifiers.dateMatchModifiers(range.from, matcher, dateLib) ||
|
|
55
|
+
dateMatchModifiers.dateMatchModifiers(range.to, matcher, dateLib));
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
});
|
|
59
|
+
if (nonFunctionMatchersResult) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
const functionMatchers = matchers.filter((matcher) => typeof matcher === "function");
|
|
63
|
+
if (functionMatchers.length) {
|
|
64
|
+
let date = range.from;
|
|
65
|
+
const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);
|
|
66
|
+
for (let i = 0; i <= totalDays; i++) {
|
|
67
|
+
if (functionMatchers.some((matcher) => matcher(date))) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
date = dateLib.addDays(date, 1);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
exports.rangeContainsModifiers = rangeContainsModifiers;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.mjs';
|
|
2
|
+
import { dateMatchModifiers } from './dateMatchModifiers.mjs';
|
|
3
|
+
import { rangeContainsDayOfWeek } from './rangeContainsDayOfWeek.mjs';
|
|
4
|
+
import { rangeIncludesDate } from './rangeIncludesDate.mjs';
|
|
5
|
+
import { rangeOverlaps } from './rangeOverlaps.mjs';
|
|
6
|
+
import { isDatesArray, isDateRange, isDayOfWeekType, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.mjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Checks if a date range contains dates that match the given modifiers.
|
|
10
|
+
*
|
|
11
|
+
* @since 9.2.2
|
|
12
|
+
* @param range - The date range to check.
|
|
13
|
+
* @param modifiers - The modifiers to match against.
|
|
14
|
+
* @param dateLib - The date utility library instance.
|
|
15
|
+
* @returns `true` if the range contains matching dates, otherwise `false`.
|
|
16
|
+
* @group Utilities
|
|
17
|
+
*/
|
|
18
|
+
function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
|
|
19
|
+
const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];
|
|
20
|
+
// Defer function matchers evaluation as they are the least performant.
|
|
21
|
+
const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== "function");
|
|
22
|
+
const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {
|
|
23
|
+
if (typeof matcher === "boolean")
|
|
24
|
+
return matcher;
|
|
25
|
+
if (dateLib.isDate(matcher)) {
|
|
26
|
+
return rangeIncludesDate(range, matcher, false, dateLib);
|
|
27
|
+
}
|
|
28
|
+
if (isDatesArray(matcher, dateLib)) {
|
|
29
|
+
return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));
|
|
30
|
+
}
|
|
31
|
+
if (isDateRange(matcher)) {
|
|
32
|
+
if (matcher.from && matcher.to) {
|
|
33
|
+
return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
if (isDayOfWeekType(matcher)) {
|
|
38
|
+
return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);
|
|
39
|
+
}
|
|
40
|
+
if (isDateInterval(matcher)) {
|
|
41
|
+
const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);
|
|
42
|
+
if (isClosedInterval) {
|
|
43
|
+
return rangeOverlaps(range, {
|
|
44
|
+
from: dateLib.addDays(matcher.after, 1),
|
|
45
|
+
to: dateLib.addDays(matcher.before, -1),
|
|
46
|
+
}, dateLib);
|
|
47
|
+
}
|
|
48
|
+
return (dateMatchModifiers(range.from, matcher, dateLib) ||
|
|
49
|
+
dateMatchModifiers(range.to, matcher, dateLib));
|
|
50
|
+
}
|
|
51
|
+
if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {
|
|
52
|
+
return (dateMatchModifiers(range.from, matcher, dateLib) ||
|
|
53
|
+
dateMatchModifiers(range.to, matcher, dateLib));
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
});
|
|
57
|
+
if (nonFunctionMatchersResult) {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
const functionMatchers = matchers.filter((matcher) => typeof matcher === "function");
|
|
61
|
+
if (functionMatchers.length) {
|
|
62
|
+
let date = range.from;
|
|
63
|
+
const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);
|
|
64
|
+
for (let i = 0; i <= totalDays; i++) {
|
|
65
|
+
if (functionMatchers.some((matcher) => matcher(date))) {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
date = dateLib.addDays(date, 1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { rangeContainsModifiers };
|