Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: charliekassel/vuejs-datepicker
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: reedsy/vuejs-datepicker
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Aug 19, 2020

  1. Copy the full SHA
    68da589 View commit details
  2. Remove precommit hook

    fyvfyv committed Aug 19, 2020
    Copy the full SHA
    1171e15 View commit details
  3. Remove travis

    fyvfyv committed Aug 19, 2020
    Copy the full SHA
    1a1d546 View commit details
  4. Update package.json

    fyvfyv committed Aug 19, 2020
    Copy the full SHA
    1acb0f0 View commit details
  5. Add Github actions

    fyvfyv committed Aug 19, 2020
    Copy the full SHA
    2e301da View commit details

Commits on Aug 20, 2020

  1. Add missed tag.sh

    fyvfyv committed Aug 20, 2020
    Copy the full SHA
    ca97c0e View commit details
  2. Merge pull request #1 from reedsy/deploy

    Deploy
    fyvfyv authored Aug 20, 2020
    Copy the full SHA
    f6b9f14 View commit details
  3. Fix tag.sh chmod

    fyvfyv committed Aug 20, 2020
    Copy the full SHA
    bd9aec4 View commit details
  4. Merge pull request #2 from reedsy/deploy

    Fix tag.sh chmod
    fyvfyv authored Aug 20, 2020
    Copy the full SHA
    22fdcf7 View commit details

Commits on Aug 24, 2020

  1. Add event to highlight day

    fyvfyv committed Aug 24, 2020
    Copy the full SHA
    22875a9 View commit details
  2. Add slots after content

    fyvfyv committed Aug 24, 2020
    Copy the full SHA
    f96fcdc View commit details
  3. Update specs

    fyvfyv committed Aug 24, 2020
    Copy the full SHA
    9af3d0d View commit details
  4. 1.6.2-reedsy-1.1.0

    fyvfyv committed Aug 24, 2020
    Copy the full SHA
    327ecda View commit details
  5. Merge pull request #3 from reedsy/new-features-update

    New features update
    fyvfyv authored Aug 24, 2020
    Copy the full SHA
    3662417 View commit details

Commits on Aug 26, 2020

  1. Add footer to the picker date

    fyvfyv committed Aug 26, 2020
    Copy the full SHA
    191604e View commit details
  2. Update demo and Readme

    fyvfyv committed Aug 26, 2020
    Copy the full SHA
    f5f0dc7 View commit details
  3. 1.6.2-reedsy-1.2.0

    fyvfyv committed Aug 26, 2020
    Copy the full SHA
    7c1f2d8 View commit details
  4. Merge pull request #4 from reedsy/calendar-footer

    Calendar footer
    fyvfyv authored Aug 26, 2020
    Copy the full SHA
    50cba23 View commit details
  5. Fix trailing comma

    fyvfyv committed Aug 26, 2020
    Copy the full SHA
    07be298 View commit details
  6. Merge pull request #5 from reedsy/calendar-footer

    Fix trailing comma
    fyvfyv authored Aug 26, 2020
    Copy the full SHA
    465cff7 View commit details
  7. 1.6.2-reedsy-1.2.1

    fyvfyv committed Aug 26, 2020
    Copy the full SHA
    9d6d249 View commit details
  8. Merge pull request #6 from reedsy/calendar-footer

    1.6.2-reedsy-1.2.1
    fyvfyv authored Aug 26, 2020
    Copy the full SHA
    4469068 View commit details

Commits on Sep 29, 2021

  1. Copy the full SHA
    7f3a1ed View commit details
  2. Merge pull request #7 from reedsy/side-by-side

    ✨ Add side by side view
    victorborrasdev authored Sep 29, 2021
    Copy the full SHA
    5053621 View commit details

Commits on Sep 30, 2021

  1. Copy the full SHA
    b19bd30 View commit details
  2. Merge pull request #8 from reedsy/fix-side-by-side-highlight

    🐛 Fix bug in highlighting for side-by-side calendars
    victorborrasdev authored Sep 30, 2021
    Copy the full SHA
    dfa8502 View commit details

