promethee 1.4.8 → 1.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (476) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -6
  3. data/app/assets/javascripts/promethee.js +4 -0
  4. data/app/assets/stylesheets/promethee-edit.sass +1 -0
  5. data/config/initializers/assets.rb +1 -0
  6. data/lib/promethee/rails/version.rb +1 -1
  7. data/node_modules/angular-summernote/CHANGELOG.md +149 -0
  8. data/node_modules/angular-summernote/LICENSE-MIT +22 -0
  9. data/node_modules/angular-summernote/README.md +270 -0
  10. data/node_modules/angular-summernote/bower.json +49 -0
  11. data/{vendor/assets/javascripts → node_modules/angular-summernote/dist}/angular-summernote.js +0 -0
  12. data/node_modules/angular-summernote/dist/angular-summernote.min.js +2 -0
  13. data/node_modules/angular-summernote/examples/fontstyle-plugin.html +48 -0
  14. data/node_modules/angular-summernote/examples/index.html +180 -0
  15. data/node_modules/angular-summernote/examples/index2.html +60 -0
  16. data/node_modules/angular-summernote/examples/index3.html +57 -0
  17. data/node_modules/angular-summernote/gulpfile.js +115 -0
  18. data/node_modules/angular-summernote/package.json +53 -0
  19. data/node_modules/angular-summernote/src/angular-summernote.js +206 -0
  20. data/node_modules/angular-summernote/test/angular-summernote.test.js +660 -0
  21. data/node_modules/angular-summernote/test/chai.conf.js +6 -0
  22. data/node_modules/angular-summernote/test/coverage/Chrome 37.0.2062 (Mac OS X 10.9.4)/index.html +350 -0
  23. data/node_modules/angular-summernote/test/coverage/Chrome 37.0.2062 (Mac OS X 10.9.4)/prettify.css +1 -0
  24. data/node_modules/angular-summernote/test/coverage/Chrome 37.0.2062 (Mac OS X 10.9.4)/prettify.js +1 -0
  25. data/node_modules/angular-summernote/test/coverage/Chrome 37.0.2062 (Mac OS X 10.9.4)/src/angular-summernote.js.html +694 -0
  26. data/node_modules/angular-summernote/test/coverage/Chrome 37.0.2062 (Mac OS X 10.9.4)/src/index.html +350 -0
  27. data/node_modules/angular-summernote/test/karma-angular-1-2-x.conf.js +33 -0
  28. data/node_modules/angular-summernote/test/karma-angular-1-3-x.conf.js +33 -0
  29. data/node_modules/angular-summernote/test/karma-angular-1-4-x.conf.js +33 -0
  30. data/node_modules/angular-summernote/test/karma-shared.conf.js +64 -0
  31. data/node_modules/angular-summernote/test/karma.conf.js +33 -0
  32. data/{vendor/assets/javascripts/summernote/locales/de-DE.js → node_modules/angular-summernote/test/lang/summernote-de-DE.js} +2 -17
  33. data/node_modules/angular-summernote/test/mocha.conf.js +3 -0
  34. data/node_modules/angular-ui-sortable/API.md +84 -0
  35. data/node_modules/angular-ui-sortable/CONTRIBUTING.md +12 -0
  36. data/node_modules/angular-ui-sortable/LICENSE +21 -0
  37. data/node_modules/angular-ui-sortable/README.md +350 -0
  38. data/node_modules/angular-ui-sortable/bower.json +26 -0
  39. data/node_modules/angular-ui-sortable/demo/demo.css +34 -0
  40. data/node_modules/angular-ui-sortable/demo/demo.html +29 -0
  41. data/node_modules/angular-ui-sortable/demo/demo.js +41 -0
  42. data/node_modules/angular-ui-sortable/dist/sortable.js +593 -0
  43. data/node_modules/angular-ui-sortable/dist/sortable.min.js +8 -0
  44. data/node_modules/angular-ui-sortable/gruntFile.js +202 -0
  45. data/node_modules/angular-ui-sortable/package.json +48 -0
  46. data/node_modules/angular-ui-sortable/publish.js +41 -0
  47. data/{vendor/assets/javascripts/ui-sortable.js → node_modules/angular-ui-sortable/src/sortable.js} +106 -200
  48. data/node_modules/angular-ui-sortable/test/bower_overrides.json +13 -0
  49. data/node_modules/angular-ui-sortable/test/karma.conf.js +85 -0
  50. data/node_modules/angular-ui-sortable/test/libs/jquery.simulate.dragandrevert.js +60 -0
  51. data/node_modules/angular-ui-sortable/test/sortable.e2e.callbacks.attr.spec.js +199 -0
  52. data/node_modules/angular-ui-sortable/test/sortable.e2e.callbacks.spec.js +729 -0
  53. data/node_modules/angular-ui-sortable/test/sortable.e2e.directiveoptions.spec.js +554 -0
  54. data/node_modules/angular-ui-sortable/test/sortable.e2e.directives.spec.js +371 -0
  55. data/node_modules/angular-ui-sortable/test/sortable.e2e.events.spec.js +167 -0
  56. data/node_modules/angular-ui-sortable/test/sortable.e2e.multi.spec.js +1232 -0
  57. data/node_modules/angular-ui-sortable/test/sortable.e2e.nested.spec.js +186 -0
  58. data/node_modules/angular-ui-sortable/test/sortable.e2e.spec.js +895 -0
  59. data/node_modules/angular-ui-sortable/test/sortable.spec.js +440 -0
  60. data/node_modules/angular-ui-sortable/test/sortable.test-directives.js +54 -0
  61. data/node_modules/angular-ui-sortable/test/sortable.test-helper.js +114 -0
  62. data/node_modules/angular-ui-sortable/test/sortable.tests.css +12 -0
  63. data/node_modules/ng-file-upload/LICENSE +20 -0
  64. data/node_modules/ng-file-upload/README.md +616 -0
  65. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/FileAPI.flash.swf +0 -0
  66. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/FileAPI.js +0 -0
  67. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/FileAPI.min.js +0 -0
  68. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/ng-file-upload-all.js +0 -0
  69. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/ng-file-upload-all.min.js +0 -0
  70. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/ng-file-upload-shim.js +0 -0
  71. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/ng-file-upload-shim.min.js +0 -0
  72. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/ng-file-upload.js +0 -0
  73. data/{vendor/assets/javascripts/ng-file-upload → node_modules/ng-file-upload/dist}/ng-file-upload.min.js +0 -0
  74. data/node_modules/ng-file-upload/index.js +2 -0
  75. data/node_modules/ng-file-upload/package.json +42 -0
  76. data/node_modules/summernote/CODE_OF_CONDUCT.md +46 -0
  77. data/node_modules/summernote/CONTRIBUTING.md +67 -0
  78. data/node_modules/summernote/ISSUE_TEMPLATE.md +14 -0
  79. data/node_modules/summernote/LICENSE +21 -0
  80. data/node_modules/summernote/PULL_REQUEST_TEMPLATE.md +28 -0
  81. data/node_modules/summernote/README.md +90 -0
  82. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/base.css +213 -0
  83. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/index.html +262 -0
  84. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/prettify.css +1 -0
  85. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/prettify.js +1 -0
  86. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/sort-arrow-sprite.png +0 -0
  87. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/sorter.js +158 -0
  88. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/Context.js.html +758 -0
  89. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/async.js.html +206 -0
  90. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/dom.js.html +3329 -0
  91. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/env.js.html +386 -0
  92. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/func.js.html +551 -0
  93. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/index.html +171 -0
  94. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/key.js.html +341 -0
  95. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/lists.js.html +695 -0
  96. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/range.js.html +2441 -0
  97. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/Bullet.js.html +668 -0
  98. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/History.js.html +380 -0
  99. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/Style.js.html +539 -0
  100. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/Table.js.html +1787 -0
  101. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/Typing.js.html +335 -0
  102. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/index.html +145 -0
  103. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/index.html +119 -0
  104. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/AirPopover.js.html +284 -0
  105. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/AutoLink.js.html +248 -0
  106. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/AutoSync.js.html +122 -0
  107. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Buttons.js.html +2504 -0
  108. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Clipboard.js.html +149 -0
  109. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Codeview.js.html +434 -0
  110. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Dropzone.js.html +410 -0
  111. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Editor.js.html +2648 -0
  112. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Fullscreen.js.html +218 -0
  113. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Handle.js.html +494 -0
  114. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/HelpDialog.js.html +302 -0
  115. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/HintPopover.js.html +743 -0
  116. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/ImageDialog.js.html +458 -0
  117. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/ImagePopover.js.html +239 -0
  118. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/LinkDialog.js.html +587 -0
  119. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/LinkPopover.js.html +272 -0
  120. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Placeholder.js.html +182 -0
  121. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Statusbar.js.html +191 -0
  122. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/TablePopover.js.html +278 -0
  123. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Toolbar.js.html +473 -0
  124. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/VideoDialog.js.html +680 -0
  125. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/index.html +353 -0
  126. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/renderer.js.html +263 -0
  127. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/summernote-en-US.js.html +542 -0
  128. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs3/index.html +106 -0
  129. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs3/settings.js.html +956 -0
  130. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs3/ui.js.html +776 -0
  131. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs4/index.html +106 -0
  132. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs4/settings.js.html +968 -0
  133. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs4/ui.js.html +791 -0
  134. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/index.html +93 -0
  135. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/index.html +106 -0
  136. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/settings.js.html +953 -0
  137. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui.js.html +1919 -0
  138. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/DropdownUI.js.html +260 -0
  139. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/ModalUI.js.html +167 -0
  140. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/PopoverUI.js.html +347 -0
  141. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/TooltipUI.js.html +344 -0
  142. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/index.html +132 -0
  143. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/summernote.js.html +203 -0
  144. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/Context.spec.js.html +323 -0
  145. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/dom.spec.js.html +1046 -0
  146. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/func.spec.js.html +482 -0
  147. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/index.html +145 -0
  148. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/key.spec.js.html +140 -0
  149. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/lists.spec.js.html +419 -0
  150. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/range.spec.js.html +1286 -0
  151. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/editing/Table.spec.js.html +1724 -0
  152. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/editing/index.html +106 -0
  153. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/editing/style.spec.js.html +341 -0
  154. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/index.html +93 -0
  155. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/module/Codeview.spec.js.html +161 -0
  156. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/module/Editor.spec.js.html +1235 -0
  157. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/module/Fullscreen.spec.js.html +161 -0
  158. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/module/index.html +119 -0
  159. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/bs/module/Buttons.spec.js.html +770 -0
  160. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/bs/module/VideoDialog.spec.js.html +209 -0
  161. data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/bs/module/index.html +106 -0
  162. data/node_modules/summernote/dist/font/summernote.eot +0 -0
  163. data/node_modules/summernote/dist/font/summernote.ttf +0 -0
  164. data/node_modules/summernote/dist/font/summernote.woff +0 -0
  165. data/{vendor/assets/javascripts/summernote/locales/ar-AR.js → node_modules/summernote/dist/lang/summernote-ar-AR.js} +55 -4
  166. data/node_modules/summernote/dist/lang/summernote-ar-AR.min.js +3 -0
  167. data/{vendor/assets/javascripts/summernote/locales/bg-BG.js → node_modules/summernote/dist/lang/summernote-bg-BG.js} +60 -4
  168. data/node_modules/summernote/dist/lang/summernote-bg-BG.min.js +3 -0
  169. data/{vendor/assets/javascripts/summernote/locales/ca-ES.js → node_modules/summernote/dist/lang/summernote-ca-ES.js} +12 -4
  170. data/node_modules/summernote/dist/lang/summernote-ca-ES.min.js +3 -0
  171. data/{vendor/assets/javascripts/summernote/locales/cs-CZ.js → node_modules/summernote/dist/lang/summernote-cs-CZ.js} +50 -4
  172. data/node_modules/summernote/dist/lang/summernote-cs-CZ.min.js +3 -0
  173. data/{vendor/assets/javascripts/summernote/locales/da-DK.js → node_modules/summernote/dist/lang/summernote-da-DK.js} +46 -5
  174. data/node_modules/summernote/dist/lang/summernote-da-DK.min.js +3 -0
  175. data/node_modules/summernote/dist/lang/summernote-de-DE.js +154 -0
  176. data/node_modules/summernote/dist/lang/summernote-de-DE.min.js +3 -0
  177. data/{vendor/assets/javascripts/summernote/locales/el-GR.js → node_modules/summernote/dist/lang/summernote-el-GR.js} +11 -3
  178. data/node_modules/summernote/dist/lang/summernote-el-GR.min.js +3 -0
  179. data/{vendor/assets/javascripts/summernote/locales/es-ES.js → node_modules/summernote/dist/lang/summernote-es-ES.js} +12 -4
  180. data/node_modules/summernote/dist/lang/summernote-es-ES.min.js +3 -0
  181. data/{vendor/assets/javascripts/summernote/locales/es-EU.js → node_modules/summernote/dist/lang/summernote-es-EU.js} +55 -4
  182. data/node_modules/summernote/dist/lang/summernote-es-EU.min.js +3 -0
  183. data/{vendor/assets/javascripts/summernote/locales/fa-IR.js → node_modules/summernote/dist/lang/summernote-fa-IR.js} +55 -5
  184. data/node_modules/summernote/dist/lang/summernote-fa-IR.min.js +3 -0
  185. data/{vendor/assets/javascripts/summernote/locales/fi-FI.js → node_modules/summernote/dist/lang/summernote-fi-FI.js} +52 -3
  186. data/node_modules/summernote/dist/lang/summernote-fi-FI.min.js +3 -0
  187. data/{vendor/assets/javascripts/summernote/locales/fr-FR.js → node_modules/summernote/dist/lang/summernote-fr-FR.js} +3 -2
  188. data/node_modules/summernote/dist/lang/summernote-fr-FR.min.js +3 -0
  189. data/{vendor/assets/javascripts/summernote/locales/gl-ES.js → node_modules/summernote/dist/lang/summernote-gl-ES.js} +12 -4
  190. data/node_modules/summernote/dist/lang/summernote-gl-ES.min.js +3 -0
  191. data/{vendor/assets/javascripts/summernote/locales/he-IL.js → node_modules/summernote/dist/lang/summernote-he-IL.js} +51 -3
  192. data/node_modules/summernote/dist/lang/summernote-he-IL.min.js +3 -0
  193. data/{vendor/assets/javascripts/summernote/locales/hr-HR.js → node_modules/summernote/dist/lang/summernote-hr-HR.js} +54 -3
  194. data/node_modules/summernote/dist/lang/summernote-hr-HR.min.js +3 -0
  195. data/{vendor/assets/javascripts/summernote/locales/hu-HU.js → node_modules/summernote/dist/lang/summernote-hu-HU.js} +25 -5
  196. data/node_modules/summernote/dist/lang/summernote-hu-HU.min.js +3 -0
  197. data/{vendor/assets/javascripts/summernote/locales/id-ID.js → node_modules/summernote/dist/lang/summernote-id-ID.js} +56 -4
  198. data/node_modules/summernote/dist/lang/summernote-id-ID.min.js +3 -0
  199. data/{vendor/assets/javascripts/summernote/locales/it-IT.js → node_modules/summernote/dist/lang/summernote-it-IT.js} +55 -4
  200. data/node_modules/summernote/dist/lang/summernote-it-IT.min.js +3 -0
  201. data/{vendor/assets/javascripts/summernote/locales/ja-JP.js → node_modules/summernote/dist/lang/summernote-ja-JP.js} +32 -10
  202. data/node_modules/summernote/dist/lang/summernote-ja-JP.min.js +3 -0
  203. data/{vendor/assets/javascripts/summernote/locales/ko-KR.js → node_modules/summernote/dist/lang/summernote-ko-KR.js} +44 -4
  204. data/node_modules/summernote/dist/lang/summernote-ko-KR.min.js +3 -0
  205. data/{vendor/assets/javascripts/summernote/locales/lt-LT.js → node_modules/summernote/dist/lang/summernote-lt-LT.js} +52 -4
  206. data/node_modules/summernote/dist/lang/summernote-lt-LT.min.js +3 -0
  207. data/{vendor/assets/javascripts/summernote/locales/lt-LV.js → node_modules/summernote/dist/lang/summernote-lt-LV.js} +27 -7
  208. data/node_modules/summernote/dist/lang/summernote-lt-LV.min.js +3 -0
  209. data/{vendor/assets/javascripts/summernote/locales/mn-MN.js → node_modules/summernote/dist/lang/summernote-mn-MN.js} +43 -4
  210. data/node_modules/summernote/dist/lang/summernote-mn-MN.min.js +3 -0
  211. data/{vendor/assets/javascripts/summernote/locales/nb-NO.js → node_modules/summernote/dist/lang/summernote-nb-NO.js} +53 -3
  212. data/node_modules/summernote/dist/lang/summernote-nb-NO.min.js +3 -0
  213. data/{vendor/assets/javascripts/summernote/locales/nl-NL.js → node_modules/summernote/dist/lang/summernote-nl-NL.js} +55 -4
  214. data/node_modules/summernote/dist/lang/summernote-nl-NL.min.js +3 -0
  215. data/{vendor/assets/javascripts/summernote/locales/pl-PL.js → node_modules/summernote/dist/lang/summernote-pl-PL.js} +46 -3
  216. data/node_modules/summernote/dist/lang/summernote-pl-PL.min.js +3 -0
  217. data/{vendor/assets/javascripts/summernote/locales/pt-BR.js → node_modules/summernote/dist/lang/summernote-pt-BR.js} +25 -8
  218. data/node_modules/summernote/dist/lang/summernote-pt-BR.min.js +3 -0
  219. data/{vendor/assets/javascripts/summernote/locales/pt-PT.js → node_modules/summernote/dist/lang/summernote-pt-PT.js} +54 -3
  220. data/node_modules/summernote/dist/lang/summernote-pt-PT.min.js +3 -0
  221. data/node_modules/summernote/dist/lang/summernote-ro-RO.js +155 -0
  222. data/node_modules/summernote/dist/lang/summernote-ro-RO.min.js +3 -0
  223. data/{vendor/assets/javascripts/summernote/locales/ru-RU.js → node_modules/summernote/dist/lang/summernote-ru-RU.js} +46 -3
  224. data/node_modules/summernote/dist/lang/summernote-ru-RU.min.js +3 -0
  225. data/{vendor/assets/javascripts/summernote/locales/sk-SK.js → node_modules/summernote/dist/lang/summernote-sk-SK.js} +54 -3
  226. data/node_modules/summernote/dist/lang/summernote-sk-SK.min.js +3 -0
  227. data/{vendor/assets/javascripts/summernote/locales/sl-SI.js → node_modules/summernote/dist/lang/summernote-sl-SI.js} +53 -4
  228. data/node_modules/summernote/dist/lang/summernote-sl-SI.min.js +3 -0
  229. data/{vendor/assets/javascripts/summernote/locales/sr-RS-Latin.js → node_modules/summernote/dist/lang/summernote-sr-RS-Latin.js} +54 -3
  230. data/node_modules/summernote/dist/lang/summernote-sr-RS-Latin.min.js +3 -0
  231. data/{vendor/assets/javascripts/summernote/locales/sr-RS.js → node_modules/summernote/dist/lang/summernote-sr-RS.js} +54 -3
  232. data/node_modules/summernote/dist/lang/summernote-sr-RS.min.js +3 -0
  233. data/{vendor/assets/javascripts/summernote/locales/sv-SE.js → node_modules/summernote/dist/lang/summernote-sv-SE.js} +55 -4
  234. data/node_modules/summernote/dist/lang/summernote-sv-SE.min.js +3 -0
  235. data/{vendor/assets/javascripts/summernote/locales/ta-IN.js → node_modules/summernote/dist/lang/summernote-ta-IN.js} +46 -4
  236. data/node_modules/summernote/dist/lang/summernote-ta-IN.min.js +3 -0
  237. data/node_modules/summernote/dist/lang/summernote-th-TH.js +155 -0
  238. data/node_modules/summernote/dist/lang/summernote-th-TH.min.js +3 -0
  239. data/{vendor/assets/javascripts/summernote/locales/tr-TR.js → node_modules/summernote/dist/lang/summernote-tr-TR.js} +3 -2
  240. data/node_modules/summernote/dist/lang/summernote-tr-TR.min.js +3 -0
  241. data/{vendor/assets/javascripts/summernote/locales/uk-UA.js → node_modules/summernote/dist/lang/summernote-uk-UA.js} +48 -4
  242. data/node_modules/summernote/dist/lang/summernote-uk-UA.min.js +3 -0
  243. data/node_modules/summernote/dist/lang/summernote-uz-UZ.js +112 -0
  244. data/node_modules/summernote/dist/lang/summernote-uz-UZ.min.js +3 -0
  245. data/{vendor/assets/javascripts/summernote/locales/vi-VN.js → node_modules/summernote/dist/lang/summernote-vi-VN.js} +55 -4
  246. data/node_modules/summernote/dist/lang/summernote-vi-VN.min.js +3 -0
  247. data/{vendor/assets/javascripts/summernote/locales/zh-CN.js → node_modules/summernote/dist/lang/summernote-zh-CN.js} +20 -7
  248. data/node_modules/summernote/dist/lang/summernote-zh-CN.min.js +3 -0
  249. data/{vendor/assets/javascripts/summernote/locales/zh-TW.js → node_modules/summernote/dist/lang/summernote-zh-TW.js} +45 -3
  250. data/node_modules/summernote/dist/lang/summernote-zh-TW.min.js +3 -0
  251. data/node_modules/summernote/dist/summernote-0.8.10-dist.zip +0 -0
  252. data/node_modules/summernote/dist/summernote-bs4.css +1 -0
  253. data/node_modules/summernote/dist/summernote-bs4.js +7323 -0
  254. data/node_modules/summernote/dist/summernote-bs4.js.map +1 -0
  255. data/node_modules/summernote/dist/summernote-bs4.min.js +3 -0
  256. data/node_modules/summernote/dist/summernote-lite.css +1 -0
  257. data/node_modules/summernote/dist/summernote-lite.js +7837 -0
  258. data/node_modules/summernote/dist/summernote-lite.js.map +1 -0
  259. data/node_modules/summernote/dist/summernote.css +1 -0
  260. data/node_modules/summernote/dist/summernote.js +7315 -0
  261. data/node_modules/summernote/dist/summernote.js.map +1 -0
  262. data/node_modules/summernote/dist/summernote.min.js +3 -0
  263. data/node_modules/summernote/examples/airmode.html +35 -0
  264. data/node_modules/summernote/examples/bs3.html +60 -0
  265. data/node_modules/summernote/examples/bs4.html +57 -0
  266. data/node_modules/summernote/examples/codemirror.html +45 -0
  267. data/node_modules/summernote/examples/external-api.html +76 -0
  268. data/node_modules/summernote/examples/hint-emoji.html +61 -0
  269. data/node_modules/summernote/examples/hint-symbols_mathematical-symbols_Greek-letters.html +54 -0
  270. data/node_modules/summernote/examples/hint-userdefine.html +48 -0
  271. data/node_modules/summernote/examples/ie8.html +32 -0
  272. data/node_modules/summernote/examples/jquery-custom-event.html +119 -0
  273. data/node_modules/summernote/examples/jquery19lt.html +25 -0
  274. data/node_modules/summernote/examples/lang.html +33 -0
  275. data/node_modules/summernote/examples/link-blank.html +33 -0
  276. data/node_modules/summernote/examples/lite.html +24 -0
  277. data/node_modules/summernote/examples/nativestyle.html +32 -0
  278. data/node_modules/summernote/examples/ondialog-multitab.html +77 -0
  279. data/node_modules/summernote/examples/ondialog.html +58 -0
  280. data/node_modules/summernote/examples/plugin-hello.html +37 -0
  281. data/node_modules/summernote/examples/rtl.html +32 -0
  282. data/node_modules/summernote/examples/symbols_mathematical-symbols_Greek-letters.json +1118 -0
  283. data/node_modules/summernote/examples/textarea.html +46 -0
  284. data/node_modules/summernote/examples/toolbar-container.html +35 -0
  285. data/node_modules/summernote/examples/with-google-font.html +50 -0
  286. data/node_modules/summernote/index.html +33 -0
  287. data/node_modules/summernote/karma.conf.js +42 -0
  288. data/node_modules/summernote/lang/summernote-ar-AR.js +155 -0
  289. data/node_modules/summernote/lang/summernote-bg-BG.js +155 -0
  290. data/node_modules/summernote/lang/summernote-ca-ES.js +155 -0
  291. data/node_modules/summernote/lang/summernote-cs-CZ.js +149 -0
  292. data/node_modules/summernote/lang/summernote-da-DK.js +155 -0
  293. data/node_modules/summernote/lang/summernote-de-DE.js +154 -0
  294. data/node_modules/summernote/lang/summernote-el-GR.js +155 -0
  295. data/node_modules/summernote/lang/summernote-es-ES.js +155 -0
  296. data/node_modules/summernote/lang/summernote-es-EU.js +154 -0
  297. data/node_modules/summernote/lang/summernote-fa-IR.js +155 -0
  298. data/node_modules/summernote/lang/summernote-fi-FI.js +153 -0
  299. data/node_modules/summernote/lang/summernote-fr-FR.js +155 -0
  300. data/node_modules/summernote/lang/summernote-gl-ES.js +155 -0
  301. data/node_modules/summernote/lang/summernote-he-IL.js +155 -0
  302. data/node_modules/summernote/lang/summernote-hr-HR.js +155 -0
  303. data/node_modules/summernote/lang/summernote-hu-HU.js +155 -0
  304. data/node_modules/summernote/lang/summernote-id-ID.js +155 -0
  305. data/node_modules/summernote/lang/summernote-it-IT.js +155 -0
  306. data/node_modules/summernote/lang/summernote-ja-JP.js +155 -0
  307. data/node_modules/summernote/lang/summernote-ko-KR.js +155 -0
  308. data/node_modules/summernote/lang/summernote-lt-LT.js +155 -0
  309. data/node_modules/summernote/lang/summernote-lt-LV.js +155 -0
  310. data/node_modules/summernote/lang/summernote-mn-MN.js +157 -0
  311. data/node_modules/summernote/lang/summernote-nb-NO.js +154 -0
  312. data/node_modules/summernote/lang/summernote-nl-NL.js +155 -0
  313. data/node_modules/summernote/lang/summernote-pl-PL.js +155 -0
  314. data/node_modules/summernote/lang/summernote-pt-BR.js +155 -0
  315. data/node_modules/summernote/lang/summernote-pt-PT.js +154 -0
  316. data/node_modules/summernote/lang/summernote-ro-RO.js +155 -0
  317. data/node_modules/summernote/lang/summernote-ru-RU.js +155 -0
  318. data/node_modules/summernote/lang/summernote-sk-SK.js +153 -0
  319. data/node_modules/summernote/lang/summernote-sl-SI.js +155 -0
  320. data/node_modules/summernote/lang/summernote-sr-RS-Latin.js +155 -0
  321. data/node_modules/summernote/lang/summernote-sr-RS.js +155 -0
  322. data/node_modules/summernote/lang/summernote-sv-SE.js +155 -0
  323. data/node_modules/summernote/lang/summernote-ta-IN.js +155 -0
  324. data/node_modules/summernote/lang/summernote-th-TH.js +155 -0
  325. data/node_modules/summernote/lang/summernote-tr-TR.js +155 -0
  326. data/node_modules/summernote/lang/summernote-uk-UA.js +155 -0
  327. data/node_modules/summernote/lang/summernote-uz-UZ.js +112 -0
  328. data/node_modules/summernote/lang/summernote-vi-VN.js +155 -0
  329. data/node_modules/summernote/lang/summernote-zh-CN.js +155 -0
  330. data/node_modules/summernote/lang/summernote-zh-TW.js +155 -0
  331. data/node_modules/summernote/package.json +87 -0
  332. data/{vendor/assets/javascripts → node_modules}/summernote/plugin/databasic/summernote-ext-databasic.css +0 -0
  333. data/{vendor/assets/javascripts → node_modules}/summernote/plugin/databasic/summernote-ext-databasic.js +62 -73
  334. data/{vendor/assets/javascripts → node_modules}/summernote/plugin/hello/summernote-ext-hello.js +9 -10
  335. data/{vendor/assets/javascripts → node_modules}/summernote/plugin/specialchars/summernote-ext-specialchars.js +22 -25
  336. data/node_modules/summernote/src/icons/align-center.svg +11 -0
  337. data/node_modules/summernote/src/icons/align-indent.svg +11 -0
  338. data/node_modules/summernote/src/icons/align-justify.svg +11 -0
  339. data/node_modules/summernote/src/icons/align-left.svg +12 -0
  340. data/node_modules/summernote/src/icons/align-outdent.svg +11 -0
  341. data/node_modules/summernote/src/icons/align-right.svg +11 -0
  342. data/node_modules/summernote/src/icons/align.svg +8 -0
  343. data/node_modules/summernote/src/icons/arrow-circle-down.svg +1 -0
  344. data/node_modules/summernote/src/icons/arrow-circle-left.svg +1 -0
  345. data/node_modules/summernote/src/icons/arrow-circle-right.svg +1 -0
  346. data/node_modules/summernote/src/icons/arrow-circle-up.svg +1 -0
  347. data/node_modules/summernote/src/icons/arrows-alt.svg +11 -0
  348. data/node_modules/summernote/src/icons/arrows-h.svg +1 -0
  349. data/node_modules/summernote/src/icons/arrows-v.svg +1 -0
  350. data/node_modules/summernote/src/icons/bold.svg +11 -0
  351. data/node_modules/summernote/src/icons/caret.svg +9 -0
  352. data/node_modules/summernote/src/icons/chain-broken.svg +47 -0
  353. data/node_modules/summernote/src/icons/circle.svg +10 -0
  354. data/node_modules/summernote/src/icons/close.svg +16 -0
  355. data/node_modules/summernote/src/icons/code.svg +11 -0
  356. data/node_modules/summernote/src/icons/col-after.svg +96 -0
  357. data/node_modules/summernote/src/icons/col-before.svg +19 -0
  358. data/node_modules/summernote/src/icons/col-remove.svg +19 -0
  359. data/node_modules/summernote/src/icons/dist/font/summernote.eot +0 -0
  360. data/node_modules/summernote/src/icons/dist/font/summernote.ttf +0 -0
  361. data/node_modules/summernote/src/icons/dist/font/summernote.woff +0 -0
  362. data/node_modules/summernote/src/icons/dist/summernote.html +536 -0
  363. data/node_modules/summernote/src/icons/dist/summernote.less +511 -0
  364. data/node_modules/summernote/src/icons/eraser.svg +13 -0
  365. data/node_modules/summernote/src/icons/font.svg +11 -0
  366. data/node_modules/summernote/src/icons/frame.svg +10 -0
  367. data/node_modules/summernote/src/icons/italic.svg +11 -0
  368. data/node_modules/summernote/src/icons/link.svg +21 -0
  369. data/node_modules/summernote/src/icons/magic.svg +10 -0
  370. data/node_modules/summernote/src/icons/menu-check.svg +8 -0
  371. data/node_modules/summernote/src/icons/minus.svg +11 -0
  372. data/node_modules/summernote/src/icons/orderedlist.svg +12 -0
  373. data/node_modules/summernote/src/icons/pencil.svg +8 -0
  374. data/node_modules/summernote/src/icons/picture.svg +11 -0
  375. data/node_modules/summernote/src/icons/question.svg +10 -0
  376. data/node_modules/summernote/src/icons/redo.svg +10 -0
  377. data/node_modules/summernote/src/icons/row-above.svg +19 -0
  378. data/node_modules/summernote/src/icons/row-below.svg +19 -0
  379. data/node_modules/summernote/src/icons/row-remove.svg +19 -0
  380. data/node_modules/summernote/src/icons/special-character.svg +10 -0
  381. data/node_modules/summernote/src/icons/square.svg +10 -0
  382. data/node_modules/summernote/src/icons/strikethrough.svg +11 -0
  383. data/node_modules/summernote/src/icons/subscript.svg +11 -0
  384. data/node_modules/summernote/src/icons/summernote.svg +11 -0
  385. data/node_modules/summernote/src/icons/superscript.svg +11 -0
  386. data/node_modules/summernote/src/icons/table.svg +11 -0
  387. data/node_modules/summernote/src/icons/templates/summernote.css +110 -0
  388. data/node_modules/summernote/src/icons/templates/summernote.json +5 -0
  389. data/node_modules/summernote/src/icons/text-height.svg +11 -0
  390. data/node_modules/summernote/src/icons/trash.svg +17 -0
  391. data/node_modules/summernote/src/icons/underline.svg +11 -0
  392. data/node_modules/summernote/src/icons/undo.svg +10 -0
  393. data/node_modules/summernote/src/icons/unorderedlist.svg +9 -0
  394. data/node_modules/summernote/src/icons/video.svg +9 -0
  395. data/node_modules/summernote/src/js/base/Context.js +231 -0
  396. data/node_modules/summernote/src/js/base/core/async.js +47 -0
  397. data/node_modules/summernote/src/js/base/core/dom.js +1088 -0
  398. data/node_modules/summernote/src/js/base/core/env.js +107 -0
  399. data/node_modules/summernote/src/js/base/core/func.js +162 -0
  400. data/node_modules/summernote/src/js/base/core/key.js +92 -0
  401. data/node_modules/summernote/src/js/base/core/lists.js +210 -0
  402. data/node_modules/summernote/src/js/base/core/range.js +792 -0
  403. data/node_modules/summernote/src/js/base/editing/Bullet.js +201 -0
  404. data/node_modules/summernote/src/js/base/editing/History.js +105 -0
  405. data/node_modules/summernote/src/js/base/editing/Style.js +158 -0
  406. data/node_modules/summernote/src/js/base/editing/Table.js +574 -0
  407. data/node_modules/summernote/src/js/base/editing/Typing.js +90 -0
  408. data/node_modules/summernote/src/js/base/module/AirPopover.js +73 -0
  409. data/node_modules/summernote/src/js/base/module/AutoLink.js +61 -0
  410. data/node_modules/summernote/src/js/base/module/AutoSync.js +19 -0
  411. data/node_modules/summernote/src/js/base/module/Buttons.js +813 -0
  412. data/node_modules/summernote/src/js/base/module/Clipboard.js +28 -0
  413. data/node_modules/summernote/src/js/base/module/Codeview.js +123 -0
  414. data/node_modules/summernote/src/js/base/module/Dropzone.js +115 -0
  415. data/node_modules/summernote/src/js/base/module/Editor.js +861 -0
  416. data/node_modules/summernote/src/js/base/module/Fullscreen.js +51 -0
  417. data/node_modules/summernote/src/js/base/module/Handle.js +143 -0
  418. data/node_modules/summernote/src/js/base/module/HelpDialog.js +79 -0
  419. data/node_modules/summernote/src/js/base/module/HintPopover.js +226 -0
  420. data/node_modules/summernote/src/js/base/module/ImageDialog.js +131 -0
  421. data/node_modules/summernote/src/js/base/module/ImagePopover.js +58 -0
  422. data/node_modules/summernote/src/js/base/module/LinkDialog.js +174 -0
  423. data/node_modules/summernote/src/js/base/module/LinkPopover.js +69 -0
  424. data/node_modules/summernote/src/js/base/module/Placeholder.js +39 -0
  425. data/node_modules/summernote/src/js/base/module/Statusbar.js +42 -0
  426. data/node_modules/summernote/src/js/base/module/TablePopover.js +71 -0
  427. data/node_modules/summernote/src/js/base/module/Toolbar.js +136 -0
  428. data/node_modules/summernote/src/js/base/module/VideoDialog.js +205 -0
  429. data/node_modules/summernote/src/js/base/renderer.js +66 -0
  430. data/node_modules/summernote/src/js/base/summernote-en-US.js +159 -0
  431. data/node_modules/summernote/src/js/bs3/settings.js +297 -0
  432. data/node_modules/summernote/src/js/bs3/ui.js +237 -0
  433. data/node_modules/summernote/src/js/bs4/settings.js +301 -0
  434. data/node_modules/summernote/src/js/bs4/ui.js +242 -0
  435. data/node_modules/summernote/src/js/lite/settings.js +296 -0
  436. data/node_modules/summernote/src/js/lite/ui.js +618 -0
  437. data/node_modules/summernote/src/js/lite/ui/DropdownUI.js +65 -0
  438. data/node_modules/summernote/src/js/lite/ui/ModalUI.js +34 -0
  439. data/node_modules/summernote/src/js/lite/ui/PopoverUI.js +94 -0
  440. data/node_modules/summernote/src/js/lite/ui/TooltipUI.js +93 -0
  441. data/node_modules/summernote/src/js/summernote.js +46 -0
  442. data/node_modules/summernote/src/less/elements.less +149 -0
  443. data/node_modules/summernote/src/less/elements.scss +149 -0
  444. data/node_modules/summernote/src/less/lite-ui/all.less +15 -0
  445. data/node_modules/summernote/src/less/lite-ui/btn-group.less +51 -0
  446. data/node_modules/summernote/src/less/lite-ui/buttons.less +102 -0
  447. data/node_modules/summernote/src/less/lite-ui/common.less +20 -0
  448. data/node_modules/summernote/src/less/lite-ui/dropdown.less +39 -0
  449. data/node_modules/summernote/src/less/lite-ui/form.less +43 -0
  450. data/node_modules/summernote/src/less/lite-ui/mixins.less +1 -0
  451. data/node_modules/summernote/src/less/lite-ui/mixins/buttons.less +40 -0
  452. data/node_modules/summernote/src/less/lite-ui/modal.less +104 -0
  453. data/node_modules/summernote/src/less/lite-ui/popover.less +121 -0
  454. data/node_modules/summernote/src/less/lite-ui/toolbar.less +4 -0
  455. data/node_modules/summernote/src/less/lite-ui/tooltip.less +66 -0
  456. data/node_modules/summernote/src/less/lite-ui/variables.less +81 -0
  457. data/node_modules/summernote/src/less/summernote-bs4.less +577 -0
  458. data/node_modules/summernote/src/less/summernote-bs4.scss +560 -0
  459. data/node_modules/summernote/src/less/summernote-lite.less +601 -0
  460. data/node_modules/summernote/src/less/summernote.less +576 -0
  461. data/node_modules/summernote/src/less/summernote.scss +560 -0
  462. data/node_modules/summernote/tsconfig.json +12 -0
  463. metadata +459 -69
  464. data/vendor/assets/fonts/summernote.eot +0 -0
  465. data/vendor/assets/fonts/summernote.ttf +0 -0
  466. data/vendor/assets/fonts/summernote.woff +0 -0
  467. data/vendor/assets/javascripts/summernote/index.js +0 -1
  468. data/vendor/assets/javascripts/summernote/locales/index.js +0 -1
  469. data/vendor/assets/javascripts/summernote/locales/ro-RO.js +0 -102
  470. data/vendor/assets/javascripts/summernote/locales/th-TH.js +0 -106
  471. data/vendor/assets/javascripts/summernote/summernote-bs4.js +0 -7990
  472. data/vendor/assets/javascripts/summernote/summernote-lite.js +0 -8598
  473. data/vendor/assets/javascripts/summernote/summernote.js +0 -7987
  474. data/vendor/assets/stylesheets/summernote-bs4.css +0 -1
  475. data/vendor/assets/stylesheets/summernote-lite.css +0 -1
  476. data/vendor/assets/stylesheets/summernote.scss +0 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * angular-ui-sortable - This directive allows you to jQueryUI Sortable.
