eztech-core-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/index.css +405 -0
- package/ckeditor/CHANGES.md +2339 -0
- package/ckeditor/LICENSE.md +1444 -0
- package/ckeditor/MongolianScript.ttf +0 -0
- package/ckeditor/README.md +39 -0
- package/ckeditor/SECURITY.md +10 -0
- package/ckeditor/adapters/jquery.js +10 -0
- package/ckeditor/bender-runner.config.json +16 -0
- package/ckeditor/build-config.js +193 -0
- package/ckeditor/ckcontent.css +71 -0
- package/ckeditor/ckeditor.js +1446 -0
- package/ckeditor/cmdashitseden.ttf +0 -0
- package/ckeditor/config.js +21 -0
- package/ckeditor/contents.css +220 -0
- package/ckeditor/lang/af.js +5 -0
- package/ckeditor/lang/ar.js +5 -0
- package/ckeditor/lang/az.js +5 -0
- package/ckeditor/lang/bg.js +5 -0
- package/ckeditor/lang/bn.js +5 -0
- package/ckeditor/lang/bs.js +5 -0
- package/ckeditor/lang/ca.js +5 -0
- package/ckeditor/lang/cs.js +5 -0
- package/ckeditor/lang/cy.js +5 -0
- package/ckeditor/lang/da.js +5 -0
- package/ckeditor/lang/de-ch.js +5 -0
- package/ckeditor/lang/de.js +5 -0
- package/ckeditor/lang/el.js +5 -0
- package/ckeditor/lang/en-au.js +5 -0
- package/ckeditor/lang/en-ca.js +5 -0
- package/ckeditor/lang/en-gb.js +5 -0
- package/ckeditor/lang/en.js +5 -0
- package/ckeditor/lang/eo.js +5 -0
- package/ckeditor/lang/es-mx.js +5 -0
- package/ckeditor/lang/es.js +5 -0
- package/ckeditor/lang/et.js +5 -0
- package/ckeditor/lang/eu.js +5 -0
- package/ckeditor/lang/fa.js +5 -0
- package/ckeditor/lang/fi.js +5 -0
- package/ckeditor/lang/fo.js +5 -0
- package/ckeditor/lang/fr-ca.js +5 -0
- package/ckeditor/lang/fr.js +5 -0
- package/ckeditor/lang/gl.js +5 -0
- package/ckeditor/lang/gu.js +5 -0
- package/ckeditor/lang/he.js +5 -0
- package/ckeditor/lang/hi.js +5 -0
- package/ckeditor/lang/hr.js +5 -0
- package/ckeditor/lang/hu.js +5 -0
- package/ckeditor/lang/id.js +5 -0
- package/ckeditor/lang/is.js +5 -0
- package/ckeditor/lang/it.js +5 -0
- package/ckeditor/lang/ja.js +5 -0
- package/ckeditor/lang/ka.js +5 -0
- package/ckeditor/lang/km.js +5 -0
- package/ckeditor/lang/ko.js +5 -0
- package/ckeditor/lang/ku.js +5 -0
- package/ckeditor/lang/lt.js +5 -0
- package/ckeditor/lang/lv.js +5 -0
- package/ckeditor/lang/mk.js +5 -0
- package/ckeditor/lang/mn.js +5 -0
- package/ckeditor/lang/ms.js +5 -0
- package/ckeditor/lang/nb.js +5 -0
- package/ckeditor/lang/nl.js +5 -0
- package/ckeditor/lang/no.js +5 -0
- package/ckeditor/lang/oc.js +5 -0
- package/ckeditor/lang/pl.js +5 -0
- package/ckeditor/lang/pt-br.js +5 -0
- package/ckeditor/lang/pt.js +5 -0
- package/ckeditor/lang/ro.js +5 -0
- package/ckeditor/lang/ru.js +5 -0
- package/ckeditor/lang/si.js +5 -0
- package/ckeditor/lang/sk.js +5 -0
- package/ckeditor/lang/sl.js +5 -0
- package/ckeditor/lang/sq.js +5 -0
- package/ckeditor/lang/sr-latn.js +5 -0
- package/ckeditor/lang/sr.js +5 -0
- package/ckeditor/lang/sv.js +5 -0
- package/ckeditor/lang/th.js +5 -0
- package/ckeditor/lang/tr.js +5 -0
- package/ckeditor/lang/tt.js +5 -0
- package/ckeditor/lang/ug.js +5 -0
- package/ckeditor/lang/uk.js +5 -0
- package/ckeditor/lang/vi.js +5 -0
- package/ckeditor/lang/zh-cn.js +5 -0
- package/ckeditor/lang/zh.js +5 -0
- package/ckeditor/monbaiti.ttf +0 -0
- package/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- package/ckeditor/plugins/about/dialogs/about.js +8 -0
- package/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- package/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- package/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- package/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
- package/ckeditor/plugins/colordialog/dialogs/colordialog.js +14 -0
- package/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
- package/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
- package/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
- package/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- package/ckeditor/plugins/dialog/styles/dialog.css +18 -0
- package/ckeditor/plugins/div/dialogs/div.js +10 -0
- package/ckeditor/plugins/find/dialogs/find.js +26 -0
- package/ckeditor/plugins/forms/dialogs/button.js +8 -0
- package/ckeditor/plugins/forms/dialogs/checkbox.js +9 -0
- package/ckeditor/plugins/forms/dialogs/form.js +8 -0
- package/ckeditor/plugins/forms/dialogs/hiddenfield.js +7 -0
- package/ckeditor/plugins/forms/dialogs/radio.js +9 -0
- package/ckeditor/plugins/forms/dialogs/select.js +21 -0
- package/ckeditor/plugins/forms/dialogs/textarea.js +9 -0
- package/ckeditor/plugins/forms/dialogs/textfield.js +11 -0
- package/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- package/ckeditor/plugins/icons.png +0 -0
- package/ckeditor/plugins/icons_hidpi.png +0 -0
- package/ckeditor/plugins/iframe/dialogs/iframe.js +11 -0
- package/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- package/ckeditor/plugins/image/dialogs/image.js +44 -0
- package/ckeditor/plugins/image/images/noimage.png +0 -0
- package/ckeditor/plugins/indent/dev/indent.html +285 -0
- package/ckeditor/plugins/indent/icons/hidpi/indent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/indent.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/outdent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/outdent.png +0 -0
- package/ckeditor/plugins/indent/icons/indent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/indent.png +0 -0
- package/ckeditor/plugins/indent/icons/outdent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/outdent.png +0 -0
- package/ckeditor/plugins/indent/lang/af.js +8 -0
- package/ckeditor/plugins/indent/lang/ar.js +8 -0
- package/ckeditor/plugins/indent/lang/az.js +8 -0
- package/ckeditor/plugins/indent/lang/bg.js +8 -0
- package/ckeditor/plugins/indent/lang/bn.js +8 -0
- package/ckeditor/plugins/indent/lang/bs.js +8 -0
- package/ckeditor/plugins/indent/lang/ca.js +8 -0
- package/ckeditor/plugins/indent/lang/cs.js +8 -0
- package/ckeditor/plugins/indent/lang/cy.js +8 -0
- package/ckeditor/plugins/indent/lang/da.js +8 -0
- package/ckeditor/plugins/indent/lang/de-ch.js +8 -0
- package/ckeditor/plugins/indent/lang/de.js +8 -0
- package/ckeditor/plugins/indent/lang/el.js +8 -0
- package/ckeditor/plugins/indent/lang/en-au.js +8 -0
- package/ckeditor/plugins/indent/lang/en-ca.js +8 -0
- package/ckeditor/plugins/indent/lang/en-gb.js +8 -0
- package/ckeditor/plugins/indent/lang/en.js +8 -0
- package/ckeditor/plugins/indent/lang/eo.js +8 -0
- package/ckeditor/plugins/indent/lang/es-mx.js +8 -0
- package/ckeditor/plugins/indent/lang/es.js +8 -0
- package/ckeditor/plugins/indent/lang/et.js +8 -0
- package/ckeditor/plugins/indent/lang/eu.js +8 -0
- package/ckeditor/plugins/indent/lang/fa.js +8 -0
- package/ckeditor/plugins/indent/lang/fi.js +8 -0
- package/ckeditor/plugins/indent/lang/fo.js +8 -0
- package/ckeditor/plugins/indent/lang/fr-ca.js +8 -0
- package/ckeditor/plugins/indent/lang/fr.js +8 -0
- package/ckeditor/plugins/indent/lang/gl.js +8 -0
- package/ckeditor/plugins/indent/lang/gu.js +8 -0
- package/ckeditor/plugins/indent/lang/he.js +8 -0
- package/ckeditor/plugins/indent/lang/hi.js +8 -0
- package/ckeditor/plugins/indent/lang/hr.js +8 -0
- package/ckeditor/plugins/indent/lang/hu.js +8 -0
- package/ckeditor/plugins/indent/lang/id.js +8 -0
- package/ckeditor/plugins/indent/lang/is.js +8 -0
- package/ckeditor/plugins/indent/lang/it.js +8 -0
- package/ckeditor/plugins/indent/lang/ja.js +8 -0
- package/ckeditor/plugins/indent/lang/ka.js +8 -0
- package/ckeditor/plugins/indent/lang/km.js +8 -0
- package/ckeditor/plugins/indent/lang/ko.js +8 -0
- package/ckeditor/plugins/indent/lang/ku.js +8 -0
- package/ckeditor/plugins/indent/lang/lt.js +8 -0
- package/ckeditor/plugins/indent/lang/lv.js +8 -0
- package/ckeditor/plugins/indent/lang/mk.js +8 -0
- package/ckeditor/plugins/indent/lang/mn.js +8 -0
- package/ckeditor/plugins/indent/lang/ms.js +8 -0
- package/ckeditor/plugins/indent/lang/nb.js +8 -0
- package/ckeditor/plugins/indent/lang/nl.js +8 -0
- package/ckeditor/plugins/indent/lang/no.js +8 -0
- package/ckeditor/plugins/indent/lang/oc.js +8 -0
- package/ckeditor/plugins/indent/lang/pl.js +8 -0
- package/ckeditor/plugins/indent/lang/pt-br.js +8 -0
- package/ckeditor/plugins/indent/lang/pt.js +8 -0
- package/ckeditor/plugins/indent/lang/ro.js +8 -0
- package/ckeditor/plugins/indent/lang/ru.js +8 -0
- package/ckeditor/plugins/indent/lang/si.js +8 -0
- package/ckeditor/plugins/indent/lang/sk.js +8 -0
- package/ckeditor/plugins/indent/lang/sl.js +8 -0
- package/ckeditor/plugins/indent/lang/sq.js +8 -0
- package/ckeditor/plugins/indent/lang/sr-latn.js +8 -0
- package/ckeditor/plugins/indent/lang/sr.js +8 -0
- package/ckeditor/plugins/indent/lang/sv.js +8 -0
- package/ckeditor/plugins/indent/lang/th.js +8 -0
- package/ckeditor/plugins/indent/lang/tr.js +8 -0
- package/ckeditor/plugins/indent/lang/tt.js +8 -0
- package/ckeditor/plugins/indent/lang/ug.js +8 -0
- package/ckeditor/plugins/indent/lang/uk.js +8 -0
- package/ckeditor/plugins/indent/lang/vi.js +8 -0
- package/ckeditor/plugins/indent/lang/zh-cn.js +8 -0
- package/ckeditor/plugins/indent/lang/zh.js +8 -0
- package/ckeditor/plugins/indent/plugin.js +461 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyblock.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifycenter.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyleft.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyright.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyblock.png +0 -0
- package/ckeditor/plugins/justify/icons/justifycenter.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyleft.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyright.png +0 -0
- package/ckeditor/plugins/justify/plugin.js +269 -0
- package/ckeditor/plugins/lineheight/LICENSE +22 -0
- package/ckeditor/plugins/lineheight/README.md +2 -0
- package/ckeditor/plugins/lineheight/lang/LANG.js +3 -0
- package/ckeditor/plugins/lineheight/lang/ar.js +3 -0
- package/ckeditor/plugins/lineheight/lang/de.js +3 -0
- package/ckeditor/plugins/lineheight/lang/en.js +3 -0
- package/ckeditor/plugins/lineheight/lang/es.js +3 -0
- package/ckeditor/plugins/lineheight/lang/fr.js +3 -0
- package/ckeditor/plugins/lineheight/lang/ko.js +3 -0
- package/ckeditor/plugins/lineheight/lang/pt.js +3 -0
- package/ckeditor/plugins/lineheight/plugin.js +81 -0
- package/ckeditor/plugins/lineheight/readme.txt +30 -0
- package/ckeditor/plugins/link/dialogs/anchor.js +9 -0
- package/ckeditor/plugins/link/dialogs/link.js +30 -0
- package/ckeditor/plugins/link/images/anchor.png +0 -0
- package/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- package/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- package/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- package/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- package/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- package/ckeditor/plugins/magicline/images/icon.png +0 -0
- package/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- package/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
- package/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
- package/ckeditor/plugins/pastefromword/filter/default.js +43 -0
- package/ckeditor/plugins/pastetools/filter/common.js +24 -0
- package/ckeditor/plugins/pastetools/filter/image.js +12 -0
- package/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
- package/ckeditor/plugins/preview/preview.html +13 -0
- package/ckeditor/plugins/preview/styles/screen.css +10 -0
- package/ckeditor/plugins/scayt/CHANGELOG.md +4 -0
- package/ckeditor/plugins/scayt/LICENSE.md +28 -0
- package/ckeditor/plugins/scayt/README.md +81 -0
- package/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
- package/ckeditor/plugins/scayt/dialogs/options.js +32 -0
- package/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- package/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
- package/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- package/ckeditor/plugins/simage/LICENSE +674 -0
- package/ckeditor/plugins/simage/README.md +73 -0
- package/ckeditor/plugins/simage/icons/simage.png +0 -0
- package/ckeditor/plugins/simage/plugin.js +154 -0
- package/ckeditor/plugins/smiley/dialogs/smiley.js +11 -0
- package/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- package/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- package/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- package/ckeditor/plugins/smiley/images/envelope.png +0 -0
- package/ckeditor/plugins/smiley/images/heart.gif +0 -0
- package/ckeditor/plugins/smiley/images/heart.png +0 -0
- package/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- package/ckeditor/plugins/smiley/images/kiss.png +0 -0
- package/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- package/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- package/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- package/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/et.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fr.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- package/ckeditor/plugins/table/dialogs/table.js +22 -0
- package/ckeditor/plugins/tableselection/styles/tableselection.css +36 -0
- package/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
- package/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- package/ckeditor/plugins/templates/dialogs/templates.js +11 -0
- package/ckeditor/plugins/templates/templatedefinition.js +4 -0
- package/ckeditor/plugins/templates/templates/default.js +7 -0
- package/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- package/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- package/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- package/ckeditor/plugins/textindent/icons/hidpi/textindent.png +0 -0
- package/ckeditor/plugins/textindent/icons/textindent.png +0 -0
- package/ckeditor/plugins/textindent/lang/en.js +3 -0
- package/ckeditor/plugins/textindent/lang/pt-br.js +3 -0
- package/ckeditor/plugins/textindent/plugin.js +99 -0
- package/ckeditor/plugins/widget/images/handle.png +0 -0
- package/ckeditor/samples/css/samples.css +1637 -0
- package/ckeditor/samples/img/github-top.png +0 -0
- package/ckeditor/samples/img/header-bg.png +0 -0
- package/ckeditor/samples/img/header-separator.png +0 -0
- package/ckeditor/samples/img/logo.png +0 -0
- package/ckeditor/samples/img/logo.svg +13 -0
- package/ckeditor/samples/img/navigation-tip.png +0 -0
- package/ckeditor/samples/index.html +130 -0
- package/ckeditor/samples/js/sample.js +53 -0
- package/ckeditor/samples/js/sf.js +17 -0
- package/ckeditor/samples/old/ajax.html +85 -0
- package/ckeditor/samples/old/api.html +210 -0
- package/ckeditor/samples/old/appendto.html +59 -0
- package/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- package/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +204 -0
- package/ckeditor/samples/old/assets/posteddata.php +60 -0
- package/ckeditor/samples/old/assets/sample.jpg +0 -0
- package/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
- package/ckeditor/samples/old/datafiltering.html +508 -0
- package/ckeditor/samples/old/dialog/assets/my_dialog.js +48 -0
- package/ckeditor/samples/old/dialog/dialog.html +190 -0
- package/ckeditor/samples/old/divreplace.html +144 -0
- package/ckeditor/samples/old/enterkey/enterkey.html +106 -0
- package/ckeditor/samples/old/htmlwriter/outputhtml.html +224 -0
- package/ckeditor/samples/old/index.html +129 -0
- package/ckeditor/samples/old/inlineall.html +314 -0
- package/ckeditor/samples/old/inlinebycode.html +124 -0
- package/ckeditor/samples/old/inlinetextarea.html +113 -0
- package/ckeditor/samples/old/jquery.html +103 -0
- package/ckeditor/samples/old/magicline/magicline.html +209 -0
- package/ckeditor/samples/old/readonly.html +76 -0
- package/ckeditor/samples/old/replacebyclass.html +60 -0
- package/ckeditor/samples/old/replacebycode.html +59 -0
- package/ckeditor/samples/old/sample.css +357 -0
- package/ckeditor/samples/old/sample.js +50 -0
- package/ckeditor/samples/old/sample_posteddata.php +16 -0
- package/ckeditor/samples/old/tabindex.html +78 -0
- package/ckeditor/samples/old/toolbar/toolbar.html +235 -0
- package/ckeditor/samples/old/uicolor.html +72 -0
- package/ckeditor/samples/old/uilanguages.html +122 -0
- package/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
- package/ckeditor/samples/old/xhtmlstyle.html +234 -0
- package/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
- package/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
- package/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- package/ckeditor/samples/toolbarconfigurator/index.html +447 -0
- package/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
- package/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
- package/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
- package/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
- package/ckeditor/skins/moono-lisa/dialog.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
- package/ckeditor/skins/moono-lisa/editor.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
- package/ckeditor/skins/moono-lisa/icons.png +0 -0
- package/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- package/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
- package/ckeditor/skins/moono-lisa/images/close.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- package/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
- package/ckeditor/skins/moono-lisa/images/lock.png +0 -0
- package/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
- package/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
- package/ckeditor/skins/moono-lisa/readme.md +46 -0
- package/ckeditor/styles.js +137 -0
- package/ckeditor/vendor/promise.js +13 -0
- package/comps/Animation/Checkbox.vue +37 -0
- package/comps/Animation/Radio.vue +30 -0
- package/comps/BooleanLabel.vue +40 -0
- package/comps/CardButton.vue +18 -0
- package/comps/CardImage.vue +40 -0
- package/comps/CardItem.vue +63 -0
- package/comps/CardList.vue +57 -0
- package/comps/CardNumber.vue +27 -0
- package/comps/Config/SelectColumns.vue +137 -0
- package/comps/CoreAgeMonth.vue +44 -0
- package/comps/CoreAppPassword.vue +31 -0
- package/comps/CoreAutocomplete.vue +93 -0
- package/comps/CoreCascader.vue +129 -0
- package/comps/CoreCascaderChildOrg.vue +165 -0
- package/comps/CoreCascaderChildPosition.vue +186 -0
- package/comps/CoreCkeditor.vue +324 -0
- package/comps/CoreColorPicker.vue +35 -0
- package/comps/CoreContextMenu.vue +81 -0
- package/comps/CoreDate.vue +56 -0
- package/comps/CoreDateRange.vue +34 -0
- package/comps/CoreDatetime.vue +34 -0
- package/comps/CoreDeepLink.vue +53 -0
- package/comps/CoreDurationJustified.vue +23 -0
- package/comps/CoreFiles.vue +497 -0
- package/comps/CoreFooter.vue +100 -0
- package/comps/CoreForm.vue +499 -0
- package/comps/CoreFormDialog.vue +140 -0
- package/comps/CoreFormFields.vue +306 -0
- package/comps/CoreFormItem.vue +114 -0
- package/comps/CoreFormItemCopy.vue +155 -0
- package/comps/CoreFormSub.vue +118 -0
- package/comps/CoreFormTable.vue +197 -0
- package/comps/CoreFormTableInline.vue +300 -0
- package/comps/CoreFormTableList.vue +268 -0
- package/comps/CoreIcon.vue +5 -0
- package/comps/CoreImage.vue +37 -0
- package/comps/CoreInlineNumber.vue +54 -0
- package/comps/CoreInputNumber.vue +49 -0
- package/comps/CoreInputSearch.vue +44 -0
- package/comps/CoreJson.vue +10 -0
- package/comps/CoreLoader.vue +153 -0
- package/comps/CoreLocked.vue +151 -0
- package/comps/CoreMergeConfirm.vue +59 -0
- package/comps/CoreMultipleInput.vue +51 -0
- package/comps/CorePanel.vue +33 -0
- package/comps/CorePdfDialog.vue +84 -0
- package/comps/CorePdfView.vue +52 -0
- package/comps/CoreRegexp.vue +41 -0
- package/comps/CoreSelect.vue +249 -0
- package/comps/CoreSelectEnum.vue +103 -0
- package/comps/CoreSelectGroup.vue +237 -0
- package/comps/CoreSelectGroupItem.vue +168 -0
- package/comps/CoreSelectGroupList.vue +386 -0
- package/comps/CoreSelectOrgEmp.vue +319 -0
- package/comps/CoreSelectTable.vue +277 -0
- package/comps/CoreSelectTree.vue +183 -0
- package/comps/CoreSelectTreeItem.vue +129 -0
- package/comps/CoreSelectTreeList.vue +149 -0
- package/comps/CoreSelectYear.vue +42 -0
- package/comps/CoreSignCertificate.vue +129 -0
- package/comps/CoreSpan.vue +31 -0
- package/comps/CoreStatus.vue +29 -0
- package/comps/CoreSwitch.vue +28 -0
- package/comps/CoreTable.vue +852 -0
- package/comps/CoreTableColumn.vue +78 -0
- package/comps/CoreTableColumnHeader.vue +25 -0
- package/comps/CoreTableColumnRow.vue +234 -0
- package/comps/CoreTableConfig.vue +248 -0
- package/comps/CoreTableImage.vue +89 -0
- package/comps/CoreTableSearch.vue +267 -0
- package/comps/CoreTableSearchDetail.vue +89 -0
- package/comps/CoreTableStatus.vue +71 -0
- package/comps/CoreUploadImage.vue +542 -0
- package/comps/CoreVideo.vue +44 -0
- package/comps/CoreVimeo.vue +135 -0
- package/comps/CoreVimeoLabel.vue +32 -0
- package/comps/CoreVueEditor.vue +106 -0
- package/comps/CoreXypService.vue +233 -0
- package/comps/CoreZoomImage.vue +99 -0
- package/comps/Custom/CrimeDescription.vue +195 -0
- package/comps/Custom/CrimeNum.vue +41 -0
- package/comps/Custom/EmployeeSelect.vue +243 -0
- package/comps/Custom/EmployeeText.vue +7 -0
- package/comps/Custom/EmployeeWorkFamilies.vue +36 -0
- package/comps/Custom/NationalLangSkills.vue +137 -0
- package/comps/Custom/TableLogs.vue +86 -0
- package/comps/Custom/UserClotheRow.vue +105 -0
- package/comps/Custom/UserClothes.vue +470 -0
- package/comps/Custom/UserRoles.vue +169 -0
- package/comps/Custom/UserSelect.vue +423 -0
- package/comps/Custom/UserSkills.vue +98 -0
- package/comps/MomentAddCode.vue +91 -0
- package/comps/SclHandbook.vue +135 -0
- package/comps/Sign/Dialog.vue +321 -0
- package/comps/Sign/Info.vue +43 -0
- package/comps/Sign/InfoDialog.vue +78 -0
- package/directives/el-dragDialog/drag.js +34 -0
- package/index.js +7 -0
- package/middleware/auth.js +28 -0
- package/middleware/confirm-leave.js +15 -0
- package/middleware/login.js +6 -0
- package/middleware/router.js +5 -0
- package/package.json +48 -0
- package/plugins/axios.js +51 -0
- package/plugins/chart.js +134 -0
- package/plugins/ckeditor.js +3 -0
- package/plugins/idle-logout.js +33 -0
- package/store/settings.js +236 -0
- package/store/user.js +215 -0
- package/utils/component-helper.js +336 -0
- package/utils/data-helper.js +236 -0
- package/utils/default-nuxt-config.js +116 -0
- package/utils/eslint-rules.js +12 -0
- package/utils/helpers.js +67 -0
- package/utils/message-helper.js +19 -0
- package/utils/number-helper.js +166 -0
- package/utils/number-texts.js +217 -0
- package/utils/regexps.js +86 -0
- package/utils/role-helper.js +52 -0
- package/utils/social-helper.js +58 -0
- package/utils/table-helper.js +1612 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ckeditor
|
|
3
|
+
v-if="visible"
|
|
4
|
+
v-model="modelValue"
|
|
5
|
+
:config="editorConfig"
|
|
6
|
+
:editor-url="editorUrl"
|
|
7
|
+
@blur="onEditorBlur"
|
|
8
|
+
/>
|
|
9
|
+
</template>
|
|
10
|
+
<script>
|
|
11
|
+
// https://ckeditor.com/latest/samples/toolbarconfigurator/#basic
|
|
12
|
+
import { mapGetters } from 'vuex'
|
|
13
|
+
export default {
|
|
14
|
+
name: 'CoreCkeditor',
|
|
15
|
+
props: {
|
|
16
|
+
value: { type: String, default: '' },
|
|
17
|
+
isSimple: { type: Boolean, default: false },
|
|
18
|
+
readonly: { type: Boolean, default: false },
|
|
19
|
+
disabled: { type: Boolean, default: false },
|
|
20
|
+
pageSize: { type: String, default: 'A4' },
|
|
21
|
+
isPdf: { type: Boolean, default: false },
|
|
22
|
+
height: { type: Number, default: null },
|
|
23
|
+
pagePaddingLeft: { type: String, default: '20mm' },
|
|
24
|
+
pagePaddingRight: { type: String, default: '20mm' },
|
|
25
|
+
pagePaddingTop: { type: String, default: '10mm' },
|
|
26
|
+
pagePaddingBottom: { type: String, default: '10mm' },
|
|
27
|
+
writingMode: { type: String, default: 'horizontal-tb' }
|
|
28
|
+
},
|
|
29
|
+
data () {
|
|
30
|
+
return {
|
|
31
|
+
visible: true,
|
|
32
|
+
timeout: 0,
|
|
33
|
+
a4Widthpx: '794px',
|
|
34
|
+
a5Widthpx: '561px',
|
|
35
|
+
conclusion: {
|
|
36
|
+
paddingLeft: '20mm',
|
|
37
|
+
paddingRight: '25pt'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
computed: {
|
|
42
|
+
bodyTableStyle () {
|
|
43
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
44
|
+
return `table {
|
|
45
|
+
border-collapse: collapse;
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
}`
|
|
48
|
+
} else {
|
|
49
|
+
return `table {
|
|
50
|
+
border-collapse: collapse;
|
|
51
|
+
max-height: 100%;
|
|
52
|
+
}`
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
bodyFontDefaultSize () {
|
|
56
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
57
|
+
return '11'
|
|
58
|
+
}
|
|
59
|
+
return '10'
|
|
60
|
+
},
|
|
61
|
+
bodyFontNames () {
|
|
62
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
63
|
+
return 'Arial; Times New Roman'
|
|
64
|
+
}
|
|
65
|
+
return 'MongolianScript; \'Mongolian Baiti\'; Arial; Times New Roman'
|
|
66
|
+
},
|
|
67
|
+
bodyFontDefault () {
|
|
68
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
69
|
+
return 'Arial'
|
|
70
|
+
}
|
|
71
|
+
return 'MongolianScript'
|
|
72
|
+
},
|
|
73
|
+
bodyFontFamily () {
|
|
74
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
75
|
+
return 'Arial'
|
|
76
|
+
}
|
|
77
|
+
return 'MongolianScript, \'Mongolian Baiti\', Arial'
|
|
78
|
+
},
|
|
79
|
+
htmlPadding () {
|
|
80
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
81
|
+
return 'padding-top: 20px; padding-bottom: 20px;'
|
|
82
|
+
}
|
|
83
|
+
return 'padding-left: 20px; padding-right: 20px;'
|
|
84
|
+
},
|
|
85
|
+
bodyMargin () {
|
|
86
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
87
|
+
return 'margin-top: 20px; margin-bottom: 20px;'
|
|
88
|
+
}
|
|
89
|
+
return 'margin-left: 20px; margin-right: 20px;'
|
|
90
|
+
},
|
|
91
|
+
bodyPadding () {
|
|
92
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
93
|
+
return `padding-top: ${this.pagePaddingTop};
|
|
94
|
+
padding-bottom: ${this.pagePaddingBottom};
|
|
95
|
+
padding-left: ${this.pagePaddingLeft};
|
|
96
|
+
padding-right: ${this.pagePaddingRight};`
|
|
97
|
+
}
|
|
98
|
+
return `padding-left: ${this.pagePaddingTop};
|
|
99
|
+
padding-right: ${this.pagePaddingBottom};
|
|
100
|
+
padding-top: ${this.pagePaddingLeft};
|
|
101
|
+
padding-bottom: ${this.pagePaddingRight};`
|
|
102
|
+
},
|
|
103
|
+
htmlHeight () {
|
|
104
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
105
|
+
return ''
|
|
106
|
+
}
|
|
107
|
+
return 'height: 820px; overflow:auto;'
|
|
108
|
+
},
|
|
109
|
+
bodyHeight () {
|
|
110
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
111
|
+
return 'auto'
|
|
112
|
+
} else {
|
|
113
|
+
return this.pageSize === 'A4' ? this.a4Widthpx : this.a5Widthpx
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
bodyWidth () {
|
|
117
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
118
|
+
return this.pageSize === 'A4' ? this.a4Widthpx : this.a5Widthpx
|
|
119
|
+
} else {
|
|
120
|
+
return 'auto'
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
bodyMaxWidth () {
|
|
124
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
125
|
+
return this.pageSize === 'A4' ? this.a4Widthpx : this.a5Widthpx
|
|
126
|
+
} else {
|
|
127
|
+
return 'auto'
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
bodyMinWidth () {
|
|
131
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
132
|
+
return this.pageSize === 'A4' ? this.a4Widthpx : this.a5Widthpx
|
|
133
|
+
} else {
|
|
134
|
+
return '500px'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
bodyMaxHeight () {
|
|
138
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
139
|
+
return 'auto'
|
|
140
|
+
} else {
|
|
141
|
+
return this.pageSize === 'A4' ? this.a4Widthpx : this.a5Widthpx
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
bodyMinHeight () {
|
|
145
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
146
|
+
return '300px'
|
|
147
|
+
} else {
|
|
148
|
+
return this.pageSize === 'A4' ? this.a4Widthpx : this.a5Widthpx
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
bodyLineheightDefault () {
|
|
152
|
+
if (this.writingMode === 'horizontal-tb') {
|
|
153
|
+
return '1.15'
|
|
154
|
+
}
|
|
155
|
+
return '1.75'
|
|
156
|
+
},
|
|
157
|
+
...mapGetters('settings', ['env']),
|
|
158
|
+
editorUrl () {
|
|
159
|
+
return `${this.env.routerBase}/ckeditor/ckeditor.js`
|
|
160
|
+
},
|
|
161
|
+
editorConfig () {
|
|
162
|
+
const config = {
|
|
163
|
+
language: 'mn',
|
|
164
|
+
height: this.height,
|
|
165
|
+
// tabSpaces: 8,
|
|
166
|
+
readOnly: this.readonly || this.disabled,
|
|
167
|
+
toolbarCanCollapse: false,
|
|
168
|
+
autoGrow_onStartup: true,
|
|
169
|
+
autoGrow_minHeight: 400, // Optional: Set a minimum height
|
|
170
|
+
autoGrow_maxHeight: 1000, // Optional: Set a maximum height
|
|
171
|
+
autoGrow_bottomSpace: 50, // Optional: Add space at the bottom
|
|
172
|
+
allowedContent: true,
|
|
173
|
+
disallowedContent: 'script; *[on*]',
|
|
174
|
+
extraAllowedContent: [
|
|
175
|
+
'p', 'a', 'img', 'strong', 'span', 'div',
|
|
176
|
+
'em', 'ol', 'ul', 'li',
|
|
177
|
+
'table', 'tr', 'td', 'thead', 'tbody', 'th',
|
|
178
|
+
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
|
|
179
|
+
'sup', 's', 'u', 'blockquote', 'br', 'hr'
|
|
180
|
+
].join(' '),
|
|
181
|
+
contentsCss: [
|
|
182
|
+
'/ckeditor/ckcontent.css',
|
|
183
|
+
'data:text/css;charset=utf-8,' +
|
|
184
|
+
(this.isSimple
|
|
185
|
+
? encodeURIComponent(`
|
|
186
|
+
html {
|
|
187
|
+
background-color: ${this.disabled ? '#FFFFFF' : '#f9fbfd'};
|
|
188
|
+
}
|
|
189
|
+
body {
|
|
190
|
+
font-family: ${this.bodyFontFamily};
|
|
191
|
+
font-size: ${this.bodyFontDefaultSize}pt;
|
|
192
|
+
}
|
|
193
|
+
`)
|
|
194
|
+
: encodeURIComponent(`
|
|
195
|
+
html {
|
|
196
|
+
background-color: #f9fbfd;
|
|
197
|
+
/* display: flex; */
|
|
198
|
+
/* justify-content: center; */
|
|
199
|
+
/* box-sizing: border-box !important; */
|
|
200
|
+
/* ${this.htmlPadding} */
|
|
201
|
+
/* ${this.htmlHeight} */
|
|
202
|
+
}
|
|
203
|
+
body {
|
|
204
|
+
font-family: ${this.bodyFontFamily};
|
|
205
|
+
font-size: ${this.bodyFontDefaultSize}pt;
|
|
206
|
+
color: #222222;
|
|
207
|
+
line-height: ${this.bodyLineheightDefault};
|
|
208
|
+
background: white;
|
|
209
|
+
/* border: 1px solid #c7c7c7; */
|
|
210
|
+
/* outline: 1px solid #c7c7c7; */
|
|
211
|
+
height: ${this.bodyHeight} !important;
|
|
212
|
+
width: ${this.bodyWidth} !important;
|
|
213
|
+
min-width: ${this.bodyMinWidth} !important;
|
|
214
|
+
max-width: ${this.bodyMaxWidth} !important;
|
|
215
|
+
min-height: ${this.bodyMinHeight} !important;
|
|
216
|
+
max-height: ${this.bodyMaxHeight} !important;
|
|
217
|
+
/* margin: 0px !important; */
|
|
218
|
+
box-sizing: border-box !important;
|
|
219
|
+
writing-mode: ${this.writingMode};
|
|
220
|
+
${this.bodyPadding}
|
|
221
|
+
margin: 0.5cm auto;
|
|
222
|
+
border-radius: 5px;
|
|
223
|
+
border: 1px #D3D3D3 solid;
|
|
224
|
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
225
|
+
}
|
|
226
|
+
${this.bodyTableStyle}
|
|
227
|
+
th, td {
|
|
228
|
+
padding-top: 1px;
|
|
229
|
+
padding-bottom: 2px;
|
|
230
|
+
padding-left: 4px;
|
|
231
|
+
padding-right: 4px;
|
|
232
|
+
}
|
|
233
|
+
`))
|
|
234
|
+
],
|
|
235
|
+
resize_enabled: false,
|
|
236
|
+
extraPlugins: 'lineheight,clipboard,simage,table,pagebreak,justify,textindent,uploadimage',
|
|
237
|
+
removePlugins: 'elementspath, easyimage, cloudservices, exportpdf, iframe, flash, sourcearea',
|
|
238
|
+
uiColor: '#FFFFFF',
|
|
239
|
+
font_defaultLabel: this.bodyFontDefault,
|
|
240
|
+
fontSize_defaultLabel: this.bodyFontDefaultSize,
|
|
241
|
+
line_height: '1;1.15;1.2;1.5;1.75;2;2.5;3',
|
|
242
|
+
lineheight_defaultLabel: this.bodyLineheightDefault,
|
|
243
|
+
font_names: this.bodyFontNames,
|
|
244
|
+
fontSize_sizes: '8/8pt;9/9pt;10/10pt;11/11pt;12/12pt;14/14pt;16/16pt;18/18pt;20/20pt;24/24pt;26/26pt;28/28pt;36/36pt;48/48pt;72/72pt',
|
|
245
|
+
table: {
|
|
246
|
+
contentToolbar: [
|
|
247
|
+
'tableColumn', 'tableRow', 'mergeTableCells',
|
|
248
|
+
'tableProperties', 'tableCellProperties'
|
|
249
|
+
],
|
|
250
|
+
defaultTableAttributes: {
|
|
251
|
+
border: '1'
|
|
252
|
+
},
|
|
253
|
+
defaultTableCellAttributes: {
|
|
254
|
+
width: '100px'
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
coreStyles_bold: { element: 'b', overrides: 'strong' },
|
|
258
|
+
toolbar: [],
|
|
259
|
+
imageUploadURL: '/api/file/upload/ckeditor?upload=1',
|
|
260
|
+
filebrowserUploadUrl: '/api/file/upload/ckeditor?upload=1',
|
|
261
|
+
filebrowserUploadMethod: 'form'
|
|
262
|
+
}
|
|
263
|
+
if (this.isSimple) {
|
|
264
|
+
config.toolbar = [
|
|
265
|
+
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline'] },
|
|
266
|
+
{ name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] }
|
|
267
|
+
]
|
|
268
|
+
} else {
|
|
269
|
+
config.toolbar = [
|
|
270
|
+
{ name: 'clipboard', items: ['Undo', 'Redo'] },
|
|
271
|
+
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'] },
|
|
272
|
+
{ name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
|
|
273
|
+
{ name: 'insert', items: ['Table', 'Image', 'HorizontalRule', 'SpecialChar', 'UploadFile'] },
|
|
274
|
+
{ name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize', 'lineheight'] },
|
|
275
|
+
{ name: 'colors', items: ['TextColor', 'BGColor'] },
|
|
276
|
+
{ name: 'tools', items: ['Maximize', 'PageBreak'] },
|
|
277
|
+
{ name: 'links', items: ['Link', 'Unlink'] }
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
// config.toolbar = [
|
|
281
|
+
// { name: 'clipboard', items: ['Undo', 'Redo'] },
|
|
282
|
+
// { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'] },
|
|
283
|
+
// { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
|
|
284
|
+
// { name: 'insert', items: ['Table', 'Image', 'HorizontalRule', 'SpecialChar', 'UploadFile'] },
|
|
285
|
+
// { name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize', 'lineheight'] },
|
|
286
|
+
// { name: 'colors', items: ['TextColor', 'BGColor'] },
|
|
287
|
+
// { name: 'tools', items: ['Maximize', 'PageBreak'] },
|
|
288
|
+
// { name: 'document', items: ['NewPage', 'Preview', '-', 'Templates'] },
|
|
289
|
+
// { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
|
|
290
|
+
// { name: 'editing', items: ['Scayt'] }
|
|
291
|
+
// ]
|
|
292
|
+
return config
|
|
293
|
+
},
|
|
294
|
+
modelValue: {
|
|
295
|
+
get () {
|
|
296
|
+
return this.value
|
|
297
|
+
},
|
|
298
|
+
set (val) {
|
|
299
|
+
const newVal = val?.replace(/[\u200B\u00A0\u200E\u200F]/g, ' ')
|
|
300
|
+
if (val && (val.trim().endsWith('</ol>') || val.trim().endsWith('</ul>'))) {
|
|
301
|
+
this.$emit('input', newVal + '<p></p>')
|
|
302
|
+
} else {
|
|
303
|
+
this.$emit('input', newVal)
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
watch: {
|
|
309
|
+
// pageSize () {
|
|
310
|
+
// const that = this
|
|
311
|
+
// that.visible = false
|
|
312
|
+
// clearTimeout(that.timeout)
|
|
313
|
+
// that.timeout = setTimeout(() => {
|
|
314
|
+
// that.visible = true
|
|
315
|
+
// }, 200)
|
|
316
|
+
// }
|
|
317
|
+
},
|
|
318
|
+
methods: {
|
|
319
|
+
onEditorBlur ($event) {
|
|
320
|
+
this.$emit('blur', $event)
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex gap-2">
|
|
3
|
+
<el-color-picker
|
|
4
|
+
v-model="modelValue"
|
|
5
|
+
:disabled="col.disabled"
|
|
6
|
+
:size="size"
|
|
7
|
+
/>
|
|
8
|
+
<el-input
|
|
9
|
+
v-model="modelValue"
|
|
10
|
+
:disabled="col.disabled"
|
|
11
|
+
:size="size"
|
|
12
|
+
placeholder="Өнгө сонгоно уу"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<script>
|
|
17
|
+
export default {
|
|
18
|
+
props: {
|
|
19
|
+
disabled: { type: Boolean, default: false },
|
|
20
|
+
placeholder: { type: String, default: 'Өнгө сонгоно уу' },
|
|
21
|
+
size: { type: String, default: null },
|
|
22
|
+
value: { type: String, default: null }
|
|
23
|
+
},
|
|
24
|
+
computed: {
|
|
25
|
+
modelValue: {
|
|
26
|
+
get () {
|
|
27
|
+
return this.value
|
|
28
|
+
},
|
|
29
|
+
set (val) {
|
|
30
|
+
this.$emit('input', val)
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-show="visible"
|
|
4
|
+
ref="menu"
|
|
5
|
+
:style="{ top: `${position.y}px`, left: `${position.x}px` }"
|
|
6
|
+
class="fixed shadow-lg z-50 bg-white rounded-lg text-corePrimaryText text-base min-w-48"
|
|
7
|
+
@contextmenu.prevent=""
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
v-for="(item, index) in items"
|
|
11
|
+
:key="index"
|
|
12
|
+
:class="['px-2 cursor-pointer py-1 hover:bg-coreBgHover flex flex-row gap-2 items-center first:rounded-t-lg last:rounded-b-lg', {
|
|
13
|
+
'justify-center border-t': ['DELETE', 'REMOVE'].includes(item.code)
|
|
14
|
+
}]"
|
|
15
|
+
@click.prevent.stop="handleMenuClick(item)"
|
|
16
|
+
>
|
|
17
|
+
<i :class="[item.icon || 'el-icon-check', 'text-coreSecondaryText']" />
|
|
18
|
+
{{ item.name }}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
export default {
|
|
25
|
+
data () {
|
|
26
|
+
return {
|
|
27
|
+
visible: false,
|
|
28
|
+
position: { x: 0, y: 0 },
|
|
29
|
+
items: []
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
methods: {
|
|
33
|
+
showMenu (items, event) {
|
|
34
|
+
this.items = items
|
|
35
|
+
// Get viewport dimensions
|
|
36
|
+
const viewportWidth = window.innerWidth
|
|
37
|
+
const viewportHeight = window.innerHeight
|
|
38
|
+
|
|
39
|
+
// Menu dimensions (measured dynamically)
|
|
40
|
+
const menuWidth = this.$refs.menu.offsetWidth || 150 // Fallback to a default width
|
|
41
|
+
const menuHeight = this.$refs.menu.offsetHeight || 150 // Fallback to a default height
|
|
42
|
+
let posX = event.clientX
|
|
43
|
+
let posY = event.clientY
|
|
44
|
+
if (posX + menuWidth > viewportWidth) {
|
|
45
|
+
posX = viewportWidth - menuWidth - 10 // 10px padding
|
|
46
|
+
}
|
|
47
|
+
if (posY + menuHeight > viewportHeight) {
|
|
48
|
+
posY = viewportHeight - menuHeight - 10 // 10px padding
|
|
49
|
+
}
|
|
50
|
+
this.position = { x: posX, y: posY }
|
|
51
|
+
this.visible = true
|
|
52
|
+
document.addEventListener('click', this.handleOutsideClick)
|
|
53
|
+
},
|
|
54
|
+
hideMenu () {
|
|
55
|
+
this.visible = false
|
|
56
|
+
document.removeEventListener('click', this.handleOutsideClick)
|
|
57
|
+
},
|
|
58
|
+
handleMenuClick (menuItem) {
|
|
59
|
+
this.$emit('menu-click', menuItem)
|
|
60
|
+
this.hideMenu()
|
|
61
|
+
},
|
|
62
|
+
handleOutsideClick (event) {
|
|
63
|
+
if (!this.$refs.menu?.contains(event.target)) {
|
|
64
|
+
this.hideMenu()
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
</script>
|
|
70
|
+
|
|
71
|
+
<style>
|
|
72
|
+
.context-menu {
|
|
73
|
+
position: fixed;
|
|
74
|
+
z-index: 9999;
|
|
75
|
+
background: #fff;
|
|
76
|
+
border: 1px solid #ddd;
|
|
77
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
78
|
+
border-radius: 4px;
|
|
79
|
+
min-width: 150px;
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<el-date-picker
|
|
4
|
+
v-model="modelValue"
|
|
5
|
+
:size="size"
|
|
6
|
+
:disabled="disabled"
|
|
7
|
+
:type="type"
|
|
8
|
+
:format="format"
|
|
9
|
+
:value-format="valueFormat"
|
|
10
|
+
class="w-full"
|
|
11
|
+
:picker-options="pickerOptions"
|
|
12
|
+
@change="($event) => $emit('change', $event)"
|
|
13
|
+
/>
|
|
14
|
+
<div v-if="col_field" class="absolute -bottom-4 text-xs font-medium text-coreSecondaryText">
|
|
15
|
+
{{ diffDays }}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
<script>
|
|
20
|
+
import { mapGetters } from 'vuex'
|
|
21
|
+
import { get } from 'lodash'
|
|
22
|
+
import { getStringDate, diffBusinessDays } from '../utils/data-helper'
|
|
23
|
+
export default {
|
|
24
|
+
name: 'CoreDate',
|
|
25
|
+
props: {
|
|
26
|
+
parentTemp: { type: Object, default: () => { return null } },
|
|
27
|
+
disabled: { type: Boolean, default: false },
|
|
28
|
+
size: { type: String, default: null },
|
|
29
|
+
value: { type: [Date, String, Array], default: null },
|
|
30
|
+
format: { type: String, default: 'yyyy-MM-dd' },
|
|
31
|
+
valueFormat: { type: String, default: 'yyyy-MM-dd' },
|
|
32
|
+
col_field: { type: String, default: '' },
|
|
33
|
+
pickerOptions: { type: Object, default: () => { return null } },
|
|
34
|
+
type: { type: String, default: 'date' }
|
|
35
|
+
},
|
|
36
|
+
computed: {
|
|
37
|
+
...mapGetters(['holidays']),
|
|
38
|
+
modelValue: {
|
|
39
|
+
get () {
|
|
40
|
+
return getStringDate(this.value)
|
|
41
|
+
},
|
|
42
|
+
set (val) {
|
|
43
|
+
this.$emit('input', val)
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
diffDays () {
|
|
47
|
+
const startDateField = this.col_field?.replace('end_date', 'start_date')
|
|
48
|
+
const startDateVal = get(this.parentTemp, startDateField)
|
|
49
|
+
if (startDateVal && this.value) {
|
|
50
|
+
return diffBusinessDays(startDateVal, this.value, this.holidays) + ' ажлын өдөр байна.'
|
|
51
|
+
}
|
|
52
|
+
return ''
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-date-picker
|
|
3
|
+
v-model="modelValue"
|
|
4
|
+
:size="size"
|
|
5
|
+
:disabled="disabled"
|
|
6
|
+
type="daterange"
|
|
7
|
+
:format="format"
|
|
8
|
+
:value-format="valueFormat"
|
|
9
|
+
class="w-full"
|
|
10
|
+
/>
|
|
11
|
+
</template>
|
|
12
|
+
<script>
|
|
13
|
+
// import { getStringDate } from '../utils/data-helper'
|
|
14
|
+
export default {
|
|
15
|
+
name: 'CoreDateRange',
|
|
16
|
+
props: {
|
|
17
|
+
disabled: { type: Boolean, default: false },
|
|
18
|
+
size: { type: String, default: null },
|
|
19
|
+
value: { type: [Date, String, Array], default: null },
|
|
20
|
+
format: { type: String, default: 'yyyy-MM-dd' },
|
|
21
|
+
valueFormat: { type: String, default: 'yyyy-MM-dd' }
|
|
22
|
+
},
|
|
23
|
+
computed: {
|
|
24
|
+
modelValue: {
|
|
25
|
+
get () {
|
|
26
|
+
return this.value
|
|
27
|
+
},
|
|
28
|
+
set (val) {
|
|
29
|
+
this.$emit('input', val)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-date-picker
|
|
3
|
+
v-model="modelValue"
|
|
4
|
+
:size="size"
|
|
5
|
+
:disabled="disabled"
|
|
6
|
+
type="datetime"
|
|
7
|
+
:format="format"
|
|
8
|
+
:value-format="valueFormat"
|
|
9
|
+
class="w-full"
|
|
10
|
+
/>
|
|
11
|
+
</template>
|
|
12
|
+
<script>
|
|
13
|
+
import { getStringDatetime } from '../utils/data-helper'
|
|
14
|
+
export default {
|
|
15
|
+
name: 'CoreDateTime',
|
|
16
|
+
props: {
|
|
17
|
+
disabled: { type: Boolean, default: false },
|
|
18
|
+
size: { type: String, default: null },
|
|
19
|
+
value: { type: [Date, String], default: null },
|
|
20
|
+
format: { type: String, default: 'yyyy-MM-dd HH:mm' },
|
|
21
|
+
valueFormat: { type: String, default: 'yyyy-MM-dd HH:mm' }
|
|
22
|
+
},
|
|
23
|
+
computed: {
|
|
24
|
+
modelValue: {
|
|
25
|
+
get () {
|
|
26
|
+
return getStringDatetime(this.value)
|
|
27
|
+
},
|
|
28
|
+
set (val) {
|
|
29
|
+
this.$emit('input', val)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-input id="IdOfTextToCopy" :value="env.baseDeepLink + value" disabled>
|
|
3
|
+
<el-button slot="append" icon="el-icon-document-copy" @click="handleCopy" />
|
|
4
|
+
</el-input>
|
|
5
|
+
</template>
|
|
6
|
+
<script>
|
|
7
|
+
import { mapGetters } from 'vuex'
|
|
8
|
+
import { getUnicodeName } from '../utils/helpers'
|
|
9
|
+
export default {
|
|
10
|
+
props: {
|
|
11
|
+
temp: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => { return null }
|
|
14
|
+
},
|
|
15
|
+
value: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: null
|
|
18
|
+
},
|
|
19
|
+
trigger_fields: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: null
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
computed: {
|
|
25
|
+
...mapGetters(['env'])
|
|
26
|
+
},
|
|
27
|
+
watch: {
|
|
28
|
+
temp: {
|
|
29
|
+
handler (newVal) {
|
|
30
|
+
if (newVal[this.trigger_fields]) {
|
|
31
|
+
this.$emit('input', getUnicodeName(newVal[this.trigger_fields].toString().trim().toLowerCase().replace(new RegExp(' ', 'g'), '_').replace(new RegExp('-', 'g'), '_')).trim())
|
|
32
|
+
} else {
|
|
33
|
+
this.$emit('input', '')
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
deep: true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
async handleCopy () {
|
|
41
|
+
try {
|
|
42
|
+
await navigator.clipboard.writeText(this.env.baseDeepLink + this.value)
|
|
43
|
+
this.$showSuccess('Амжилттай хууллаа.')
|
|
44
|
+
} catch (err) {
|
|
45
|
+
const copyGfGText = document.getElementById('IdOfTextToCopy')
|
|
46
|
+
copyGfGText.select()
|
|
47
|
+
document.execCommand('copy')
|
|
48
|
+
// this.$showWarning('Хуулахад алдаа гарлаа.')
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
</script>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span>{{ durationText }}</span>
|
|
3
|
+
</template>
|
|
4
|
+
<script>
|
|
5
|
+
export default {
|
|
6
|
+
name: 'CoreDurationJustified',
|
|
7
|
+
props: {
|
|
8
|
+
value: { type: Number, default: 0 }
|
|
9
|
+
},
|
|
10
|
+
computed: {
|
|
11
|
+
durationText () {
|
|
12
|
+
if (!this.value) {
|
|
13
|
+
return ''
|
|
14
|
+
}
|
|
15
|
+
const duration = this.$moment.duration(this.value, 'days')
|
|
16
|
+
const years = Math.floor(duration.asYears())
|
|
17
|
+
const months = Math.floor(duration.subtract(this.$moment.duration(years, 'years')).asMonths())
|
|
18
|
+
const daysLeft = Math.floor(duration.subtract(this.$moment.duration(months, 'months')).asDays())
|
|
19
|
+
return `${years} жил ${months} сар ${daysLeft} хоног`
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|