Commits on Oct 1, 2021

  1. Copy the full SHA
    e712740 View commit details
  2. Merge pull request #9 from reedsy/day-picker-custom-footer

    ✨ Add custom footer for the day picker
    victorborrasdev authored Oct 1, 2021
    Copy the full SHA
    e4c2dde View commit details
  3. Copy the full SHA
    d6cb9b3 View commit details
  4. Copy the full SHA
    2c944f5 View commit details
  5. Merge pull request #10 from reedsy/day-picker-custom-footer

    🐛 Add footer slot to Datepicker component
    victorborrasdev authored Oct 1, 2021
    Copy the full SHA
    d3314d9 View commit details
  6. Copy the full SHA
    1e6aeef View commit details

Commits on Nov 10, 2021

  1. ✨ Add modal datepicker

    Allow to open datepicker as modal in the middle of the screen
    dawidreedsy committed Nov 10, 2021
    Copy the full SHA
    1f6e7e2 View commit details
  2. Merge pull request #12 from reedsy/modal-datepicker

    ✨  Add modal datepicker
    dawidreedsy authored Nov 10, 2021
    Copy the full SHA
    edbf2ff View commit details

Commits on Jun 29, 2022

  1. Copy the full SHA
    b15775b View commit details
  2. Merge pull request #13 from reedsy/rename-main-branch

    👷 Update GitHub Actions config after main branch rename
    victorborrasdev authored Jun 29, 2022
    Copy the full SHA
    aa68baa View commit details

Commits on Jul 4, 2022

  1. Copy the full SHA
    c9bbd82 View commit details
  2. Merge pull request #14 from reedsy/initial-keyboard-navigation

    ♿ Add initial keyboard navigation
    victorborrasdev authored Jul 4, 2022
    Copy the full SHA
    fdf6151 View commit details
  3. Copy the full SHA
    5dde8b3 View commit details

Commits on Jul 5, 2022

  1. Copy the full SHA
    47de3be View commit details
  2. Merge pull request #15 from reedsy/day-view-month-change

    ♿ Keyboard month change from day view
    victorborrasdev authored Jul 5, 2022
    Copy the full SHA
    55a1c63 View commit details
  3. Merge pull request #16 from reedsy/month-view

    ♿ Month view keyboard navigation
    victorborrasdev authored Jul 5, 2022
    Copy the full SHA
    e6fdb37 View commit details

Commits on Jul 6, 2022

  1. Copy the full SHA
    e8f97ad View commit details
  2. Merge pull request #18 from reedsy/year-view

    ♿ Year view keyboard navigation
    victorborrasdev authored Jul 6, 2022
    Copy the full SHA
    97d693d View commit details
  3. Copy the full SHA
    d7d05cf View commit details
  4. Merge pull request #17 from reedsy/date-selection

    ♿ Keyboard date selection + focus fixes
    victorborrasdev authored Jul 6, 2022
    Copy the full SHA
    50016f1 View commit details
  5. Copy the full SHA
    d718e8f View commit details
  6. Merge pull request #19 from reedsy/trap-focus

    ♿ Trap focus for keyboard navigation
    victorborrasdev authored Jul 6, 2022
    Copy the full SHA
    fd2a0e5 View commit details
  7. Copy the full SHA
    940480e View commit details

Commits on Jul 7, 2022

  1. Merge pull request #20 from reedsy/aria-attributes

    ♿ Add ARIA attributes
    victorborrasdev authored Jul 7, 2022
    Copy the full SHA
    64a96fc View commit details
