promethee 1.4.13 → 1.4.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/assets/javascripts/promethee.js +0 -1
- data/app/assets/stylesheets/promethee-edit.sass +0 -1
- data/app/views/promethee/components/aside/_show.html.erb +4 -1
- data/lib/promethee/rails/version.rb +1 -1
- metadata +16 -389
- data/node_modules/summernote/CODE_OF_CONDUCT.md +0 -46
- data/node_modules/summernote/CONTRIBUTING.md +0 -67
- data/node_modules/summernote/ISSUE_TEMPLATE.md +0 -14
- data/node_modules/summernote/LICENSE +0 -21
- data/node_modules/summernote/PULL_REQUEST_TEMPLATE.md +0 -28
- data/node_modules/summernote/README.md +0 -90
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/base.css +0 -213
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/index.html +0 -262
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/prettify.css +0 -1
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/prettify.js +0 -1
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/sort-arrow-sprite.png +0 -0
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/sorter.js +0 -158
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/Context.js.html +0 -758
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/async.js.html +0 -206
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/dom.js.html +0 -3329
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/env.js.html +0 -386
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/func.js.html +0 -551
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/index.html +0 -171
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/key.js.html +0 -341
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/lists.js.html +0 -695
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/core/range.js.html +0 -2441
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/Bullet.js.html +0 -668
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/History.js.html +0 -380
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/Style.js.html +0 -539
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/Table.js.html +0 -1787
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/Typing.js.html +0 -335
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/editing/index.html +0 -145
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/index.html +0 -119
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/AirPopover.js.html +0 -284
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/AutoLink.js.html +0 -248
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/AutoSync.js.html +0 -122
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Buttons.js.html +0 -2504
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Clipboard.js.html +0 -149
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Codeview.js.html +0 -434
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Dropzone.js.html +0 -410
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Editor.js.html +0 -2648
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Fullscreen.js.html +0 -218
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Handle.js.html +0 -494
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/HelpDialog.js.html +0 -302
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/HintPopover.js.html +0 -743
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/ImageDialog.js.html +0 -458
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/ImagePopover.js.html +0 -239
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/LinkDialog.js.html +0 -587
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/LinkPopover.js.html +0 -272
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Placeholder.js.html +0 -182
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Statusbar.js.html +0 -191
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/TablePopover.js.html +0 -278
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/Toolbar.js.html +0 -473
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/VideoDialog.js.html +0 -680
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/module/index.html +0 -353
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/renderer.js.html +0 -263
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/base/summernote-en-US.js.html +0 -542
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs3/index.html +0 -106
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs3/settings.js.html +0 -956
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs3/ui.js.html +0 -776
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs4/index.html +0 -106
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs4/settings.js.html +0 -968
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/bs4/ui.js.html +0 -791
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/index.html +0 -93
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/index.html +0 -106
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/settings.js.html +0 -953
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui.js.html +0 -1919
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/DropdownUI.js.html +0 -260
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/ModalUI.js.html +0 -167
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/PopoverUI.js.html +0 -347
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/TooltipUI.js.html +0 -344
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/lite/ui/index.html +0 -132
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/src/js/summernote.js.html +0 -203
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/Context.spec.js.html +0 -323
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/dom.spec.js.html +0 -1046
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/func.spec.js.html +0 -482
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/index.html +0 -145
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/key.spec.js.html +0 -140
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/lists.spec.js.html +0 -419
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/core/range.spec.js.html +0 -1286
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/editing/Table.spec.js.html +0 -1724
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/editing/index.html +0 -106
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/editing/style.spec.js.html +0 -341
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/index.html +0 -93
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/module/Codeview.spec.js.html +0 -161
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/module/Editor.spec.js.html +0 -1235
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/module/Fullscreen.spec.js.html +0 -161
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/base/module/index.html +0 -119
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/bs/module/Buttons.spec.js.html +0 -770
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/bs/module/VideoDialog.spec.js.html +0 -209
- data/node_modules/summernote/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/html/test/unit/bs/module/index.html +0 -106
- data/node_modules/summernote/dist/font/summernote.eot +0 -0
- data/node_modules/summernote/dist/font/summernote.ttf +0 -0
- data/node_modules/summernote/dist/font/summernote.woff +0 -0
- data/node_modules/summernote/dist/lang/summernote-ar-AR.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-ar-AR.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-bg-BG.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-bg-BG.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-ca-ES.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-ca-ES.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-cs-CZ.js +0 -149
- data/node_modules/summernote/dist/lang/summernote-cs-CZ.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-da-DK.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-da-DK.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-de-DE.js +0 -154
- data/node_modules/summernote/dist/lang/summernote-de-DE.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-el-GR.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-el-GR.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-es-ES.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-es-ES.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-es-EU.js +0 -154
- data/node_modules/summernote/dist/lang/summernote-es-EU.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-fa-IR.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-fa-IR.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-fi-FI.js +0 -153
- data/node_modules/summernote/dist/lang/summernote-fi-FI.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-fr-FR.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-fr-FR.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-gl-ES.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-gl-ES.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-he-IL.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-he-IL.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-hr-HR.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-hr-HR.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-hu-HU.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-hu-HU.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-id-ID.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-id-ID.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-it-IT.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-it-IT.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-ja-JP.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-ja-JP.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-ko-KR.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-ko-KR.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-lt-LT.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-lt-LT.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-lt-LV.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-lt-LV.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-mn-MN.js +0 -157
- data/node_modules/summernote/dist/lang/summernote-mn-MN.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-nb-NO.js +0 -154
- data/node_modules/summernote/dist/lang/summernote-nb-NO.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-nl-NL.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-nl-NL.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-pl-PL.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-pl-PL.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-pt-BR.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-pt-BR.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-pt-PT.js +0 -154
- data/node_modules/summernote/dist/lang/summernote-pt-PT.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-ro-RO.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-ro-RO.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-ru-RU.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-ru-RU.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-sk-SK.js +0 -153
- data/node_modules/summernote/dist/lang/summernote-sk-SK.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-sl-SI.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-sl-SI.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-sr-RS-Latin.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-sr-RS-Latin.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-sr-RS.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-sr-RS.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-sv-SE.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-sv-SE.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-ta-IN.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-ta-IN.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-th-TH.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-th-TH.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-tr-TR.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-tr-TR.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-uk-UA.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-uk-UA.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-uz-UZ.js +0 -112
- data/node_modules/summernote/dist/lang/summernote-uz-UZ.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-vi-VN.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-vi-VN.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-zh-CN.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-zh-CN.min.js +0 -3
- data/node_modules/summernote/dist/lang/summernote-zh-TW.js +0 -155
- data/node_modules/summernote/dist/lang/summernote-zh-TW.min.js +0 -3
- data/node_modules/summernote/dist/summernote-0.8.10-dist.zip +0 -0
- data/node_modules/summernote/dist/summernote-bs4.css +0 -1
- data/node_modules/summernote/dist/summernote-bs4.js +0 -7323
- data/node_modules/summernote/dist/summernote-bs4.js.map +0 -1
- data/node_modules/summernote/dist/summernote-bs4.min.js +0 -3
- data/node_modules/summernote/dist/summernote-lite.css +0 -1
- data/node_modules/summernote/dist/summernote-lite.js +0 -7837
- data/node_modules/summernote/dist/summernote-lite.js.map +0 -1
- data/node_modules/summernote/dist/summernote.css +0 -1
- data/node_modules/summernote/dist/summernote.js +0 -7315
- data/node_modules/summernote/dist/summernote.js.map +0 -1
- data/node_modules/summernote/dist/summernote.min.js +0 -3
- data/node_modules/summernote/examples/airmode.html +0 -35
- data/node_modules/summernote/examples/bs3.html +0 -60
- data/node_modules/summernote/examples/bs4.html +0 -57
- data/node_modules/summernote/examples/codemirror.html +0 -45
- data/node_modules/summernote/examples/external-api.html +0 -76
- data/node_modules/summernote/examples/hint-emoji.html +0 -61
- data/node_modules/summernote/examples/hint-symbols_mathematical-symbols_Greek-letters.html +0 -54
- data/node_modules/summernote/examples/hint-userdefine.html +0 -48
- data/node_modules/summernote/examples/ie8.html +0 -32
- data/node_modules/summernote/examples/jquery-custom-event.html +0 -119
- data/node_modules/summernote/examples/jquery19lt.html +0 -25
- data/node_modules/summernote/examples/lang.html +0 -33
- data/node_modules/summernote/examples/link-blank.html +0 -33
- data/node_modules/summernote/examples/lite.html +0 -24
- data/node_modules/summernote/examples/nativestyle.html +0 -32
- data/node_modules/summernote/examples/ondialog-multitab.html +0 -77
- data/node_modules/summernote/examples/ondialog.html +0 -58
- data/node_modules/summernote/examples/plugin-hello.html +0 -37
- data/node_modules/summernote/examples/rtl.html +0 -32
- data/node_modules/summernote/examples/symbols_mathematical-symbols_Greek-letters.json +0 -1118
- data/node_modules/summernote/examples/textarea.html +0 -46
- data/node_modules/summernote/examples/toolbar-container.html +0 -35
- data/node_modules/summernote/examples/with-google-font.html +0 -50
- data/node_modules/summernote/index.html +0 -33
- data/node_modules/summernote/karma.conf.js +0 -42
- data/node_modules/summernote/lang/summernote-ar-AR.js +0 -155
- data/node_modules/summernote/lang/summernote-bg-BG.js +0 -155
- data/node_modules/summernote/lang/summernote-ca-ES.js +0 -155
- data/node_modules/summernote/lang/summernote-cs-CZ.js +0 -149
- data/node_modules/summernote/lang/summernote-da-DK.js +0 -155
- data/node_modules/summernote/lang/summernote-de-DE.js +0 -154
- data/node_modules/summernote/lang/summernote-el-GR.js +0 -155
- data/node_modules/summernote/lang/summernote-es-ES.js +0 -155
- data/node_modules/summernote/lang/summernote-es-EU.js +0 -154
- data/node_modules/summernote/lang/summernote-fa-IR.js +0 -155
- data/node_modules/summernote/lang/summernote-fi-FI.js +0 -153
- data/node_modules/summernote/lang/summernote-fr-FR.js +0 -155
- data/node_modules/summernote/lang/summernote-gl-ES.js +0 -155
- data/node_modules/summernote/lang/summernote-he-IL.js +0 -155
- data/node_modules/summernote/lang/summernote-hr-HR.js +0 -155
- data/node_modules/summernote/lang/summernote-hu-HU.js +0 -155
- data/node_modules/summernote/lang/summernote-id-ID.js +0 -155
- data/node_modules/summernote/lang/summernote-it-IT.js +0 -155
- data/node_modules/summernote/lang/summernote-ja-JP.js +0 -155
- data/node_modules/summernote/lang/summernote-ko-KR.js +0 -155
- data/node_modules/summernote/lang/summernote-lt-LT.js +0 -155
- data/node_modules/summernote/lang/summernote-lt-LV.js +0 -155
- data/node_modules/summernote/lang/summernote-mn-MN.js +0 -157
- data/node_modules/summernote/lang/summernote-nb-NO.js +0 -154
- data/node_modules/summernote/lang/summernote-nl-NL.js +0 -155
- data/node_modules/summernote/lang/summernote-pl-PL.js +0 -155
- data/node_modules/summernote/lang/summernote-pt-BR.js +0 -155
- data/node_modules/summernote/lang/summernote-pt-PT.js +0 -154
- data/node_modules/summernote/lang/summernote-ro-RO.js +0 -155
- data/node_modules/summernote/lang/summernote-ru-RU.js +0 -155
- data/node_modules/summernote/lang/summernote-sk-SK.js +0 -153
- data/node_modules/summernote/lang/summernote-sl-SI.js +0 -155
- data/node_modules/summernote/lang/summernote-sr-RS-Latin.js +0 -155
- data/node_modules/summernote/lang/summernote-sr-RS.js +0 -155
- data/node_modules/summernote/lang/summernote-sv-SE.js +0 -155
- data/node_modules/summernote/lang/summernote-ta-IN.js +0 -155
- data/node_modules/summernote/lang/summernote-th-TH.js +0 -155
- data/node_modules/summernote/lang/summernote-tr-TR.js +0 -155
- data/node_modules/summernote/lang/summernote-uk-UA.js +0 -155
- data/node_modules/summernote/lang/summernote-uz-UZ.js +0 -112
- data/node_modules/summernote/lang/summernote-vi-VN.js +0 -155
- data/node_modules/summernote/lang/summernote-zh-CN.js +0 -155
- data/node_modules/summernote/lang/summernote-zh-TW.js +0 -155
- data/node_modules/summernote/package.json +0 -87
- data/node_modules/summernote/plugin/databasic/summernote-ext-databasic.css +0 -16
- data/node_modules/summernote/plugin/databasic/summernote-ext-databasic.js +0 -292
- data/node_modules/summernote/plugin/hello/summernote-ext-hello.js +0 -81
- data/node_modules/summernote/plugin/specialchars/summernote-ext-specialchars.js +0 -312
- data/node_modules/summernote/src/icons/align-center.svg +0 -11
- data/node_modules/summernote/src/icons/align-indent.svg +0 -11
- data/node_modules/summernote/src/icons/align-justify.svg +0 -11
- data/node_modules/summernote/src/icons/align-left.svg +0 -12
- data/node_modules/summernote/src/icons/align-outdent.svg +0 -11
- data/node_modules/summernote/src/icons/align-right.svg +0 -11
- data/node_modules/summernote/src/icons/align.svg +0 -8
- data/node_modules/summernote/src/icons/arrow-circle-down.svg +0 -1
- data/node_modules/summernote/src/icons/arrow-circle-left.svg +0 -1
- data/node_modules/summernote/src/icons/arrow-circle-right.svg +0 -1
- data/node_modules/summernote/src/icons/arrow-circle-up.svg +0 -1
- data/node_modules/summernote/src/icons/arrows-alt.svg +0 -11
- data/node_modules/summernote/src/icons/arrows-h.svg +0 -1
- data/node_modules/summernote/src/icons/arrows-v.svg +0 -1
- data/node_modules/summernote/src/icons/bold.svg +0 -11
- data/node_modules/summernote/src/icons/caret.svg +0 -9
- data/node_modules/summernote/src/icons/chain-broken.svg +0 -47
- data/node_modules/summernote/src/icons/circle.svg +0 -10
- data/node_modules/summernote/src/icons/close.svg +0 -16
- data/node_modules/summernote/src/icons/code.svg +0 -11
- data/node_modules/summernote/src/icons/col-after.svg +0 -96
- data/node_modules/summernote/src/icons/col-before.svg +0 -19
- data/node_modules/summernote/src/icons/col-remove.svg +0 -19
- data/node_modules/summernote/src/icons/dist/font/summernote.eot +0 -0
- data/node_modules/summernote/src/icons/dist/font/summernote.ttf +0 -0
- data/node_modules/summernote/src/icons/dist/font/summernote.woff +0 -0
- data/node_modules/summernote/src/icons/dist/summernote.html +0 -536
- data/node_modules/summernote/src/icons/dist/summernote.less +0 -511
- data/node_modules/summernote/src/icons/eraser.svg +0 -13
- data/node_modules/summernote/src/icons/font.svg +0 -11
- data/node_modules/summernote/src/icons/frame.svg +0 -10
- data/node_modules/summernote/src/icons/italic.svg +0 -11
- data/node_modules/summernote/src/icons/link.svg +0 -21
- data/node_modules/summernote/src/icons/magic.svg +0 -10
- data/node_modules/summernote/src/icons/menu-check.svg +0 -8
- data/node_modules/summernote/src/icons/minus.svg +0 -11
- data/node_modules/summernote/src/icons/orderedlist.svg +0 -12
- data/node_modules/summernote/src/icons/pencil.svg +0 -8
- data/node_modules/summernote/src/icons/picture.svg +0 -11
- data/node_modules/summernote/src/icons/question.svg +0 -10
- data/node_modules/summernote/src/icons/redo.svg +0 -10
- data/node_modules/summernote/src/icons/row-above.svg +0 -19
- data/node_modules/summernote/src/icons/row-below.svg +0 -19
- data/node_modules/summernote/src/icons/row-remove.svg +0 -19
- data/node_modules/summernote/src/icons/special-character.svg +0 -10
- data/node_modules/summernote/src/icons/square.svg +0 -10
- data/node_modules/summernote/src/icons/strikethrough.svg +0 -11
- data/node_modules/summernote/src/icons/subscript.svg +0 -11
- data/node_modules/summernote/src/icons/summernote.svg +0 -11
- data/node_modules/summernote/src/icons/superscript.svg +0 -11
- data/node_modules/summernote/src/icons/table.svg +0 -11
- data/node_modules/summernote/src/icons/templates/summernote.css +0 -110
- data/node_modules/summernote/src/icons/templates/summernote.json +0 -5
- data/node_modules/summernote/src/icons/text-height.svg +0 -11
- data/node_modules/summernote/src/icons/trash.svg +0 -17
- data/node_modules/summernote/src/icons/underline.svg +0 -11
- data/node_modules/summernote/src/icons/undo.svg +0 -10
- data/node_modules/summernote/src/icons/unorderedlist.svg +0 -9
- data/node_modules/summernote/src/icons/video.svg +0 -9
- data/node_modules/summernote/src/js/base/Context.js +0 -231
- data/node_modules/summernote/src/js/base/core/async.js +0 -47
- data/node_modules/summernote/src/js/base/core/dom.js +0 -1088
- data/node_modules/summernote/src/js/base/core/env.js +0 -107
- data/node_modules/summernote/src/js/base/core/func.js +0 -162
- data/node_modules/summernote/src/js/base/core/key.js +0 -92
- data/node_modules/summernote/src/js/base/core/lists.js +0 -210
- data/node_modules/summernote/src/js/base/core/range.js +0 -792
- data/node_modules/summernote/src/js/base/editing/Bullet.js +0 -201
- data/node_modules/summernote/src/js/base/editing/History.js +0 -105
- data/node_modules/summernote/src/js/base/editing/Style.js +0 -158
- data/node_modules/summernote/src/js/base/editing/Table.js +0 -574
- data/node_modules/summernote/src/js/base/editing/Typing.js +0 -90
- data/node_modules/summernote/src/js/base/module/AirPopover.js +0 -73
- data/node_modules/summernote/src/js/base/module/AutoLink.js +0 -61
- data/node_modules/summernote/src/js/base/module/AutoSync.js +0 -19
- data/node_modules/summernote/src/js/base/module/Buttons.js +0 -813
- data/node_modules/summernote/src/js/base/module/Clipboard.js +0 -28
- data/node_modules/summernote/src/js/base/module/Codeview.js +0 -123
- data/node_modules/summernote/src/js/base/module/Dropzone.js +0 -115
- data/node_modules/summernote/src/js/base/module/Editor.js +0 -861
- data/node_modules/summernote/src/js/base/module/Fullscreen.js +0 -51
- data/node_modules/summernote/src/js/base/module/Handle.js +0 -143
- data/node_modules/summernote/src/js/base/module/HelpDialog.js +0 -79
- data/node_modules/summernote/src/js/base/module/HintPopover.js +0 -226
- data/node_modules/summernote/src/js/base/module/ImageDialog.js +0 -131
- data/node_modules/summernote/src/js/base/module/ImagePopover.js +0 -58
- data/node_modules/summernote/src/js/base/module/LinkDialog.js +0 -174
- data/node_modules/summernote/src/js/base/module/LinkPopover.js +0 -69
- data/node_modules/summernote/src/js/base/module/Placeholder.js +0 -39
- data/node_modules/summernote/src/js/base/module/Statusbar.js +0 -42
- data/node_modules/summernote/src/js/base/module/TablePopover.js +0 -71
- data/node_modules/summernote/src/js/base/module/Toolbar.js +0 -136
- data/node_modules/summernote/src/js/base/module/VideoDialog.js +0 -205
- data/node_modules/summernote/src/js/base/renderer.js +0 -66
- data/node_modules/summernote/src/js/base/summernote-en-US.js +0 -159
- data/node_modules/summernote/src/js/bs3/settings.js +0 -297
- data/node_modules/summernote/src/js/bs3/ui.js +0 -237
- data/node_modules/summernote/src/js/bs4/settings.js +0 -301
- data/node_modules/summernote/src/js/bs4/ui.js +0 -242
- data/node_modules/summernote/src/js/lite/settings.js +0 -296
- data/node_modules/summernote/src/js/lite/ui.js +0 -618
- data/node_modules/summernote/src/js/lite/ui/DropdownUI.js +0 -65
- data/node_modules/summernote/src/js/lite/ui/ModalUI.js +0 -34
- data/node_modules/summernote/src/js/lite/ui/PopoverUI.js +0 -94
- data/node_modules/summernote/src/js/lite/ui/TooltipUI.js +0 -93
- data/node_modules/summernote/src/js/summernote.js +0 -46
- data/node_modules/summernote/src/less/elements.less +0 -149
- data/node_modules/summernote/src/less/elements.scss +0 -149
- data/node_modules/summernote/src/less/lite-ui/all.less +0 -15
- data/node_modules/summernote/src/less/lite-ui/btn-group.less +0 -51
- data/node_modules/summernote/src/less/lite-ui/buttons.less +0 -102
- data/node_modules/summernote/src/less/lite-ui/common.less +0 -20
- data/node_modules/summernote/src/less/lite-ui/dropdown.less +0 -39
- data/node_modules/summernote/src/less/lite-ui/form.less +0 -43
- data/node_modules/summernote/src/less/lite-ui/mixins.less +0 -1
- data/node_modules/summernote/src/less/lite-ui/mixins/buttons.less +0 -40
- data/node_modules/summernote/src/less/lite-ui/modal.less +0 -104
- data/node_modules/summernote/src/less/lite-ui/popover.less +0 -121
- data/node_modules/summernote/src/less/lite-ui/toolbar.less +0 -4
- data/node_modules/summernote/src/less/lite-ui/tooltip.less +0 -66
- data/node_modules/summernote/src/less/lite-ui/variables.less +0 -81
- data/node_modules/summernote/src/less/summernote-bs4.less +0 -577
- data/node_modules/summernote/src/less/summernote-bs4.scss +0 -560
- data/node_modules/summernote/src/less/summernote-lite.less +0 -601
- data/node_modules/summernote/src/less/summernote.less +0 -576
- data/node_modules/summernote/src/less/summernote.scss +0 -560
- data/node_modules/summernote/tsconfig.json +0 -12
@@ -1,107 +0,0 @@
|
|
1
|
-
import $ from 'jquery';
|
2
|
-
const isSupportAmd = typeof define === 'function' && define.amd; // eslint-disable-line
|
3
|
-
|
4
|
-
/**
|
5
|
-
* returns whether font is installed or not.
|
6
|
-
*
|
7
|
-
* @param {String} fontName
|
8
|
-
* @return {Boolean}
|
9
|
-
*/
|
10
|
-
function isFontInstalled(fontName) {
|
11
|
-
const testFontName = fontName === 'Comic Sans MS' ? 'Courier New' : 'Comic Sans MS';
|
12
|
-
const $tester = $('<div>').css({
|
13
|
-
position: 'absolute',
|
14
|
-
left: '-9999px',
|
15
|
-
top: '-9999px',
|
16
|
-
fontSize: '200px'
|
17
|
-
}).text('mmmmmmmmmwwwwwww').appendTo(document.body);
|
18
|
-
|
19
|
-
const originalWidth = $tester.css('fontFamily', testFontName).width();
|
20
|
-
const width = $tester.css('fontFamily', fontName + ',' + testFontName).width();
|
21
|
-
|
22
|
-
$tester.remove();
|
23
|
-
|
24
|
-
return originalWidth !== width;
|
25
|
-
}
|
26
|
-
|
27
|
-
const userAgent = navigator.userAgent;
|
28
|
-
const isMSIE = /MSIE|Trident/i.test(userAgent);
|
29
|
-
let browserVersion;
|
30
|
-
if (isMSIE) {
|
31
|
-
let matches = /MSIE (\d+[.]\d+)/.exec(userAgent);
|
32
|
-
if (matches) {
|
33
|
-
browserVersion = parseFloat(matches[1]);
|
34
|
-
}
|
35
|
-
matches = /Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/.exec(userAgent);
|
36
|
-
if (matches) {
|
37
|
-
browserVersion = parseFloat(matches[1]);
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
const isEdge = /Edge\/\d+/.test(userAgent);
|
42
|
-
|
43
|
-
let hasCodeMirror = !!window.CodeMirror;
|
44
|
-
if (!hasCodeMirror && isSupportAmd) {
|
45
|
-
// Webpack
|
46
|
-
if (typeof __webpack_require__ === 'function') { // eslint-disable-line
|
47
|
-
try {
|
48
|
-
// If CodeMirror can't be resolved, `require.resolve` will throw an
|
49
|
-
// exception and `hasCodeMirror` won't be set to `true`.
|
50
|
-
require.resolve('codemirror');
|
51
|
-
hasCodeMirror = true;
|
52
|
-
} catch (e) {
|
53
|
-
// do nothing
|
54
|
-
}
|
55
|
-
} else if (typeof require !== 'undefined') {
|
56
|
-
// Browserify
|
57
|
-
if (typeof require.resolve !== 'undefined') {
|
58
|
-
try {
|
59
|
-
// If CodeMirror can't be resolved, `require.resolve` will throw an
|
60
|
-
// exception and `hasCodeMirror` won't be set to `true`.
|
61
|
-
require.resolve('codemirror');
|
62
|
-
hasCodeMirror = true;
|
63
|
-
} catch (e) {
|
64
|
-
// do nothing
|
65
|
-
}
|
66
|
-
// Almond/Require
|
67
|
-
} else if (typeof require.specified !== 'undefined') {
|
68
|
-
hasCodeMirror = require.specified('codemirror');
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
const isSupportTouch =
|
74
|
-
(('ontouchstart' in window) ||
|
75
|
-
(navigator.MaxTouchPoints > 0) ||
|
76
|
-
(navigator.msMaxTouchPoints > 0));
|
77
|
-
|
78
|
-
// [workaround] IE doesn't have input events for contentEditable
|
79
|
-
// - see: https://goo.gl/4bfIvA
|
80
|
-
const inputEventName = (isMSIE || isEdge) ? 'DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted' : 'input';
|
81
|
-
|
82
|
-
/**
|
83
|
-
* @class core.env
|
84
|
-
*
|
85
|
-
* Object which check platform and agent
|
86
|
-
*
|
87
|
-
* @singleton
|
88
|
-
* @alternateClassName env
|
89
|
-
*/
|
90
|
-
export default {
|
91
|
-
isMac: navigator.appVersion.indexOf('Mac') > -1,
|
92
|
-
isMSIE,
|
93
|
-
isEdge,
|
94
|
-
isFF: !isEdge && /firefox/i.test(userAgent),
|
95
|
-
isPhantom: /PhantomJS/i.test(userAgent),
|
96
|
-
isWebkit: !isEdge && /webkit/i.test(userAgent),
|
97
|
-
isChrome: !isEdge && /chrome/i.test(userAgent),
|
98
|
-
isSafari: !isEdge && /safari/i.test(userAgent),
|
99
|
-
browserVersion,
|
100
|
-
jqueryVersion: parseFloat($.fn.jquery),
|
101
|
-
isSupportAmd,
|
102
|
-
isSupportTouch,
|
103
|
-
hasCodeMirror,
|
104
|
-
isFontInstalled,
|
105
|
-
isW3CRangeSupport: !!document.createRange,
|
106
|
-
inputEventName
|
107
|
-
};
|
@@ -1,162 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @class core.func
|
3
|
-
*
|
4
|
-
* func utils (for high-order func's arg)
|
5
|
-
*
|
6
|
-
* @singleton
|
7
|
-
* @alternateClassName func
|
8
|
-
*/
|
9
|
-
function eq(itemA) {
|
10
|
-
return function(itemB) {
|
11
|
-
return itemA === itemB;
|
12
|
-
};
|
13
|
-
}
|
14
|
-
|
15
|
-
function eq2(itemA, itemB) {
|
16
|
-
return itemA === itemB;
|
17
|
-
}
|
18
|
-
|
19
|
-
function peq2(propName) {
|
20
|
-
return function(itemA, itemB) {
|
21
|
-
return itemA[propName] === itemB[propName];
|
22
|
-
};
|
23
|
-
}
|
24
|
-
|
25
|
-
function ok() {
|
26
|
-
return true;
|
27
|
-
}
|
28
|
-
|
29
|
-
function fail() {
|
30
|
-
return false;
|
31
|
-
}
|
32
|
-
|
33
|
-
function not(f) {
|
34
|
-
return () => {
|
35
|
-
return !f.apply(f, arguments);
|
36
|
-
};
|
37
|
-
}
|
38
|
-
|
39
|
-
function and(fA, fB) {
|
40
|
-
return function(item) {
|
41
|
-
return fA(item) && fB(item);
|
42
|
-
};
|
43
|
-
}
|
44
|
-
|
45
|
-
function self(a) {
|
46
|
-
return a;
|
47
|
-
}
|
48
|
-
|
49
|
-
function invoke(obj, method) {
|
50
|
-
return () => {
|
51
|
-
return obj[method].apply(obj, arguments);
|
52
|
-
};
|
53
|
-
}
|
54
|
-
|
55
|
-
let idCounter = 0;
|
56
|
-
|
57
|
-
/**
|
58
|
-
* generate a globally-unique id
|
59
|
-
*
|
60
|
-
* @param {String} [prefix]
|
61
|
-
*/
|
62
|
-
function uniqueId(prefix) {
|
63
|
-
const id = ++idCounter + '';
|
64
|
-
return prefix ? prefix + id : id;
|
65
|
-
}
|
66
|
-
|
67
|
-
/**
|
68
|
-
* returns bnd (bounds) from rect
|
69
|
-
*
|
70
|
-
* - IE Compatibility Issue: http://goo.gl/sRLOAo
|
71
|
-
* - Scroll Issue: http://goo.gl/sNjUc
|
72
|
-
*
|
73
|
-
* @param {Rect} rect
|
74
|
-
* @return {Object} bounds
|
75
|
-
* @return {Number} bounds.top
|
76
|
-
* @return {Number} bounds.left
|
77
|
-
* @return {Number} bounds.width
|
78
|
-
* @return {Number} bounds.height
|
79
|
-
*/
|
80
|
-
function rect2bnd(rect) {
|
81
|
-
const $document = $(document);
|
82
|
-
return {
|
83
|
-
top: rect.top + $document.scrollTop(),
|
84
|
-
left: rect.left + $document.scrollLeft(),
|
85
|
-
width: rect.right - rect.left,
|
86
|
-
height: rect.bottom - rect.top
|
87
|
-
};
|
88
|
-
}
|
89
|
-
|
90
|
-
/**
|
91
|
-
* returns a copy of the object where the keys have become the values and the values the keys.
|
92
|
-
* @param {Object} obj
|
93
|
-
* @return {Object}
|
94
|
-
*/
|
95
|
-
function invertObject(obj) {
|
96
|
-
const inverted = {};
|
97
|
-
for (const key in obj) {
|
98
|
-
if (obj.hasOwnProperty(key)) {
|
99
|
-
inverted[obj[key]] = key;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
return inverted;
|
103
|
-
}
|
104
|
-
|
105
|
-
/**
|
106
|
-
* @param {String} namespace
|
107
|
-
* @param {String} [prefix]
|
108
|
-
* @return {String}
|
109
|
-
*/
|
110
|
-
function namespaceToCamel(namespace, prefix) {
|
111
|
-
prefix = prefix || '';
|
112
|
-
return prefix + namespace.split('.').map(function(name) {
|
113
|
-
return name.substring(0, 1).toUpperCase() + name.substring(1);
|
114
|
-
}).join('');
|
115
|
-
}
|
116
|
-
|
117
|
-
/**
|
118
|
-
* Returns a function, that, as long as it continues to be invoked, will not
|
119
|
-
* be triggered. The function will be called after it stops being called for
|
120
|
-
* N milliseconds. If `immediate` is passed, trigger the function on the
|
121
|
-
* leading edge, instead of the trailing.
|
122
|
-
* @param {Function} func
|
123
|
-
* @param {Number} wait
|
124
|
-
* @param {Boolean} immediate
|
125
|
-
* @return {Function}
|
126
|
-
*/
|
127
|
-
function debounce(func, wait, immediate) {
|
128
|
-
let timeout;
|
129
|
-
return () => {
|
130
|
-
const context = this;
|
131
|
-
const args = arguments;
|
132
|
-
const later = () => {
|
133
|
-
timeout = null;
|
134
|
-
if (!immediate) {
|
135
|
-
func.apply(context, args);
|
136
|
-
}
|
137
|
-
};
|
138
|
-
const callNow = immediate && !timeout;
|
139
|
-
clearTimeout(timeout);
|
140
|
-
timeout = setTimeout(later, wait);
|
141
|
-
if (callNow) {
|
142
|
-
func.apply(context, args);
|
143
|
-
}
|
144
|
-
};
|
145
|
-
}
|
146
|
-
|
147
|
-
export default {
|
148
|
-
eq,
|
149
|
-
eq2,
|
150
|
-
peq2,
|
151
|
-
ok,
|
152
|
-
fail,
|
153
|
-
self,
|
154
|
-
not,
|
155
|
-
and,
|
156
|
-
invoke,
|
157
|
-
uniqueId,
|
158
|
-
rect2bnd,
|
159
|
-
invertObject,
|
160
|
-
namespaceToCamel,
|
161
|
-
debounce
|
162
|
-
};
|
@@ -1,92 +0,0 @@
|
|
1
|
-
import lists from './lists';
|
2
|
-
import func from './func';
|
3
|
-
|
4
|
-
const KEY_MAP = {
|
5
|
-
'BACKSPACE': 8,
|
6
|
-
'TAB': 9,
|
7
|
-
'ENTER': 13,
|
8
|
-
'SPACE': 32,
|
9
|
-
'DELETE': 46,
|
10
|
-
|
11
|
-
// Arrow
|
12
|
-
'LEFT': 37,
|
13
|
-
'UP': 38,
|
14
|
-
'RIGHT': 39,
|
15
|
-
'DOWN': 40,
|
16
|
-
|
17
|
-
// Number: 0-9
|
18
|
-
'NUM0': 48,
|
19
|
-
'NUM1': 49,
|
20
|
-
'NUM2': 50,
|
21
|
-
'NUM3': 51,
|
22
|
-
'NUM4': 52,
|
23
|
-
'NUM5': 53,
|
24
|
-
'NUM6': 54,
|
25
|
-
'NUM7': 55,
|
26
|
-
'NUM8': 56,
|
27
|
-
|
28
|
-
// Alphabet: a-z
|
29
|
-
'B': 66,
|
30
|
-
'E': 69,
|
31
|
-
'I': 73,
|
32
|
-
'J': 74,
|
33
|
-
'K': 75,
|
34
|
-
'L': 76,
|
35
|
-
'R': 82,
|
36
|
-
'S': 83,
|
37
|
-
'U': 85,
|
38
|
-
'V': 86,
|
39
|
-
'Y': 89,
|
40
|
-
'Z': 90,
|
41
|
-
|
42
|
-
'SLASH': 191,
|
43
|
-
'LEFTBRACKET': 219,
|
44
|
-
'BACKSLASH': 220,
|
45
|
-
'RIGHTBRACKET': 221
|
46
|
-
};
|
47
|
-
|
48
|
-
/**
|
49
|
-
* @class core.key
|
50
|
-
*
|
51
|
-
* Object for keycodes.
|
52
|
-
*
|
53
|
-
* @singleton
|
54
|
-
* @alternateClassName key
|
55
|
-
*/
|
56
|
-
export default {
|
57
|
-
/**
|
58
|
-
* @method isEdit
|
59
|
-
*
|
60
|
-
* @param {Number} keyCode
|
61
|
-
* @return {Boolean}
|
62
|
-
*/
|
63
|
-
isEdit: (keyCode) => {
|
64
|
-
return lists.contains([
|
65
|
-
KEY_MAP.BACKSPACE,
|
66
|
-
KEY_MAP.TAB,
|
67
|
-
KEY_MAP.ENTER,
|
68
|
-
KEY_MAP.SPACE,
|
69
|
-
KEY_MAP.DELETE
|
70
|
-
], keyCode);
|
71
|
-
},
|
72
|
-
/**
|
73
|
-
* @method isMove
|
74
|
-
*
|
75
|
-
* @param {Number} keyCode
|
76
|
-
* @return {Boolean}
|
77
|
-
*/
|
78
|
-
isMove: (keyCode) => {
|
79
|
-
return lists.contains([
|
80
|
-
KEY_MAP.LEFT,
|
81
|
-
KEY_MAP.UP,
|
82
|
-
KEY_MAP.RIGHT,
|
83
|
-
KEY_MAP.DOWN
|
84
|
-
], keyCode);
|
85
|
-
},
|
86
|
-
/**
|
87
|
-
* @property {Object} nameFromCode
|
88
|
-
* @property {String} nameFromCode.8 "BACKSPACE"
|
89
|
-
*/
|
90
|
-
nameFromCode: func.invertObject(KEY_MAP),
|
91
|
-
code: KEY_MAP
|
92
|
-
};
|
@@ -1,210 +0,0 @@
|
|
1
|
-
import $ from 'jquery';
|
2
|
-
import func from './func';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* returns the first item of an array.
|
6
|
-
*
|
7
|
-
* @param {Array} array
|
8
|
-
*/
|
9
|
-
function head(array) {
|
10
|
-
return array[0];
|
11
|
-
}
|
12
|
-
|
13
|
-
/**
|
14
|
-
* returns the last item of an array.
|
15
|
-
*
|
16
|
-
* @param {Array} array
|
17
|
-
*/
|
18
|
-
function last(array) {
|
19
|
-
return array[array.length - 1];
|
20
|
-
}
|
21
|
-
|
22
|
-
/**
|
23
|
-
* returns everything but the last entry of the array.
|
24
|
-
*
|
25
|
-
* @param {Array} array
|
26
|
-
*/
|
27
|
-
function initial(array) {
|
28
|
-
return array.slice(0, array.length - 1);
|
29
|
-
}
|
30
|
-
|
31
|
-
/**
|
32
|
-
* returns the rest of the items in an array.
|
33
|
-
*
|
34
|
-
* @param {Array} array
|
35
|
-
*/
|
36
|
-
function tail(array) {
|
37
|
-
return array.slice(1);
|
38
|
-
}
|
39
|
-
|
40
|
-
/**
|
41
|
-
* returns item of array
|
42
|
-
*/
|
43
|
-
function find(array, pred) {
|
44
|
-
for (let idx = 0, len = array.length; idx < len; idx++) {
|
45
|
-
const item = array[idx];
|
46
|
-
if (pred(item)) {
|
47
|
-
return item;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
/**
|
53
|
-
* returns true if all of the values in the array pass the predicate truth test.
|
54
|
-
*/
|
55
|
-
function all(array, pred) {
|
56
|
-
for (let idx = 0, len = array.length; idx < len; idx++) {
|
57
|
-
if (!pred(array[idx])) {
|
58
|
-
return false;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
return true;
|
62
|
-
}
|
63
|
-
|
64
|
-
/**
|
65
|
-
* returns index of item
|
66
|
-
*/
|
67
|
-
function indexOf(array, item) {
|
68
|
-
return $.inArray(item, array);
|
69
|
-
}
|
70
|
-
|
71
|
-
/**
|
72
|
-
* returns true if the value is present in the list.
|
73
|
-
*/
|
74
|
-
function contains(array, item) {
|
75
|
-
return indexOf(array, item) !== -1;
|
76
|
-
}
|
77
|
-
|
78
|
-
/**
|
79
|
-
* get sum from a list
|
80
|
-
*
|
81
|
-
* @param {Array} array - array
|
82
|
-
* @param {Function} fn - iterator
|
83
|
-
*/
|
84
|
-
function sum(array, fn) {
|
85
|
-
fn = fn || func.self;
|
86
|
-
return array.reduce(function(memo, v) {
|
87
|
-
return memo + fn(v);
|
88
|
-
}, 0);
|
89
|
-
}
|
90
|
-
|
91
|
-
/**
|
92
|
-
* returns a copy of the collection with array type.
|
93
|
-
* @param {Collection} collection - collection eg) node.childNodes, ...
|
94
|
-
*/
|
95
|
-
function from(collection) {
|
96
|
-
const result = [];
|
97
|
-
const length = collection.length;
|
98
|
-
let idx = -1;
|
99
|
-
while (++idx < length) {
|
100
|
-
result[idx] = collection[idx];
|
101
|
-
}
|
102
|
-
return result;
|
103
|
-
}
|
104
|
-
|
105
|
-
/**
|
106
|
-
* returns whether list is empty or not
|
107
|
-
*/
|
108
|
-
function isEmpty(array) {
|
109
|
-
return !array || !array.length;
|
110
|
-
}
|
111
|
-
|
112
|
-
/**
|
113
|
-
* cluster elements by predicate function.
|
114
|
-
*
|
115
|
-
* @param {Array} array - array
|
116
|
-
* @param {Function} fn - predicate function for cluster rule
|
117
|
-
* @param {Array[]}
|
118
|
-
*/
|
119
|
-
function clusterBy(array, fn) {
|
120
|
-
if (!array.length) { return []; }
|
121
|
-
const aTail = tail(array);
|
122
|
-
return aTail.reduce(function(memo, v) {
|
123
|
-
const aLast = last(memo);
|
124
|
-
if (fn(last(aLast), v)) {
|
125
|
-
aLast[aLast.length] = v;
|
126
|
-
} else {
|
127
|
-
memo[memo.length] = [v];
|
128
|
-
}
|
129
|
-
return memo;
|
130
|
-
}, [[head(array)]]);
|
131
|
-
}
|
132
|
-
|
133
|
-
/**
|
134
|
-
* returns a copy of the array with all false values removed
|
135
|
-
*
|
136
|
-
* @param {Array} array - array
|
137
|
-
* @param {Function} fn - predicate function for cluster rule
|
138
|
-
*/
|
139
|
-
function compact(array) {
|
140
|
-
const aResult = [];
|
141
|
-
for (let idx = 0, len = array.length; idx < len; idx++) {
|
142
|
-
if (array[idx]) { aResult.push(array[idx]); }
|
143
|
-
}
|
144
|
-
return aResult;
|
145
|
-
}
|
146
|
-
|
147
|
-
/**
|
148
|
-
* produces a duplicate-free version of the array
|
149
|
-
*
|
150
|
-
* @param {Array} array
|
151
|
-
*/
|
152
|
-
function unique(array) {
|
153
|
-
const results = [];
|
154
|
-
|
155
|
-
for (let idx = 0, len = array.length; idx < len; idx++) {
|
156
|
-
if (!contains(results, array[idx])) {
|
157
|
-
results.push(array[idx]);
|
158
|
-
}
|
159
|
-
}
|
160
|
-
|
161
|
-
return results;
|
162
|
-
}
|
163
|
-
|
164
|
-
/**
|
165
|
-
* returns next item.
|
166
|
-
* @param {Array} array
|
167
|
-
*/
|
168
|
-
function next(array, item) {
|
169
|
-
const idx = indexOf(array, item);
|
170
|
-
if (idx === -1) { return null; }
|
171
|
-
|
172
|
-
return array[idx + 1];
|
173
|
-
}
|
174
|
-
|
175
|
-
/**
|
176
|
-
* returns prev item.
|
177
|
-
* @param {Array} array
|
178
|
-
*/
|
179
|
-
function prev(array, item) {
|
180
|
-
const idx = indexOf(array, item);
|
181
|
-
if (idx === -1) { return null; }
|
182
|
-
|
183
|
-
return array[idx - 1];
|
184
|
-
}
|
185
|
-
|
186
|
-
/**
|
187
|
-
* @class core.list
|
188
|
-
*
|
189
|
-
* list utils
|
190
|
-
*
|
191
|
-
* @singleton
|
192
|
-
* @alternateClassName list
|
193
|
-
*/
|
194
|
-
export default {
|
195
|
-
head,
|
196
|
-
last,
|
197
|
-
initial,
|
198
|
-
tail,
|
199
|
-
prev,
|
200
|
-
next,
|
201
|
-
find,
|
202
|
-
contains,
|
203
|
-
all,
|
204
|
-
sum,
|
205
|
-
from,
|
206
|
-
isEmpty,
|
207
|
-
clusterBy,
|
208
|
-
compact,
|
209
|
-
unique
|
210
|
-
};
|