@sd-angular/core 0.0.1049 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/package.json +2 -3
- package/api/sd-angular-core-api.metadata.json +1 -1
- package/assets/scss/sd-core.scss +0 -2
- package/bundles/sd-angular-core-api.umd.js +3 -25
- package/bundles/sd-angular-core-api.umd.js.map +1 -1
- package/bundles/sd-angular-core-api.umd.min.js +1 -1
- package/bundles/sd-angular-core-api.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-chart.umd.js +1 -1
- package/bundles/sd-angular-core-chart.umd.min.js +1 -1
- package/bundles/sd-angular-core-chart.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-date-range.umd.js +1 -1
- package/bundles/sd-angular-core-date-range.umd.min.js +1 -1
- package/bundles/sd-angular-core-date-time.umd.js +1 -1
- package/bundles/sd-angular-core-date-time.umd.min.js +2 -2
- package/bundles/sd-angular-core-editor.umd.js +2 -2
- package/bundles/sd-angular-core-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-editor.umd.min.js +2 -2
- package/bundles/sd-angular-core-editor.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-export.umd.js +5 -24
- package/bundles/sd-angular-core-export.umd.js.map +1 -1
- package/bundles/sd-angular-core-export.umd.min.js +1 -1
- package/bundles/sd-angular-core-export.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-filter.umd.js +1 -1
- package/bundles/sd-angular-core-filter.umd.min.js +1 -1
- package/bundles/sd-angular-core-filter.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-grid.umd.js +1 -1
- package/bundles/sd-angular-core-grid.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-input-currency.umd.js +1 -1
- package/bundles/sd-angular-core-input-currency.umd.min.js +1 -1
- package/bundles/sd-angular-core-konva.umd.js +1 -1
- package/bundles/sd-angular-core-konva.umd.min.js +1 -1
- package/bundles/sd-angular-core-notify.umd.js +1 -1
- package/bundles/sd-angular-core-notify.umd.min.js +1 -1
- package/bundles/sd-angular-core-notify.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.js +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.min.js +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-upload-file.umd.js +1 -1
- package/bundles/sd-angular-core-upload-file.umd.min.js +1 -1
- package/bundles/sd-angular-core-utility.umd.js +1 -1
- package/bundles/sd-angular-core-utility.umd.min.js +1 -1
- package/bundles/sd-angular-core-utility.umd.min.js.map +1 -1
- package/bundles/sd-angular-core.umd.js +6 -734
- package/bundles/sd-angular-core.umd.js.map +1 -1
- package/bundles/sd-angular-core.umd.min.js +1 -1
- package/bundles/sd-angular-core.umd.min.js.map +1 -1
- package/esm2015/api/src/lib/api.service.js +2 -2
- package/esm2015/api/src/lib/http.service.js +1 -1
- package/esm2015/editor/src/lib/editor.component.js +2 -2
- package/esm2015/export/src/lib/export.service.js +2 -2
- package/esm2015/lib/core.module.js +4 -36
- package/esm2015/public-api.js +1 -10
- package/fesm2015/sd-angular-core-api.js +2 -3
- package/fesm2015/sd-angular-core-api.js.map +1 -1
- package/fesm2015/sd-angular-core-editor.js +1 -1
- package/fesm2015/sd-angular-core-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-export.js +1 -1
- package/fesm2015/sd-angular-core-export.js.map +1 -1
- package/fesm2015/sd-angular-core.js +5 -367
- package/fesm2015/sd-angular-core.js.map +1 -1
- package/package.json +14 -19
- package/public-api.d.ts +0 -7
- package/sd-angular-core-1.0.1.tgz +0 -0
- package/sd-angular-core.metadata.json +1 -1
- package/assets/ckeditor/CHANGES.md +0 -1703
- package/assets/ckeditor/LICENSE.md +0 -1420
- package/assets/ckeditor/README.md +0 -39
- package/assets/ckeditor/adapters/jquery.js +0 -10
- package/assets/ckeditor/build-config.js +0 -123
- package/assets/ckeditor/ckeditor.js +0 -27038
- package/assets/ckeditor/config.js +0 -10
- package/assets/ckeditor/contents.css +0 -209
- package/assets/ckeditor/lang/en.js +0 -5
- package/assets/ckeditor/lang/vi.js +0 -5
- package/assets/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -25
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +0 -10
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -13
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +0 -10
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -12
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -11
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -9
- package/assets/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +0 -9
- package/assets/ckeditor/plugins/about/dialogs/about.js +0 -8
- package/assets/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- package/assets/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- package/assets/ckeditor/plugins/clipboard/dialogs/paste.js +0 -11
- package/assets/ckeditor/plugins/colordialog/dialogs/colordialog.css +0 -20
- package/assets/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -14
- package/assets/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +0 -25
- package/assets/ckeditor/plugins/copyformatting/cursors/cursor.svg +0 -14
- package/assets/ckeditor/plugins/copyformatting/styles/copyformatting.css +0 -45
- package/assets/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- package/assets/ckeditor/plugins/div/dialogs/div.js +0 -9
- package/assets/ckeditor/plugins/find/dialogs/find.js +0 -25
- package/assets/ckeditor/plugins/flash/dialogs/flash.js +0 -24
- package/assets/ckeditor/plugins/flash/images/placeholder.png +0 -0
- package/assets/ckeditor/plugins/forms/dialogs/button.js +0 -8
- package/assets/ckeditor/plugins/forms/dialogs/checkbox.js +0 -9
- package/assets/ckeditor/plugins/forms/dialogs/form.js +0 -8
- package/assets/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -7
- package/assets/ckeditor/plugins/forms/dialogs/radio.js +0 -9
- package/assets/ckeditor/plugins/forms/dialogs/select.js +0 -21
- package/assets/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
- package/assets/ckeditor/plugins/forms/dialogs/textfield.js +0 -11
- package/assets/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- package/assets/ckeditor/plugins/icons.png +0 -0
- package/assets/ckeditor/plugins/icons_hidpi.png +0 -0
- package/assets/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
- package/assets/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- package/assets/ckeditor/plugins/image/dialogs/image.js +0 -44
- package/assets/ckeditor/plugins/image/images/noimage.png +0 -0
- package/assets/ckeditor/plugins/link/dialogs/anchor.js +0 -8
- package/assets/ckeditor/plugins/link/dialogs/link.js +0 -30
- package/assets/ckeditor/plugins/link/images/anchor.png +0 -0
- package/assets/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- package/assets/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
- package/assets/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- package/assets/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- package/assets/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- package/assets/ckeditor/plugins/magicline/images/icon.png +0 -0
- package/assets/ckeditor/plugins/notification/lang/az.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/bg.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ca.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/cs.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/da.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/de-ch.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/de.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/en-au.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/en.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/eo.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/es-mx.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/es.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/et.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/eu.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/fa.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/fr.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/gl.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/hr.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/hu.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/id.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/it.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ja.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/km.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ko.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ku.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/lt.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/lv.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/nb.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/nl.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/oc.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/pl.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/pt-br.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/pt.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ro.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ru.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sk.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sq.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sr-latn.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sr.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/sv.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/tr.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/ug.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/uk.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/zh-cn.js +0 -7
- package/assets/ckeditor/plugins/notification/lang/zh.js +0 -7
- package/assets/ckeditor/plugins/notification/plugin.js +0 -933
- package/assets/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- package/assets/ckeditor/plugins/pastefromword/filter/default.js +0 -55
- package/assets/ckeditor/plugins/preview/preview.html +0 -13
- package/assets/ckeditor/plugins/scayt/CHANGELOG.md +0 -20
- package/assets/ckeditor/plugins/scayt/LICENSE.md +0 -28
- package/assets/ckeditor/plugins/scayt/README.md +0 -81
- package/assets/ckeditor/plugins/scayt/dialogs/dialog.css +0 -23
- package/assets/ckeditor/plugins/scayt/dialogs/options.js +0 -32
- package/assets/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
- package/assets/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +0 -25
- package/assets/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- package/assets/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- package/assets/ckeditor/plugins/smiley/dialogs/smiley.js +0 -11
- package/assets/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/envelope.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/heart.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/heart.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/kiss.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- package/assets/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- package/assets/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -20
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/af.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ar.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/az.js +0 -10
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/bg.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -14
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/da.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/es.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/eu.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +0 -10
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/gl.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/hu.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/id.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ja.js +0 -9
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/km.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ko.js +0 -10
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/lt.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/oc.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/pt.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ro.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/si.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sl.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sq.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sr.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/tt.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/uk.js +0 -12
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/vi.js +0 -14
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
- package/assets/ckeditor/plugins/specialchar/dialogs/lang/zh.js +0 -9
- package/assets/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
- package/assets/ckeditor/plugins/table/dialogs/table.js +0 -21
- package/assets/ckeditor/plugins/tableselection/styles/tableselection.css +0 -36
- package/assets/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -19
- package/assets/ckeditor/plugins/templates/dialogs/templates.css +0 -84
- package/assets/ckeditor/plugins/templates/dialogs/templates.js +0 -10
- package/assets/ckeditor/plugins/templates/templates/default.js +0 -7
- package/assets/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- package/assets/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- package/assets/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- package/assets/ckeditor/plugins/videoembed/.gitattributes +0 -17
- package/assets/ckeditor/plugins/videoembed/README.md +0 -35
- package/assets/ckeditor/plugins/videoembed/dialogs/videoembedDialog.js +0 -114
- package/assets/ckeditor/plugins/videoembed/icons/videoembed.png +0 -0
- package/assets/ckeditor/plugins/videoembed/lang/en.js +0 -8
- package/assets/ckeditor/plugins/videoembed/lang/fr.js +0 -8
- package/assets/ckeditor/plugins/videoembed/plugin.js +0 -27
- package/assets/ckeditor/plugins/widget/images/handle.png +0 -0
- package/assets/ckeditor/plugins/wordcount/css/wordcount.css +0 -3
- package/assets/ckeditor/plugins/wordcount/lang/ar.js +0 -12
- package/assets/ckeditor/plugins/wordcount/lang/bg.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/ca.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/cs.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/da.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/de.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/el.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/en.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/es.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/eu.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/fa.js +0 -13
- package/assets/ckeditor/plugins/wordcount/lang/fi.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/fr.js +0 -12
- package/assets/ckeditor/plugins/wordcount/lang/he.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/hr.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/hu.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/it.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/ja.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/ko.js +0 -16
- package/assets/ckeditor/plugins/wordcount/lang/nl.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/no.js +0 -11
- package/assets/ckeditor/plugins/wordcount/lang/pl.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/pt-br.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/pt.js +0 -10
- package/assets/ckeditor/plugins/wordcount/lang/ro.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/ru.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/sk.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/sv.js +0 -15
- package/assets/ckeditor/plugins/wordcount/lang/tr.js +0 -14
- package/assets/ckeditor/plugins/wordcount/lang/uk.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/zh-cn.js +0 -17
- package/assets/ckeditor/plugins/wordcount/lang/zh.js +0 -17
- package/assets/ckeditor/plugins/wordcount/plugin.js +0 -639
- package/assets/ckeditor/plugins/wordcount/samples/maxParagraphs.html +0 -26
- package/assets/ckeditor/plugins/wordcount/samples/wordcount.html +0 -61
- package/assets/ckeditor/plugins/wordcount/samples/wordcountWithMaxCount.html +0 -110
- package/assets/ckeditor/plugins/wsc/LICENSE.md +0 -28
- package/assets/ckeditor/plugins/wsc/README.md +0 -80
- package/assets/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
- package/assets/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- package/assets/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
- package/assets/ckeditor/plugins/wsc/dialogs/wsc.js +0 -91
- package/assets/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
- package/assets/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +0 -43
- package/assets/ckeditor/samples/css/samples.css +0 -1637
- package/assets/ckeditor/samples/img/github-top.png +0 -0
- package/assets/ckeditor/samples/img/header-bg.png +0 -0
- package/assets/ckeditor/samples/img/header-separator.png +0 -0
- package/assets/ckeditor/samples/img/logo.png +0 -0
- package/assets/ckeditor/samples/img/logo.svg +0 -13
- package/assets/ckeditor/samples/img/navigation-tip.png +0 -0
- package/assets/ckeditor/samples/index.html +0 -128
- package/assets/ckeditor/samples/js/sample.js +0 -53
- package/assets/ckeditor/samples/js/sf.js +0 -17
- package/assets/ckeditor/samples/old/ajax.html +0 -85
- package/assets/ckeditor/samples/old/api.html +0 -210
- package/assets/ckeditor/samples/old/appendto.html +0 -59
- package/assets/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- package/assets/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +0 -204
- package/assets/ckeditor/samples/old/assets/posteddata.php +0 -59
- package/assets/ckeditor/samples/old/assets/sample.jpg +0 -0
- package/assets/ckeditor/samples/old/assets/uilanguages/languages.js +0 -7
- package/assets/ckeditor/samples/old/datafiltering.html +0 -508
- package/assets/ckeditor/samples/old/dialog/assets/my_dialog.js +0 -48
- package/assets/ckeditor/samples/old/dialog/dialog.html +0 -190
- package/assets/ckeditor/samples/old/divarea/divarea.html +0 -64
- package/assets/ckeditor/samples/old/divreplace.html +0 -144
- package/assets/ckeditor/samples/old/enterkey/enterkey.html +0 -106
- package/assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- package/assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- package/assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js +0 -19
- package/assets/ckeditor/samples/old/htmlwriter/outputforflash.html +0 -283
- package/assets/ckeditor/samples/old/htmlwriter/outputhtml.html +0 -224
- package/assets/ckeditor/samples/old/index.html +0 -134
- package/assets/ckeditor/samples/old/inlineall.html +0 -314
- package/assets/ckeditor/samples/old/inlinebycode.html +0 -124
- package/assets/ckeditor/samples/old/inlinetextarea.html +0 -113
- package/assets/ckeditor/samples/old/jquery.html +0 -103
- package/assets/ckeditor/samples/old/magicline/magicline.html +0 -209
- package/assets/ckeditor/samples/old/readonly.html +0 -76
- package/assets/ckeditor/samples/old/replacebyclass.html +0 -60
- package/assets/ckeditor/samples/old/replacebycode.html +0 -59
- package/assets/ckeditor/samples/old/sample.css +0 -357
- package/assets/ckeditor/samples/old/sample.js +0 -50
- package/assets/ckeditor/samples/old/sample_posteddata.php +0 -16
- package/assets/ckeditor/samples/old/tabindex.html +0 -78
- package/assets/ckeditor/samples/old/toolbar/toolbar.html +0 -235
- package/assets/ckeditor/samples/old/uicolor.html +0 -72
- package/assets/ckeditor/samples/old/uilanguages.html +0 -122
- package/assets/ckeditor/samples/old/wysiwygarea/fullpage.html +0 -80
- package/assets/ckeditor/samples/old/xhtmlstyle.html +0 -234
- package/assets/ckeditor/samples/toolbarconfigurator/css/fontello.css +0 -55
- package/assets/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +0 -10
- package/assets/ckeditor/samples/toolbarconfigurator/font/config.json +0 -28
- package/assets/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- package/assets/ckeditor/samples/toolbarconfigurator/font/fontello.svg +0 -14
- package/assets/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- package/assets/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- package/assets/ckeditor/samples/toolbarconfigurator/index.html +0 -446
- package/assets/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +0 -13
- package/assets/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +0 -9
- package/assets/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +0 -33
- package/assets/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +0 -14
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +0 -19
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +0 -325
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +0 -288
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +0 -25
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +0 -36
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +0 -38
- package/assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +0 -16
- package/assets/ckeditor/skins/office2013/dialog.css +0 -5
- package/assets/ckeditor/skins/office2013/editor.css +0 -5
- package/assets/ckeditor/skins/office2013/icons.png +0 -0
- package/assets/ckeditor/skins/office2013/icons_hidpi.png +0 -0
- package/assets/ckeditor/skins/office2013/images/arrow.png +0 -0
- package/assets/ckeditor/skins/office2013/images/close.png +0 -0
- package/assets/ckeditor/skins/office2013/images/hidpi/close.png +0 -0
- package/assets/ckeditor/skins/office2013/images/hidpi/lock-open.png +0 -0
- package/assets/ckeditor/skins/office2013/images/hidpi/lock.png +0 -0
- package/assets/ckeditor/skins/office2013/images/hidpi/refresh.png +0 -0
- package/assets/ckeditor/skins/office2013/images/lock-open.png +0 -0
- package/assets/ckeditor/skins/office2013/images/lock.png +0 -0
- package/assets/ckeditor/skins/office2013/images/refresh.png +0 -0
- package/assets/ckeditor/styles.js +0 -137
- package/bundles/sd-angular-core-modal-custom.umd.js +0 -487
- package/bundles/sd-angular-core-modal-custom.umd.js.map +0 -1
- package/bundles/sd-angular-core-modal-custom.umd.min.js +0 -16
- package/bundles/sd-angular-core-modal-custom.umd.min.js.map +0 -1
- package/esm2015/lib/controls/ckeditor-control/ckeditor-control.component.js +0 -53
- package/esm2015/lib/controls/date-picker-control/date-picker-control.component.js +0 -156
- package/esm2015/lib/pipes/sd-date.pipe.js +0 -15
- package/esm2015/lib/validators/chip-min-item.validator.js +0 -26
- package/esm2015/lib/validators/custom.validator.js +0 -39
- package/esm2015/lib/validators/max-date.validator.js +0 -30
- package/esm2015/lib/validators/min-date.validator.js +0 -30
- package/esm2015/modal-custom/index.js +0 -2
- package/esm2015/modal-custom/sd-angular-core-modal-custom.js +0 -5
- package/esm2015/modal-custom/src/lib/modal-custom/modal-custom.component.js +0 -123
- package/esm2015/modal-custom/src/lib/modal-custom.module.js +0 -30
- package/esm2015/modal-custom/src/public-api.js +0 -6
- package/fesm2015/sd-angular-core-modal-custom.js +0 -161
- package/fesm2015/sd-angular-core-modal-custom.js.map +0 -1
- package/lib/controls/ckeditor-control/ckeditor-control.component.d.ts +0 -20
- package/lib/controls/date-picker-control/date-picker-control.component.d.ts +0 -36
- package/lib/pipes/sd-date.pipe.d.ts +0 -4
- package/lib/validators/chip-min-item.validator.d.ts +0 -5
- package/lib/validators/custom.validator.d.ts +0 -5
- package/lib/validators/max-date.validator.d.ts +0 -5
- package/lib/validators/min-date.validator.d.ts +0 -5
- package/modal-custom/index.d.ts +0 -1
- package/modal-custom/package.json +0 -12
- package/modal-custom/sd-angular-core-modal-custom.d.ts +0 -4
- package/modal-custom/sd-angular-core-modal-custom.metadata.json +0 -1
- package/modal-custom/src/lib/modal-custom/modal-custom.component.d.ts +0 -31
- package/modal-custom/src/lib/modal-custom.module.d.ts +0 -2
- package/modal-custom/src/public-api.d.ts +0 -2
- package/sd-angular-core-0.0.1049.tgz +0 -0
|
@@ -1,933 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileOverview The "Notification" plugin.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
( function() {
|
|
14
|
-
|
|
15
|
-
CKEDITOR.plugins.add( 'notification', {
|
|
16
|
-
lang: 'az,bg,ca,cs,da,de,de-ch,en,en-au,eo,es,es-mx,et,eu,fa,fr,gl,hr,hu,id,it,ja,km,ko,ku,lt,lv,nb,nl,oc,pl,pt,pt-br,ro,ru,sk,sq,sr,sr-latn,sv,tr,ug,uk,zh,zh-cn', // %REMOVE_LINE_CORE%
|
|
17
|
-
|
|
18
|
-
init: function( editor ) {
|
|
19
|
-
editor._.notificationArea = new Area( editor );
|
|
20
|
-
|
|
21
|
-
// Overwrites default `editor.showNotification`.
|
|
22
|
-
editor.showNotification = function( message, type, progressOrDuration ) {
|
|
23
|
-
var progress, duration;
|
|
24
|
-
|
|
25
|
-
if ( type == 'progress' ) {
|
|
26
|
-
progress = progressOrDuration;
|
|
27
|
-
} else {
|
|
28
|
-
duration = progressOrDuration;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
var notification = new CKEDITOR.plugins.notification( editor, {
|
|
32
|
-
message: message,
|
|
33
|
-
type: type,
|
|
34
|
-
progress: progress,
|
|
35
|
-
duration: duration
|
|
36
|
-
} );
|
|
37
|
-
|
|
38
|
-
notification.show();
|
|
39
|
-
|
|
40
|
-
return notification;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
// Close the last notification on ESC.
|
|
44
|
-
editor.on( 'key', function( evt ) {
|
|
45
|
-
if ( evt.data.keyCode == 27 ) { /* ESC */
|
|
46
|
-
var notifications = editor._.notificationArea.notifications;
|
|
47
|
-
|
|
48
|
-
if ( !notifications.length ) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// As long as this is not a common practice to inform screen-reader users about actions, in this case
|
|
53
|
-
// this is the best solution (unfortunately there is no standard for accessibility for notifications).
|
|
54
|
-
// Notification has an `alert` aria role what means that it does not get a focus nor is needed to be
|
|
55
|
-
// closed (unlike `alertdialog`). However notification will capture ESC key so we need to inform user
|
|
56
|
-
// why it does not do other actions.
|
|
57
|
-
say( editor.lang.notification.closed );
|
|
58
|
-
|
|
59
|
-
// Hide last.
|
|
60
|
-
notifications[ notifications.length - 1 ].hide();
|
|
61
|
-
|
|
62
|
-
evt.cancel();
|
|
63
|
-
}
|
|
64
|
-
} );
|
|
65
|
-
|
|
66
|
-
// Send the message to the screen readers.
|
|
67
|
-
function say( text ) {
|
|
68
|
-
var message = new CKEDITOR.dom.element( 'div' );
|
|
69
|
-
message.setStyles( {
|
|
70
|
-
position: 'fixed',
|
|
71
|
-
'margin-left': '-9999px'
|
|
72
|
-
} );
|
|
73
|
-
message.setAttributes( {
|
|
74
|
-
'aria-live': 'assertive',
|
|
75
|
-
'aria-atomic': 'true'
|
|
76
|
-
} );
|
|
77
|
-
message.setText( text );
|
|
78
|
-
|
|
79
|
-
CKEDITOR.document.getBody().append( message );
|
|
80
|
-
|
|
81
|
-
setTimeout( function() {
|
|
82
|
-
message.remove();
|
|
83
|
-
}, 100 );
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
} );
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Notification class. Notifications are used to display short messages to the user. They might be used to show the result of
|
|
90
|
-
* asynchronous actions or information about changes in the editor content. It is recommended to use them instead of
|
|
91
|
-
* alert dialogs. They should **not** be used if a user response is required nor with dialog windows (e.g. in dialog validation).
|
|
92
|
-
*
|
|
93
|
-
* There are four types of notifications available, see the {@link #type} property.
|
|
94
|
-
*
|
|
95
|
-
* Note that the notification constructor only creates a notification instance. To show it, use the {@link #show} method:
|
|
96
|
-
*
|
|
97
|
-
* var notification = new CKEDITOR.plugins.notification( editor, { message: 'Foo' } );
|
|
98
|
-
* notification.show();
|
|
99
|
-
*
|
|
100
|
-
* You can also use the {@link CKEDITOR.editor#showNotification} method:
|
|
101
|
-
*
|
|
102
|
-
* editor.showNotification( 'Foo' );
|
|
103
|
-
*
|
|
104
|
-
* All of the notification actions: ({@link #show}, {@link #update} and {@link #hide}) fire cancelable events
|
|
105
|
-
* on the related {@link CKEDITOR.editor} instance so you can integrate editor notifications with your website notifications.
|
|
106
|
-
*
|
|
107
|
-
* Refer to the [Notifications](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_notifications.html) article for more information about this feature.
|
|
108
|
-
*
|
|
109
|
-
* @since 4.5.0
|
|
110
|
-
* @class CKEDITOR.plugins.notification
|
|
111
|
-
* @constructor Create a notification object. Call {@link #show} to show the created notification.
|
|
112
|
-
* @param {CKEDITOR.editor} editor The editor instance.
|
|
113
|
-
* @param {Object} options
|
|
114
|
-
* @param {String} options.message The message displayed in the notification.
|
|
115
|
-
* @param {String} [options.type='info'] Notification type, see {@link #type}.
|
|
116
|
-
* @param {Number} [options.progress=0] If the type is `progress` this may be a progress from 0 to 1.
|
|
117
|
-
* @param {Number} [options.duration] How long the notification will be visible, see {@link #duration}.
|
|
118
|
-
*/
|
|
119
|
-
function Notification( editor, options ) {
|
|
120
|
-
CKEDITOR.tools.extend( this, options, {
|
|
121
|
-
editor: editor,
|
|
122
|
-
id: 'cke-' + CKEDITOR.tools.getUniqueId(),
|
|
123
|
-
area: editor._.notificationArea
|
|
124
|
-
} );
|
|
125
|
-
|
|
126
|
-
if ( !options.type ) {
|
|
127
|
-
this.type = 'info';
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
this.element = this._createElement();
|
|
131
|
-
|
|
132
|
-
// Don't allow dragging on notification (https://dev.ckeditor.com/ticket/13184).
|
|
133
|
-
editor.plugins.clipboard && CKEDITOR.plugins.clipboard.preventDefaultDropOnElement( this.element );
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The editor instance.
|
|
138
|
-
*
|
|
139
|
-
* @readonly
|
|
140
|
-
* @property {CKEDITOR.editor} editor
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Message displayed in the notification.
|
|
145
|
-
*
|
|
146
|
-
* @readonly
|
|
147
|
-
* @property {String} message
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Notification type. There are four types available:
|
|
152
|
-
*
|
|
153
|
-
* * `info` (default) – Information for the user (e.g. "File is uploading.", "ACF modified content."),
|
|
154
|
-
* * `warning` – Warning or error message (e.g. "This type of file is not supported.",
|
|
155
|
-
* "You cannot paste the script."),
|
|
156
|
-
* * `success` – Information that an operation finished successfully (e.g. "File uploaded.", "Data imported.").
|
|
157
|
-
* * `progress` – Information about the progress of an operation. When the operation is done, the notification
|
|
158
|
-
* type should be changed to `success`.
|
|
159
|
-
*
|
|
160
|
-
* @readonly
|
|
161
|
-
* @property {String} type
|
|
162
|
-
*/
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* If the notification {@link #type} is `'progress'`, this is the progress from `0` to `1`.
|
|
166
|
-
*
|
|
167
|
-
* @readonly
|
|
168
|
-
* @property {Number} progress
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Notification duration. Determines after how many milliseconds the notification should close automatically.
|
|
173
|
-
* `0` means that the notification will not close automatically and that the user needs to close it manually.
|
|
174
|
-
* The default value for `warning` and `progress` notifications is `0`. For `info` and `success` the value can
|
|
175
|
-
* either be set through the {@link CKEDITOR.config#notification_duration} configuration option or equals `5000`
|
|
176
|
-
* if the configuration option is not set.
|
|
177
|
-
*
|
|
178
|
-
* @readonly
|
|
179
|
-
* @property {Number} duration
|
|
180
|
-
*/
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Unique notification ID.
|
|
184
|
-
*
|
|
185
|
-
* @readonly
|
|
186
|
-
* @property {Number} id
|
|
187
|
-
*/
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Notification DOM element. There is one element per notification. It is created when the notification is created,
|
|
191
|
-
* even if it is not shown. If the notification is hidden, the element is detached from the document but not deleted.
|
|
192
|
-
* It will be reused if the notification is shown again.
|
|
193
|
-
*
|
|
194
|
-
* @readonly
|
|
195
|
-
* @property {CKEDITOR.dom.element} element
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* {@link CKEDITOR.plugins.notification.area Notification area} reference.
|
|
200
|
-
*
|
|
201
|
-
* @readonly
|
|
202
|
-
* @property {CKEDITOR.plugins.notification.area} area
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
Notification.prototype = {
|
|
206
|
-
/**
|
|
207
|
-
* Adds the notification element to the notification area. The notification will be hidden automatically if
|
|
208
|
-
* {@link #duration} is set.
|
|
209
|
-
*
|
|
210
|
-
* Fires the {@link CKEDITOR.editor#notificationShow} event.
|
|
211
|
-
*/
|
|
212
|
-
show: function() {
|
|
213
|
-
if ( this.editor.fire( 'notificationShow', { notification: this } ) === false ) {
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
this.area.add( this );
|
|
218
|
-
|
|
219
|
-
this._hideAfterTimeout();
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Updates the notification object and element.
|
|
224
|
-
*
|
|
225
|
-
* Fires the {@link CKEDITOR.editor#notificationUpdate} event.
|
|
226
|
-
*
|
|
227
|
-
* @param {Object} options
|
|
228
|
-
* @param {String} [options.message] {@link #message}
|
|
229
|
-
* @param {String} [options.type] {@link #type}
|
|
230
|
-
* @param {Number} [options.progress] {@link #progress}
|
|
231
|
-
* @param {Number} [options.duration] {@link #duration}
|
|
232
|
-
* @param {Boolean} [options.important=false] If the update is important, the notification will be shown
|
|
233
|
-
* if it was hidden and read by screen readers.
|
|
234
|
-
*/
|
|
235
|
-
update: function( options ) {
|
|
236
|
-
var show = true;
|
|
237
|
-
|
|
238
|
-
if ( this.editor.fire( 'notificationUpdate', { notification: this, options: options } ) === false ) {
|
|
239
|
-
// The idea of cancelable event is to let user create his own way of displaying notification, so if
|
|
240
|
-
// `notificationUpdate` event will be canceled there will be no interaction with notification area, but on
|
|
241
|
-
// the other hand the logic should work anyway so object will be updated (including `element` property).
|
|
242
|
-
// Note: we can safely update the element's attributes below, because this element is created inside
|
|
243
|
-
// the constructor. If the notificatinShow event was canceled as well, the element is detached from DOM.
|
|
244
|
-
show = false;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
var element = this.element,
|
|
248
|
-
messageElement = element.findOne( '.cke_notification_message' ),
|
|
249
|
-
progressElement = element.findOne( '.cke_notification_progress' ),
|
|
250
|
-
type = options.type;
|
|
251
|
-
|
|
252
|
-
element.removeAttribute( 'role' );
|
|
253
|
-
|
|
254
|
-
// Change type to progress if `options.progress` is set.
|
|
255
|
-
if ( options.progress && this.type != 'progress' ) {
|
|
256
|
-
type = 'progress';
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if ( type ) {
|
|
260
|
-
element.removeClass( this._getClass() );
|
|
261
|
-
element.removeAttribute( 'aria-label' );
|
|
262
|
-
|
|
263
|
-
this.type = type;
|
|
264
|
-
|
|
265
|
-
element.addClass( this._getClass() );
|
|
266
|
-
element.setAttribute( 'aria-label', this.type );
|
|
267
|
-
|
|
268
|
-
if ( this.type == 'progress' && !progressElement ) {
|
|
269
|
-
progressElement = this._createProgressElement();
|
|
270
|
-
progressElement.insertBefore( messageElement );
|
|
271
|
-
} else if ( this.type != 'progress' && progressElement ) {
|
|
272
|
-
progressElement.remove();
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
if ( options.message !== undefined ) {
|
|
277
|
-
this.message = options.message;
|
|
278
|
-
messageElement.setHtml( this.message );
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
if ( options.progress !== undefined ) {
|
|
282
|
-
this.progress = options.progress;
|
|
283
|
-
|
|
284
|
-
if ( progressElement ) {
|
|
285
|
-
progressElement.setStyle( 'width', this._getPercentageProgress() );
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
if ( show && options.important ) {
|
|
290
|
-
element.setAttribute( 'role', 'alert' );
|
|
291
|
-
|
|
292
|
-
if ( !this.isVisible() ) {
|
|
293
|
-
this.area.add( this );
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
// Overwrite even if it is undefined.
|
|
298
|
-
this.duration = options.duration;
|
|
299
|
-
|
|
300
|
-
this._hideAfterTimeout();
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Removes the notification element from the notification area.
|
|
305
|
-
*
|
|
306
|
-
* Fires the {@link CKEDITOR.editor#notificationHide} event.
|
|
307
|
-
*/
|
|
308
|
-
hide: function() {
|
|
309
|
-
if ( this.editor.fire( 'notificationHide', { notification: this } ) === false ) {
|
|
310
|
-
return;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
this.area.remove( this );
|
|
314
|
-
},
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Returns `true` if the notification is in the notification area.
|
|
318
|
-
*
|
|
319
|
-
* @returns {Boolean} `true` if the notification is in the notification area.
|
|
320
|
-
*/
|
|
321
|
-
isVisible: function() {
|
|
322
|
-
return CKEDITOR.tools.indexOf( this.area.notifications, this ) >= 0;
|
|
323
|
-
},
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Creates the notification DOM element.
|
|
327
|
-
*
|
|
328
|
-
* @private
|
|
329
|
-
* @returns {CKEDITOR.dom.element} Notification DOM element.
|
|
330
|
-
*/
|
|
331
|
-
_createElement: function() {
|
|
332
|
-
var notification = this,
|
|
333
|
-
notificationElement, notificationMessageElement, notificationCloseElement,
|
|
334
|
-
close = this.editor.lang.common.close;
|
|
335
|
-
|
|
336
|
-
notificationElement = new CKEDITOR.dom.element( 'div' );
|
|
337
|
-
notificationElement.addClass( 'cke_notification' );
|
|
338
|
-
notificationElement.addClass( this._getClass() );
|
|
339
|
-
notificationElement.setAttributes( {
|
|
340
|
-
id: this.id,
|
|
341
|
-
role: 'alert',
|
|
342
|
-
'aria-label': this.type
|
|
343
|
-
} );
|
|
344
|
-
|
|
345
|
-
if ( this.type == 'progress' )
|
|
346
|
-
notificationElement.append( this._createProgressElement() );
|
|
347
|
-
|
|
348
|
-
notificationMessageElement = new CKEDITOR.dom.element( 'p' );
|
|
349
|
-
notificationMessageElement.addClass( 'cke_notification_message' );
|
|
350
|
-
notificationMessageElement.setHtml( this.message );
|
|
351
|
-
notificationElement.append( notificationMessageElement );
|
|
352
|
-
|
|
353
|
-
notificationCloseElement = CKEDITOR.dom.element.createFromHtml(
|
|
354
|
-
'<a class="cke_notification_close" href="javascript:void(0)" title="' + close + '" role="button" tabindex="-1">' +
|
|
355
|
-
'<span class="cke_label">X</span>' +
|
|
356
|
-
'</a>' );
|
|
357
|
-
notificationElement.append( notificationCloseElement );
|
|
358
|
-
|
|
359
|
-
notificationCloseElement.on( 'click', function() {
|
|
360
|
-
// Focus editor on close (https://dev.ckeditor.com/ticket/12865)
|
|
361
|
-
notification.editor.focus();
|
|
362
|
-
|
|
363
|
-
notification.hide();
|
|
364
|
-
} );
|
|
365
|
-
|
|
366
|
-
return notificationElement;
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Gets the notification CSS class.
|
|
371
|
-
*
|
|
372
|
-
* @private
|
|
373
|
-
* @returns {String} Notification CSS class.
|
|
374
|
-
*/
|
|
375
|
-
_getClass: function() {
|
|
376
|
-
return ( this.type == 'progress' ) ?
|
|
377
|
-
'cke_notification_info' :
|
|
378
|
-
( 'cke_notification_' + this.type );
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* Creates a progress element for the notification element.
|
|
383
|
-
*
|
|
384
|
-
* @private
|
|
385
|
-
* @returns {CKEDITOR.dom.element} Progress element for the notification element.
|
|
386
|
-
*/
|
|
387
|
-
_createProgressElement: function() {
|
|
388
|
-
var element = new CKEDITOR.dom.element( 'span' );
|
|
389
|
-
element.addClass( 'cke_notification_progress' );
|
|
390
|
-
element.setStyle( 'width', this._getPercentageProgress() );
|
|
391
|
-
return element;
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Gets the progress as a percentage (ex. `0.3` -> `30%`).
|
|
396
|
-
*
|
|
397
|
-
* @private
|
|
398
|
-
* @returns {String} Progress as a percentage.
|
|
399
|
-
*/
|
|
400
|
-
_getPercentageProgress: function() {
|
|
401
|
-
return Math.round( ( this.progress || 0 ) * 100 ) + '%';
|
|
402
|
-
},
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* Hides the notification after a timeout.
|
|
406
|
-
*
|
|
407
|
-
* @private
|
|
408
|
-
*/
|
|
409
|
-
_hideAfterTimeout: function() {
|
|
410
|
-
var notification = this,
|
|
411
|
-
duration;
|
|
412
|
-
|
|
413
|
-
if ( this._hideTimeoutId ) {
|
|
414
|
-
clearTimeout( this._hideTimeoutId );
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
if ( typeof this.duration == 'number' ) {
|
|
418
|
-
duration = this.duration;
|
|
419
|
-
} else if ( this.type == 'info' || this.type == 'success' ) {
|
|
420
|
-
duration = ( typeof this.editor.config.notification_duration == 'number' ) ?
|
|
421
|
-
this.editor.config.notification_duration :
|
|
422
|
-
5000;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
if ( duration ) {
|
|
426
|
-
notification._hideTimeoutId = setTimeout( function() {
|
|
427
|
-
notification.hide();
|
|
428
|
-
}, duration );
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Notification area is an area where all notifications are put. The area is laid out dynamically.
|
|
435
|
-
* When the first notification is added, the area is shown and all listeners are added.
|
|
436
|
-
* When the last notification is removed, the area is hidden and all listeners are removed.
|
|
437
|
-
*
|
|
438
|
-
* @since 4.5.0
|
|
439
|
-
* @private
|
|
440
|
-
* @class CKEDITOR.plugins.notification.area
|
|
441
|
-
* @constructor
|
|
442
|
-
* @param {CKEDITOR.editor} editor The editor instance.
|
|
443
|
-
*/
|
|
444
|
-
function Area( editor ) {
|
|
445
|
-
var that = this;
|
|
446
|
-
|
|
447
|
-
this.editor = editor;
|
|
448
|
-
this.notifications = [];
|
|
449
|
-
this.element = this._createElement();
|
|
450
|
-
this._uiBuffer = CKEDITOR.tools.eventsBuffer( 10, this._layout, this );
|
|
451
|
-
this._changeBuffer = CKEDITOR.tools.eventsBuffer( 500, this._layout, this );
|
|
452
|
-
|
|
453
|
-
editor.on( 'destroy', function() {
|
|
454
|
-
that._removeListeners();
|
|
455
|
-
that.element.remove();
|
|
456
|
-
} );
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* The editor instance.
|
|
461
|
-
*
|
|
462
|
-
* @readonly
|
|
463
|
-
* @property {CKEDITOR.editor} editor
|
|
464
|
-
*/
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* The array of added notifications.
|
|
468
|
-
*
|
|
469
|
-
* @readonly
|
|
470
|
-
* @property {Array} notifications
|
|
471
|
-
*/
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* Notification area DOM element. This element is created when the area object is created. It will be attached to the document
|
|
475
|
-
* when the first notification is added and removed when the last notification is removed.
|
|
476
|
-
*
|
|
477
|
-
* @readonly
|
|
478
|
-
* @property {CKEDITOR.dom.element} element
|
|
479
|
-
*/
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Notification width. Cached for performance reasons.
|
|
483
|
-
*
|
|
484
|
-
* @private
|
|
485
|
-
* @property {CKEDITOR.dom.element} _notificationWidth
|
|
486
|
-
*/
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Notification margin. Cached for performance reasons.
|
|
490
|
-
*
|
|
491
|
-
* @private
|
|
492
|
-
* @property {CKEDITOR.dom.element} _notificationMargin
|
|
493
|
-
*/
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* Event buffer object for UI events to optimize performance.
|
|
497
|
-
*
|
|
498
|
-
* @private
|
|
499
|
-
* @property {Object} _uiBuffer
|
|
500
|
-
*/
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Event buffer object for editor change events to optimize performance.
|
|
504
|
-
*
|
|
505
|
-
* @private
|
|
506
|
-
* @property {Object} _changeBuffer
|
|
507
|
-
*/
|
|
508
|
-
|
|
509
|
-
Area.prototype = {
|
|
510
|
-
/**
|
|
511
|
-
* Adds the notification to the notification area. If it is the first notification, the area will also be attached to
|
|
512
|
-
* the document and listeners will be attached.
|
|
513
|
-
*
|
|
514
|
-
* Note that the proper way to show a notification is to call the {@link CKEDITOR.plugins.notification#show} method.
|
|
515
|
-
*
|
|
516
|
-
* @param {CKEDITOR.plugins.notification} notification Notification to add.
|
|
517
|
-
*/
|
|
518
|
-
add: function( notification ) {
|
|
519
|
-
this.notifications.push( notification );
|
|
520
|
-
|
|
521
|
-
this.element.append( notification.element );
|
|
522
|
-
|
|
523
|
-
if ( this.element.getChildCount() == 1 ) {
|
|
524
|
-
CKEDITOR.document.getBody().append( this.element );
|
|
525
|
-
this._attachListeners();
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
this._layout();
|
|
529
|
-
},
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Removes the notification from the notification area. If it is the last notification, the area will also be
|
|
533
|
-
* detached from the document and listeners will be detached.
|
|
534
|
-
*
|
|
535
|
-
* Note that the proper way to hide a notification is to call the {@link CKEDITOR.plugins.notification#hide} method.
|
|
536
|
-
*
|
|
537
|
-
* @param {CKEDITOR.plugins.notification} notification Notification to remove.
|
|
538
|
-
*/
|
|
539
|
-
remove: function( notification ) {
|
|
540
|
-
var i = CKEDITOR.tools.indexOf( this.notifications, notification );
|
|
541
|
-
|
|
542
|
-
if ( i < 0 ) {
|
|
543
|
-
return;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
this.notifications.splice( i, 1 );
|
|
547
|
-
|
|
548
|
-
notification.element.remove();
|
|
549
|
-
|
|
550
|
-
if ( !this.element.getChildCount() ) {
|
|
551
|
-
this._removeListeners();
|
|
552
|
-
this.element.remove();
|
|
553
|
-
}
|
|
554
|
-
},
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Creates the notification area element.
|
|
558
|
-
*
|
|
559
|
-
* @private
|
|
560
|
-
* @returns {CKEDITOR.dom.element} Notification area element.
|
|
561
|
-
*/
|
|
562
|
-
_createElement: function() {
|
|
563
|
-
var editor = this.editor,
|
|
564
|
-
config = editor.config,
|
|
565
|
-
notificationArea = new CKEDITOR.dom.element( 'div' );
|
|
566
|
-
|
|
567
|
-
notificationArea.addClass( 'cke_notifications_area' );
|
|
568
|
-
notificationArea.setAttribute( 'id', 'cke_notifications_area_' + editor.name );
|
|
569
|
-
notificationArea.setStyle( 'z-index', config.baseFloatZIndex - 2 );
|
|
570
|
-
|
|
571
|
-
return notificationArea;
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Attaches listeners to the notification area.
|
|
576
|
-
*
|
|
577
|
-
* @private
|
|
578
|
-
*/
|
|
579
|
-
_attachListeners: function() {
|
|
580
|
-
var win = CKEDITOR.document.getWindow(),
|
|
581
|
-
editor = this.editor;
|
|
582
|
-
|
|
583
|
-
win.on( 'scroll', this._uiBuffer.input );
|
|
584
|
-
win.on( 'resize', this._uiBuffer.input );
|
|
585
|
-
editor.on( 'change', this._changeBuffer.input );
|
|
586
|
-
editor.on( 'floatingSpaceLayout', this._layout, this, null, 20 );
|
|
587
|
-
editor.on( 'blur', this._layout, this, null, 20 );
|
|
588
|
-
},
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* Detaches listeners from the notification area.
|
|
592
|
-
*
|
|
593
|
-
* @private
|
|
594
|
-
*/
|
|
595
|
-
_removeListeners: function() {
|
|
596
|
-
var win = CKEDITOR.document.getWindow(),
|
|
597
|
-
editor = this.editor;
|
|
598
|
-
|
|
599
|
-
win.removeListener( 'scroll', this._uiBuffer.input );
|
|
600
|
-
win.removeListener( 'resize', this._uiBuffer.input );
|
|
601
|
-
editor.removeListener( 'change', this._changeBuffer.input );
|
|
602
|
-
editor.removeListener( 'floatingSpaceLayout', this._layout );
|
|
603
|
-
editor.removeListener( 'blur', this._layout );
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
/**
|
|
607
|
-
* Sets the position of the notification area based on the editor content, toolbar as well as
|
|
608
|
-
* viewport position and dimensions.
|
|
609
|
-
*
|
|
610
|
-
* @private
|
|
611
|
-
*/
|
|
612
|
-
_layout: function() {
|
|
613
|
-
var area = this.element,
|
|
614
|
-
editor = this.editor,
|
|
615
|
-
contentsRect = editor.ui.contentsElement.getClientRect(),
|
|
616
|
-
contentsPos = editor.ui.contentsElement.getDocumentPosition(),
|
|
617
|
-
top,
|
|
618
|
-
topRect,
|
|
619
|
-
areaRect = area.getClientRect(),
|
|
620
|
-
notification,
|
|
621
|
-
notificationWidth = this._notificationWidth,
|
|
622
|
-
notificationMargin = this._notificationMargin,
|
|
623
|
-
win = CKEDITOR.document.getWindow(),
|
|
624
|
-
scrollPos = win.getScrollPosition(),
|
|
625
|
-
viewRect = win.getViewPaneSize(),
|
|
626
|
-
body = CKEDITOR.document.getBody(),
|
|
627
|
-
bodyPos = body.getDocumentPosition(),
|
|
628
|
-
cssLength = CKEDITOR.tools.cssLength;
|
|
629
|
-
|
|
630
|
-
// Cache for optimization
|
|
631
|
-
if ( !notificationWidth || !notificationMargin ) {
|
|
632
|
-
notification = this.element.getChild( 0 );
|
|
633
|
-
notificationWidth = this._notificationWidth = notification.getClientRect().width;
|
|
634
|
-
notificationMargin = this._notificationMargin =
|
|
635
|
-
parseInt( notification.getComputedStyle( 'margin-left' ), 10 ) +
|
|
636
|
-
parseInt( notification.getComputedStyle( 'margin-right' ), 10 );
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
// Check if toolbar exist and if so, then assign values to it (#491).
|
|
640
|
-
if ( editor.toolbar ) {
|
|
641
|
-
top = editor.ui.space( editor.config.toolbarLocation );
|
|
642
|
-
topRect = top.getClientRect();
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
// --------------------------------------- Horizontal layout ----------------------------------------
|
|
647
|
-
|
|
648
|
-
// +---Viewport-------------------------------+ +---Viewport-------------------------------+
|
|
649
|
-
// | | | |
|
|
650
|
-
// | +---Toolbar----------------------------+ | | +---Content----------------------------+ |
|
|
651
|
-
// | | | | | | | |
|
|
652
|
-
// | +---Content----------------------------+ | | | | |
|
|
653
|
-
// | | | | | +---Toolbar----------------------+ | |
|
|
654
|
-
// | | +------Notification------+ | | | | | | |
|
|
655
|
-
// | | | | OR | +--------------------------------+ | |
|
|
656
|
-
// | | | | | | | |
|
|
657
|
-
// | | | | | | +------Notification------+ | |
|
|
658
|
-
// | | | | | | | |
|
|
659
|
-
// | | | | | | | |
|
|
660
|
-
// | +--------------------------------------+ | | +--------------------------------------+ |
|
|
661
|
-
// +------------------------------------------+ +------------------------------------------+
|
|
662
|
-
if ( top && top.isVisible() &&
|
|
663
|
-
topRect.bottom > contentsRect.top &&
|
|
664
|
-
topRect.bottom < contentsRect.bottom - areaRect.height ) {
|
|
665
|
-
setBelowToolbar();
|
|
666
|
-
|
|
667
|
-
// +---Viewport-------------------------------+
|
|
668
|
-
// | |
|
|
669
|
-
// | +---Content----------------------------+ |
|
|
670
|
-
// | | | |
|
|
671
|
-
// | | +------Notification------+ | |
|
|
672
|
-
// | | | |
|
|
673
|
-
// | | | |
|
|
674
|
-
// | | | |
|
|
675
|
-
// | +--------------------------------------+ |
|
|
676
|
-
// | |
|
|
677
|
-
// +------------------------------------------+
|
|
678
|
-
} else if ( contentsRect.top > 0 ) {
|
|
679
|
-
setTopStandard();
|
|
680
|
-
|
|
681
|
-
// +---Content----------------------------+
|
|
682
|
-
// | |
|
|
683
|
-
// +---Viewport-------------------------------+
|
|
684
|
-
// | | | |
|
|
685
|
-
// | | +------Notification------+ | |
|
|
686
|
-
// | | | |
|
|
687
|
-
// | | | |
|
|
688
|
-
// | | | |
|
|
689
|
-
// | +--------------------------------------+ |
|
|
690
|
-
// | |
|
|
691
|
-
// +------------------------------------------+
|
|
692
|
-
} else if ( contentsPos.y + contentsRect.height - areaRect.height > scrollPos.y ) {
|
|
693
|
-
setTopFixed();
|
|
694
|
-
|
|
695
|
-
// +---Content----------------------------+ +---Content----------------------------+
|
|
696
|
-
// | | | |
|
|
697
|
-
// | | | |
|
|
698
|
-
// | | | +------Notification------+ |
|
|
699
|
-
// | | | |
|
|
700
|
-
// | | OR +--------------------------------------+
|
|
701
|
-
// +---Viewport-------------------------------+
|
|
702
|
-
// | | +------Notification------+ | | +---Viewport-------------------------------+
|
|
703
|
-
// | | | | | |
|
|
704
|
-
// | +--------------------------------------+ | | |
|
|
705
|
-
// | | | |
|
|
706
|
-
// +------------------------------------------+ +------------------------------------------+
|
|
707
|
-
} else {
|
|
708
|
-
setBottom();
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
function setTopStandard() {
|
|
712
|
-
area.setStyles( {
|
|
713
|
-
position: 'absolute',
|
|
714
|
-
top: cssLength( contentsPos.y )
|
|
715
|
-
} );
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
function setBelowToolbar() {
|
|
719
|
-
area.setStyles( {
|
|
720
|
-
position: 'fixed',
|
|
721
|
-
top: cssLength( topRect.bottom )
|
|
722
|
-
} );
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
function setTopFixed() {
|
|
726
|
-
area.setStyles( {
|
|
727
|
-
position: 'fixed',
|
|
728
|
-
top: 0
|
|
729
|
-
} );
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
function setBottom() {
|
|
733
|
-
area.setStyles( {
|
|
734
|
-
position: 'absolute',
|
|
735
|
-
top: cssLength( contentsPos.y + contentsRect.height - areaRect.height )
|
|
736
|
-
} );
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
// ---------------------------------------- Vertical layout -----------------------------------------
|
|
740
|
-
|
|
741
|
-
var leftBase = area.getStyle( 'position' ) == 'fixed' ?
|
|
742
|
-
contentsRect.left :
|
|
743
|
-
body.getComputedStyle( 'position' ) != 'static' ? contentsPos.x - bodyPos.x : contentsPos.x;
|
|
744
|
-
|
|
745
|
-
// Content is narrower than notification
|
|
746
|
-
if ( contentsRect.width < notificationWidth + notificationMargin ) {
|
|
747
|
-
|
|
748
|
-
// +---Viewport-------------------------------+
|
|
749
|
-
// | |
|
|
750
|
-
// | +---Content------------+ |
|
|
751
|
-
// | | | |
|
|
752
|
-
// | +------Notification------+ | |
|
|
753
|
-
// | | | |
|
|
754
|
-
// | +----------------------+ |
|
|
755
|
-
// | |
|
|
756
|
-
// +------------------------------------------+
|
|
757
|
-
if ( contentsPos.x + notificationWidth + notificationMargin > scrollPos.x + viewRect.width ) {
|
|
758
|
-
setRight();
|
|
759
|
-
|
|
760
|
-
// +---Viewport-------------------------------+ +---Viewport--------------------------+
|
|
761
|
-
// | | | |
|
|
762
|
-
// | +---Content------------+ | +---Content------------+ |
|
|
763
|
-
// | | | | | | | |
|
|
764
|
-
// | | +------Notification------+ | OR | +------Notification------+ |
|
|
765
|
-
// | | | | | | | |
|
|
766
|
-
// | +----------------------+ | +----------------------+ |
|
|
767
|
-
// | | | |
|
|
768
|
-
// +------------------------------------------+ +-------------------------------------+
|
|
769
|
-
} else {
|
|
770
|
-
setLeft();
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
// Content is wider than notification.
|
|
774
|
-
} else {
|
|
775
|
-
|
|
776
|
-
// +--+Viewport+------------------------+
|
|
777
|
-
// | |
|
|
778
|
-
// | +---Content-----------------------------------------+
|
|
779
|
-
// | | | |
|
|
780
|
-
// | | +-----+Notification+-----+ |
|
|
781
|
-
// | | | |
|
|
782
|
-
// | | | |
|
|
783
|
-
// | | | |
|
|
784
|
-
// | +---------------------------------------------------+
|
|
785
|
-
// | |
|
|
786
|
-
// +------------------------------------+
|
|
787
|
-
if ( contentsPos.x + notificationWidth + notificationMargin > scrollPos.x + viewRect.width ) {
|
|
788
|
-
setLeft();
|
|
789
|
-
|
|
790
|
-
// +---Viewport-------------------------+
|
|
791
|
-
// | |
|
|
792
|
-
// | +---Content----------------------------------------------+
|
|
793
|
-
// | | | |
|
|
794
|
-
// | | +------Notification------+ | |
|
|
795
|
-
// | | | |
|
|
796
|
-
// | | | |
|
|
797
|
-
// | +--------------------------------------------------------+
|
|
798
|
-
// | |
|
|
799
|
-
// +------------------------------------+
|
|
800
|
-
} else if ( contentsPos.x + contentsRect.width / 2 +
|
|
801
|
-
notificationWidth / 2 + notificationMargin > scrollPos.x + viewRect.width ) {
|
|
802
|
-
setRightFixed();
|
|
803
|
-
|
|
804
|
-
// +---Viewport-------------------------+
|
|
805
|
-
// | |
|
|
806
|
-
// +---Content----------------------------+ |
|
|
807
|
-
// | | | |
|
|
808
|
-
// | +------Notification------+ | |
|
|
809
|
-
// | | | |
|
|
810
|
-
// | | | |
|
|
811
|
-
// +--------------------------------------+ |
|
|
812
|
-
// | |
|
|
813
|
-
// +------------------------------------+
|
|
814
|
-
} else if ( contentsRect.left + contentsRect.width - notificationWidth - notificationMargin < 0 ) {
|
|
815
|
-
setRight();
|
|
816
|
-
|
|
817
|
-
// +---Viewport-------------------------+
|
|
818
|
-
// | |
|
|
819
|
-
// +---Content---------------------------------------------+ |
|
|
820
|
-
// | | | |
|
|
821
|
-
// | | +------Notification------+ | |
|
|
822
|
-
// | | | |
|
|
823
|
-
// | | | |
|
|
824
|
-
// +-------------------------------------------------------+ |
|
|
825
|
-
// | |
|
|
826
|
-
// +------------------------------------+
|
|
827
|
-
} else if ( contentsRect.left + contentsRect.width / 2 - notificationWidth / 2 < 0 ) {
|
|
828
|
-
setLeftFixed();
|
|
829
|
-
|
|
830
|
-
// +---Viewport-------------------------+
|
|
831
|
-
// | |
|
|
832
|
-
// | +---Content----------------------+ |
|
|
833
|
-
// | | | |
|
|
834
|
-
// | | +-----Notification-----+ | |
|
|
835
|
-
// | | | |
|
|
836
|
-
// | | | |
|
|
837
|
-
// | +--------------------------------+ |
|
|
838
|
-
// | |
|
|
839
|
-
// +------------------------------------+
|
|
840
|
-
} else {
|
|
841
|
-
setCenter();
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
function setLeft() {
|
|
846
|
-
area.setStyle( 'left', cssLength( leftBase ) );
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
function setLeftFixed() {
|
|
850
|
-
area.setStyle( 'left', cssLength( leftBase - contentsPos.x + scrollPos.x ) );
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
function setCenter() {
|
|
854
|
-
area.setStyle( 'left', cssLength( leftBase + contentsRect.width / 2 - notificationWidth / 2 - notificationMargin / 2 ) );
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
function setRight() {
|
|
858
|
-
area.setStyle( 'left', cssLength( leftBase + contentsRect.width - notificationWidth - notificationMargin ) );
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
function setRightFixed() {
|
|
862
|
-
area.setStyle( 'left', cssLength( leftBase - contentsPos.x + scrollPos.x + viewRect.width -
|
|
863
|
-
notificationWidth - notificationMargin ) );
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
CKEDITOR.plugins.notification = Notification;
|
|
869
|
-
|
|
870
|
-
/**
|
|
871
|
-
* After how many milliseconds the notification of the `info` and `success`
|
|
872
|
-
* {@link CKEDITOR.plugins.notification#type type} should close automatically.
|
|
873
|
-
* `0` means that notifications will not close automatically.
|
|
874
|
-
* Note that `warning` and `progress` notifications will never close automatically.
|
|
875
|
-
*
|
|
876
|
-
* Refer to the [Notifications](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_notifications.html) article
|
|
877
|
-
* for more information about this feature.
|
|
878
|
-
*
|
|
879
|
-
* @since 4.5.0
|
|
880
|
-
* @cfg {Number} [notification_duration=5000]
|
|
881
|
-
* @member CKEDITOR.config
|
|
882
|
-
*/
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* Event fired when the {@link CKEDITOR.plugins.notification#show} method is called, before the
|
|
886
|
-
* notification is shown. If this event is canceled, the notification will not be shown.
|
|
887
|
-
*
|
|
888
|
-
* Using this event allows you to fully customize how a notification will be shown. It may be used to integrate
|
|
889
|
-
* the CKEditor notification system with your web page notifications.
|
|
890
|
-
*
|
|
891
|
-
* @since 4.5.0
|
|
892
|
-
* @event notificationShow
|
|
893
|
-
* @member CKEDITOR.editor
|
|
894
|
-
* @param data
|
|
895
|
-
* @param {CKEDITOR.plugins.notification} data.notification Notification which will be shown.
|
|
896
|
-
* @param {CKEDITOR.editor} editor The editor instance.
|
|
897
|
-
*/
|
|
898
|
-
|
|
899
|
-
/**
|
|
900
|
-
* Event fired when the {@link CKEDITOR.plugins.notification#update} method is called, before the
|
|
901
|
-
* notification is updated. If this event is canceled, the notification will not be shown even if the update was important,
|
|
902
|
-
* but the object will be updated anyway. Note that canceling this event does not prevent updating {@link #element}
|
|
903
|
-
* attributes, but if {@link #notificationShow} was canceled as well, this element is detached from the DOM.
|
|
904
|
-
*
|
|
905
|
-
* Using this event allows you to fully customize how a notification will be updated. It may be used to integrate
|
|
906
|
-
* the CKEditor notification system with your web page notifications.
|
|
907
|
-
*
|
|
908
|
-
* @since 4.5.0
|
|
909
|
-
* @event notificationUpdate
|
|
910
|
-
* @member CKEDITOR.editor
|
|
911
|
-
* @param data
|
|
912
|
-
* @param {CKEDITOR.plugins.notification} data.notification Notification which will be updated.
|
|
913
|
-
* Note that it contains the data that has not been updated yet.
|
|
914
|
-
* @param {Object} data.options Update options, see {@link CKEDITOR.plugins.notification#update}.
|
|
915
|
-
* @param {CKEDITOR.editor} editor The editor instance.
|
|
916
|
-
*/
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* Event fired when the {@link CKEDITOR.plugins.notification#hide} method is called, before the
|
|
920
|
-
* notification is hidden. If this event is canceled, the notification will not be hidden.
|
|
921
|
-
*
|
|
922
|
-
* Using this event allows you to fully customize how a notification will be hidden. It may be used to integrate
|
|
923
|
-
* the CKEditor notification system with your web page notifications.
|
|
924
|
-
*
|
|
925
|
-
* @since 4.5.0
|
|
926
|
-
* @event notificationHide
|
|
927
|
-
* @member CKEDITOR.editor
|
|
928
|
-
* @param data
|
|
929
|
-
* @param {CKEDITOR.plugins.notification} data.notification Notification which will be hidden.
|
|
930
|
-
* @param {CKEDITOR.editor} editor The editor instance.
|
|
931
|
-
*/
|
|
932
|
-
|
|
933
|
-
} )();
|