Showing with 24,360 additions and 15,547 deletions.
  1. +82 −0 .eslintrc
  2. +0 −24 .eslintrc.js
  3. +15 −0 .github/dependabot.yml
  4. +43 −0 .github/workflows/test.yml
  5. +0 −4 .travis.yml
  6. +5 −0 README.md
  7. +16 −7 babel.config.js
  8. +173 −86 example/{Demo.vue → DatepickerDemo.vue}
  9. +1 −1 example/index.html
  10. +3 −9 example/main.js
  11. +19,487 −13,008 package-lock.json
  12. +40 −62 package.json
  13. +0 −38 scripts/build-locale.js
  14. +0 −46 scripts/build.js
  15. +28 −0 scripts/release.sh
  16. +0 −41 scripts/serve.js
  17. +74 −51 src/components/DateInput.vue
  18. +393 −219 src/components/Datepicker.vue
  19. +127 −0 src/components/DaysGrid.vue
  20. +362 −157 src/components/PickerDay.vue
  21. +52 −0 src/components/PickerFooter.vue
  22. +200 −59 src/components/PickerMonth.vue
  23. +233 −70 src/components/PickerYear.vue
  24. +5 −0 src/config/ElementIds.js
  25. +20 −22 src/locale/Language.js
  26. +52 −54 src/locale/index.js
  27. +5 −7 src/locale/translations/af.js
  28. +7 −9 src/locale/translations/ar.js
  29. +5 −7 src/locale/translations/bg.js
  30. +5 −7 src/locale/translations/bs.js
  31. +5 −7 src/locale/translations/ca.js
  32. +5 −7 src/locale/translations/cs.js
  33. +5 −7 src/locale/translations/da.js
  34. +5 −7 src/locale/translations/de.js
  35. +5 −7 src/locale/translations/ee.js
  36. +5 −7 src/locale/translations/el.js
  37. +5 −7 src/locale/translations/en.js
  38. +5 −7 src/locale/translations/es.js
  39. +5 −7 src/locale/translations/fa.js
  40. +5 −7 src/locale/translations/fi.js
  41. +5 −7 src/locale/translations/fo.js
  42. +5 −7 src/locale/translations/fr.js
  43. +5 −7 src/locale/translations/ge.js
  44. +5 −7 src/locale/translations/gl.js
  45. +7 −9 src/locale/translations/he.js
  46. +5 −7 src/locale/translations/hr.js
  47. +5 −7 src/locale/translations/hu.js
  48. +5 −7 src/locale/translations/id.js
  49. +5 −7 src/locale/translations/is.js
  50. +5 −7 src/locale/translations/it.js
  51. +7 −8 src/locale/translations/ja.js
  52. +5 −7 src/locale/translations/kk.js
  53. +8 −10 src/locale/translations/ko.js
  54. +5 −7 src/locale/translations/lb.js
  55. +7 −9 src/locale/translations/lt.js
  56. +5 −7 src/locale/translations/lv.js
  57. +5 −7 src/locale/translations/mk.js
  58. +7 −9 src/locale/translations/mn.js
  59. +5 −7 src/locale/translations/nb-NO.js
  60. +5 −7 src/locale/translations/nl.js
  61. +5 −7 src/locale/translations/pl.js
  62. +5 −7 src/locale/translations/pt-BR.js
  63. +5 −7 src/locale/translations/ro.js
  64. +5 −7 src/locale/translations/ru.js
  65. +5 −7 src/locale/translations/sk.js
  66. +5 −7 src/locale/translations/sl-SI.js
  67. +5 −7 src/locale/translations/sr-CYRL.js
  68. +5 −7 src/locale/translations/sr.js
  69. +5 −7 src/locale/translations/sv.js
  70. +5 −7 src/locale/translations/th.js
  71. +5 −7 src/locale/translations/tr.js
  72. +5 −7 src/locale/translations/uk.js
  73. +7 −9 src/locale/translations/ur.js
  74. +5 −7 src/locale/translations/vi.js
  75. +7 −7 src/locale/translations/zh-HK.js
  76. +7 −9 src/locale/translations/zh.js
  77. +160 −107 src/styles/style.styl
  78. +59 −61 src/utils/DateUtils.js
  79. +16 −0 src/utils/FocusableElements.js
  80. +9 −0 src/utils/IsElementInViewport.js
  81. +11 −8 test/unit/jest.conf.js
  82. +0 −3 test/unit/setup.js
  83. +57 −62 test/unit/specs/DateInput/DateInput.spec.js
  84. +45 −52 test/unit/specs/DateInput/typedDates.spec.js
  85. +126 −126 test/unit/specs/DateUtils.spec.js
  86. +418 −250 test/unit/specs/Datepicker/Datepicker.spec.js
  87. +19 −19 test/unit/specs/Datepicker/inline.spec.js
  88. +30 −30 test/unit/specs/Datepicker/openDate.spec.js
  89. +72 −72 test/unit/specs/Datepicker/restrictedViews.spec.js
  90. +126 −0 test/unit/specs/DaysGrid/daysGrid.spec.js
  91. +43 −0 test/unit/specs/DaysGrid/mondayFirst.spec.js
  92. +275 −0 test/unit/specs/FocusableElements.spec.js
  93. +12 −12 test/unit/specs/Locale/Language.spec.js
  94. +193 −0 test/unit/specs/PickerDay/changeFocus.spec.js
  95. +41 −19 test/unit/specs/PickerDay/changeMonths.spec.js
  96. +75 −75 test/unit/specs/PickerDay/disabledDates.spec.js
  97. +110 −89 test/unit/specs/PickerDay/highlightedDates.spec.js
  98. +12 −12 test/unit/specs/PickerDay/initialDom.spec.js
  99. +0 −39 test/unit/specs/PickerDay/mondayFirst.spec.js
  100. +159 −30 test/unit/specs/PickerDay/pickerDay.spec.js
  101. +25 −0 test/unit/specs/PickerDay/setToday.spec.js
  102. +158 −0 test/unit/specs/PickerMonth/changeFocus.spec.js
  103. +25 −25 test/unit/specs/PickerMonth/disabledMonths.spec.js
  104. +49 −34 test/unit/specs/PickerMonth/pickerMonth.spec.js
  105. +209 −0 test/unit/specs/PickerYear/changeFocus.spec.js
  106. +59 −59 test/unit/specs/PickerYear/disabledYears.spec.js
  107. +53 −39 test/unit/specs/PickerYear/pickerYear.spec.js
  108. +34 −0 vite.config.js