3
+ * @version v0.17.2 - 2017-11-25
4
+ * @link http://angular-ui.github.com
5
+ * @license MIT
6
+ */
7
+
8
+ !function(a,b,c){"use strict";b.module("ui.sortable",[]).value("uiSortableConfig",{items:"> [ng-repeat],> [data-ng-repeat],> [x-ng-repeat]"}).directive("uiSortable",["uiSortableConfig","$timeout","$log",function(a,d,e){return{require:"?ngModel",scope:{ngModel:"=",uiSortable:"=",create:"&uiSortableCreate",start:"&uiSortableStart",activate:"&uiSortableActivate",beforeStop:"&uiSortableBeforeStop",update:"&uiSortableUpdate",remove:"&uiSortableRemove",receive:"&uiSortableReceive",deactivate:"&uiSortableDeactivate",stop:"&uiSortableStop"},link:function(f,g,h,i){function j(a,b){var c="function"==typeof a,d="function"==typeof b;return c&&d?function(){a.apply(this,arguments),b.apply(this,arguments)}:d?b:a}function k(a){var b=a.data("ui-sortable");return b&&"object"==typeof b&&"ui-sortable"===b.widgetFullName?b:null}function l(b,c){return C[b]?("stop"===b&&(c=j(c,function(){f.$apply()}),c=j(c,t)),c=j(C[b],c)):D[b]&&(c=D[b](c)),c||"items"!==b&&"ui-model-items"!==b||(c=a.items),c}function m(a,d,e){function f(a,b){b in A||(A[b]=null)}b.forEach(C,f);var g=null;if(d){var h;b.forEach(d,function(d,e){if(!(a&&e in a)){if(e in B)return void("ui-floating"===e?A[e]="auto":A[e]=l(e,c));h||(h=b.element.ui.sortable().options);var f=h[e];f=l(e,f),g||(g={}),g[e]=f,A[e]=f}})}return a=b.extend({},a),b.forEach(a,function(c,d){if(d in B){if("ui-floating"!==d||c!==!1&&c!==!0||!e||(e.floating=c),"ui-preserve-size"===d&&(c===!1||c===!0)){var f=A.helper;a.helper=function(a,c){return A["ui-preserve-size"]===!0&&c.children().each(function(){var a=b.element(this);a.width(a.width())}),(f||function(a,b){return b}).apply(this,arguments)}}A[d]=l(d,c)}}),b.forEach(a,function(a,b){b in B||(a=l(b,a),g||(g={}),g[b]=a,A[b]=a)}),g}function n(a){var c=a.sortable("option","placeholder");if(c&&c.element&&"function"==typeof c.element){var d=c.element();return d=b.element(d)}return null}function o(a,b){var c=A["ui-model-items"].replace(/[^,]*>/g,""),d=a.find('[class="'+b.attr("class")+'"]:not('+c+")");return d}function p(a,b){var c=a.sortable("option","helper");return"clone"===c||"function"==typeof c&&b.item.sortable.isCustomHelperUsed()}function q(a,b){var c=null;return p(a,b)&&"parent"===a.sortable("option","appendTo")&&(c=z),c}function r(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))}function s(a,b){for(var c=0;c<a.length;c++){var d=a[c];if(d.element[0]===b[0])return d}}function t(a,b){b.item.sortable._destroy()}function u(a){return a.parent().find(A["ui-model-items"]).index(a)}function v(){f.$watchCollection("ngModel",function(){d(function(){k(g)&&g.sortable("refresh")},0,!1)}),C.start=function(a,d){if("auto"===A["ui-floating"]){var e=d.item.siblings(),f=k(b.element(a.target));f.floating=r(e)}var h=u(d.item);d.item.sortable={model:i.$modelValue[h],index:h,source:g,sourceList:d.item.parent(),sourceModel:i.$modelValue,cancel:function(){d.item.sortable._isCanceled=!0},isCanceled:function(){return d.item.sortable._isCanceled},isCustomHelperUsed:function(){return!!d.item.sortable._isCustomHelperUsed},_isCanceled:!1,_isCustomHelperUsed:d.item.sortable._isCustomHelperUsed,_destroy:function(){b.forEach(d.item.sortable,function(a,b){d.item.sortable[b]=c})},_connectedSortables:[],_getElementContext:function(a){return s(this._connectedSortables,a)}}},C.activate=function(a,b){var c=b.item.sortable.source===g,d=c?b.item.sortable.sourceList:g,e={element:g,scope:f,isSourceContext:c,savedNodesOrigin:d};b.item.sortable._connectedSortables.push(e),y=d.contents(),z=b.helper;var h=n(g);if(h&&h.length){var i=o(g,h);y=y.not(i)}},C.update=function(a,b){if(!b.item.sortable.received){b.item.sortable.dropindex=u(b.item);var c=b.item.parent().closest("[ui-sortable], [data-ui-sortable], [x-ui-sortable]");b.item.sortable.droptarget=c,b.item.sortable.droptargetList=b.item.parent();var d=b.item.sortable._getElementContext(c);b.item.sortable.droptargetModel=d.scope.ngModel,g.sortable("cancel")}var e=!b.item.sortable.received&&q(g,b,y);e&&e.length&&(y=y.not(e));var h=b.item.sortable._getElementContext(g);y.appendTo(h.savedNodesOrigin),b.item.sortable.received&&(y=null),b.item.sortable.received&&!b.item.sortable.isCanceled()&&(f.$apply(function(){i.$modelValue.splice(b.item.sortable.dropindex,0,b.item.sortable.moved)}),f.$emit("ui-sortable:moved",b))},C.stop=function(a,c){var d="dropindex"in c.item.sortable&&!c.item.sortable.isCanceled();if(d&&!c.item.sortable.received)f.$apply(function(){i.$modelValue.splice(c.item.sortable.dropindex,0,i.$modelValue.splice(c.item.sortable.index,1)[0])}),f.$emit("ui-sortable:moved",c);else if(!d&&!b.equals(g.contents().toArray(),y.toArray())){var e=q(g,c,y);e&&e.length&&(y=y.not(e));var h=c.item.sortable._getElementContext(g);y.appendTo(h.savedNodesOrigin)}y=null,z=null},C.receive=function(a,b){b.item.sortable.received=!0},C.remove=function(a,b){"dropindex"in b.item.sortable||(g.sortable("cancel"),b.item.sortable.cancel()),b.item.sortable.isCanceled()||f.$apply(function(){b.item.sortable.moved=i.$modelValue.splice(b.item.sortable.index,1)[0]})},b.forEach(C,function(a,b){C[b]=j(C[b],function(){var a,c=f[b];"function"==typeof c&&("uiSortable"+b.substring(0,1).toUpperCase()+b.substring(1)).length&&"function"==typeof(a=c())&&a.apply(this,arguments)})}),D.helper=function(a){return a&&"function"==typeof a?function(d,e){var f=e.sortable,h=u(e);e.sortable={model:i.$modelValue[h],index:h,source:g,sourceList:e.parent(),sourceModel:i.$modelValue,_restore:function(){b.forEach(e.sortable,function(a,b){e.sortable[b]=c}),e.sortable=f}};var j=a.apply(this,arguments);return e.sortable._restore(),e.sortable._isCustomHelperUsed=e!==j,j}:a},f.$watchCollection("uiSortable",function(a,b){var c=k(g);if(c){var d=m(a,b,c);d&&g.sortable("option",d)}},!0),m(A)}function w(){i?v():e.info("ui.sortable: ngModel not provided!",g),g.sortable(A)}function x(){return f.uiSortable&&f.uiSortable.disabled?!1:(w(),x.cancelWatcher(),x.cancelWatcher=b.noop,!0)}var y,z,A={},B={"ui-floating":c,"ui-model-items":a.items,"ui-preserve-size":c},C={create:null,start:null,activate:null,beforeStop:null,update:null,remove:null,receive:null,deactivate:null,stop:null},D={helper:null};return b.extend(A,B,a,f.uiSortable),b.element.fn&&b.element.fn.jquery?(x.cancelWatcher=b.noop,void(x()||(x.cancelWatcher=f.$watch("uiSortable.disabled",x)))):void e.error("ui.sortable: jQuery should be included before AngularJS!")}}}])}(window,window.angular);
@@ -0,0 +1,202 @@
1
+ /* jshint node:true */
2
+
3
+ 'use strict';
4
+
5
+ module.exports = function(grunt) {
6
+
7
+ require('load-grunt-tasks')(grunt);
8
+
9
+ // Default task.
10
+ grunt.registerTask('default', ['test']);
11
+ grunt.registerTask('test', ['jshint', 'karma:unit']);
12
+ grunt.registerTask('serve', ['karma:continuous', 'dist', 'build:gh-pages', 'connect:continuous', 'watch']);
13
+ grunt.registerTask('dist', ['ngmin', 'surround:main', 'uglify', 'surround:banner' ]);
14
+ grunt.registerTask('coverage', ['jshint', 'karma:coverage']);
15
+ grunt.registerTask('junit', ['jshint', 'karma:junit']);
16
+
17
+
18
+ // HACK TO ACCESS TO THE COMPONENT PUBLISHER
19
+ function fakeTargetTask(prefix){
20
+ return function(){
21
+
22
+ if (this.args.length !== 1) {
23
+ return grunt.log.fail('Just give the name of the ' + prefix + ' you want like :\ngrunt ' + prefix + ':bower');
24
+ }
25
+
26
+ var done = this.async();
27
+ var spawn = require('child_process').spawn;
28
+ spawn('./node_modules/.bin/gulp', [ prefix, '--branch='+this.args[0] ].concat(grunt.option.flags()), {
29
+ cwd : './node_modules/angular-ui-publisher',
30
+ stdio: 'inherit'
31
+ }).on('close', done);
32
+ };
33
+ }
34
+
35
+ grunt.registerTask('build', fakeTargetTask('build'));
36
+ grunt.registerTask('publish', fakeTargetTask('publish'));
37
+ //
38
+
39
+
40
+ // HACK TO MAKE TRAVIS WORK
41
+ var testConfig = function(configFile, customOptions) {
42
+ var options = { configFile: configFile, singleRun: true };
43
+ var travisOptions = process.env.TRAVIS && {
44
+ browsers: ['Chrome', 'Firefox'],
45
+ reporters: ['dots', 'coverage', 'coveralls'],
46
+ preprocessors: { 'src/*.js': ['coverage'] },
47
+ coverageReporter: {
48
+ reporters: [{
49
+ type: 'text'
50
+ }, {
51
+ type: 'lcov',
52
+ dir: 'coverage/'
53
+ }]
54
+ },
55
+ };
56
+ return grunt.util._.extend(options, customOptions, travisOptions);
57
+ };
58
+ //
59
+
60
+
61
+ // Project configuration.
62
+ grunt.initConfig({
63
+ pkg: grunt.file.readJSON('package.json'),
64
+ meta: {
65
+ banner: ['/**',
66
+ ' * <%= pkg.name %> - <%= pkg.description %>',
67
+ ' * @version v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>',
68
+ ' * @link <%= pkg.homepage %>',
69
+ ' * @license <%= pkg.license %>',
70
+ ' */',
71
+ ''].join('\n')
72
+ },
73
+
74
+ connect: {
75
+ options: {
76
+ base : 'out/built/gh-pages',
77
+ open: true,
78
+ livereload: true
79
+ },
80
+ server: { options: { keepalive: true } },
81
+ continuous: { options: { keepalive: false } }
82
+ },
83
+
84
+ coveralls: {
85
+ options: {
86
+ coverage_dir: 'coverage/',
87
+ // debug: true
88
+ // dryRun: true,
89
+ // force: true,
90
+ // recursive: true
91
+ }
92
+ },
93
+
94
+ karma: {
95
+ unit: testConfig('test/karma.conf.js'),
96
+ server: {configFile: 'test/karma.conf.js'},
97
+ continuous: {configFile: 'test/karma.conf.js', background: true },
98
+ coverage: {
99
+ configFile: 'test/karma.conf.js',
100
+ reporters: ['progress', 'coverage'],
101
+ preprocessors: { 'src/*.js': ['coverage'] },
102
+ coverageReporter: {
103
+ reporters: [{
104
+ type: 'text'
105
+ }, {
106
+ type: 'lcov',
107
+ dir: 'coverage/'
108
+ }]
109
+ },
110
+ singleRun: true
111
+ },
112
+ junit: {
113
+ configFile: 'test/karma.conf.js',
114
+ reporters: ['progress', 'junit'],
115
+ junitReporter: {
116
+ outputFile: 'junit/unit.xml',
117
+ suite: 'unit'
118
+ },
119
+ singleRun: true
120
+ }
121
+ },
122
+
123
+ jshint: {
124
+ src: {
125
+ files:{ src : ['src/**/*.js', 'demo/**/*.js'] },
126
+ options: { jshintrc: '.jshintrc' }
127
+ },
128
+ test: {
129
+ files:{ src : [ 'test/*.js', 'gruntFile.js'] },
130
+ options: grunt.util._.extend({}, grunt.file.readJSON('.jshintrc'), grunt.file.readJSON('test/.jshintrc'))
131
+ }
132
+ },
133
+
134
+ uglify: {
135
+ build: {
136
+ expand: true,
137
+ cwd: 'dist',
138
+ src: ['*.js', '!*.min.js'],
139
+ ext: '.min.js',
140
+ dest: 'dist'
141
+ }
142
+ },
143
+
144
+ surround: {
145
+ main: {
146
+ expand: true,
147
+ cwd: 'src',
148
+ src: ['*.js'],
149
+ dest: 'dist',
150
+ options: {
151
+ prepend: ['(function(window, angular, undefined) {',
152
+ '\'use strict\';'].join('\n'),
153
+ append: '})(window, window.angular);'
154
+ }
155
+ },
156
+ banner: {
157
+ expand: true,
158
+ cwd: 'dist',
159
+ src: ['*.js'],
160
+ dest: 'dist',
161
+ options: {
162
+ prepend: '<%= meta.banner %>'
163
+ }
164
+ }
165
+ },
166
+
167
+ ngmin: {
168
+ main: {
169
+ expand: true,
170
+ cwd: 'src',
171
+ src: ['*.js'],
172
+ dest: 'dist'
173
+ }
174
+ },
175
+
176
+ changelog: {
177
+ options: {
178
+ dest: 'CHANGELOG.md'
179
+ }
180
+ },
181
+
182
+ watch: {
183
+ src: {
184
+ files: ['src/*'],
185
+ tasks: ['jshint:src', 'karma:unit:run', 'dist', 'build:gh-pages']
186
+ },
187
+ test: {
188
+ files: ['test/*.js'],
189
+ tasks: ['jshint:test', 'karma:unit:run']
190
+ },
191
+ demo: {
192
+ files: ['demo/*', 'publish.js'],
193
+ tasks: ['jshint', 'build:gh-pages']
194
+ },
195
+ livereload: {
196
+ files: ['out/built/gh-pages/**/*'],
197
+ options: { livereload: true }
198
+ }
199
+ }
200
+ });
201
+
202
+ };
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "angular-ui-sortable",
3
+ "version": "0.18.0",
4
+ "description": "This directive allows you to jQueryUI Sortable.",
5
+ "author": "https://github.com/angular-ui/ui-sortable/graphs/contributors",
6
+ "license": "MIT",
7
+ "homepage": "http://angular-ui.github.com",
8
+ "main": "./src/sortable.js",
9
+ "dependencies": {},
10
+ "devDependencies": {
11
+ "angular-ui-publisher": "1.2.x",
12
+ "grunt": "~0.4.x",
13
+ "grunt-contrib-connect": "0.5.x",
14
+ "grunt-contrib-jshint": "0.8.x",
15
+ "grunt-contrib-uglify": "0.2.x",
16
+ "grunt-contrib-watch": "0.5.x",
17
+ "grunt-conventional-changelog": "~1.0.0",
18
+ "grunt-karma": "^0.12.1",
19
+ "grunt-ngmin": "0.0.x",
20
+ "grunt-surround": "0.1.x",
21
+ "jasmine-core": "^2.4.1",
22
+ "karma": "^0.13.22",
23
+ "karma-chrome-launcher": "0.1.x",
24
+ "karma-coffee-preprocessor": "^0.3.0",
25
+ "karma-coverage": "^0.5.5",
26
+ "karma-coveralls": "~0.1.4",
27
+ "karma-firefox-launcher": "0.1.x",
28
+ "karma-html2js-preprocessor": "^0.1.0",
29
+ "karma-jasmine": "^0.3.7",
30
+ "karma-junit-reporter": "^0.4.0",
31
+ "karma-phantomjs-launcher": "^1.0.0",
32
+ "karma-requirejs": "^0.2.5",
33
+ "karma-script-launcher": "^0.2.0",
34
+ "load-grunt-tasks": "0.2.x",
35
+ "requirejs": "2.1.x",
36
+ "wiredep": "1.8.x"
37
+ },
38
+ "scripts": {
39
+ "coverage": "grunt coverage",
40
+ "dist": "grunt dist",
41
+ "serve": "grunt serve",
42
+ "test": "grunt test"
43
+ },
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git://github.com/angular-ui/ui-sortable.git"
47
+ }
48
+ }
@@ -0,0 +1,41 @@
1
+ /* jshint node:true */
2
+
3
+ 'use strict';
4
+
5
+ var fs = require('fs');
6
+ var path = require('path');
7
+
8
+ module.exports = function() {
9
+ var wiredep = require('wiredep');
10
+
11
+ var bower_dependencies = wiredep({ cwd: __dirname });
12
+
13
+ var js_dependencies = []
14
+ .concat(bower_dependencies.packages['jquery'].main)
15
+ .concat(bower_dependencies.packages['jquery-ui'].main)
16
+ .map(function(p) {
17
+ return p.replace(path.join(__dirname, '/'), '');
18
+ });
19
+
20
+ var css_dependencies = [
21
+ 'bower_components/jquery-ui/themes/smoothness/jquery-ui.css'
22
+ ];
23
+
24
+ function putThemInVendorDir (filepath) {
25
+ return 'vendor/' + path.basename(filepath);
26
+ }
27
+
28
+ return {
29
+ humaName : 'UI.Sortable',
30
+ repoName : 'ui-sortable',
31
+ inlineHTML : fs.readFileSync(__dirname + '/demo/demo.html'),
32
+ inlineJS : fs.readFileSync(__dirname + '/demo/demo.js'),
33
+ css: css_dependencies.map(putThemInVendorDir).concat(['demo/demo.css']),
34
+ js : function(defaultJsFiles){
35
+ // HACK TO LOAD JQUERY BEFORE ANGULAR
36
+ return ['vendor/jquery.js'].concat(defaultJsFiles, js_dependencies.slice(1).map(putThemInVendorDir).concat(['dist/sortable.js']));
37
+ },
38
+ bowerData: { main : './sortable.js' },
39
+ tocopy : css_dependencies.concat(js_dependencies)
40
+ };
41
+ };
@@ -1,49 +1,47 @@
1
1
  /*
2
2
  jQuery UI Sortable plugin wrapper
3
+
3
4
  @param [ui-sortable] {object} Options to pass to $.fn.sortable() merged onto ui.config
4
5
  */
