full_calendar 4.2.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.
Files changed (135) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.gitignore +49 -0
  4. data/Gemfile +6 -0
  5. data/Gemfile.lock +20 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +102 -0
  8. data/Rakefile +2 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/full_calendar.gemspec +28 -0
  12. data/lib/.DS_Store +0 -0
  13. data/lib/full_calendar/engine.rb +9 -0
  14. data/lib/full_calendar/version.rb +3 -0
  15. data/lib/full_calendar.rb +73 -0
  16. data/lib/generators/.DS_Store +0 -0
  17. data/lib/generators/fullcalendar/.DS_Store +0 -0
  18. data/lib/generators/fullcalendar/install_generator.rb +61 -0
  19. data/lib/generators/fullcalendar/templates/default.js.tt +13 -0
  20. data/lib/generators/fullcalendar/templates/default.scss.tt +7 -0
  21. data/vendor/.DS_Store +0 -0
  22. data/vendor/assets/.DS_Store +0 -0
  23. data/vendor/assets/javascripts/.DS_Store +0 -0
  24. data/vendor/assets/javascripts/fullcalendar/.DS_Store +0 -0
  25. data/vendor/assets/javascripts/fullcalendar/bootstrap/.DS_Store +0 -0
  26. data/vendor/assets/javascripts/fullcalendar/bootstrap/main.js +90 -0
  27. data/vendor/assets/javascripts/fullcalendar/bootstrap/main.min.js +20 -0
  28. data/vendor/assets/javascripts/fullcalendar/core/.DS_Store +0 -0
  29. data/vendor/assets/javascripts/fullcalendar/core/locales/af.js +30 -0
  30. data/vendor/assets/javascripts/fullcalendar/core/locales/ar-dz.js +31 -0
  31. data/vendor/assets/javascripts/fullcalendar/core/locales/ar-kw.js +31 -0
  32. data/vendor/assets/javascripts/fullcalendar/core/locales/ar-ly.js +31 -0
  33. data/vendor/assets/javascripts/fullcalendar/core/locales/ar-ma.js +31 -0
  34. data/vendor/assets/javascripts/fullcalendar/core/locales/ar-sa.js +31 -0
  35. data/vendor/assets/javascripts/fullcalendar/core/locales/ar-tn.js +31 -0
  36. data/vendor/assets/javascripts/fullcalendar/core/locales/ar.js +31 -0
  37. data/vendor/assets/javascripts/fullcalendar/core/locales/bg.js +31 -0
  38. data/vendor/assets/javascripts/fullcalendar/core/locales/bs.js +32 -0
  39. data/vendor/assets/javascripts/fullcalendar/core/locales/ca.js +30 -0
  40. data/vendor/assets/javascripts/fullcalendar/core/locales/cs.js +32 -0
  41. data/vendor/assets/javascripts/fullcalendar/core/locales/da.js +30 -0
  42. data/vendor/assets/javascripts/fullcalendar/core/locales/de.js +33 -0
  43. data/vendor/assets/javascripts/fullcalendar/core/locales/el.js +30 -0
  44. data/vendor/assets/javascripts/fullcalendar/core/locales/en-au.js +17 -0
  45. data/vendor/assets/javascripts/fullcalendar/core/locales/en-gb.js +17 -0
  46. data/vendor/assets/javascripts/fullcalendar/core/locales/en-nz.js +17 -0
  47. data/vendor/assets/javascripts/fullcalendar/core/locales/es-us.js +30 -0
  48. data/vendor/assets/javascripts/fullcalendar/core/locales/es.js +30 -0
  49. data/vendor/assets/javascripts/fullcalendar/core/locales/et.js +32 -0
  50. data/vendor/assets/javascripts/fullcalendar/core/locales/eu.js +30 -0
  51. data/vendor/assets/javascripts/fullcalendar/core/locales/fa.js +33 -0
  52. data/vendor/assets/javascripts/fullcalendar/core/locales/fi.js +30 -0
  53. data/vendor/assets/javascripts/fullcalendar/core/locales/fr-ca.js +27 -0
  54. data/vendor/assets/javascripts/fullcalendar/core/locales/fr-ch.js +31 -0
  55. data/vendor/assets/javascripts/fullcalendar/core/locales/fr.js +31 -0
  56. data/vendor/assets/javascripts/fullcalendar/core/locales/gl.js +30 -0
  57. data/vendor/assets/javascripts/fullcalendar/core/locales/he.js +27 -0
  58. data/vendor/assets/javascripts/fullcalendar/core/locales/hi.js +32 -0
  59. data/vendor/assets/javascripts/fullcalendar/core/locales/hr.js +32 -0
  60. data/vendor/assets/javascripts/fullcalendar/core/locales/hu.js +30 -0
  61. data/vendor/assets/javascripts/fullcalendar/core/locales/id.js +30 -0
  62. data/vendor/assets/javascripts/fullcalendar/core/locales/is.js +30 -0
  63. data/vendor/assets/javascripts/fullcalendar/core/locales/it.js +32 -0
  64. data/vendor/assets/javascripts/fullcalendar/core/locales/ja.js +28 -0
  65. data/vendor/assets/javascripts/fullcalendar/core/locales/ka.js +32 -0
  66. data/vendor/assets/javascripts/fullcalendar/core/locales/kk.js +32 -0
  67. data/vendor/assets/javascripts/fullcalendar/core/locales/ko.js +26 -0
  68. data/vendor/assets/javascripts/fullcalendar/core/locales/lb.js +30 -0
  69. data/vendor/assets/javascripts/fullcalendar/core/locales/lt.js +30 -0
  70. data/vendor/assets/javascripts/fullcalendar/core/locales/lv.js +32 -0
  71. data/vendor/assets/javascripts/fullcalendar/core/locales/mk.js +28 -0
  72. data/vendor/assets/javascripts/fullcalendar/core/locales/ms.js +32 -0
  73. data/vendor/assets/javascripts/fullcalendar/core/locales/nb.js +30 -0
  74. data/vendor/assets/javascripts/fullcalendar/core/locales/nl.js +30 -0
  75. data/vendor/assets/javascripts/fullcalendar/core/locales/nn.js +30 -0
  76. data/vendor/assets/javascripts/fullcalendar/core/locales/pl.js +30 -0
  77. data/vendor/assets/javascripts/fullcalendar/core/locales/pt-br.js +28 -0
  78. data/vendor/assets/javascripts/fullcalendar/core/locales/pt.js +30 -0
  79. data/vendor/assets/javascripts/fullcalendar/core/locales/ro.js +32 -0
  80. data/vendor/assets/javascripts/fullcalendar/core/locales/ru.js +32 -0
  81. data/vendor/assets/javascripts/fullcalendar/core/locales/sk.js +32 -0
  82. data/vendor/assets/javascripts/fullcalendar/core/locales/sl.js +30 -0
  83. data/vendor/assets/javascripts/fullcalendar/core/locales/sq.js +32 -0
  84. data/vendor/assets/javascripts/fullcalendar/core/locales/sr-cyrl.js +32 -0
  85. data/vendor/assets/javascripts/fullcalendar/core/locales/sr.js +32 -0
  86. data/vendor/assets/javascripts/fullcalendar/core/locales/sv.js +30 -0
  87. data/vendor/assets/javascripts/fullcalendar/core/locales/th.js +25 -0
  88. data/vendor/assets/javascripts/fullcalendar/core/locales/tr.js +30 -0
  89. data/vendor/assets/javascripts/fullcalendar/core/locales/uk.js +32 -0
  90. data/vendor/assets/javascripts/fullcalendar/core/locales/vi.js +32 -0
  91. data/vendor/assets/javascripts/fullcalendar/core/locales/zh-cn.js +33 -0
  92. data/vendor/assets/javascripts/fullcalendar/core/locales/zh-tw.js +26 -0
  93. data/vendor/assets/javascripts/fullcalendar/core/locales-all.js +1353 -0
  94. data/vendor/assets/javascripts/fullcalendar/core/locales-all.min.js +6 -0
  95. data/vendor/assets/javascripts/fullcalendar/core/main.js +8679 -0
  96. data/vendor/assets/javascripts/fullcalendar/core/main.min.js +9 -0
  97. data/vendor/assets/javascripts/fullcalendar/daygrid/.DS_Store +0 -0
  98. data/vendor/assets/javascripts/fullcalendar/daygrid/main.js +1639 -0
  99. data/vendor/assets/javascripts/fullcalendar/daygrid/main.min.js +20 -0
  100. data/vendor/assets/javascripts/fullcalendar/google-calendar/main.js +169 -0
  101. data/vendor/assets/javascripts/fullcalendar/google-calendar/main.min.js +20 -0
  102. data/vendor/assets/javascripts/fullcalendar/interaction/main.js +2143 -0
  103. data/vendor/assets/javascripts/fullcalendar/interaction/main.min.js +21 -0
  104. data/vendor/assets/javascripts/fullcalendar/list/.DS_Store +0 -0
  105. data/vendor/assets/javascripts/fullcalendar/list/main.js +341 -0
  106. data/vendor/assets/javascripts/fullcalendar/list/main.min.js +20 -0
  107. data/vendor/assets/javascripts/fullcalendar/luxon/main.js +162 -0
  108. data/vendor/assets/javascripts/fullcalendar/luxon/main.min.js +20 -0
  109. data/vendor/assets/javascripts/fullcalendar/moment/main.js +103 -0
  110. data/vendor/assets/javascripts/fullcalendar/moment/main.min.js +6 -0
  111. data/vendor/assets/javascripts/fullcalendar/moment-timezone/main.js +64 -0
  112. data/vendor/assets/javascripts/fullcalendar/moment-timezone/main.min.js +20 -0
  113. data/vendor/assets/javascripts/fullcalendar/rrule/main.js +127 -0
  114. data/vendor/assets/javascripts/fullcalendar/rrule/main.min.js +20 -0
  115. data/vendor/assets/javascripts/fullcalendar/timegrid/.DS_Store +0 -0
  116. data/vendor/assets/javascripts/fullcalendar/timegrid/main.js +1354 -0
  117. data/vendor/assets/javascripts/fullcalendar/timegrid/main.min.js +20 -0
  118. data/vendor/assets/stylesheets/.DS_Store +0 -0
  119. data/vendor/assets/stylesheets/fullcalendar/.DS_Store +0 -0
  120. data/vendor/assets/stylesheets/fullcalendar/bootstrap/.DS_Store +0 -0
  121. data/vendor/assets/stylesheets/fullcalendar/bootstrap/main.css +33 -0
  122. data/vendor/assets/stylesheets/fullcalendar/bootstrap/main.min.css +5 -0
  123. data/vendor/assets/stylesheets/fullcalendar/core/.DS_Store +0 -0
  124. data/vendor/assets/stylesheets/fullcalendar/core/main.css +900 -0
  125. data/vendor/assets/stylesheets/fullcalendar/core/main.min.css +5 -0
  126. data/vendor/assets/stylesheets/fullcalendar/daygrid/.DS_Store +0 -0
  127. data/vendor/assets/stylesheets/fullcalendar/daygrid/main.css +69 -0
  128. data/vendor/assets/stylesheets/fullcalendar/daygrid/main.min.css +5 -0
  129. data/vendor/assets/stylesheets/fullcalendar/list/.DS_Store +0 -0
  130. data/vendor/assets/stylesheets/fullcalendar/list/main.css +101 -0
  131. data/vendor/assets/stylesheets/fullcalendar/list/main.min.css +5 -0
  132. data/vendor/assets/stylesheets/fullcalendar/timegrid/.DS_Store +0 -0
  133. data/vendor/assets/stylesheets/fullcalendar/timegrid/main.css +266 -0
  134. data/vendor/assets/stylesheets/fullcalendar/timegrid/main.min.css +5 -0
  135. metadata +219 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c1baa90ea8ebe70ee806dcdb1a0947d5afff7de7f8248a898a3841dcbc63bd87