82 changes: 82 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"extends": [
"plugin:vue/vue3-recommended"
],
// 2: reports an error, breaking the build.
// 1: report a warning.
// 0: disables rule.
"rules": {
"array-bracket-spacing": [
2,
"always"
],
"comma-dangle": [
2,
"always-multiline"
],
"comma-spacing": [
2,
{
"before": false,
"after": true
}
],
"curly": [
0,
"multi"
],
"eol-last": 2,
"indent": [
2,
2
],
"new-cap": 1,
"no-caller": 2,
"no-console": 1,
"no-cond-assign": 0,
"no-debugger": 2,
"no-new": 0,
"no-return-assign": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"object-curly-spacing": [
2,
"always"
],
"semi": 2,
"strict": 0,
"valid-jsdoc": 0,
"valid-typeof": 2,
"vue/require-default-prop": 0,
"wrap-iife": [
2,
"inside"
],
"quotes": [
2,
"single",
{
"allowTemplateLiterals": true
}
]
},
"globals": {
"__dirname": false,
"console": false,
"document": false,
"exports": false,
"google": false,
"module": false,
"process": false,
"require": false,
"window": false
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"modules": true
},
"ecmaVersion": 2018,
"sourceType": "module"
}
}
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Docs: https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/keeping-your-dependencies-updated-automatically

version: 2
updates:
# Configuration for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
schedule:
interval: "weekly"
time: "03:00"
reviewers:
- "reedsy/ui"
assignees:
- "reedsy/ui"
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04
if: ${{ github.actor != 'dependabot[bot]' }}

timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '20.x'
always-auth: true
registry-url: "https://npm.pkg.github.com"
scope: "@reedsy"
- name: Install
# Skip post-install to avoid malicious scripts stealing PAT
run: npm install --ignore-script
env:
# GITHUB_TOKEN can't access packages hosted in private repos,
# even within the same organisation
NODE_AUTH_TOKEN: ${{ secrets.REEDSY_BOT_PERSONAL_ACCESS_TOKEN }}
- name: Post-install
run: npm rebuild && npm run prepare --if-present
- name: Test
run: npm test
- name: Release
if: ${{ github.ref == 'refs/heads/main' }}
run: ./scripts/release.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -147,6 +147,10 @@ Inline always open version
| open-date | Date\|String | | If set, open on that date |
| minimum-view | String | 'day' | If set, lower-level views won't show |
| maximum-view | String | 'year' | If set, higher-level views won't show |
| show-footer | Boolean | false | If set, footer on date view is shown |
| footer-class | String | | CSS class applied to the outer div |
| today-button-class | String | | CSS class applied to the Today button |
| clear-button-class | String | | CSS class applied to the Clear button |


## Events
@@ -164,6 +168,7 @@ These events are emitted on actions in the datepicker
| changedMonth | Object | Month page has been changed |
| changedYear | Object | Year page has been changed |
| changedDecade | Object | Decade page has been changed |
| highlightDate | Object | Mouseover on a date |


## Date formatting
23 changes: 16 additions & 7 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
module.exports = {
'presets': [
['@babel/preset-env', {
'modules': false
}]
[
'@babel/preset-env',
{
'targets': {
'esmodules': true,
},
},
],
'vue',
],
'env': {
'test': {
'plugins': ['@babel/plugin-transform-modules-commonjs']
}
}
}
'plugins': [
'@babel/plugin-transform-modules-commonjs',
'@babel/transform-runtime',
],
},
},
};
Loading