locomotivecms 3.0.1 → 3.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -2
- data/app/api/locomotive/api.rb +4 -0
- data/app/api/locomotive/api/entities/site_entity.rb +8 -0
- data/app/api/locomotive/api/forms/site_form.rb +1 -1
- data/app/api/locomotive/api/helpers/params_helper.rb +14 -3
- data/app/api/locomotive/api/middlewares/logger_middleware.rb +1 -3
- data/app/api/locomotive/api/resources/current_site_resource.rb +3 -1
- data/app/api/locomotive/api/resources/page_resource.rb +2 -2
- data/app/api/locomotive/api/resources/site_resource.rb +4 -0
- data/app/assets/images/locomotive/blank.png +0 -0
- data/app/assets/images/locomotive/icons/flags/bf.png +0 -0
- data/app/assets/images/locomotive/icons/flags/bg.png +0 -0
- data/app/assets/images/locomotive/icons/flags/cs.png +0 -0
- data/app/assets/images/locomotive/icons/flags/de.png +0 -0
- data/app/assets/images/locomotive/icons/flags/en.png +0 -0
- data/app/assets/images/locomotive/icons/flags/es.png +0 -0
- data/app/assets/images/locomotive/icons/flags/et.png +0 -0
- data/app/assets/images/locomotive/icons/flags/fr.png +0 -0
- data/app/assets/images/locomotive/icons/flags/it.png +0 -0
- data/app/assets/images/locomotive/icons/flags/ja.png +0 -0
- data/app/assets/images/locomotive/icons/flags/lt.png +0 -0
- data/app/assets/images/locomotive/icons/flags/mg.png +0 -0
- data/app/assets/images/locomotive/icons/flags/nb.png +0 -0
- data/app/assets/images/locomotive/icons/flags/nl.png +0 -0
- data/app/assets/images/locomotive/icons/flags/pl.png +0 -0
- data/app/assets/images/locomotive/icons/flags/pt-BR.png +0 -0
- data/app/assets/images/locomotive/icons/flags/pt.png +0 -0
- data/app/assets/images/locomotive/icons/flags/ru.png +0 -0
- data/app/assets/images/locomotive/icons/flags/sk.png +0 -0
- data/app/assets/images/locomotive/icons/flags/sr.png +0 -0
- data/app/assets/images/locomotive/icons/flags/sv.png +0 -0
- data/app/assets/images/locomotive/icons/flags/zh-CN.png +0 -0
- data/app/assets/javascripts/locomotive.js +3 -1
- data/app/assets/javascripts/locomotive/utils/core_ext.js +10 -0
- data/app/assets/javascripts/locomotive/utils/wysihtml5.js.coffee +0 -16
- data/app/assets/javascripts/locomotive/views/application_view.js.coffee +20 -3
- data/app/assets/javascripts/locomotive/views/current_site/edit_view.js.coffee +7 -0
- data/app/assets/javascripts/locomotive/views/current_site_metafields/index_view.js.coffee +7 -0
- data/app/assets/javascripts/locomotive/views/editable_elements/edit_view.js.coffee +2 -2
- data/app/assets/javascripts/locomotive/views/editable_elements/iframe_view.js.coffee +10 -0
- data/app/assets/javascripts/locomotive/views/editable_elements/index_view.js.coffee +11 -6
- data/app/assets/javascripts/locomotive/views/editable_elements/text_highlighter_view.js.coffee +6 -1
- data/app/assets/javascripts/locomotive/views/inputs/file_view.js.coffee +1 -8
- data/app/assets/javascripts/locomotive/views/inputs/image_view.js.coffee +84 -0
- data/app/assets/javascripts/locomotive/views/inputs/rte/edit_table_view.js.coffee +2 -0
- data/app/assets/javascripts/locomotive/views/inputs/rte/file_view.js.coffee +5 -3
- data/app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee +14 -0
- data/app/assets/javascripts/locomotive/views/inputs/rte/link_view.js.coffee +9 -3
- data/app/assets/javascripts/locomotive/views/inputs/rte/table_view.js.coffee +7 -2
- data/app/assets/javascripts/locomotive/views/inputs/rte_view.js.coffee.erb +19 -6
- data/app/assets/javascripts/locomotive/views/inputs/simple_image_view.js.coffee +17 -40
- data/app/assets/javascripts/locomotive/views/shared/drawer_view.js.coffee +8 -6
- data/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee +30 -8
- data/app/assets/javascripts/locomotive/views/shared/sidebar_view.js.coffee +31 -2
- data/app/assets/stylesheets/locomotive/account.scss +14 -10
- data/app/assets/stylesheets/locomotive/application.scss +101 -24
- data/app/assets/stylesheets/locomotive/live_editing_error.scss +48 -4
- data/app/assets/stylesheets/locomotive/live_editing_iframe.scss +0 -2
- data/app/assets/stylesheets/locomotive/new/_actionbar.scss +83 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_brand.scss +0 -0
- data/app/assets/stylesheets/locomotive/new/_content.scss +65 -0
- data/app/assets/stylesheets/locomotive/new/_drawer.scss +53 -0
- data/app/assets/stylesheets/locomotive/new/_files.scss +124 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_forms.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_keyframes.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_navigation.scss +85 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_navs.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_notify.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_public.scss +0 -0
- data/app/assets/stylesheets/locomotive/new/_sidebar.scss +177 -0
- data/app/assets/stylesheets/locomotive/new/_transitions.scss +96 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_type.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_variables.scss +0 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_activity_feed.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/_buttons.scss +0 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_content_assets.scss +49 -48
- data/app/assets/stylesheets/locomotive/{components → old}/_dashboard.scss +0 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_developers.scss +0 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_list.scss +15 -21
- data/app/assets/stylesheets/locomotive/old/_live_editing.scss +37 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_main.scss +4 -14
- data/app/assets/stylesheets/locomotive/{base → old}/_nav.scss +0 -0
- data/app/assets/stylesheets/locomotive/old/_scrollable.scss +11 -0
- data/app/assets/stylesheets/locomotive/{components/misc/_nav.scss → old/_search_bars.scss} +8 -14
- data/app/assets/stylesheets/locomotive/{components → old}/_translations.scss +0 -0
- data/app/assets/stylesheets/locomotive/{globals → old}/_variables.scss +47 -12
- data/app/assets/stylesheets/locomotive/{base → old}/form/_array_input.scss +20 -27
- data/app/assets/stylesheets/locomotive/{base → old}/form/_base.scss +1 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_code.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_color_input.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_document_picker.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_file_input.scss +14 -20
- data/app/assets/stylesheets/locomotive/{base → old}/form/_link.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_markdown.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_popover.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_rte.scss +8 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_select2.scss +35 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_tags.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_toggle.scss +4 -10
- data/app/controllers/locomotive/content_entries_controller.rb +1 -1
- data/app/controllers/locomotive/current_site_metafields_controller.rb +34 -0
- data/app/controllers/locomotive/custom_fields/select_options_controller.rb +4 -0
- data/app/controllers/locomotive/pages_controller.rb +1 -1
- data/app/helpers/locomotive/base_helper.rb +13 -0
- data/app/helpers/locomotive/current_site_metafields_helper.rb +126 -0
- data/app/helpers/locomotive/my_account_helper.rb +1 -1
- data/app/helpers/locomotive/shared/pages_helper.rb +4 -0
- data/app/helpers/locomotive/sites_helper.rb +9 -11
- data/app/inputs/locomotive/file_input.rb +3 -3
- data/app/inputs/locomotive/image_input.rb +97 -0
- data/app/inputs/locomotive/rte_input.rb +2 -1
- data/app/inputs/locomotive/simple_image_input.rb +5 -68
- data/app/models/locomotive/concerns/site/metafields.rb +96 -0
- data/app/models/locomotive/editable_text.rb +2 -1
- data/app/models/locomotive/site.rb +1 -0
- data/app/policies/locomotive/page_policy.rb +6 -0
- data/app/services/locomotive/content_entry_service.rb +3 -0
- data/app/services/locomotive/site_metafields_service.rb +39 -0
- data/app/views/locomotive/current_site/edit.html.slim +3 -0
- data/app/views/locomotive/current_site_metafields/form/_panes.html.slim +19 -0
- data/app/views/locomotive/current_site_metafields/form/_tabs.html.slim +6 -0
- data/app/views/locomotive/current_site_metafields/index.html.slim +26 -0
- data/app/views/locomotive/editable_elements/_form.html.slim +1 -1
- data/app/views/locomotive/layouts/application.html.slim +22 -19
- data/app/views/locomotive/layouts/live_editing.html.slim +19 -30
- data/app/views/locomotive/pages/form/_main.html.slim +3 -0
- data/app/views/locomotive/shared/_account_navigation.slim +9 -2
- data/app/views/locomotive/shared/_head.html.slim +4 -0
- data/app/views/locomotive/shared/_locale_picker_link.html.slim +1 -1
- data/app/views/locomotive/shared/_navigation.html.slim +30 -0
- data/app/views/locomotive/shared/_sidebar.html.slim +42 -26
- data/app/views/locomotive/shared/rte/_toolbar.html.slim +76 -68
- data/app/views/locomotive/shared/sidebar/_content_types.html.slim +11 -11
- data/app/views/locomotive/shared/sidebar/_link.html.slim +0 -3
- data/app/views/locomotive/shared/sidebar/_page.html.slim +8 -13
- data/app/views/locomotive/shared/sidebar/_pages.html.slim +4 -7
- data/app/views/locomotive/sites/index.html.slim +0 -1
- data/config/locales/carrierwave.cs.yml +4 -0
- data/config/locales/carrierwave.de.yml +4 -0
- data/config/locales/cs.yml +318 -0
- data/config/locales/de.yml +318 -0
- data/config/locales/default.cs.yml +13 -0
- data/config/locales/default.de.yml +13 -0
- data/config/locales/default.fr.yml +13 -1
- data/config/locales/devise.cs.yml +61 -0
- data/config/locales/devise.de.yml +61 -0
- data/config/locales/devise.fr.yml +61 -1
- data/config/locales/el.yml +0 -2
- data/config/locales/en.yml +9 -0
- data/config/locales/flash.cs.yml +79 -0
- data/config/locales/flash.de.yml +79 -0
- data/config/locales/flash.en.yml +4 -0
- data/config/locales/flash.fr.yml +82 -1
- data/config/locales/fr.yml +323 -0
- data/config/locales/inputs.cs.yml +19 -0
- data/config/locales/inputs.de.yml +19 -0
- data/config/locales/inputs.fr.yml +19 -1
- data/config/locales/mongoid.cs.yml +47 -0
- data/config/locales/mongoid.de.yml +38 -0
- data/config/locales/mongoid.fr.yml +35 -0
- data/config/locales/simple_form.cs.yml +152 -0
- data/config/locales/simple_form.de.yml +36 -0
- data/config/locales/simple_form.el.yml +0 -1
- data/config/locales/simple_form.fr.yml +153 -1
- data/config/routes.rb +4 -0
- data/lib/generators/locomotive/install/templates/locomotive.rb +2 -2
- data/lib/locomotive/configuration.rb +1 -1
- data/lib/locomotive/dependencies.rb +1 -0
- data/lib/locomotive/engine.rb +0 -1
- data/lib/locomotive/middlewares/site.rb +1 -1
- data/lib/locomotive/mongoid/patches.rb +8 -0
- data/lib/locomotive/steam/middlewares/page_editing.rb +1 -1
- data/lib/locomotive/version.rb +1 -1
- data/spec/dummy/config/initializers/locomotive.rb +1 -1
- data/spec/models/locomotive/concerns/site/metafields_spec.rb +121 -0
- data/spec/requests/locomotive/steam/cache_spec.rb +1 -1
- data/vendor/assets/components/locomotive/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.css +5 -0
- data/vendor/assets/components/locomotive/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.js +9 -0
- data/vendor/assets/components/locomotive/moment-timezone/moment-timezone.js +7 -0
- data/vendor/assets/components/locomotive/moment/moment.js +3606 -0
- data/vendor/assets/components/locomotive/select2/select2.js +0 -3
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/CONTRIBUTING.md +38 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/Gruntfile.js +191 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/LICENSE +21 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/README.md +37 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/bower.json +35 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker-standalone.css +103 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css +373 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css +5 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js +9 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/component.json +9 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/composer.json +28 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/ChangeLog.md +222 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/ContributorsGuide.md +126 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Events.md +96 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Extras.md +95 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/FAQ.md +22 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Functions.md +670 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Installing.md +161 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Options.md +473 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Version 4 Changelog.md +6 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Version 4 Contributors guide.md +6 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/index.md +592 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/mkdocs.yml +17 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/package.json +43 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js +2552 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less +352 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/less/bootstrap-datetimepicker-build.less +17 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/Bootstrap.v3.Datetimepicker.CSS.nuspec +34 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/Bootstrap.v3.Datetimepicker.nuspec +34 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/NuGet.exe +0 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/install.ps1 +2 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/sass/_bootstrap-datetimepicker.scss +343 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/sass/bootstrap-datetimepicker-build.scss +16 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js +88 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/LICENSE +20 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/README.md +36 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/bower.json +18 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data-2010-2020.js +1189 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data-2010-2020.min.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data.js +1189 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data.min.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone.min.js +6 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/changelog.md +101 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/composer.json +43 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/data/meta/latest.json +5012 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/data/packed/latest.json +590 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/data/unpacked/latest.json +124081 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/moment-timezone-utils.js +316 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/moment-timezone.js +599 -0
- data/vendor/assets/components/locomotive_sources/moment/CHANGELOG.md +496 -0
- data/vendor/assets/components/locomotive_sources/moment/LICENSE +22 -0
- data/vendor/assets/components/locomotive_sources/moment/README.md +58 -0
- data/vendor/assets/components/locomotive_sources/moment/bower.json +22 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/af.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ar-ma.js +59 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ar-sa.js +103 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ar-tn.js +57 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ar.js +136 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/az.js +104 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/be.js +134 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/bg.js +90 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/bn.js +113 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/bo.js +110 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/br.js +107 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/bs.js +141 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ca.js +79 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/cs.js +171 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/cv.js +63 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/cy.js +79 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/da.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/de-at.js +77 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/de.js +76 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/dv.js +99 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/el.js +98 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-au.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-ca.js +63 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-gb.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-ie.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-nz.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/eo.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/es.js +79 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/et.js +80 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/eu.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fa.js +105 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fi.js +107 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fo.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fr-ca.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fr-ch.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fr.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fy.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/gd.js +76 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/gl.js +75 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/he.js +82 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/hi.js +123 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/hr.js +143 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/hu.js +109 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/hy-am.js +95 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/id.js +83 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/is.js +127 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/it.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ja.js +65 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/jv.js +83 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ka.js +89 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/kk.js +87 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/km.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ko.js +68 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/lb.js +134 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/lo.js +69 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/lt.js +115 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/lv.js +96 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/me.js +109 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/mk.js +90 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ml.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/mr.js +158 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ms-my.js +82 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ms.js +82 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/my.js +93 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/nb.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ne.js +121 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/nl.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/nn.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/pl.js +105 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/pt-br.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/pt.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ro.js +74 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ru.js +166 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/se.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/si.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sk.js +150 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sl.js +160 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sq.js +69 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sr-cyrl.js +108 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sr.js +108 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sv.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sw.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ta.js +129 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/te.js +88 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/th.js +65 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tl-ph.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tlh.js +119 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tr.js +90 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tzl.js +87 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tzm-latn.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tzm.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/uk.js +146 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/uz.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/vi.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/zh-cn.js +127 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/zh-tw.js +101 -0
- data/vendor/assets/components/locomotive_sources/moment/min/locales.js +7548 -0
- data/vendor/assets/components/locomotive_sources/moment/min/locales.min.js +72 -0
- data/vendor/assets/components/locomotive_sources/moment/min/moment-with-locales.js +11144 -0
- data/vendor/assets/components/locomotive_sources/moment/min/moment-with-locales.min.js +74 -0
- data/vendor/assets/components/locomotive_sources/moment/min/moment.min.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/min/tests.js +46196 -0
- data/vendor/assets/components/locomotive_sources/moment/moment.js +3606 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/check-overflow.js +34 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/date-from-array.js +21 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-anything.js +101 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-array.js +136 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-object.js +16 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string-and-array.js +50 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string-and-format.js +104 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string.js +120 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/local.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js +22 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/utc.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/valid.js +37 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/abs.js +18 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/add-subtract.js +21 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/as.js +55 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/bubble.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/constructor.js +41 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/create.js +117 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/duration.js +12 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/get.js +25 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/humanize.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/iso-string.js +52 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/prototype.js +48 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/format/format.js +92 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/calendar.js +15 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/constructor.js +2 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/en.js +15 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/formats.js +23 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/invalid.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/lists.js +48 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/locale.js +35 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/locales.js +118 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/ordinal.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/pre-post-format.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/prototype.js +76 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/relative.js +29 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/set.js +16 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/add-subtract.js +52 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/calendar.js +21 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/clone.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/compare.js +57 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/constructor.js +74 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/creation-data.js +9 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/diff.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/format.js +28 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/from.js +17 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/get-set.js +43 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/locale.js +34 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/min-max.js +63 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/moment.js +28 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/now.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/prototype.js +149 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/start-end-of.js +52 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/to-type.js +34 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/to.js +17 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/valid.js +15 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/parse/regex.js +54 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/parse/token.js +32 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/aliases.js +29 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/constants.js +9 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-month.js +32 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-week.js +162 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-year.js +32 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/hour.js +129 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/millisecond.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/minute.js +24 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/month.js +209 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/offset.js +219 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/quarter.js +27 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/second.js +24 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/timestamp.js +20 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/timezone.js +16 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/units.js +20 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week-calendar-utils.js +65 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week-year.js +101 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/year.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/abs-ceil.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/abs-floor.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/compare-arrays.js +16 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/defaults.js +10 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/deprecate.js +33 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/extend.js +19 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/has-own-prop.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/hooks.js +13 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-array.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-date.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-function.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-undefined.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/map.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/to-int.js +12 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/zero-fill.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/af.js +63 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-ma.js +50 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-sa.js +94 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-tn.js +48 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ar.js +127 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/az.js +95 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/be.js +125 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/bg.js +81 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/bn.js +104 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/bo.js +101 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/br.js +98 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/bs.js +132 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ca.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/cs.js +162 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/cv.js +53 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/cy.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/da.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/de-at.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/de.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/dv.js +89 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/el.js +86 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-au.js +57 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-ca.js +54 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-gb.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-ie.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-nz.js +56 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/eo.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/es.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/et.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/eu.js +55 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fa.js +96 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fi.js +98 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fo.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fr-ca.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fr-ch.js +53 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fr.js +53 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fy.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/gd.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/gl.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/he.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/hi.js +114 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/hr.js +134 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/hu.js +100 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/hy-am.js +86 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/id.js +74 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/is.js +118 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/it.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ja.js +56 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/jv.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ka.js +80 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/kk.js +77 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/km.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ko.js +59 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/lb.js +125 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/lo.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/lt.js +106 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/lv.js +87 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/me.js +99 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/mk.js +81 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ml.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/mr.js +149 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ms-my.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ms.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/my.js +84 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/nb.js +52 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ne.js +112 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/nl.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/nn.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/pl.js +95 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/pt-br.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/pt.js +55 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ro.js +65 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ru.js +156 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/se.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/si.js +56 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sk.js +141 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sl.js +150 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sq.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sr-cyrl.js +99 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sr.js +99 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sv.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sw.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ta.js +120 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/te.js +78 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/th.js +56 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tl-ph.js +53 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tlh.js +109 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tr.js +81 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tzl.js +78 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tzm-latn.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tzm.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/uk.js +137 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/uz.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/vi.js +57 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/zh-cn.js +118 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/zh-tw.js +91 -0
- data/vendor/assets/components/locomotive_sources/moment/src/moment.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/amd-named.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/amd.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/default.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/globals.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/locale-header.js +6 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/test-header.js +6 -0
- data/vendor/assets/javascripts/locomotive/vendor.js +1 -2
- data/vendor/assets/stylesheets/locomotive/wysihtml5_editor.css +1 -1
- metadata +458 -100
- data/app/assets/stylesheets/locomotive/account/_files.scss +0 -125
- data/app/assets/stylesheets/locomotive/base/_all.scss +0 -6
- data/app/assets/stylesheets/locomotive/base/_fonts.scss +0 -27
- data/app/assets/stylesheets/locomotive/base/_form.scss +0 -18
- data/app/assets/stylesheets/locomotive/base/_iframe.scss +0 -4
- data/app/assets/stylesheets/locomotive/base/_typography.scss +0 -6
- data/app/assets/stylesheets/locomotive/base/form/_api_key.scss +0 -24
- data/app/assets/stylesheets/locomotive/base/form/_date.scss +0 -11
- data/app/assets/stylesheets/locomotive/components/_drawer.scss +0 -24
- data/app/assets/stylesheets/locomotive/components/_header.scss +0 -3
- data/app/assets/stylesheets/locomotive/components/_live_editing.scss +0 -95
- data/app/assets/stylesheets/locomotive/components/_misc.scss +0 -3
- data/app/assets/stylesheets/locomotive/components/_sidebar.scss +0 -5
- data/app/assets/stylesheets/locomotive/components/_sites.scss +0 -130
- data/app/assets/stylesheets/locomotive/components/_transitions.scss +0 -149
- data/app/assets/stylesheets/locomotive/components/header/_account.scss +0 -63
- data/app/assets/stylesheets/locomotive/components/header/_base.scss +0 -91
- data/app/assets/stylesheets/locomotive/components/header/_responsive.scss +0 -34
- data/app/assets/stylesheets/locomotive/components/misc/_modal.scss +0 -13
- data/app/assets/stylesheets/locomotive/components/misc/_notify.scss +0 -25
- data/app/assets/stylesheets/locomotive/components/sidebar/_base.scss +0 -58
- data/app/assets/stylesheets/locomotive/components/sidebar/_content_types.scss +0 -30
- data/app/assets/stylesheets/locomotive/components/sidebar/_link.scss +0 -36
- data/app/assets/stylesheets/locomotive/components/sidebar/_my_account.scss +0 -21
- data/app/assets/stylesheets/locomotive/components/sidebar/_pages_tree.scss +0 -108
- data/app/assets/stylesheets/locomotive/globals/_mixins.scss +0 -34
- data/app/assets/stylesheets/locomotive/layouts/_live_editing.scss +0 -33
- data/app/assets/stylesheets/locomotive/layouts/_main.scss +0 -62
- data/app/assets/stylesheets/locomotive/layouts/_not_logged_in.scss +0 -33
- data/app/assets/stylesheets/locomotive/layouts/_responsive.scss +0 -12
- data/app/views/locomotive/shared/_header.html.slim +0 -30
- data/app/views/locomotive/shared/_sidebar_without_site.html.slim +0 -5
- data/app/views/locomotive/shared/header/_account.html.slim +0 -4
- data/app/views/locomotive/shared/header/_account_menu.html.slim +0 -5
- data/app/views/locomotive/shared/header/_brand.html.slim +0 -3
- data/app/views/locomotive/shared/header/_site.html.slim +0 -8
- data/app/views/locomotive/shared/sidebar/_my_account.html.slim +0 -8
- data/vendor/assets/javascripts/locomotive/bootstrap-datetimepicker.js +0 -1395
- data/vendor/assets/javascripts/locomotive/moment.js +0 -2808
- data/vendor/assets/stylesheets/locomotive/bootstrap-datetimepicker.css +0 -235
data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Extras.md
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
# Extras
|
2
|
+
|
3
|
+
Guides for making the picker work better with rails, IE, etc
|
4
|
+
|
5
|
+
## Rails 3
|
6
|
+
|
7
|
+
by [dhulihan](https://github.com/dhulihan)
|
8
|
+
|
9
|
+
You can easily override the default rails form helpers (`date_select` and `datetime_select`) with bootstrap-datetimepicker for a much nicer experience.
|
10
|
+
|
11
|
+
```rb
|
12
|
+
# Add to config/initializers/form.rb or the end of app/helpers/application_helper.rb
|
13
|
+
module ActionView
|
14
|
+
module Helpers
|
15
|
+
class FormBuilder
|
16
|
+
def date_select(method, options = {}, html_options = {})
|
17
|
+
existing_date = @object.send(method)
|
18
|
+
formatted_date = existing_date.to_date.strftime("%F") if existing_date.present?
|
19
|
+
@template.content_tag(:div, :class => "input-group") do
|
20
|
+
text_field(method, :value => formatted_date, :class => "form-control datepicker", :"data-date-format" => "YYYY-MM-DD") +
|
21
|
+
@template.content_tag(:span, @template.content_tag(:span, "", :class => "glyphicon glyphicon-calendar") ,:class => "input-group-addon")
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def datetime_select(method, options = {}, html_options = {})
|
26
|
+
existing_time = @object.send(method)
|
27
|
+
formatted_time = existing_time.to_time.strftime("%F %I:%M %p") if existing_time.present?
|
28
|
+
@template.content_tag(:div, :class => "input-group") do
|
29
|
+
text_field(method, :value => formatted_time, :class => "form-control datetimepicker", :"data-date-format" => "YYYY-MM-DD hh:mm A") +
|
30
|
+
@template.content_tag(:span, @template.content_tag(:span, "", :class => "glyphicon glyphicon-calendar") ,:class => "input-group-addon")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
The time format used here is ActiveRecord-friendly, which means it will be parsed correctly when passed in through `params` to your record.
|
39
|
+
|
40
|
+
That's all there is to it! Now all of your forms that use `datetime_select` or `date_select` will be automatically updated:
|
41
|
+
|
42
|
+
```erb
|
43
|
+
<% form_for @post do |f| %>
|
44
|
+
<div class="form-group">
|
45
|
+
<label>Published At</label>
|
46
|
+
<%= f.datetime_select :published_at %>
|
47
|
+
</div>
|
48
|
+
<% end %>
|
49
|
+
```
|
50
|
+
|
51
|
+
## IE 7
|
52
|
+
|
53
|
+
by [EquilibriumCST](https://github.com/EquilibriumCST)
|
54
|
+
|
55
|
+
I succeed to run this widget under IE7.
|
56
|
+
Here is what I did.
|
57
|
+
|
58
|
+
1. gliphicons are not working under IE7 so add [this css file](https://github.com/coliff/bootstrap-ie7). And this enables the icons.
|
59
|
+
|
60
|
+
2. Z-index problem with IE 7. I added position: relative and `z-index: 10` to the parent container. Otherwise popup is shown under the next elements.
|
61
|
+
|
62
|
+
3. JS events were not working well.
|
63
|
+
|
64
|
+
If you open the datetimepicker widget and click on some button or date inside it, widget is automatically closed.
|
65
|
+
So I added `debug: true` as an option when initializing the widget. Why I did this? I saw on line 1121 from bootsrap-datetimepicker.js the code `'blur': options.debug ? '' : hide`.
|
66
|
+
And now widget window is not closed on every click inside it, but now you can't close it anyway :)
|
67
|
+
And closing should be done manually. I've added this document click handler. If you click something outside the widget, now closing works.
|
68
|
+
|
69
|
+
```
|
70
|
+
$(document).click(function(e){
|
71
|
+
var target = $(e.target);
|
72
|
+
if(target.parents('.bootstrap-datetimepicker-widget').length < 1 && !target.hasClass('datetimepickerInput') && !target.hasClass('datepickerIcon') && !target.hasClass('clockpickerIcon')){
|
73
|
+
if($('.bootstrap-datetimepicker-widget').length > 0){
|
74
|
+
$('#startDate').data('DateTimePicker').hide();
|
75
|
+
$('#startTime').data('DateTimePicker').hide();
|
76
|
+
$('.datetimepickerInput').blur();
|
77
|
+
}
|
78
|
+
}
|
79
|
+
});
|
80
|
+
```
|
81
|
+
|
82
|
+
|
83
|
+
But if you have more than one widget on the page like I did, clicking on one widget does'n close the other. Added below lines and now all works fine.
|
84
|
+
|
85
|
+
```
|
86
|
+
$('#widget1').on("dp.show",function (e) {
|
87
|
+
$('#widget2).data('DateTimePicker').hide();
|
88
|
+
});
|
89
|
+
|
90
|
+
$('#widget2').on("dp.show",function (e) {
|
91
|
+
$('#widget1).data('DateTimePicker').hide();
|
92
|
+
});
|
93
|
+
```
|
94
|
+
|
95
|
+
I hope this will help to the others who are fighting with the old IE versions :)
|
data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/FAQ.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# FAQs
|
2
|
+
|
3
|
+
# How do I disable the date or time element
|
4
|
+
<small>How do I format ...; How do I add seconds; etc.</small>
|
5
|
+
|
6
|
+
The picker uses the `format` option to decide what components to show. Set `format` to `LT`, `LTS` or another valid [MomentJs format string](http://momentjs.com/docs/#/displaying/format/) to display certain components
|
7
|
+
|
8
|
+
# How do I change the language/locale
|
9
|
+
|
10
|
+
The picker uses MomentJs to determine the language string. You can use `moment-with-locales` or you can include whatever local file you need. Set the picker's `locale` option to `de` or whatever the locale string is.
|
11
|
+
|
12
|
+
# How do I change the styles? The picker closes.
|
13
|
+
|
14
|
+
Set `debug:true` which will force the picker to stay open, even `onBlur`. You can hide the picker manually by calling `hide()`
|
15
|
+
|
16
|
+
# How do I change the start of the week?
|
17
|
+
|
18
|
+
Start of the week is based on the [`locale` provided](Options.md#locale). This is defined by moment's locales. If you want to change it, create your own locale file or override. [See moment's docs](http://momentjs.com/docs/#/i18n/).
|
19
|
+
|
20
|
+
# How I use the picker as birthday picker?
|
21
|
+
|
22
|
+
Use the [`viewMode`](Options.md#viewmode) option to `'years'`
|
data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Functions.md
ADDED
@@ -0,0 +1,670 @@
|
|
1
|
+
## Functions
|
2
|
+
|
3
|
+
<div class="alert alert-info">
|
4
|
+
<strong>Note</strong>
|
5
|
+
All functions are accessed via the <code>data</code> attribute e.g. <code>$('#datetimepicker').data("DateTimePicker").FUNCTION()</code>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
###destroy()
|
9
|
+
|
10
|
+
Destroys the widget and removes all attached event listeners
|
11
|
+
|
12
|
+
----------------------
|
13
|
+
|
14
|
+
### toggle()
|
15
|
+
|
16
|
+
Shows or hides the widget
|
17
|
+
|
18
|
+
#### Emits
|
19
|
+
|
20
|
+
* `dp.hide` - if the widget is hidden after the toggle call
|
21
|
+
|
22
|
+
* `dp.show` - if the widget is show after the toggle call
|
23
|
+
|
24
|
+
* `dp.change` - if the widget is opened for the first time and the input element is empty and `options.useCurrent != false`
|
25
|
+
|
26
|
+
----------------------
|
27
|
+
|
28
|
+
### show()
|
29
|
+
|
30
|
+
Shows the widget
|
31
|
+
|
32
|
+
#### Emits
|
33
|
+
|
34
|
+
* `dp.show` - if the widget was hidden before that call
|
35
|
+
|
36
|
+
* `dp.change` - if the widget is opened for the first time and the useCurrent is set to true or to a granularity value and the input element the component is attached to has an empty value
|
37
|
+
|
38
|
+
----------------------
|
39
|
+
|
40
|
+
### hide()
|
41
|
+
|
42
|
+
Hides the widget
|
43
|
+
|
44
|
+
#### Emits
|
45
|
+
|
46
|
+
* `dp.hide` - if the widget was visible before that call
|
47
|
+
|
48
|
+
----------------------
|
49
|
+
|
50
|
+
### disable()
|
51
|
+
|
52
|
+
Disables the input element, the component is attached to, by adding a `disabled="true"` attribute to it. If the widget was visible before that call it is hidden.
|
53
|
+
|
54
|
+
#### Emits
|
55
|
+
|
56
|
+
* `dp.hide` - if the widget was visible before that call
|
57
|
+
|
58
|
+
----------------------
|
59
|
+
|
60
|
+
### enable()
|
61
|
+
|
62
|
+
Enables the input element, the component is attached to, by removing `disabled` attribute from it.
|
63
|
+
|
64
|
+
----------------------
|
65
|
+
|
66
|
+
|
67
|
+
### date
|
68
|
+
|
69
|
+
####date()
|
70
|
+
|
71
|
+
Returns the component's model current date, a `moment` object or `null` if not set.
|
72
|
+
|
73
|
+
####date([newDate])
|
74
|
+
|
75
|
+
Takes `string, Date, moment, null` parameter and sets the components model current moment to it. Passing a `null` value unsets the components model current moment. Parsing of the newDate parameter is made using moment library with the `options.format` and `options.useStrict` components configuration.
|
76
|
+
|
77
|
+
##### Throws
|
78
|
+
|
79
|
+
* `TypeError` - in case the `newDate` cannot be parsed
|
80
|
+
|
81
|
+
##### Emits
|
82
|
+
|
83
|
+
* `dp.change` - In case `newDate` is different from current moment
|
84
|
+
|
85
|
+
### en/disabledDates
|
86
|
+
|
87
|
+
#### disabledDates()
|
88
|
+
|
89
|
+
Returns an array with the currently set disabled dates on the component.
|
90
|
+
|
91
|
+
#### disabledDates(dates)
|
92
|
+
|
93
|
+
Takes an `[` `string` or `Date` or `moment` `]` of values and disallows the user to select those days. Setting this takes precedence over `options.minDate`, `options.maxDate` configuration. Also calling this function removes the configuration of options.enabledDates if such exist.
|
94
|
+
|
95
|
+
**Note:** These values are matched with `Day` granularity.
|
96
|
+
|
97
|
+
----------------------
|
98
|
+
|
99
|
+
#### enabledDates()
|
100
|
+
|
101
|
+
Returns an array with the currently set enabled dates on the component.
|
102
|
+
|
103
|
+
|
104
|
+
#### enabledDates(dates)
|
105
|
+
|
106
|
+
Takes an `[` `string` or `Date` or `moment` `]` of values and allows the user to select only from those days. Setting this takes precedence over `options.minDate`, `options.maxDate` configuration. Also calling this function removes the configuration of options.disabledDates if such exist.
|
107
|
+
|
108
|
+
**Note:** These values are matched with `Day` granularity.
|
109
|
+
|
110
|
+
----------------------
|
111
|
+
|
112
|
+
### defaultDate
|
113
|
+
|
114
|
+
#### defaultDate()
|
115
|
+
|
116
|
+
Returns a `moment` with the `options.defaultDate` option configuration or `false` if not set
|
117
|
+
|
118
|
+
#### defaultDate(defaultDate)
|
119
|
+
|
120
|
+
Takes a `string, Date, moment, boolean:false`. Will set the picker's inital date. If a `boolean:false` value is passed the `options.defaultDate` parameter is cleared.
|
121
|
+
|
122
|
+
* `TypeError` - if the provided date pass validation, including `disabledDates`, `enabledDates`, `minDate`, `maxDate`, and `daysOfWeekDisabled`
|
123
|
+
|
124
|
+
* `TypeError` - if the provided date cannot be parsed by momentjs
|
125
|
+
|
126
|
+
----------------------
|
127
|
+
|
128
|
+
### useCurrent
|
129
|
+
|
130
|
+
#### useCurrent()
|
131
|
+
|
132
|
+
Returns a `boolean` or `string` with the `options.useCurrent` option configuration
|
133
|
+
|
134
|
+
#### useCurrent(boolean or string)
|
135
|
+
|
136
|
+
Takes a `boolean` or `string`. If a `boolean` true is passed and the components model moment is not set (either through `setDate` or through a valid value on the input element the component is attached to) then the first time the user opens the datetimepicker widget the value is initialized to the current moment of the action. If a false `boolean` is passed then no initialization happens on the input element. You can select the granularity on the initialized moment by passing one of the following strings (`'year', 'month', 'day', 'hour', 'minute'`) in the variable.
|
137
|
+
|
138
|
+
If for example you pass `'day'` to the `setUseCurrent` function and the input field is empty the first time the user opens the datetimepicker widget the input text will be initialized to the current datetime with day granularity (ie if currentTime = `2014-08-10 13:32:33` the input value will be initialized to `2014-08-10 00:00:00`)
|
139
|
+
|
140
|
+
**Note:** If the `options.defaultDate` is set or the input element the component is attached to has already a value that takes precedence and the functionality of `useCurrent` is not triggered!
|
141
|
+
|
142
|
+
----------------------
|
143
|
+
|
144
|
+
### min/maxDate
|
145
|
+
|
146
|
+
#### minDate()
|
147
|
+
|
148
|
+
Returns the currently set moment of the `options.minDate` or `false` if not set
|
149
|
+
|
150
|
+
#### minDate(minDate)
|
151
|
+
|
152
|
+
Takes a minDate `string, Date, moment, boolean:false` parameter and disallows the user to select a moment that is before that moment. If a `boolean:false` value is passed the `options.minDate` parameter is cleared and there is no restriction to the miminum moment the user can select.
|
153
|
+
|
154
|
+
**Note:** If the minDate parameter is after the currently selected moment the currently selected moment changes to minDate parameter
|
155
|
+
|
156
|
+
##### Throws
|
157
|
+
|
158
|
+
* `TypeError` - if minDate parameter cannot be parsed using the `options.format` and `options.useStrict` configuration settings
|
159
|
+
|
160
|
+
* `TypeError` - if minDate parameter is after `options.maxDate`
|
161
|
+
|
162
|
+
##### Emits
|
163
|
+
|
164
|
+
* `dp.change` - if the new minDate is after currently selected moment (waiting for #472 to close in order to finalize this part)
|
165
|
+
|
166
|
+
* `dp.error` - if the new minDate is after currently selected moment (waiting for #472 to close in order to finalize this part)
|
167
|
+
|
168
|
+
----------------------
|
169
|
+
|
170
|
+
#### maxDate()
|
171
|
+
|
172
|
+
Returns the currently set moment of the `options.maxDate` or `false` if not set
|
173
|
+
|
174
|
+
|
175
|
+
#### maxDate(maxDate)
|
176
|
+
|
177
|
+
Takes a maxDate `string, Date, moment, boolean:false` parameter and disallows the user to select a moment that is after that moment. If a `boolean:false` value is passed `options.maxDate` is cleared and there is no restriction to the maximum moment the user can select.
|
178
|
+
|
179
|
+
**Note:** If maxDate is before the currently selected moment the currently selected moment changes to maxDate
|
180
|
+
|
181
|
+
##### Throws
|
182
|
+
|
183
|
+
* `TypeError` - if maxDate parameter cannot be parsed using the `options.format` and `options.useStrict` configuration settings
|
184
|
+
|
185
|
+
* `TypeError` - if maxDate parameter is before `options.minDate`
|
186
|
+
|
187
|
+
##### Emits
|
188
|
+
|
189
|
+
* `dp.change` - if the new maxDate is after currently selected moment (waiting for #472 to close in order to finalize this part)
|
190
|
+
|
191
|
+
* `dp.error` - if the new maxDate is after currently selected moment (waiting for #472 to close in order to finalize this part)
|
192
|
+
|
193
|
+
----------------------
|
194
|
+
|
195
|
+
### daysOfWeekDisabled
|
196
|
+
|
197
|
+
#### daysOfWeekDisabled()
|
198
|
+
|
199
|
+
Returns an array with the `options.daysOfWeekDisabled` configuration setting of the component.
|
200
|
+
|
201
|
+
#### daysOfWeekDisabled(daysOfWeek)
|
202
|
+
|
203
|
+
Takes an `[` `Number`:`0` to `6` `]` and disallow the user to select weekdays that exist in this array. This has lower priority over the `options.minDate`, `options.maxDate`, `options.disabledDates` and `options.enabledDates` configuration settings.
|
204
|
+
|
205
|
+
##### Emits
|
206
|
+
|
207
|
+
* `dp.change` - if the currently selected moment falls in the values passed on the daysOfWeek parameter. (waiting for #472 to close in order to finalize this part)
|
208
|
+
|
209
|
+
* `dp.error` - if the currently selected moment falls in the values passed on the daysOfWeek parameter. (waiting for #472 to close in order to finalize this part)
|
210
|
+
|
211
|
+
----------------------
|
212
|
+
|
213
|
+
### options
|
214
|
+
|
215
|
+
####options()
|
216
|
+
|
217
|
+
Returns the components current options object. Note that the changing the values of the returned object does not change the components actual configuration. Use `options(options)` to set the components options massively or the other methods for setting config options individually.
|
218
|
+
|
219
|
+
|
220
|
+
#### options([options])
|
221
|
+
|
222
|
+
Takes an object variable with option key:value properties and configures the component. Use this to update multiple options on the component.
|
223
|
+
|
224
|
+
----------------------
|
225
|
+
|
226
|
+
### format
|
227
|
+
|
228
|
+
#### format()
|
229
|
+
|
230
|
+
Returns the component's `options.format` `string`
|
231
|
+
|
232
|
+
|
233
|
+
#### format(format)
|
234
|
+
|
235
|
+
Takes a [moment.js](http://momentjs.com/docs/#/displaying/format/) format `string` and sets the components `options.format`. This is used for displaying and also for parsing input strings either from the input element the component is attached to or the `date()` function.
|
236
|
+
The parameter can also be a `boolean:false` in which case the format is set to the locale's `L LT`.
|
237
|
+
|
238
|
+
**Note:** this is also used to determine if the TimePicker sub component will display the hours in 12 or 24 format. (if 'a' or 'h' exists in the passed `string` then a 12 hour mode is set)
|
239
|
+
|
240
|
+
----------------------
|
241
|
+
|
242
|
+
### extraFormats
|
243
|
+
|
244
|
+
#### extraFormats()
|
245
|
+
|
246
|
+
Returns a `boolean` or array with the `options.extraFormats` option configuration
|
247
|
+
|
248
|
+
#### extraFormats(formats)
|
249
|
+
|
250
|
+
Takes an array of valid input moment format options. See PR #666
|
251
|
+
|
252
|
+
----------------------
|
253
|
+
|
254
|
+
### locale
|
255
|
+
|
256
|
+
#### locale()
|
257
|
+
|
258
|
+
Returns the currently set locale of the `options.locale`
|
259
|
+
|
260
|
+
#### locale(newLocale)
|
261
|
+
|
262
|
+
Takes a `string` of any valid [moment locale](https://github.com/moment/moment/tree/develop/locale) e.g. `de` for German.
|
263
|
+
|
264
|
+
##### Throws
|
265
|
+
|
266
|
+
* `TypeError` - if the locale is not loaded via a separate script or `moment-with-locales`
|
267
|
+
|
268
|
+
----------------------
|
269
|
+
|
270
|
+
### stepping
|
271
|
+
|
272
|
+
#### stepping()
|
273
|
+
|
274
|
+
Returns a `number` with the `options.stepping` option configuration
|
275
|
+
|
276
|
+
|
277
|
+
#### stepping(number)
|
278
|
+
|
279
|
+
Takes a `number`. This be the amount the up/down arrows move the minute value with a time picker.
|
280
|
+
|
281
|
+
----------------------
|
282
|
+
|
283
|
+
### sideBySide and collapse
|
284
|
+
|
285
|
+
#### sideBySide()
|
286
|
+
|
287
|
+
Returns a `boolean` of the `options.sideBySide`.
|
288
|
+
|
289
|
+
|
290
|
+
#### sideBySide(sideBySide)
|
291
|
+
|
292
|
+
Takes a `boolean`. If `sideBySide` is `true` and the time picker is used, both components will display side by side instead of collapsing.
|
293
|
+
|
294
|
+
----------------------
|
295
|
+
|
296
|
+
#### collapse()
|
297
|
+
|
298
|
+
Returns a `boolean` with the `options.collapse` option configuration
|
299
|
+
|
300
|
+
#### collapse(collapse)
|
301
|
+
|
302
|
+
Takes a `boolean`. If set to `false` the picker will display similar to `sideBySide` except vertical.
|
303
|
+
|
304
|
+
----------------------
|
305
|
+
|
306
|
+
### icons
|
307
|
+
|
308
|
+
#### icons()
|
309
|
+
|
310
|
+
Returns an `Ojbect` of `options.icons`
|
311
|
+
|
312
|
+
#### icons(icons)
|
313
|
+
|
314
|
+
Takes an `Ojbect` of `strings`.
|
315
|
+
|
316
|
+
##### Throws
|
317
|
+
|
318
|
+
* `TypeError` - if icons parameter is not an `Ojbect`
|
319
|
+
|
320
|
+
----------------------
|
321
|
+
|
322
|
+
### useStrict
|
323
|
+
|
324
|
+
#### useStrict()
|
325
|
+
|
326
|
+
Returns a `boolean` of the `options.useStrict`
|
327
|
+
|
328
|
+
#### useStrict(useStrict)
|
329
|
+
|
330
|
+
Takes a `boolean`. If `useStrict` is `true`, momentjs parsing rules will be stricter when determining if a date is valid or not.
|
331
|
+
|
332
|
+
----------------------
|
333
|
+
|
334
|
+
### widgetPositioning
|
335
|
+
|
336
|
+
#### widgetPositioning()
|
337
|
+
|
338
|
+
Returns the currently set `options.widgetPositioning` object containing two keys `horizontal` and `vertical`
|
339
|
+
|
340
|
+
|
341
|
+
#### widgetPositioning(positioningObject)
|
342
|
+
|
343
|
+
Takes an object parameter that can contain two keys `vertical` and `horizontal` each having a value of `'auto', 'top', 'bottom'` for `vertical` and `'auto', 'left', 'right'` for `horizontal` which defines where the dropdown with the widget will appear relative to the input element the component is attached to.
|
344
|
+
|
345
|
+
`'auto'` is the default value for both `horizontal` and `vertical` keys and it tries to automatically place the dropdown in a position that is visible to the user. Usually you should not override those options unless you have a special need in your layout.
|
346
|
+
|
347
|
+
----------------------
|
348
|
+
|
349
|
+
### viewMode
|
350
|
+
|
351
|
+
#### viewMode()
|
352
|
+
|
353
|
+
Returns a `string` of the `options.viewMode`.
|
354
|
+
|
355
|
+
#### viewMode(newViewMode)
|
356
|
+
|
357
|
+
Takes a `string`. Valid values are `'days'`, `'months'`, `'years'` and `'decades'`
|
358
|
+
|
359
|
+
##### Throws
|
360
|
+
|
361
|
+
* `TypeError` - if `newViewMode` parameter is not an a `string` or if `newViewMode` is not a valid value
|
362
|
+
|
363
|
+
----------------------
|
364
|
+
|
365
|
+
### calendarWeeks
|
366
|
+
|
367
|
+
#### calendarWeeks()
|
368
|
+
|
369
|
+
Returns a `boolean` with the current `options.calendarWeeks` option configuration
|
370
|
+
|
371
|
+
#### calendarWeeks(boolean)
|
372
|
+
|
373
|
+
Takes a `boolean` variable to set if the week numbers will appear to the left on the days view
|
374
|
+
|
375
|
+
----------------------
|
376
|
+
|
377
|
+
### showClear
|
378
|
+
|
379
|
+
#### showClear()
|
380
|
+
|
381
|
+
Returns a `boolean` variable with the currently set `options.showClear` option.
|
382
|
+
|
383
|
+
#### showClear(boolean)
|
384
|
+
|
385
|
+
Takes a `boolean` variable to set if the clear date button will appear on the widget
|
386
|
+
|
387
|
+
----------------------
|
388
|
+
|
389
|
+
### showTodayButton
|
390
|
+
|
391
|
+
#### showTodayButton()
|
392
|
+
|
393
|
+
Returns a `boolean` variable with the currently set `options.showTodayButton` option.
|
394
|
+
|
395
|
+
|
396
|
+
#### showTodayButton(boolean)
|
397
|
+
|
398
|
+
Takes a `boolean` variable to set if the Today button will appear on the widget
|
399
|
+
|
400
|
+
----------------------
|
401
|
+
|
402
|
+
### toolbarplacement
|
403
|
+
|
404
|
+
#### toolbarplacement()
|
405
|
+
|
406
|
+
Returns a `string` variable with the currently set `options.toolbarplacement` option.
|
407
|
+
|
408
|
+
#### toolbarplacement(string)
|
409
|
+
|
410
|
+
Takes a `string` value. Valid values are `'default'`, `'top'` and `'bottom'`.
|
411
|
+
|
412
|
+
Changes the placement of the toolbar where the today, clear, component switch icon are located.
|
413
|
+
|
414
|
+
----------------------
|
415
|
+
|
416
|
+
### dayViewHeaderFormat
|
417
|
+
|
418
|
+
#### dayViewHeaderFormat()
|
419
|
+
|
420
|
+
Returns a `string` variable with the currently set `options.dayViewHeaderFormat` option.
|
421
|
+
|
422
|
+
#### dayViewHeaderFormat(string)
|
423
|
+
|
424
|
+
Takes a `string` value.
|
425
|
+
|
426
|
+
Used to customize the header of the day view.
|
427
|
+
|
428
|
+
----------------------
|
429
|
+
|
430
|
+
### keyBinds
|
431
|
+
|
432
|
+
#### keyBinds()
|
433
|
+
|
434
|
+
Returns a `string` variable with the currently set `options.keyBinds` option.
|
435
|
+
|
436
|
+
#### keyBinds(object)
|
437
|
+
|
438
|
+
Takes an `object` value.
|
439
|
+
|
440
|
+
Allows for several keyBinding functions to be specified for ease of access or accessibility. See the options page for defaults.
|
441
|
+
|
442
|
+
----------------------
|
443
|
+
|
444
|
+
### clear()
|
445
|
+
|
446
|
+
Clears the datepicker by setting the value to `null`
|
447
|
+
|
448
|
+
----------------------
|
449
|
+
|
450
|
+
### inline
|
451
|
+
|
452
|
+
#### inline()
|
453
|
+
|
454
|
+
Returns a `boolean` variable with the currently set `options.inline` option.
|
455
|
+
|
456
|
+
#### inline(boolean)
|
457
|
+
|
458
|
+
Takes a `boolean` value.
|
459
|
+
|
460
|
+
Used to customize the header of the day view.
|
461
|
+
|
462
|
+
----------------------
|
463
|
+
|
464
|
+
### ignoreReadonly
|
465
|
+
|
466
|
+
#### ignoreReadonly()
|
467
|
+
|
468
|
+
Returns a `boolean` variable with the currently set `options.ignoreReadonly` option.
|
469
|
+
|
470
|
+
#### ignoreReadonly(boolean)
|
471
|
+
|
472
|
+
Takes a `boolean` value.
|
473
|
+
|
474
|
+
Set this to `true` to allow the picker to be used even if the input field is `readonly`. This will **not** bypass the `disabled` property
|
475
|
+
|
476
|
+
----------------------
|
477
|
+
|
478
|
+
### showClose
|
479
|
+
|
480
|
+
#### showClose()
|
481
|
+
|
482
|
+
Returns a `boolean` variable with the currently set `options.showClose` option.
|
483
|
+
|
484
|
+
#### showClose(boolean)
|
485
|
+
|
486
|
+
Takes a `boolean` value.
|
487
|
+
|
488
|
+
If `true`, an icon will be displayed on the toolbar that will hide the picker
|
489
|
+
|
490
|
+
----------------------
|
491
|
+
|
492
|
+
### debug
|
493
|
+
|
494
|
+
For the moment this function will only prevent the picker from calling `hide()` on `blur` so that the picker can be inspected.
|
495
|
+
|
496
|
+
----------------------
|
497
|
+
|
498
|
+
### keepInvalid
|
499
|
+
|
500
|
+
<small>4.7.14</small>
|
501
|
+
|
502
|
+
#### keepInvalid()
|
503
|
+
|
504
|
+
Returns a `string` variable with the currently set `options.keepInvalid` option.
|
505
|
+
|
506
|
+
#### keepInvalid(boolean)
|
507
|
+
|
508
|
+
Takes a `boolean` value.
|
509
|
+
|
510
|
+
If `true`, invalid dates will not be reverted to a previous selection or changed.
|
511
|
+
|
512
|
+
----------------------
|
513
|
+
|
514
|
+
### allowInputToggle
|
515
|
+
|
516
|
+
<small>4.7.14</small>
|
517
|
+
|
518
|
+
#### allowInputToggle()
|
519
|
+
|
520
|
+
Returns a `boolean` variable with the currently set `options.allowInputToggle` option.
|
521
|
+
|
522
|
+
#### allowInputToggle(boolean)
|
523
|
+
|
524
|
+
Takes a `boolean` value.
|
525
|
+
|
526
|
+
If `true`, the picker will show on textbox focus and icon click when used in a button group
|
527
|
+
|
528
|
+
----------------------
|
529
|
+
|
530
|
+
### focusOnShow
|
531
|
+
|
532
|
+
<small>4.14.30</small> PR #884
|
533
|
+
|
534
|
+
#### focusOnShow()
|
535
|
+
|
536
|
+
Returns a `boolean` variable with the currently set `options.focusOnShow` option.
|
537
|
+
|
538
|
+
#### focusOnShow(boolean)
|
539
|
+
|
540
|
+
Takes a `boolean` value.
|
541
|
+
|
542
|
+
If `false`, the textbox will not be given focus when the picker is shown
|
543
|
+
|
544
|
+
|
545
|
+
----------------------
|
546
|
+
|
547
|
+
### disabledTimeIntervals
|
548
|
+
|
549
|
+
<small>4.14.30</small> Issue: #644
|
550
|
+
|
551
|
+
#### disabledTimeIntervals()
|
552
|
+
|
553
|
+
Returns an `array` variable with the currently set `options.disabledTimeIntervals` option.
|
554
|
+
|
555
|
+
#### disabledTimeIntervals(array)
|
556
|
+
|
557
|
+
Takes a `array` value.
|
558
|
+
|
559
|
+
The array **must** be in the following format `[moment(),moment()]`
|
560
|
+
|
561
|
+
For example:
|
562
|
+
|
563
|
+
disabledTimeIntervals: [[moment({ h: 0 }), moment({ h: 8 })], [moment({ h: 18 }), moment({ h: 24 })]]
|
564
|
+
|
565
|
+
Will disable times between 12-8am and 6-12pm today
|
566
|
+
|
567
|
+
----------------------
|
568
|
+
|
569
|
+
### en/disabledHours
|
570
|
+
|
571
|
+
<small>4.14.30</small> Issue: #851
|
572
|
+
|
573
|
+
#### disabledHours()
|
574
|
+
|
575
|
+
Returns an `array` variable with the currently set `options.en/disabledHours` option.
|
576
|
+
|
577
|
+
#### disabledHours(boolean)
|
578
|
+
|
579
|
+
Takes a `array` value.
|
580
|
+
|
581
|
+
Must be in 24 hour format. Will allow or disallow hour selections (much like `disabledTimeIntervals`) but will affect all days.
|
582
|
+
|
583
|
+
Like `en/disabledDates`, these options are mutually exclusive and will reset one of the options back to false.
|
584
|
+
|
585
|
+
disabledHours: [0, 1, 2, 3, 4, 5, 6, 7, 8, 18, 19, 20, 21, 22, 23, 24]
|
586
|
+
enabledHours: [9, 10, 11, 12, 13, 14, 15, 16]
|
587
|
+
|
588
|
+
----------------------
|
589
|
+
|
590
|
+
### viewDate
|
591
|
+
|
592
|
+
<small>4.14.30</small> Issue #872
|
593
|
+
|
594
|
+
#### viewDate()
|
595
|
+
|
596
|
+
Returns a `moment` variable with the currently set `options.viewDate` option.
|
597
|
+
|
598
|
+
#### viewDate(viewDate)
|
599
|
+
|
600
|
+
Takes a `string, moment or Date` value.
|
601
|
+
|
602
|
+
This will change the `viewDate` without changing or setting the selected date.
|
603
|
+
|
604
|
+
### parseInputDate
|
605
|
+
<small>4.14.30</small> Issue #1095
|
606
|
+
|
607
|
+
#### parseInputDate()
|
608
|
+
|
609
|
+
Returns a `function` with the currently set `options.parseInputDate`
|
610
|
+
|
611
|
+
#### parseInputDate(function)
|
612
|
+
|
613
|
+
Takes a `function`
|
614
|
+
|
615
|
+
Allows custom input formatting For example: the user can enter 'yesterday' or '30 days ago'.
|
616
|
+
|
617
|
+
Example:
|
618
|
+
|
619
|
+
```
|
620
|
+
var parseRelativeDate = function(relativeDate) {
|
621
|
+
|
622
|
+
switch (relativeDate) {
|
623
|
+
case 'today':
|
624
|
+
return moment()
|
625
|
+
case 'yesterday':
|
626
|
+
return moment().subtract(1, 'day');
|
627
|
+
default:
|
628
|
+
return moment()
|
629
|
+
.subtract(Number(relativeDate.replace("days ago", "").trim()), 'days');
|
630
|
+
}
|
631
|
+
}
|
632
|
+
|
633
|
+
var parseInputDate = function(inputDate) {
|
634
|
+
var relativeDatePattern = /today|yesterday|[0-9]+\s+(days ago)/,
|
635
|
+
resultDate;
|
636
|
+
|
637
|
+
if (moment.isMoment(inputDate) || inputDate instanceof Date) {
|
638
|
+
resultDate = moment(inputDate);
|
639
|
+
} else {
|
640
|
+
var relativeDate = inputDate.match(relativeDatePattern),
|
641
|
+
parseDate = null;
|
642
|
+
|
643
|
+
if (relativeDate !== null)
|
644
|
+
parseDate = this.parseRelativeDate(inputDate.match(relativeDatePattern)[0]);
|
645
|
+
else
|
646
|
+
parseDate = moment();
|
647
|
+
|
648
|
+
resultDate = moment(parseDate, "YYYY-MM-DD");
|
649
|
+
}
|
650
|
+
|
651
|
+
return resultDate;
|
652
|
+
}
|
653
|
+
```
|
654
|
+
|
655
|
+
----------------------
|
656
|
+
|
657
|
+
### tooltips
|
658
|
+
<small>4.14.30</small>
|
659
|
+
|
660
|
+
#### tooltips()
|
661
|
+
|
662
|
+
Returns an `Ojbect` of `options.tooltips`
|
663
|
+
|
664
|
+
#### tooltips(tooltips)
|
665
|
+
|
666
|
+
Takes an `Ojbect` of `strings`.
|
667
|
+
|
668
|
+
##### Throws
|
669
|
+
|
670
|
+
* `TypeError` - if tooltips parameter is not an `Ojbect`
|