Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix: switch DnD to modern context API (was legacy)
Browse files Browse the repository at this point in the history
Fixes jquense#1795. Related to jquense#1776.

fix: replace findDOMNode with refs (react 17)

also upg date-arithmetic dep & some minor cleanup

chore(DnD): Move api info to README, minor cleanup

feat(DnD): support to/from allDay events in demos

chore(deps): upgrade storybook

fix: mouse event propagation probs

fix: using wrong bounding box for hit testing

fix: DnD corner cases in allDay move/resize

chore(DnD): DRY out common utility fn

chore(DnD): HOC extend base propTypes/defaultProps

fix(DnD): selection in WeekView

fix: update react & react-dom peer-dep range to support 17.x (jquense#1880)

fix(Dnd): Offset is not needed (jquense#1892)

fix: Memory leak if Calendar is selectable jquense#1940 (jquense#1941)

For end date in month view slot selection increase day by 1.

Add the same logic for select all day slot

Introduce DayColumnWrapper hook

Add new doShowMoreDrillDown prop to help properly control the "show more" action

fix(Agenda): consider start & end of day to filter events

Fix typos in prop descriptions

Use https for github pages link

fix: numGroups calculation (jquense#1963)

stop propagation to avoid popup closing immediatly with react 17

Improve the date-fns example in readme

Per date-fns/date-fns#2474, the `date-fns` example in the readme might've been wrong/broken. I am not familiar with your project, so please double-check that this suggestion is OK!

Update README.md

Keep cherry-picked imports in date-fns example

Update README.md

remove comma and semi-colons to match previous style

feat: sort by event end date if start dates are equal

feat: add commitlint

docs: all custom components documentation (jquense#2014)

* add comma in documentation comments for component agenda

* move unrendered information from calendar to intro file

* add messages example

* add resourceheader to list of components

Co-authored-by: khendrikse <k.hendrikse@youngcapital.nl>

feat: add Time Zone support using localizer date math (jquense#2023)

* full timezone support with moment

* chore: remove comment

* chore: Add timeswitching example

* chore: continued tz efforts

* chore(timezones): Finalize core bits for handling timezones

* docs: Add documentation

* chore: CI tests don't like modern syntax

* chore: Move DST calculations in to the localizers

* chore: Further refine math from localizer

* chore: Further refine localizer date math around same date comparison

* chore: Finalize all date methods being called from localizer

* chore: Corrections to momentLocalizer getEventRange

* chore: Refine and use moment comparison operations

* chore: general cleanup

* chore: Rebuild examples

* fix: Correct moment localizer range() method, to ensure all dates handled as tz

* chore: Use clearer variable name

* fix: Correct method return

* fix: Correct usages of let and const for better GC and immutability

* feat: Add a new luxonLocalizer and expand documentation

* tests: Tested for the new luxonLocalizer

Still have to figure out how to run all tests for each localizer in a single test run

* chore: Bundle examples

* chore: Reset the examples script from local ip usage

* fix: startOfWeek/endOfWeek calculations

According to the CLDR supplemental data, locales can have the first day of the week as
Friday, Saturday, Sunday or Monday, so we need to properly calculate the beginning of
our calendar week.

* chore: fix comment

* fix: Remove that localIp bit again

* chore: General cleanup

* fix: Correct luxon endOfWeek

* fix: Correct endOfDTWeek

fix: Correct duration in DnD (jquense#2034)

feat: Add `onSelectEvent` & `onDoubleClickEvent` support to Agenda

feat: Adding TS, hooks, and Vite

fix: Correct scrollToTime functionailty (jquense#2055)

* fix: Correct scrollToTime functionailty

Fix the calculateScroll method in the TimeGrid

* chore: Remove localIp bits
git push

* Revert "chore: Remove localIp bits"

This reverts commit 0eaae8c.

* chore: Remove localIp bits

Fix: make the isSelected function work if the value is equal without being the exact reference

ci: Move from node-sass to Dart Sass

fix: Correct the listeners reference

Fix the `Selection.teardown()` method to reference the correct variable

ci: Fix package and changelog updates on release

Typo in custom view

Fix typo in custom view example

chore(release): set `package.json` to 0.38.3 [skip ci]

* Correct typo in custom view example ([267629b](jquense@267629b))

fix(sass): Reference distributed folder in SASS compile (jquense#2091)

* fix(sass): Reference distributed folder in SASS compile

Since `./src` folder is not distributed with package install, we must reference the `./lib` folder for proper sourcemapping (jquense#2086).

* chore: Manually update package version for bump test

chore(release): set `package.json` to 0.38.4 [skip ci]

* **sass:** Reference distributed folder in SASS compile ([jquense#2091](jquense#2091)) ([20502f3](jquense@20502f3)), closes [jquense#2086](jquense#2086)

ci(release): Update to @semantic-release/git config (jquense#2092)

This properly commits the package.json update post publish

fix: Correct issue with semantic-release and yarn-lock

chore(release): set `package.json` to 0.38.5 [skip ci]

* Correct issue with semantic-release and yarn-lock ([cc48854](jquense@cc48854)), closes [jquense#2096](jquense#2096)

fix: Correct DragAndDrop event resizing in 'month' view

This corrects an issue where resizing an event (dragging handle to the right) would add an additional day, in certain scenarios.

chore(release): set `package.json` to 0.38.6 [skip ci]

* Correct DragAndDrop event resizing in 'month' view ([e3d96e5](jquense@e3d96e5)), closes [jquense#2012](jquense#2012)

fix: Correct display of beginning DST

This corrects jquense#1617, fixing the display of the TimeGutter times as well as correcting event layouts from the momentLocalizer, while maintaining date math within the localizers.

chore(release): set `package.json` to 0.38.7 [skip ci]

* Correct display of beginning DST ([bd8e0e9](jquense@bd8e0e9)), closes [jquense#1617](jquense#1617)

fix: Correct variable name that gets passed on to EventWrapper so dragndrop ha… (jquense#2121)

Fix variable name that gets passed on to EventWrapper so dragndrop has access to continuesPrior and continuesAfter flags.
Based on these flags, drag n drop determine whether to show north-south anchors
for multi day events.

chore(release): set `package.json` to 0.38.8 [skip ci]

* Correct variable name that gets passed on to EventWrapper so dragndrop ha… ([jquense#2121](jquense#2121)) ([19294de](jquense@19294de))

fix: Correct no overlap algorithm stretch behavior (jquense#2120)

chore(release): set `package.json` to 0.38.9 [skip ci]

* Correct no overlap algorithm stretch behavior ([jquense#2120](jquense#2120)) ([c3f25eb](jquense@c3f25eb))

chore: Update bootstrap-sass (jquense#2136)

Update resolves the deprecation warnings coming from the dart-sass compiler

feat: Disable autoscroll functionality,  Add a functionality to disable auto-scroll on calendar render.

chore(release): set `package.json` to 0.39.0 [skip ci]

* Disable autoscroll functionality,  Add a functionality to disable auto-scroll on calendar render. ([aa8f374](jquense@aa8f374))

fix: Correct resizing event bug in Week & Day (jquense#2143)

Co-authored-by: huangyuning <huangyuning@vv.cn>

chore(release): set `package.json` to 0.39.1 [skip ci]

* Correct resizing event bug in Week & Day ([jquense#2143](jquense#2143)) ([afa8468](jquense@afa8468))

fix: Correct resize for multi-day event. (jquense#2138)

chore(release): set `package.json` to 0.39.2 [skip ci]

* Correct resize for multi-day event. ([jquense#2138](jquense#2138)) ([3632345](jquense@3632345))

chore: Expose slotMetrics to DayColumnWrapper component (jquense#2132)

fix: Trade href="#" anchors for stylized buttons (jquense#2074)

chore(release): set `package.json` to 0.39.3 [skip ci]

* Trade href="#" anchors for stylized buttons ([jquense#2074](jquense#2074)) ([cd385f5](jquense@cd385f5))

docs: Complete Documentation Rewrite (jquense#2108)

Co-authored-by: huangyuning <huangyuning@vv.cn>
Co-authored-by: aLeSangK <le.sang@access-company.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Dhruv Goel <dhruv.goel92@gmail.com>
Co-authored-by: Matheus Mello <mat.mello93@gmail.com>
Co-authored-by: Pietro Coelho <pietrofxq@gmail.com>
Co-authored-by: Old_dream <yuninghuang8@gmail.com>

fix: correct storybook deploy (jquense#2145)

chore(release): set `package.json` to 0.39.4 [skip ci]

* correct storybook deploy ([jquense#2145](jquense#2145)) ([8c98fb2](jquense@8c98fb2))

docs: spelling error (jquense#2146)

fix: disable `absoluteRuntime` in babel-preset-react-app (jquense#2155)

chore(release): set `package.json` to 0.39.5 [skip ci]

* disable `absoluteRuntime` in babel-preset-react-app ([jquense#2155](jquense#2155)) ([b8fcb93](jquense@b8fcb93))

fix: incorrect babel imports in CJS/ESM builds (jquense#2157)

chore(release): set `package.json` to 0.39.6 [skip ci]

* incorrect babel imports in CJS/ESM builds ([jquense#2157](jquense#2157)) ([687b121](jquense@687b121))

fix: move react, react-dom to devDependencies (jquense#2160)

chore(release): set `package.json` to 0.39.7 [skip ci]

* move react, react-dom to devDependencies ([jquense#2160](jquense#2160)) ([6917c15](jquense@6917c15))

feat(events): default events prop to an empty array (jquense#2161)

Changes to default props to no longer make
events required, defaulting to an empty array

chore(release): set `package.json` to 0.40.0 [skip ci]

* **events:** default events prop to an empty array ([jquense#2161](jquense#2161)) ([efac0b2](jquense@efac0b2)), closes [jquense#1708](jquense#1708)

fix: correct luxon localizer formatting (jquense#2172)

chore(release): set `package.json` to 0.40.1 [skip ci]

* correct luxon localizer formatting ([jquense#2172](jquense#2172)) ([b130351](jquense@b130351))

Added support for React v18.x.x

fix: Allow resize to last visible slot

Resolves issue with resizing an event to the end of the viewable TimeGrid

chore(release): set `package.json` to 0.40.2 [skip ci]

* Allow resize to last visible slot ([f26c8a7](jquense@f26c8a7)), closes [jquense#2147](jquense#2147)

fix(DND): Corrects issue of losing droppable event when releasing on non-event related containers (jquense#2199)

chore(release): set `package.json` to 0.40.3 [skip ci]

* **DND:** Corrects issue of losing droppable event when releasing on non-event related containers ([jquense#2199](jquense#2199)) ([508b668](jquense@508b668)), closes [jquense#2198](jquense#2198) [jquense#1902](jquense#1902)

fix: replace findDOMNode with refs

chore(release): set `package.json` to 0.40.4 [skip ci]

* replace findDOMNode with refs ([a902d20](jquense@a902d20)), closes [jquense#2193](jquense#2193)

fix: correct TimeGutter ref use

This resolves an issue with errors thrown in TimeGrid views

chore(release): set `package.json` to 0.40.5 [skip ci]

* correct TimeGutter ref use ([574dbf7](jquense@574dbf7)), closes [jquense#2200](jquense#2200)

fix: correct TimeGutter ref (jquense#2204)

Corrects issue with TimeGutter ref in TimeGrid views

chore(release): set `package.json` to 0.40.6 [skip ci]

* correct TimeGutter ref ([jquense#2204](jquense#2204)) ([055cdd0](jquense@055cdd0)), closes [jquense#2201](jquense#2201)

fix: adjust TimeGutter for DST (jquense#2205)

Handle memoization of 'start' and 'end' to prevent infinite useEffect, and add DST fix back to the TimeGutter

chore(release): set `package.json` to 0.40.7 [skip ci]

* adjust TimeGutter for DST ([jquense#2205](jquense#2205)) ([4ba1255](jquense@4ba1255))

fix: resolve resizing events in Month view

Resolves issue where user could no longer resize events in the Month view.

chore(release): set `package.json` to 0.40.8 [skip ci]

* resolve resizing events in Month view ([c7b105f](jquense@c7b105f)), closes [jquense#2207](jquense#2207)

feat(localizers): move localizer dependencies

Move moment, moment-timezone, luxon and globalize
from devDependencies to dependencies, requiring devs
to explicitly include in their projects. Update
other dependencies.

BREAKING CHANGE: moment, luxon and globalize are no longer bundled

chore(release): set `package.json` to 1.0.0 [skip ci]

* **localizers:** move localizer dependencies ([e4a3235](jquense@e4a3235))

* **localizers:** moment, luxon and globalize are no longer bundled

fix: zero duration no-overlap events (jquense#2213)

Corrects issue with the no-overlap algorithm with events that have no duration

chore(release): set `package.json` to 1.0.1 [skip ci]

* zero duration no-overlap events ([jquense#2213](jquense#2213)) ([bbe1109](jquense@bbe1109))

feat: remove unneeded dependencies (jquense#2215)

Remove all bootstrap and font-awesome dependencies,
as well as undistributed LESS files and fonts

chore(release): set `package.json` to 1.1.0 [skip ci]

* remove unneeded dependencies ([jquense#2215](jquense#2215)) ([fb05151](jquense@fb05151))

feat: replace unsafe deprecated methods (jquense#2216)

This replaces deprecated React methods from the components, leading the way to eventual StrictMode compliance.

chore(release): set `package.json` to 1.2.0 [skip ci]

* replace unsafe deprecated methods ([jquense#2216](jquense#2216)) ([c5c6a8b](jquense@c5c6a8b)), closes [jquense#1200](jquense#1200) [jquense#1777](jquense#1777) [jquense#1481](jquense#1481) [jquense#2126](jquense#2126) [jquense#2104](jquense#2104) [jquense#2105](jquense#2105) [jquense#1526](jquense#1526)

fix: update to current react-overlays (jquense#2217)

Update react-overlays to resolve issues with StrictMode, and constrain popup to within Month container.

chore(release): set `package.json` to 1.2.1 [skip ci]

* update to current react-overlays ([jquense#2217](jquense#2217)) ([27ebe46](jquense@27ebe46)), closes [jquense#2186](jquense#2186)

fix: correct popupOffset (jquense#2218)

Correct error when popupOffset is an object

chore(release): set `package.json` to 1.2.2 [skip ci]

* correct popupOffset ([jquense#2218](jquense#2218)) ([6fdec30](jquense@6fdec30))

fix: correct time-header-gutter (jquense#2219)

make sure the header gutter is measured properly

chore(release): set `package.json` to 1.2.3 [skip ci]

* correct time-header-gutter ([jquense#2219](jquense#2219)) ([160e251](jquense@160e251))

fix: do the math ourselves (jquense#2220)

Remove requirement for SASS math plugin by doing the math ourselves

chore(release): set `package.json` to 1.2.4 [skip ci]

* do the math ourselves ([jquense#2220](jquense#2220)) ([cace54e](jquense@cace54e))

feat: use custom event wrapper when dragging (jquense#2221)

Closes jquense#1864

chore(release): set `package.json` to 1.3.0 [skip ci]

* use custom event wrapper when dragging ([jquense#2221](jquense#2221)) ([73ed69a](jquense@73ed69a)), closes [jquense#1864](jquense#1864)

fix: revert change (jquense#2223)

Pull changes

chore(release): set `package.json` to 1.3.1 [skip ci]

* revert change ([jquense#2223](jquense#2223)) ([bdb0595](jquense@bdb0595))

fix: temp fix for DayColumn render (jquense#2224)

This will work until we can refactor as a
functional component with hooks

Closes jquense#2222

chore(release): set `package.json` to 1.3.2 [skip ci]

* temp fix for DayColumn render ([jquense#2224](jquense#2224)) ([48b23a2](jquense@48b23a2)), closes [jquense#2222](jquense#2222)

fix: revert (jquense#2227)

Have to roll back changes until we can refactor as functional component with hooks

chore(release): set `package.json` to 1.3.3 [skip ci]

* revert ([jquense#2227](jquense#2227)) ([b81fa14](jquense@b81fa14))

feat: allow using custom event wrapper component while dragging (jquense#2228)

Closes jquense#1864

chore(release): set `package.json` to 1.4.0 [skip ci]

* allow using custom event wrapper component while dragging ([jquense#2228](jquense#2228)) ([afa8824](jquense@afa8824)), closes [jquense#1864](jquense#1864)

fix(dnd): dont use classname (jquense#2232)

allow for className object usage

chore(release): set `package.json` to 1.4.1 [skip ci]

* **dnd:** dont use classname ([jquense#2232](jquense#2232)) ([2332f12](jquense@2332f12))

fix: do not autoscroll on event selection (jquense#2234)

Closes jquense#2233

chore(release): set `package.json` to 1.4.2 [skip ci]

* do not autoscroll on event selection ([jquense#2234](jquense#2234)) ([b85b1ff](jquense@b85b1ff)), closes [jquense#2233](jquense#2233)

fix: auto scroll on event selection (jquense#2235)

Fixes jquense#2233

chore(release): set `package.json` to 1.4.3 [skip ci]

* auto scroll on event selection ([jquense#2235](jquense#2235)) ([6d87ebb](jquense@6d87ebb)), closes [jquense#2233](jquense#2233)

feat(time-gutter-wrapper): expose time gutter wrapper component (jquense#2236)

Allows clients to override the time gutter wrapper.

chore(release): set `package.json` to 1.5.0 [skip ci]

* **time-gutter-wrapper:** expose time gutter wrapper component ([jquense#2236](jquense#2236)) ([39ff8a1](jquense@39ff8a1))

docs: add demo image to README (jquense#2237)

Update to README

Thanks to ipiranhaa for the idea

docs: make "Docs" tab default (jquense#2289)

fix: typo for prop titles (jquense#2298)

chore(release): set `package.json` to 1.5.1 [skip ci]

* typo for prop titles ([jquense#2298](jquense#2298)) ([11fd6c8](jquense@11fd6c8))

fix: do not send undefined/null gutterRef to getWidth (jquense#2300)

chore(release): set `package.json` to 1.5.2 [skip ci]

* do not send undefined/null gutterRef to getWidth ([jquense#2300](jquense#2300)) ([7b5f5b8](jquense@7b5f5b8))

feat: Dayjs localizer (jquense#2264)

* docs: fixed instructions to run examples locally
* fix: luxon story now uses luxon instead of moment
* fix(moment localizer): removed comments about 'day' and 'date' in the call to isSame()
* feat: created dayjs localizer
* fix(dayjs localizer): min() & max() now both behave correctly when a default timezone is applied
* docs(localizer guide): edited last two paragraphs to include the new localizer
* fix(dayjs localizer): dayjs plugins are now loaded by the localizer
* docs: updated README.md & exampleCode to reflect dayjs plugins being loaded by the localizer
* docs(localizer props): added dayjs example & sorted examples alphabetically
* docs(exampleCode dayjs): use dayjs to construct date based props
* test: added commented out dayjs configuration
* revert(README.md): remove note on node 16 storybook requirement
* fix(dayjs localizer): dayjs plugins are now loaded by the dayjsLocalizer
* docs(dayjs localizer): mention dayjs plugins being loaded by the dayjsLocalizer
* docs(timezones): mention the dayjsLocalizer's ability to handle timezones too

Big thanks to @marnixhoh for the effort and patience

chore(release): set `package.json` to 1.6.0 [skip ci]

* Dayjs localizer ([jquense#2264](jquense#2264)) ([537c6f3](jquense@537c6f3))

ci: correct release (jquense#2326)

ci: update storybook (jquense#2327)

Updates to multiple dependencies, including all Storybook dependencies, all testing dependencies, and multiple ci/automation dependencies. Babel and Rollup will require research and minor process refactoring.

ci: correct release (jquense#2331)

fix: set width (jquense#2332)

chore(release): set `package.json` to 1.6.1 [skip ci]

* set width ([jquense#2332](jquense#2332)) ([86b26cd](jquense@86b26cd))

ci: attempt resolution (jquense#2333)

docs: add slack invite links (jquense#2335)

Add invite to new Slack workspace.

fix: no-overlap layout algorithm (jquense#2239)

Corrects issue with no-overlap layout

ci: update config (jquense#2340)

ci: update build configuration (jquense#2341)

Updated Babel, ESLint and Rollup dependencies
Removed sizeSnapshot, which is not compatible with ESM

ci: update action (jquense#2342)

Attempt to use the semantic-release GitHub Action

ci: update configs (jquense#2343)

fix: correct publishing (jquense#2350)

Another attempt

chore(release): set `package.json` to 1.6.2 [skip ci]

* correct publishing ([jquense#2350](jquense#2350)) ([ae15118](jquense@ae15118))
* no-overlap layout algorithm ([jquense#2239](jquense#2239)) ([f7bfd11](jquense@f7bfd11)), closes [jquense#2240](jquense#2240)

ci: try again (jquense#2351)

and another

ci: the old college try (jquense#2352)

ci: with publishConfig (jquense#2353)

ci: and another (jquense#2354)

ci: once again (jquense#2355)

ci: and again (jquense#2356)

ci: still trying (jquense#2357)

fix: Fixed publish script (fix jquense#2330) (jquense#2358)

chore(release): set `package.json` to 1.6.3 [skip ci]

* Fixed publish script (fix [jquense#2330](jquense#2330)) ([jquense#2358](jquense#2358)) ([a4e54be](jquense@a4e54be))

ci: update doc release (jquense#2360)

fix: rounding behavior in Luxon localizer (jquense#2362)

Round down the date difference returned in the diff function of the luxon localizer to the nearest whole number, aligning the behavior with other localizers.

chore(release): set `package.json` to 1.6.4 [skip ci]

* rounding behavior in Luxon localizer ([jquense#2362](jquense#2362)) ([409cff1](jquense@409cff1)), closes [jquense#2361](jquense#2361)

ci: update Storybook (jquense#2365)

Update Storybook to 6.5.16

fix: calendar auto scroll while dragging event at top/bottom edge (jquense#2230)

Closes jquense#2231

chore(release): set `package.json` to 1.6.5 [skip ci]

* calendar auto scroll while dragging event at top/bottom edge ([jquense#2230](jquense#2230)) ([d1c5085](jquense@d1c5085)), closes [jquense#2231](jquense#2231)

fix: pass dates to slotGroupPropGetter (jquense#2066)

Fixes an issue where you could not properly style slot groups

chore(release): set `package.json` to 1.6.6 [skip ci]

* pass dates to slotGroupPropGetter ([jquense#2066](jquense#2066)) ([943ae6e](jquense@943ae6e))

fix: 1px misalignment (jquense#2367)

Correct slight misalignment between the `TimeGridHeader` and the scrollbar

chore(release): set `package.json` to 1.6.7 [skip ci]

* 1px misalignment ([jquense#2367](jquense#2367)) ([7479b4d](jquense@7479b4d))

fix: correct treatment of boolean view in 'views' (jquense#2368)

chore(release): set `package.json` to 1.6.8 [skip ci]

* correct treatment of boolean view in 'views' ([jquense#2368](jquense#2368)) ([0e6b771](jquense@0e6b771))

fix(moment): wrong time on the day when DST changes (jquense#2374)

Corrects issue with DST offset when using the moment or Luxon localizers
Thanks to @bu6n for the fix

chore(release): set `package.json` to 1.6.9 [skip ci]

* **moment:** wrong time on the day when DST changes ([jquense#2374](jquense#2374)) ([b82ceb7](jquense@b82ceb7)), closes [jquense#2296](jquense#2296)

docs: add decorator to wrap story in container (jquense#2385)

feat: Support multiple resources on an event

Allows for defining multiple resources on a single event,
so that the event can display in multiple resource columns
simultaneously
Co-authored-by: Jim Hlad <jim@yabhq.com>
Co-authored-by: Jim Hlad <jimhlad@gmail.com>

chore(release): set `package.json` to 1.7.0 [skip ci]

* Support multiple resources on an event ([91155c5](jquense@91155c5)), closes [jquense#2405](jquense#2405) [jquense#1649](jquense#1649)

feat(allDayMaxRows): Allow for more granular control

Allows for more granular control over the number of events display in the all day row
at the top of the TimeGrid
Co-authored-by: Arturo Fornes <arturo.fornes@nextiva.com>

Closes jquense#2386

chore(release): set `package.json` to 1.8.0 [skip ci]

* **allDayMaxRows:** Allow for more granular control ([36871bf](jquense@36871bf)), closes [jquense#2386](jquense#2386)

docs: add resourceId to onSelectSlot documentation (jquense#2408)

fix: scrollToTime does not work properly, when min specified (jquense#2051)

Fixed a bug that prevented scrollToTime does not working properly, when min specified.

chore(release): set `package.json` to 1.8.1 [skip ci]

* scrollToTime does not work properly, when min specified ([jquense#2051](jquense#2051)) ([04c1888](jquense@04c1888))

fix(rtl DnD): Dragging an event in the RTL month view calendar gets confused to the wrong side (jquense#2426)

chore(release): set `package.json` to 1.8.2 [skip ci]

* **rtl DnD:** Dragging an event in the RTL month view calendar gets confused to the wrong side ([jquense#2426](jquense#2426)) ([ebe8c2c](jquense@ebe8c2c)), closes [jquense#2310](jquense#2310) [jquense#1801](jquense#1801)

ci: update Globalize (jquense#2430)

ci: revert globalize dependency upgrade messaging (jquense#2431)

Revert 'globalize' dependency upgrade, and mark for future work

fix: Modify events.js (jquense#2444)

Name change due to Itaewon Halloween disaster.

chore(release): set `package.json` to 1.8.3 [skip ci]

* Modify events.js ([jquense#2444](jquense#2444)) ([2a838d9](jquense@2a838d9))

fix: typo (jquense#2443)

Quick PR to fix the typo in the docs

chore(release): set `package.json` to 1.8.4 [skip ci]

* typo ([jquense#2443](jquense#2443)) ([407e168](jquense@407e168))

fix: fixing invalid ref with invalid scrollHeight (jquense#2459)

chore(release): set `package.json` to 1.8.5 [skip ci]

* fixing invalid ref with invalid scrollHeight ([jquense#2459](jquense#2459)) ([a4bc8f3](jquense@a4bc8f3))

docs: Update README.md

New Slack group invite link

Made events accessible in week and day views (jquense#2473)

docs: Update Slack Invite in README.md

fix(DnD): dragAndDrop EventWrapper.js error: cannot add property 'X', object is not extensible

* Fix dragAndDrop EventWrapper.js error: cannot add property 'X', object is not extensible

Fix for error: cannot add property 'X', object is not extensible

An error appears when trying to modify this.props. The solution is to create a copy of the props using JSON.parse() and JSON.stringify()

https://stackoverflow.com/questions/55567386/react-cannot-add-property-x-object-is-not-extensible

* Update EventWrapper.js

---------

Co-authored-by: martinvu-dev <137462692+martinvu-dev@users.noreply.github.com>

chore(release): set `package.json` to 1.8.6 [skip ci]

* **DnD:** dragAndDrop EventWrapper.js error: cannot add property 'X', object is not extensible ([0c4826a](jquense@0c4826a))

fix: add isBackgroundEvent to onSelectEvent event obj (jquense#2491)

Adds isBackgroundEvent flag to 'event' objects passed to `onSelectEvent`. This allows the user to tailor their `onSelectEvent` methods for different functionality, if the selected `event` is a `backgroundEvent`

chore(release): set `package.json` to 1.8.7 [skip ci]

* add isBackgroundEvent to onSelectEvent event obj ([jquense#2491](jquense#2491)) ([fdbb496](jquense@fdbb496))

docs: update onSelectEvent prop story (jquense#2492)

feat: showMore message add event info (jquense#2496)

* feat: showMore message add event info

* feat: add remaining events and all events in day

---------

authored-by: mutao.zht <mutao.zht@alibaba-inc.com>

chore(release): set `package.json` to 1.9.0 [skip ci]

* showMore message add event info ([jquense#2496](jquense#2496)) ([18012b7](jquense@18012b7))

fix(dnd): move merge components

Resolves issue with using the DnD HOC where components are not receiving state updates

chore(release): set `package.json` to 1.9.1 [skip ci]

* **dnd:** move merge components ([fd02261](jquense@fd02261)), closes [jquense#2359](jquense#2359)

fix: changed flex-direction for rbc-toolbar mobile (jquense#2497)

chore(release): set `package.json` to 1.9.2 [skip ci]

* changed flex-direction for rbc-toolbar mobile ([jquense#2497](jquense#2497)) ([8d7b20d](jquense@8d7b20d)), closes [jquense#1699](jquense#1699)

Update README.md

Update the Slack invite link

feat(event sort): update event sort for multi day (jquense#2502)

This changes the event sort used in the Month view to prioritize items in this order

- Multi Day events first
- Then all day events
- Then by start time
- Then by end time

chore(release): set `package.json` to 1.10.0 [skip ci]

* **event sort:** update event sort for multi day ([jquense#2502](jquense#2502)) ([ff209d0](jquense@ff209d0))

docs: correct some linking (jquense#2507)

fix(ARIA): remove tabindex (jquense#2508)

The tabindex, applied to the event div, creates invalid ARIA component nesting

chore(release): set `package.json` to 1.10.1 [skip ci]

* **ARIA:** remove tabindex ([jquense#2508](jquense#2508)) ([7e01c3d](jquense@7e01c3d)), closes [jquense#2498](jquense#2498)

Update CONTRIBUTING.md

Update README.md

fix: day events sort fixed (jquense#2512)

Co-authored-by: mutao.zht <mutao.zht@alibaba-inc.com>

chore(release): set `package.json` to 1.10.2 [skip ci]

* day events sort fixed ([jquense#2512](jquense#2512)) ([ac1ff00](jquense@ac1ff00))

fix overlapping background events (jquense#2510)

fixes jquense#2452 (Thanks to @chazzlabs)

fix: to build (jquense#2517)

chore(release): set `package.json` to 1.10.3 [skip ci]

* to build ([jquense#2517](jquense#2517)) ([621fc7e](jquense@621fc7e))

feat: add citation file (jquense#2523)

Authors cited have 20 or more commits to Big Calendar

chore(release): set `package.json` to 1.11.0 [skip ci]

* add citation file ([jquense#2523](jquense#2523)) ([3de0059](jquense@3de0059))

fix: replace deprecated onKeyPress by onKeyDown

chore(release): set `package.json` to 1.11.1 [skip ci]

* replace deprecated onKeyPress by onKeyDown ([21f51f2](jquense@21f51f2))

fix: correct slotMetrics issue in TimeGrid

Co-authored-by: forceddd <jixiang.dong@sparkedu.com>

chore(release): set `package.json` to 1.11.2 [skip ci]

* correct slotMetrics issue in TimeGrid ([e25f187](jquense@e25f187)), closes [jquense#2529](jquense#2529)

docs: update Slack invite link in README.md

fix(Selection): handling of terminating event

* fix: _handleTerminatingEvent

* fix: reset _lastClickData

---------

Co-authored-by: forceddd <jixiang.dong@sparkedu.com>

chore(release): set `package.json` to 1.11.3 [skip ci]

* **Selection:** handling of terminating event ([937b4c5](jquense@937b4c5))

fix: Correct selection issues

* fix: issue 2536

* fix: drag selection upward

* fix: keep the original logic

---------

Co-authored-by: forceddd <jixiang.dong@sparkedu.com>

chore(release): set `package.json` to 1.11.4 [skip ci]

* Correct selection issues ([def4934](jquense@def4934))

fix(stories): fix not working links in docs (jquense#2559)

chore(release): set `package.json` to 1.11.5 [skip ci]

* **stories:** fix not working links in docs ([jquense#2559](jquense#2559)) ([295957c](jquense@295957c))

fix(docs): correct link for 'props' in 'Understanding Dates' guide (jquense#2562)

chore(release): set `package.json` to 1.11.6 [skip ci]

* **docs:** correct link for 'props' in 'Understanding Dates' guide ([jquense#2562](jquense#2562)) ([59982ae](jquense@59982ae))

fix: correcting doubleClick (jquense#2571)

Co-authored-by: forceddd <jixiang.dong@sparkedu.com>

chore(release): set `package.json` to 1.11.7 [skip ci]

* correcting doubleClick ([jquense#2571](jquense#2571)) ([775993c](jquense@775993c)), closes [jquense#2565](jquense#2565)

feat(translations): translate CONTRIBUTING.md to Arabic (jquense#2558)

Huge Thanks to @ikrammt for their translation

Translate README to Arabic (jquense#2572)

Co-authored-by: Fatma Alzhra Emad Mohamed <fatmaalzhraemadmohamed@Fatmas-MacBook-Air.local>

chore(release): set `package.json` to 1.12.0 [skip ci]

* **translations:** translate CONTRIBUTING.md to Arabic ([jquense#2558](jquense#2558)) ([ae64158](jquense@ae64158))

fix: fixing Drag and Drop Examples link

closes jquense#2585

chore(release): set `package.json` to 1.12.1 [skip ci]

* fixing Drag and Drop Examples link ([fa4a378](jquense@fa4a378)), closes [jquense#2585](jquense#2585)

docs: update Slack invite link (jquense#2598)

closes jquense#2595

fix: bug with dnd drag drop (jquense#2602)

Added an if statement to account for the second case, and changed the updated state value to use the correct allDay value (Thanks to ganning127)

closes jquense#2601

chore(release): set `package.json` to 1.12.2 [skip ci]

* bug with dnd drag drop ([jquense#2602](jquense#2602)) ([799a72a](jquense@799a72a)), closes [jquense#2601](jquense#2601)

feat: pass resource prop to DayColumnWrapper

Closes jquense#2607

chore(release): set `package.json` to 1.13.0 [skip ci]

* pass resource prop to DayColumnWrapper ([77760aa](jquense@77760aa)), closes [jquense#2607](jquense#2607)
  • Loading branch information
ehahn9 authored and mehranhatami committed Jun 17, 2024
1 parent 02bbeb1 commit 8114337
Show file tree
Hide file tree
Showing 396 changed files with 26,332 additions and 44,722 deletions.
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
not IE 11
last 2 versions
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
lib/
.*
21 changes: 0 additions & 21 deletions .eslintrc

This file was deleted.

46 changes: 46 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
extends: ['jason/react', 'prettier', 'plugin:storybook/recommended'],
plugins: ['react-hooks'],
env: {
node: true,
browser: true,
es6: true,
},
overrides: [
{
// or whatever matches stories specified in .storybook/main.js
files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)'],
rules: {
// example of overriding a rule
//'storybook/hierarchy-separator': 'error',
// example of disabling a rule
'storybook/default-exports': 'off',
},
},
],
rules: {
'global-require': 'off',
'no-console': [
'error',
{
allow: ['warn', 'error', 'info'],
},
],
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
}
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "\U0001F680 New feature proposal"
description: Propose a new feature to be added to Big Calendar
labels: ['feature request']
body:
- type: markdown
attributes:
value: |
Thanks for your interest in the project and taking the time to fill out this feature request!
- type: textarea
id: feature-description
attributes:
label: Clear and concise description of the problem
description: As a developer using Big Calendar I want [goal / wish] so that [benefit]
validations:
required: true
- type: textarea
id: suggested-solution
attributes:
label: Suggested solution
description: 'In module [xy] we could provide following implementation...'
validations:
required: true
- type: textarea
id: alternative
attributes:
label: Alternative
description: Clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Any other context or screenshots about the feature request here.
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Read the [docs](http://jquense.github.io/react-big-calendar/examples/index.html).
required: true
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
required: true
- type: checkboxes
id: pr
attributes:
label: Would you like to open a PR for this feature?
description: Before starting to work on PR it is recommended to get maintainers approval. The fastest, and most appreciated way to have feature included is to create a pull request with working, tested code and we will help get it merged. Don't be scared to open a pull request that isn't completed and ask for input. We're happy to give direction!
options:
- label: I'm willing to open a PR
required: false
89 changes: 89 additions & 0 deletions .github/ISSUE_TEMPLATE/new-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: 🐞 Big Calendar Issue
description: Create a report for Big Calendar
labels: ['bug']
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: checkboxes
id: qa
attributes:
label: Check that this is really a bug
description: For Q&A open go to [StackOverflow](https://stackoverflow.com/)
options:
- label: I confirm
required: true
- type: input
id: reproduction
attributes:
label: Reproduction link
description: Please provide a link to a repo that can reproduce the problem you ran into. You can fork our [Issue Template](https://codesandbox.io/s/react-big-calendar-example-v9wdyd) in codesandbox to get start. A reproduction is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "missing demo" label. If no reproduction is provided after 3 days, it will be auto-closed.
placeholder: 'https://codesandbox.io/..'
validations:
required: true
- type: textarea
id: descr
attributes:
label: Bug description
description: A clear and concise description of what the bug is
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behavior
description: A concise description of what you're experiencing
validations:
required: false
- type: textarea
id: actual
attributes:
label: Actual Behavior
description: A concise description of what you expected to happen.
validations:
required: false
- type: input
id: bigcalendar
attributes:
label: react-big-calendar version
description: Exact release version or commit hash
placeholder: e.g 0.39.3
validations:
required: true
- type: input
id: reactversion
attributes:
label: React version
description: Exact release version or commit hash
placeholder: e.g 17.0.2
validations:
required: true
- type: input
id: browser
attributes:
label: Platform/Target and Browser Versions
description: Platform client you are targeting such as macOS, Windows, Cordova, iOS, Android, Chrome, etc.
placeholder: e.g macOS Safari 14.1
validations:
required: true
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Read the [docs](http://jquense.github.io/react-big-calendar/examples).
required: true
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
required: true
- label: Make sure this is a react-big-calendar issue and not an implementation issue
required: true
- type: checkboxes
id: pr
attributes:
label: Would you like to open a PR for this bug?
description: Before starting to work on PR it is recommended to get maintainers approval. The fastest, and most appreciated way to have your issue fixed is to create a pull request with working, tested code and we will help get it merged. Don't be scared to open a pull request that isn't completed and ask for input. We're happy to give direction!
options:
- label: I'm willing to open a PR
required: false
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

The best way to propose a feature is to open an issue first and discuss your ideas there before implementing them.

Always follow the [contribution guidelines](https://github.com/jquense/react-big-calendar/blob/master/CONTRIBUTING.md) when submitting a pull request.
17 changes: 17 additions & 0 deletions .github/workflows/issue-close-require.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Issue Close Require

on:
schedule:
- cron: '0 0 * * *'

jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- name: missing demo
uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
labels: 'missing demo'
inactive-day: 3
19 changes: 19 additions & 0 deletions .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Issue Labeled

on:
issues:
types: [labeled]

jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
- name: missing demo
if: github.event.label.name == 'missing demo'
uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'create-comment, remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. Please provide an online reproduction by [codesandbox](https://codesandbox.io/) or a minimal GitHub repository. You can fork our [Issue Template](https://codesandbox.io/s/react-big-calendar-example-v9wdyd) in codesandbox to get start. Issues labeled by `missing demo` will be closed if no activities in 3 days.
22 changes: 10 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install Dependencies
run: yarn install

# test and build prior to release
- name: Unit Test & Linting
run: yarn test

- name: Build
run: yarn build

- name: Semantic Release
uses: cycjimmy/semantic-release-action@master
id: semantic
with:
branch: master
extra_plugins: |
@semantic-release/git
@semantic-release/changelog
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
36 changes: 36 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Deploy Documentation
on:
workflow_run:
workflows: ["Release"]
types: [completed]
branches:
- master
paths:
- 'src/**'
- 'stories/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
yarn install --frozen-lockfile
yarn build-storybook
- name: Deploy 🚀
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: storybook-static # The folder that the build-storybook script generates files.
target-folder: examples
clean: true # Automatically remove deleted files from the deploy branch
commit-message: 'docs: update documentation site'
Loading

0 comments on commit 8114337

Please sign in to comment.