4
+ data.tar.gz: a9c6bd7d487f068c15b68ba0232d3bf7c1642722fc6b82e3e3849f1bdaa564b0
5
+ SHA512:
6
+ metadata.gz: 582c421b093c247c42d4da55659abc114a22e8f3d3743ca824d899475bd599e4312fa1e32e69188f9c4f8f0cac2d9d02d92b1720fa362fce96ae4732167593bf
7
+ data.tar.gz: 79d1f3da227c4259d83d0c0665d7d0a97324dd8b72e289998a8c5112bb11189bcd048c5d4e97be082b66aa9d5c892c6aa3a43151070d04f231fecd67464637a3
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,49 @@
1
+ *.rbc
2
+ capybara-*.html
3
+ .rspec
4
+ /log
5
+ /tmp
6
+ /db/*.sqlite3
7
+ /db/*.sqlite3-journal
8
+ /public/system
9
+ /coverage/
10
+ /spec/tmp
11
+ *.orig
12
+ rerun.txt
13
+ pickle-email-*.html
14
+
15
+ # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
16
+ config/initializers/secret_token.rb
17
+ config/master.key
18
+
19
+ # Only include if you have production secrets in this file, which is no longer a Rails default
20
+ # config/secrets.yml
21
+
22
+ # dotenv
23
+ # TODO Comment out this rule if environment variables can be committed
24
+ .env
25
+
26
+ ## Environment normalization:
27
+ /.bundle
28
+ /vendor/bundle
29
+
30
+ # these should all be checked in to normalize the environment:
31
+ # Gemfile.lock, .ruby-version, .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
35
+
36
+ # if using bower-rails ignore default bower_components path bower.json files
37
+ /vendor/assets/bower_components
38
+ *.bowerrc
39
+ bower.json
40
+
41
+ # Ignore pow environment settings
42
+ .powenv
43
+
44
+ # Ignore Byebug command history file.
45
+ .byebug_history
46
+
47
+ # Ignore node_modules
48
+ node_modules/
49
+
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in fullcalendar.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,20 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fullcalendar (3.8.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (10.5.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler (~> 1.16)
16
+ fullcalendar!
17
+ rake (~> 10.0)
18
+
19
+ BUNDLED WITH
20
+ 1.16.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 @company
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,102 @@
1
+ # Fullcalendar Ruby Gem
2
+
3
+ This gem is a fork of [fullcalendar](https://github.com/mkhairi/fullcalendar) updating it to last version of FullCalendar (4.2)
4
+
5
+ This gem just includes [fullcalendar](https://fullcalendar.io/) and [scheduler](https://fullcalendar.io/scheduler/) as an asset in rails applications or other ruby frameworks
6
+ [Fullcaledar-scheduler](https://fullcalendar.io/scheduler/) is not free for commercial use, so make sure you have a valid [license](https://fullcalendar.io/scheduler/license/) to use scheduler.
7
+
8
+
9
+ ## Installation
10
+
11
+ Fullcalendar JavaScript depends on jQuery and moment js. If you're using Rails 5.1+, add the jquery-rails gem to your Gemfile:
12
+
13
+ ```ruby
14
+ gem 'jquery-rails'
15
+ gem 'momentjs-rails'
16
+ ```
17
+
18
+ Add this line to your application's Gemfile:
19
+
20
+ ```ruby
21
+ gem 'full_calendar'
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install full_calendar
31
+
32
+
33
+ ## Install generator
34
+
35
+ ### command
36
+ ```ruby
37
+ rails g fullcalendar:install
38
+ ```
39
+
40
+ this generator will:
41
+ - 1. append ```//= require calendar ``` add `app/assets/javascripts/application.js`
42
+ - 2. append ```*= require calendar ``` add `app/assets/stylesheets/application.css`
43
+ - 3. create calendar.js in ```app/assets/javascripts/```
44
+ - 4. create calendar.scss in ```app/assets/stylesheets/```
45
+
46
+ ## Manual install
47
+
48
+ ### JavaScripts
49
+
50
+ Include the JavaScript in your `app/assets/javascripts/application.js`:
51
+ ```
52
+ //= require jquery
53
+ //= require calendar
54
+
55
+ ```
56
+ create new file `app/assets/javascripts/calendar.js`
57
+ ```
58
+ //Core component
59
+ //= require fullcalendar
60
+ // optional locale
61
+ //= require fullcalendar/locale/ms
62
+
63
+ //Optional addon scheduler
64
+ //= require fullcalendar/scheduler
65
+
66
+ ```
67
+
68
+ ### Stylesheets
69
+ Include the stylesheet in your `app/assets/stylesheets/application.css`:
70
+ ```
71
+ *= require calendar
72
+ ```
73
+
74
+ or if you using scss
75
+
76
+ Include the stylesheet in your `app/assets/stylesheets/application.scss`:
77
+ ```scss
78
+ @import 'calendar';
79
+ ```
80
+
81
+ Create new file `app/assets/stylesheets/calendar.scss`
82
+ ```scss
83
+ @import 'fullcalendar';
84
+ ```
85
+
86
+ ### Initialization
87
+ Where needed in your JavaScripts, initialize your fullcalendar:
88
+
89
+ ```js
90
+ $(document).ready(function() {
91
+ var calendarEl = document.getElementById('calendar');
92
+ new (FullCalendar.Calendar)(calendarEl);
93
+ });
94
+ ```
95
+
96
+ ## Usage
97
+ see fullcalendar documentations [here](https://fullcalendar.io/docs)
98
+
99
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
100
+ Fullcalendar and Scheduler, which makes up the majority of this gem, has its own, separate licensing agreement.
101
+ - Fullcalendar [Read license](https://github.com/fullcalendar/fullcalendar/blob/master/LICENSE.txt)
102
+ - Scheduler [Read license](https://github.com/fullcalendar/fullcalendar-scheduler/blob/master/LICENSE.md)
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "fullcalendar"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,28 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "full_calendar/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "full_calendar"
8
+ spec.version = FullCalendar::VERSION
9
+ spec.authors = ["Adrián Fernández"]
10
+ spec.email = ["adrianfernandez85@gmail.com"]
11
+
12
+ spec.summary = %q{Gemified FullCalendar assets for rails and etc.}
13
+ spec.description = %q{Use FullCalendar in asset pipeline with ease}
14
+ spec.homepage = "https://github.com/adrian-fernandez/full_calendar"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_runtime_dependency 'momentjs-rails', '~> 2.20.1'
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.16"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ end
data/lib/.DS_Store ADDED
Binary file
@@ -0,0 +1,9 @@
1
+ module FullCalendar
2
+ class Engine < ::Rails::Engine
3
+ initializer 'fullcalendar.assets.precompile' do |app|
4
+ %w(stylesheets javascripts).each do |sub|
5
+ app.config.assets.paths << root.join('vendor/assets', sub).to_s
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module FullCalendar
2
+ VERSION = "4.2.0"
3
+ end
@@ -0,0 +1,73 @@
1
+ require "full_calendar/version"
2
+
3
+ module FullCalendar
4
+ #thanks to bootstrap-rubygem
5
+ class << self
6
+ # Inspired by Kaminari
7
+ def load!
8
+ if rails?
9
+ register_rails_engine
10
+ elsif hanami?
11
+ register_hanami
12
+ elsif sprockets?
13
+ register_sprockets
14
+ end
15
+
16
+ configure_sass
17
+ end
18
+
19
+ # Paths
20
+ def gem_path
21
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
22
+ end
23
+
24
+ def stylesheets_path
25
+ File.join assets_path, 'stylesheets'
26
+ end
27
+
28
+ def javascripts_path
29
+ File.join assets_path, 'javascripts'
30
+ end
31
+
32
+ def assets_path
33
+ @assets_path ||= File.join gem_path, 'vendor/assets'
34
+ end
35
+
36
+ # Environment detection helpers
37
+ def sprockets?
38
+ defined?(::Sprockets)
39
+ end
40
+
41
+ def rails?
42
+ defined?(::Rails)
43
+ end
44
+
45
+ def hanami?
46
+ defined?(::Hanami)
47
+ end
48
+
49
+ private
50
+
51
+ def configure_sass
52
+ require 'sass'
53
+
54
+ ::Sass.load_paths << stylesheets_path
55
+ end
56
+
57
+ def register_rails_engine
58
+ require 'full_calendar/engine'
59
+ end
60
+
61
+ def register_sprockets
62
+ Sprockets.append_path(stylesheets_path)
63
+ Sprockets.append_path(javascripts_path)
64
+ end
65
+
66
+ def register_hanami
67
+ Hanami::Assets.sources << assets_path
68
+ end
69
+ end
70
+
71
+ end
72
+
73
+ FullCalendar.load!
Binary file
@@ -0,0 +1,61 @@
1
+ require 'rails/generators'
2
+
3
+ module Fullcalendar
4
+ module Generators
5
+ class InstallGenerator < ::Rails::Generators::Base
6
+ desc "This generator installs fullcalendar to the rails asset pipeline"
7
+
8
+ argument :style, :type => :string, :default => 'default'
9
+ # needed for thor templates
10
+ source_root File.expand_path("../templates", __FILE__)
11
+
12
+ def add_assets
13
+ js_manifest = 'app/assets/javascripts/application.js'
14
+ css_manifest = 'app/assets/stylesheets/application.css'
15
+ scss_manifest = 'app/assets/stylesheets/application.scss'
16
+ js_strings = "//= require calendar\n"
17
+
18
+ insert_into_file js_manifest, js_strings, :after => "turbolinks\n" if File.exists?(js_manifest)
19
+ insert_css_strings(css_manifest) if File.exists?(css_manifest)
20
+ insert_scss_strings(scss_manifest) if File.exists?(scss_manifest)
21
+ copy_core_file
22
+ end
23
+
24
+ private
25
+
26
+ def insert_css_strings(css_manifest)
27
+ content = File.read(css_manifest)
28
+ css_strings = "*/= require calendar\n"
29
+
30
+ if requires_tree(content)
31
+ insert_into_file css_manifest, css_strings, :after => "require_tree .\n"
32
+ elsif requires_self(content)
33
+ insert_into_file css_manifest, css_strings, :before => " *= require_self\n"
34
+ else
35
+ insert_into_file css_manifest, css_strings, :before => " */"
36
+ end
37
+
38
+ end
39
+
40
+ def insert_scss_strings(scss_manifest)
41
+ content = File.read(scss_manifest)
42
+ scss_strings = "\n@import \"calendar\";\n"
43
+ append_to_file scss_manifest, scss_strings
44
+ end
45
+
46
+ def requires_tree(content)
47
+ content.match(/require_tree\s+\.\s*$/)
48
+ end
49
+
50
+ def requires_self(content)
51
+ content.match(/require_self\s*$/)
52
+ end
53
+
54
+ def copy_core_file
55
+ template "#{style}.js.tt", "app/assets/javascripts/calendar.js"
56
+ template "#{style}.scss.tt", "app/assets/stylesheets/calendar.scss"
57
+ end
58
+
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,13 @@
1
+ //= require moment
2
+ //= require fullcalendar/core/main
3
+ //= require fullcalendar/core/locales/es
4
+ //= require fullcalendar/bootstrap/main
5
+ //= require fullcalendar/daygrid/main
6
+ //= require fullcalendar/google-calendar/main
7
+ //= require fullcalendar/interaction/main
8
+ //= require fullcalendar/list/main
9
+ //= require fullcalendar/luxon/main
10
+ //= require fullcalendar/moment/main
11
+ //= require fullcalendar/moment-timezone/main
12
+ //= require fullcalendar/rrule/main
13
+ //= require fullcalendar/timegrid/main
@@ -0,0 +1,7 @@
1
+ /*
2
+ *= require fullcalendar/core/main
3
+ *= require fullcalendar/bootstrap/main
4
+ *= require fullcalendar/daygrid/main
5
+ *= require fullcalendar/list/main
6
+ *= require fullcalendar/timegrid/main
7
+ */
data/vendor/.DS_Store ADDED
Binary file
Binary file
Binary file
@@ -0,0 +1,90 @@
1
+ /*!
2
+ FullCalendar Bootstrap Plugin v4.2.0
3
+ Docs & License: https://fullcalendar.io/
4
+ (c) 2019 Adam Shaw
5
+ */
6
+ (function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@fullcalendar/core')) :
8
+ typeof define === 'function' && define.amd ? define(['exports', '@fullcalendar/core'], factory) :
9
+ (global = global || self, factory(global.FullCalendarBootstrap = {}, global.FullCalendar));
10
+ }(this, function (exports, core) { 'use strict';
11
+
12
+ /*! *****************************************************************************
13
+ Copyright (c) Microsoft Corporation. All rights reserved.
14
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
15
+ this file except in compliance with the License. You may obtain a copy of the
16
+ License at http://www.apache.org/licenses/LICENSE-2.0
17
+
18
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
20
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
21
+ MERCHANTABLITY OR NON-INFRINGEMENT.
22
+
23
+ See the Apache Version 2.0 License for specific language governing permissions
24
+ and limitations under the License.
25
+ ***************************************************************************** */
26
+ /* global Reflect, Promise */
27
+
28
+ var extendStatics = function(d, b) {
29
+ extendStatics = Object.setPrototypeOf ||
30
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
32
+ return extendStatics(d, b);
33
+ };
34
+
35
+ function __extends(d, b) {
36
+ extendStatics(d, b);
37
+ function __() { this.constructor = d; }
38
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
39
+ }
40
+
41
+ var BootstrapTheme = /** @class */ (function (_super) {
42
+ __extends(BootstrapTheme, _super);
43
+ function BootstrapTheme() {
44
+ return _super !== null && _super.apply(this, arguments) || this;
45
+ }
46
+ return BootstrapTheme;
47
+ }(core.Theme));
48
+ BootstrapTheme.prototype.classes = {
49
+ widget: 'fc-bootstrap',
50
+ tableGrid: 'table-bordered',
51
+ tableList: 'table',
52
+ tableListHeading: 'table-active',
53
+ buttonGroup: 'btn-group',
54
+ button: 'btn btn-primary',
55
+ buttonActive: 'active',
56
+ today: 'alert alert-info',
57
+ popover: 'card card-primary',
58
+ popoverHeader: 'card-header',
59
+ popoverContent: 'card-body',
60
+ // day grid
61
+ // for left/right border color when border is inset from edges (all-day in timeGrid view)
62
+ // avoid `table` class b/c don't want margins/padding/structure. only border color.
63
+ headerRow: 'table-bordered',
64
+ dayRow: 'table-bordered',
65
+ // list view
66
+ listView: 'card card-primary'
67
+ };
68
+ BootstrapTheme.prototype.baseIconClass = 'fa';
69
+ BootstrapTheme.prototype.iconClasses = {
70
+ close: 'fa-times',
71
+ prev: 'fa-chevron-left',
72
+ next: 'fa-chevron-right',
73
+ prevYear: 'fa-angle-double-left',
74
+ nextYear: 'fa-angle-double-right'
75
+ };
76
+ BootstrapTheme.prototype.iconOverrideOption = 'bootstrapFontAwesome';
77
+ BootstrapTheme.prototype.iconOverrideCustomButtonOption = 'bootstrapFontAwesome';
78
+ BootstrapTheme.prototype.iconOverridePrefix = 'fa-';
79
+ var main = core.createPlugin({
80
+ themeClasses: {
81
+ bootstrap: BootstrapTheme
82
+ }
83
+ });
84
+
85
+ exports.BootstrapTheme = BootstrapTheme;
86
+ exports.default = main;
87
+
88
+ Object.defineProperty(exports, '__esModule', { value: true });
89
+
90
+ }));
@@ -0,0 +1,20 @@
1
+ /*!
2
+ FullCalendar Bootstrap Plugin v4.2.0
3
+ Docs & License: https://fullcalendar.io/
4
+ (c) 2019 Adam Shaw
5
+ */
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):(e=e||self,t(e.FullCalendarBootstrap={},e.FullCalendar))}(this,function(e,t){"use strict";function o(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}/*! *****************************************************************************
7
+ Copyright (c) Microsoft Corporation. All rights reserved.
8
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9
+ this file except in compliance with the License. You may obtain a copy of the
10
+ License at http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
14
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
15
+ MERCHANTABLITY OR NON-INFRINGEMENT.
16
+
17
+ See the Apache Version 2.0 License for specific language governing permissions
18
+ and limitations under the License.
19
+ ***************************************************************************** */
20
+ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(t.Theme);a.prototype.classes={widget:"fc-bootstrap",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",buttonActive:"active",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"},a.prototype.baseIconClass="fa",a.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},a.prototype.iconOverrideOption="bootstrapFontAwesome",a.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",a.prototype.iconOverridePrefix="fa-";var n=t.createPlugin({themeClasses:{bootstrap:a}});e.BootstrapTheme=a,e.default=n,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -0,0 +1,30 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.FullCalendarLocales = global.FullCalendarLocales || {}, global.FullCalendarLocales.af = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ var af = {
8
+ code: "af",
9
+ week: {
10
+ dow: 1,
11
+ doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
12
+ },
13
+ buttonText: {
14
+ prev: "Vorige",
15
+ next: "Volgende",
16
+ today: "Vandag",
17
+ year: "Jaar",
18
+ month: "Maand",
19
+ week: "Week",
20
+ day: "Dag",
21
+ list: "Agenda"
22
+ },
23
+ allDayHtml: "Heeldag",
24
+ eventLimitText: "Addisionele",
25
+ noEventsMessage: "Daar is geen gebeurtenisse nie"
26
+ };
27
+
28
+ return af;
29
+
30
+ }));
@@ -0,0 +1,31 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.FullCalendarLocales = global.FullCalendarLocales || {}, global.FullCalendarLocales['ar-dz'] = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ var arDz = {
8
+ code: "ar-dz",
9
+ week: {
10
+ dow: 0,
11
+ doy: 4 // The week that contains Jan 1st is the first week of the year.
12
+ },
13
+ dir: 'rtl',
14
+ buttonText: {
15
+ prev: "السابق",
16
+ next: "التالي",
17
+ today: "اليوم",
18
+ month: "شهر",
19
+ week: "أسبوع",
20
+ day: "يوم",
21
+ list: "أجندة"
22
+ },
23
+ weekLabel: "أسبوع",
24
+ allDayText: "اليوم كله",
25
+ eventLimitText: "أخرى",
26
+ noEventsMessage: "أي أحداث لعرض"
27
+ };
28
+
29
+ return arDz;
30
+
31
+ }));