5
- angular
6
- .module('ui.sortable', [])
7
- .value('uiSortableConfig', {
6
+ angular.module('ui.sortable', [])
7
+ .value('uiSortableConfig',{
8
8
  // the default for jquery-ui sortable is "> *", we need to restrict this to
9
9
  // ng-repeat items
10
10
  // if the user uses
11
11
  items: '> [ng-repeat],> [data-ng-repeat],> [x-ng-repeat]'
12
12
  })
13
13
  .directive('uiSortable', [
14
- 'uiSortableConfig',
15
- '$timeout',
16
- '$log',
14
+ 'uiSortableConfig', '$timeout', '$log',
17
15
  function(uiSortableConfig, $timeout, $log) {
18
16
  return {
19
- require: '?ngModel',
17
+ require:'?ngModel',
20
18
  scope: {
21
- ngModel: '=',
22
- uiSortable: '=',
19
+ ngModel:'=',
20
+ uiSortable:'=',
23
21
  ////Expression bindings from html.
24
- create: '&uiSortableCreate',
22
+ create:'&uiSortableCreate',
25
23
  // helper:'&uiSortableHelper',
26
- start: '&uiSortableStart',
27
- activate: '&uiSortableActivate',
24
+ start:'&uiSortableStart',
25
+ activate:'&uiSortableActivate',
28
26
  // sort:'&uiSortableSort',
29
27
  // change:'&uiSortableChange',
30
28
  // over:'&uiSortableOver',
31
29
  // out:'&uiSortableOut',
32
- beforeStop: '&uiSortableBeforeStop',
33
- update: '&uiSortableUpdate',
34
- remove: '&uiSortableRemove',
35
- receive: '&uiSortableReceive',
36
- deactivate: '&uiSortableDeactivate',
37
- stop: '&uiSortableStop'
30
+ beforeStop:'&uiSortableBeforeStop',
31
+ update:'&uiSortableUpdate',
32
+ remove:'&uiSortableRemove',
33
+ receive:'&uiSortableReceive',
34
+ deactivate:'&uiSortableDeactivate',
35
+ stop:'&uiSortableStop'
38
36
  },
39
37
  link: function(scope, element, attrs, ngModel) {
40
38
  var savedNodes;
41
39
  var helper;
42
40
 
43
- function combineCallbacks(first, second) {
41
+ function combineCallbacks(first, second){
44
42
  var firstIsFunc = typeof first === 'function';
45
43
  var secondIsFunc = typeof second === 'function';
46
- if (firstIsFunc && secondIsFunc) {
44
+ if(firstIsFunc && secondIsFunc) {
47
45
  return function() {
48
46
  first.apply(this, arguments);
49
47
  second.apply(this, arguments);
@@ -58,11 +56,7 @@ angular
58
56
  // this is a fix to support jquery-ui prior to v1.11.x
59
57
  // otherwise we should be using `element.sortable('instance')`
60
58
  var data = element.data('ui-sortable');
61
- if (
62
- data &&
63
- typeof data === 'object' &&
64
- data.widgetFullName === 'ui-sortable'
65
- ) {
59
+ if (data && typeof data === 'object' && data.widgetFullName === 'ui-sortable') {
66
60
  return data;
67
61
  }
68
62
  return null;
@@ -83,11 +77,10 @@ angular
83
77
 
84
78
  function patchSortableOption(key, value) {
85
79
  if (callbacks[key]) {
86
- if (key === 'stop') {
80
+ if( key === 'stop' ){
87
81
  // call apply after stop
88
- value = combineCallbacks(value, function() {
89
- scope.$apply();
90
- });
82
+ value = combineCallbacks(
83
+ value, function() { scope.$apply(); });
91
84
 
92
85
  value = combineCallbacks(value, afterStop);
93
86
  }
@@ -105,11 +98,8 @@ angular
105
98
  return value;
106
99
  }
107
100
 
108
- function patchUISortableOptions(
109
- newOpts,
110
- oldOpts,
111
- sortableWidgetInstance
112
- ) {
101
+ function patchUISortableOptions(newOpts, oldOpts, sortableWidgetInstance) {
102
+
113
103
  function addDummyOptionKey(value, key) {
114
104
  if (!(key in opts)) {
115
105
  // add the key in the opts object so that
@@ -158,27 +148,17 @@ angular
158
148
  // handle the custom option of the directive first
159
149
  angular.forEach(newOpts, function(value, key) {
160
150
  if (key in directiveOpts) {
161
- if (
162
- key === 'ui-floating' &&
163
- (value === false || value === true) &&
164
- sortableWidgetInstance
165
- ) {
151
+ if (key === 'ui-floating' && (value === false || value === true) && sortableWidgetInstance) {
166
152
  sortableWidgetInstance.floating = value;
167
153
  }
168
154
 
169
- if (
170
- key === 'ui-preserve-size' &&
171
- (value === false || value === true)
172
- ) {
155
+ if (key === 'ui-preserve-size' && (value === false || value === true)) {
173
156
  var userProvidedHelper = opts.helper;
174
157
  newOpts.helper = function(e, item) {
175
158
  if (opts['ui-preserve-size'] === true) {
176
159
  setItemChildrenWidth(item);
177
160
  }
178
- return (userProvidedHelper || dummyHelper).apply(
179
- this,
180
- arguments
181
- );
161
+ return (userProvidedHelper || dummyHelper).apply(this, arguments);
182
162
  };
183
163
  }
184
164
 
@@ -205,19 +185,15 @@ angular
205
185
  return optsDiff;
206
186
  }
207
187
 
208
- function getPlaceholderElement(element) {
209
- var placeholder = element.sortable('option', 'placeholder');
188
+ function getPlaceholderElement (element) {
189
+ var placeholder = element.sortable('option','placeholder');
210
190
 
211
191
  // placeholder.element will be a function if the placeholder, has
212
192
  // been created (placeholder will be an object). If it hasn't
213
193
  // been created, either placeholder will be false if no
214
194
  // placeholder class was given or placeholder.element will be
215
195
  // undefined if a class was given (placeholder will be a string)
216
- if (
217
- placeholder &&
218
- placeholder.element &&
219
- typeof placeholder.element === 'function'
220
- ) {
196
+ if (placeholder && placeholder.element && typeof placeholder.element === 'function') {
221
197
  var result = placeholder.element();
222
198
  // workaround for jquery ui 1.9.x,
223
199
  // not returning jquery collection
@@ -227,36 +203,24 @@ angular
227
203
  return null;
228
204
  }
229
205
 
230
- function getPlaceholderExcludesludes(element, placeholder) {
206
+ function getPlaceholderExcludesludes (element, placeholder) {
231
207
  // exact match with the placeholder's class attribute to handle
232
208
  // the case that multiple connected sortables exist and
233
209
  // the placeholder option equals the class of sortable items
234
210
  var notCssSelector = opts['ui-model-items'].replace(/[^,]*>/g, '');
235
- var excludes = element.find(
236
- '[class="' +
237
- placeholder.attr('class') +
238
- '"]:not(' +
239
- notCssSelector +
240
- ')'
241
- );
211
+ var excludes = element.find('[class="' + placeholder.attr('class') + '"]:not(' + notCssSelector + ')');
242
212
  return excludes;
243
213
  }
244
214
 
245
- function hasSortingHelper(element, ui) {
246
- var helperOption = element.sortable('option', 'helper');
247
- return (
248
- helperOption === 'clone' ||
249
- (typeof helperOption === 'function' &&
250
- ui.item.sortable.isCustomHelperUsed())
251
- );
215
+ function hasSortingHelper (element, ui) {
216
+ var helperOption = element.sortable('option','helper');
217
+ return helperOption === 'clone' || (typeof helperOption === 'function' && ui.item.sortable.isCustomHelperUsed());
252
218
  }
253
219
 
254
- function getSortingHelper(element, ui /*, savedNodes*/) {
220
+ function getSortingHelper (element, ui/*, savedNodes*/) {
255
221
  var result = null;
256
- if (
257
- hasSortingHelper(element, ui) &&
258
- element.sortable('option', 'appendTo') === 'parent'
259
- ) {
222
+ if (hasSortingHelper(element, ui) &&
223
+ element.sortable( 'option', 'appendTo' ) === 'parent') {
260
224
  // The .ui-sortable-helper element (that's the default class name)
261
225
  result = helper;
262
226
  }
@@ -265,10 +229,7 @@ angular
265
229
 
266
230
  // thanks jquery-ui
267
231
  function isFloating(item) {
268
- return (
269
- /left|right/.test(item.css('float')) ||
270
- /inline|table-cell/.test(item.css('display'))
271
- );
232
+ return (/left|right/).test(item.css('float')) || (/inline|table-cell/).test(item.css('display'));
272
233
  }
273
234
 
274
235
  function getElementContext(elementScopes, element) {
@@ -288,8 +249,7 @@ angular
288
249
  // we can't just do ui.item.index() because there it might have siblings
289
250
  // which are not items
290
251
  function getItemIndex(item) {
291
- return item
292
- .parent()
252
+ return item.parent()
293
253
  .find(opts['ui-model-items'])
294
254
  .index(item);
295
255
  }
@@ -323,36 +283,25 @@ angular
323
283
  helper: null
324
284
  };
325
285
 
326
- angular.extend(
327
- opts,
328
- directiveOpts,
329
- uiSortableConfig,
330
- scope.uiSortable
331
- );
286
+ angular.extend(opts, directiveOpts, uiSortableConfig, scope.uiSortable);
332
287
 
333
288
  if (!angular.element.fn || !angular.element.fn.jquery) {
334
- $log.error(
335
- 'ui.sortable: jQuery should be included before AngularJS!'
336
- );
289
+ $log.error('ui.sortable: jQuery should be included before AngularJS!');
337
290
  return;
338
291
  }
339
292
 
340
- function wireUp() {
293
+ function wireUp () {
341
294
  // When we add or remove elements, we need the sortable to 'refresh'
342
295
  // so it can find the new/removed elements.
343
296
  scope.$watchCollection('ngModel', function() {
344
297
  // Timeout to let ng-repeat modify the DOM
345
- $timeout(
346
- function() {
347
- // ensure that the jquery-ui-sortable widget instance
348
- // is still bound to the directive's element
349
- if (!!getSortableWidgetInstance(element)) {
350
- element.sortable('refresh');
351
- }
352
- },
353
- 0,
354
- false
355
- );
298
+ $timeout(function() {
299
+ // ensure that the jquery-ui-sortable widget instance
300
+ // is still bound to the directive's element
301
+ if (!!getSortableWidgetInstance(element)) {
302
+ element.sortable('refresh');
303
+ }
304
+ }, 0, false);
356
305
  });
357
306
 
358
307
  callbacks.start = function(e, ui) {
@@ -360,9 +309,7 @@ angular
360
309
  // since the drag has started, the element will be
361
310
  // absolutely positioned, so we check its siblings
362
311
  var siblings = ui.item.siblings();
363
- var sortableWidgetInstance = getSortableWidgetInstance(
364
- angular.element(e.target)
365
- );
312
+ var sortableWidgetInstance = getSortableWidgetInstance(angular.element(e.target));
366
313
  sortableWidgetInstance.floating = isFloating(siblings);
367
314
  }
368
315
 
@@ -374,24 +321,24 @@ angular
374
321
  source: element,
375
322
  sourceList: ui.item.parent(),
376
323
  sourceModel: ngModel.$modelValue,
377
- cancel: function() {
324
+ cancel: function () {
378
325
  ui.item.sortable._isCanceled = true;
379
326
  },
380
- isCanceled: function() {
327
+ isCanceled: function () {
381
328
  return ui.item.sortable._isCanceled;
382
329
  },
383
- isCustomHelperUsed: function() {
330
+ isCustomHelperUsed: function () {
384
331
  return !!ui.item.sortable._isCustomHelperUsed;
385
332
  },
386
333
  _isCanceled: false,
387
334
  _isCustomHelperUsed: ui.item.sortable._isCustomHelperUsed,
388
- _destroy: function() {
335
+ _destroy: function () {
389
336
  angular.forEach(ui.item.sortable, function(value, key) {
390
337
  ui.item.sortable[key] = undefined;
391
338
  });
392
339
  },
393
340
  _connectedSortables: [],
394
- _getElementContext: function(element) {
341
+ _getElementContext: function (element) {
395
342
  return getElementContext(this._connectedSortables, element);
396
343
  }
397
344
  };
@@ -399,9 +346,9 @@ angular
399
346
 
400
347
  callbacks.activate = function(e, ui) {
401
348
  var isSourceContext = ui.item.sortable.source === element;
402
- var savedNodesOrigin = isSourceContext
403
- ? ui.item.sortable.sourceList
404
- : element;
349
+ var savedNodesOrigin = isSourceContext ?
350
+ ui.item.sortable.sourceList :
351
+ element;
405
352
  var elementContext = {
406
353
  element: element,
407
354
  scope: scope,
@@ -422,10 +369,7 @@ angular
422
369
  // don't inlcude it in saved nodes.
423
370
  var placeholder = getPlaceholderElement(element);
424
371
  if (placeholder && placeholder.length) {
425
- var excludes = getPlaceholderExcludesludes(
426
- element,
427
- placeholder
428
- );
372
+ var excludes = getPlaceholderExcludesludes(element, placeholder);
429
373
  savedNodes = savedNodes.not(excludes);
430
374
  }
431
375
  };
@@ -436,19 +380,12 @@ angular
436
380
  // the value will be overwritten with the old value
437
381
  if (!ui.item.sortable.received) {
438
382
  ui.item.sortable.dropindex = getItemIndex(ui.item);
439
- var droptarget = ui.item
440
- .parent()
441
- .closest(
442
- '[ui-sortable], [data-ui-sortable], [x-ui-sortable]'
443
- );
383
+ var droptarget = ui.item.parent().closest('[ui-sortable], [data-ui-sortable], [x-ui-sortable]');
444
384
  ui.item.sortable.droptarget = droptarget;
445
385
  ui.item.sortable.droptargetList = ui.item.parent();
446
386
 
447
- var droptargetContext = ui.item.sortable._getElementContext(
448
- droptarget
449
- );
450
- ui.item.sortable.droptargetModel =
451
- droptargetContext.scope.ngModel;
387
+ var droptargetContext = ui.item.sortable._getElementContext(droptarget);
388
+ ui.item.sortable.droptargetModel = droptargetContext.scope.ngModel;
452
389
 
453
390
  // Cancel the sort (let ng-repeat do the sort for us)
454
391
  // Don't cancel if this is the received list because it has
@@ -462,9 +399,7 @@ angular
462
399
  // the start and stop of repeat sections and sortable doesn't
463
400
  // respect their order (even if we cancel, the order of the
464
401
  // comments are still messed up).
465
- var sortingHelper =
466
- !ui.item.sortable.received &&
467
- getSortingHelper(element, ui, savedNodes);
402
+ var sortingHelper = !ui.item.sortable.received && getSortingHelper(element, ui, savedNodes);
468
403
  if (sortingHelper && sortingHelper.length) {
469
404
  // Restore all the savedNodes except from the sorting helper element.
470
405
  // That way it will be garbage collected.
@@ -486,12 +421,9 @@ angular
486
421
  // stop event where we will know if it was a sort or item was
487
422
  // moved here from another list
488
423
  if (ui.item.sortable.received && !ui.item.sortable.isCanceled()) {
489
- scope.$apply(function() {
490
- ngModel.$modelValue.splice(
491
- ui.item.sortable.dropindex,
492
- 0,
493
- ui.item.sortable.moved
494
- );
424
+ scope.$apply(function () {
425
+ ngModel.$modelValue.splice(ui.item.sortable.dropindex, 0,
426
+ ui.item.sortable.moved);
495
427
  });
496
428
  scope.$emit('ui-sortable:moved', ui);
497
429
  }
@@ -501,26 +433,19 @@ angular
501
433
  // If the received flag hasn't be set on the item, this is a
502
434
  // normal sort, if dropindex is set, the item was moved, so move
503
435
  // the items in the list.
504
- var wasMoved =
505
- 'dropindex' in ui.item.sortable &&
506
- !ui.item.sortable.isCanceled();
436
+ var wasMoved = ('dropindex' in ui.item.sortable) &&
437
+ !ui.item.sortable.isCanceled();
507
438
 
508
439
  if (wasMoved && !ui.item.sortable.received) {
509
- scope.$apply(function() {
440
+
441
+ scope.$apply(function () {
510
442
  ngModel.$modelValue.splice(
511
- ui.item.sortable.dropindex,
512
- 0,
513
- ngModel.$modelValue.splice(ui.item.sortable.index, 1)[0]
514
- );
443
+ ui.item.sortable.dropindex, 0,
444
+ ngModel.$modelValue.splice(ui.item.sortable.index, 1)[0]);
515
445
  });
516
446
  scope.$emit('ui-sortable:moved', ui);
517
- } else if (
518
- !wasMoved &&
519
- !angular.equals(
520
- element.contents().toArray(),
521
- savedNodes.toArray()
522
- )
523
- ) {
447
+ } else if (!wasMoved &&
448
+ !angular.equals(element.contents().toArray(), savedNodes.toArray())) {
524
449
  // if the item was not moved
525
450
  // and the DOM element order has changed,
526
451
  // then restore the elements
@@ -532,9 +457,7 @@ angular
532
457
  // That way it will be garbage collected.
533
458
  savedNodes = savedNodes.not(sortingHelper);
534
459
  }
535
- var elementContext = ui.item.sortable._getElementContext(
536
- element
537
- );
460
+ var elementContext = ui.item.sortable._getElementContext(element);
538
461
  savedNodes.appendTo(elementContext.savedNodesOrigin);
539
462
  }
540
463
 
@@ -562,37 +485,31 @@ angular
562
485
  // Remove the item from this list's model and copy data into item,
563
486
  // so the next list can retrive it
564
487
  if (!ui.item.sortable.isCanceled()) {
565
- scope.$apply(function() {
488
+ scope.$apply(function () {
566
489
  ui.item.sortable.moved = ngModel.$modelValue.splice(
567
- ui.item.sortable.index,
568
- 1
569
- )[0];
490
+ ui.item.sortable.index, 1)[0];
570
491
  });
571
492
  }
572
493
  };
573
494
 
574
495
  // setup attribute handlers
575
496
  angular.forEach(callbacks, function(value, key) {
576
- callbacks[key] = combineCallbacks(callbacks[key], function() {
577
- var attrHandler = scope[key];
578
- var attrHandlerFn;
579
- if (
580
- typeof attrHandler === 'function' &&
581
- (
582
- 'uiSortable' +
583
- key.substring(0, 1).toUpperCase() +
584
- key.substring(1)
585
- ).length &&
586
- typeof (attrHandlerFn = attrHandler()) === 'function'
587
- ) {
588
- attrHandlerFn.apply(this, arguments);
589
- }
590
- });
497
+ callbacks[key] = combineCallbacks(callbacks[key],
498
+ function () {
499
+ var attrHandler = scope[key];
500
+ var attrHandlerFn;
501
+ if (typeof attrHandler === 'function' &&
502
+ ('uiSortable' + key.substring(0,1).toUpperCase() + key.substring(1)).length &&
503
+ typeof (attrHandlerFn = attrHandler()) === 'function') {
504
+ attrHandlerFn.apply(this, arguments);
505
+ }
506
+ });
591
507
  });
592
508
 
593
- wrappers.helper = function(inner) {
509
+
510
+ wrappers.helper = function (inner) {
594
511
  if (inner && typeof inner === 'function') {
595
- return function(e, item) {
512
+ return function (e, item) {
596
513
  var oldItemSortable = item.sortable;
597
514
  var index = getItemIndex(item);
598
515
 
@@ -602,7 +519,7 @@ angular
602
519
  source: element,
603
520
  sourceList: item.parent(),
604
521
  sourceModel: ngModel.$modelValue,
605
- _restore: function() {
522
+ _restore: function () {
606
523
  angular.forEach(item.sortable, function(value, key) {
607
524
  item.sortable[key] = undefined;
608
525
  });
@@ -620,31 +537,23 @@ angular
620
537
  return inner;
621
538
  };
622
539
 
623
- scope.$watchCollection(
624
- 'uiSortable',
625
- function(newOpts, oldOpts) {
626
- // ensure that the jquery-ui-sortable widget instance
627
- // is still bound to the directive's element
628
- var sortableWidgetInstance = getSortableWidgetInstance(element);
629
- if (!!sortableWidgetInstance) {
630
- var optsDiff = patchUISortableOptions(
631
- newOpts,
632
- oldOpts,
633
- sortableWidgetInstance
634
- );
635
-
636
- if (optsDiff) {
637
- element.sortable('option', optsDiff);
638
- }
540
+ scope.$watchCollection('uiSortable', function(newOpts, oldOpts) {
541
+ // ensure that the jquery-ui-sortable widget instance
542
+ // is still bound to the directive's element
543
+ var sortableWidgetInstance = getSortableWidgetInstance(element);
544
+ if (!!sortableWidgetInstance) {
545
+ var optsDiff = patchUISortableOptions(newOpts, oldOpts, sortableWidgetInstance);
546
+
547
+ if (optsDiff) {
548
+ element.sortable('option', optsDiff);
639
549
  }
640
- },
641
- true
642
- );
550
+ }
551
+ }, true);
643
552
 
644
553
  patchUISortableOptions(opts);
645
554
  }
646
555
 
647
- function init() {
556
+ function init () {
648
557
  if (ngModel) {
649
558
  wireUp();
650
559
  } else {
@@ -655,7 +564,7 @@ angular
655
564
  element.sortable(opts);
656
565
  }
657
566
 
658
- function initIfEnabled() {
567
+ function initIfEnabled () {
659
568
  if (scope.uiSortable && scope.uiSortable.disabled) {
660
569
  return false;
661
570
  }
@@ -672,10 +581,7 @@ angular
672
581
  initIfEnabled.cancelWatcher = angular.noop;
673
582
 
674
583
  if (!initIfEnabled()) {
675
- initIfEnabled.cancelWatcher = scope.$watch(
676
- 'uiSortable.disabled',
677
- initIfEnabled
678
- );
584
+ initIfEnabled.cancelWatcher = scope.$watch('uiSortable.disabled', initIfEnabled);
679
585
  }
680
586
  }
681
587
  };