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,499 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="max-w-full flex-1 flex flex-row gap-4 overflow-hidden">
|
|
3
|
+
<div v-if="!temp && loadingForm" class="text-center py-10 text-coreSecondaryText ">
|
|
4
|
+
<core-loader />
|
|
5
|
+
</div>
|
|
6
|
+
<el-form
|
|
7
|
+
v-if="temp"
|
|
8
|
+
ref="REF_FORM"
|
|
9
|
+
v-loading="loadingForm"
|
|
10
|
+
:label-width="labelWidth"
|
|
11
|
+
:model="temp"
|
|
12
|
+
:rules="rules"
|
|
13
|
+
:label-position="labelPosition === 'top' ? labelPosition : null"
|
|
14
|
+
:class="[`flex-1 max-w-full flex flex-col gap-2 flex-wrap items-start justify-start label-position-${labelPosition}`]"
|
|
15
|
+
:style="`width: ${formWidth}`"
|
|
16
|
+
>
|
|
17
|
+
<div v-if="locales.length > 0" class="px-2">
|
|
18
|
+
<el-button
|
|
19
|
+
v-for="l in locales" :key="l._id"
|
|
20
|
+
size="small"
|
|
21
|
+
plain
|
|
22
|
+
:type="temp.locale_id === l._id ? 'primary' : 'default'"
|
|
23
|
+
@click="() => handleLocaleChange(l)"
|
|
24
|
+
>
|
|
25
|
+
{{ l.name }}
|
|
26
|
+
</el-button>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-if="!!$slots.actions" class="flex flex-row flex-wrap items-center w-full gap-4">
|
|
29
|
+
<div class="flex-1">
|
|
30
|
+
<slot name="status" />
|
|
31
|
+
<el-alert v-if="hasPassword && buttons && buttons.textRestorePassword" show-icon :closable="false">
|
|
32
|
+
<div class="text-sm">
|
|
33
|
+
"Нууц үг үүсгэх холбоос"-ыг бүртгэсэн Имэйл хаяг руу илгээх болно.
|
|
34
|
+
</div>
|
|
35
|
+
</el-alert>
|
|
36
|
+
</div>
|
|
37
|
+
<div>
|
|
38
|
+
<slot name="actions" />
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div v-if="isTabMenu && !!temp?._id" class="flex flex-row bg-background py-2 rounded w-full px-2 gap-2">
|
|
42
|
+
<!-- <nuxt-link
|
|
43
|
+
v-for="col in mainFormMenus.filter(c => !c.is_hidden)"
|
|
44
|
+
:key="col.name"
|
|
45
|
+
replace
|
|
46
|
+
:to="{ query: { ...$route.query, submenu: col.name } }"
|
|
47
|
+
:class="['flex gap-2 px-2 py-2 cursor-pointer items-center text-sm hover:text-corePrimary group hover:bg-coreBgMain rounded', {
|
|
48
|
+
'bg-coreBgMain text-corePrimary font-medium': col.name === submenu,
|
|
49
|
+
'text-coreRegularText': col.name !== submenu
|
|
50
|
+
}]"
|
|
51
|
+
>
|
|
52
|
+
<span>{{ col.title }} </span>
|
|
53
|
+
</nuxt-link> -->
|
|
54
|
+
<div
|
|
55
|
+
v-for="col in mainFormMenus.filter(c => !c.is_hidden)"
|
|
56
|
+
:key="col.name"
|
|
57
|
+
replace
|
|
58
|
+
:class="['flex gap-2 px-2 py-2 cursor-pointer items-center text-sm hover:text-corePrimary group hover:bg-coreBgMain rounded', {
|
|
59
|
+
'bg-coreBgMain text-corePrimary font-medium': col.name === submenu,
|
|
60
|
+
'text-coreRegularText': col.name !== submenu
|
|
61
|
+
}]"
|
|
62
|
+
@click="submenu = col.name"
|
|
63
|
+
>
|
|
64
|
+
<span>{{ col.title }} </span>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<slot name="form-header" />
|
|
68
|
+
<div v-if="temp?.work_families?.length || temp?.employee_history_text || temp?.employee_degree_text || temp?.all_history_text" class="flex gap-2 flex-wrap items-start justify-start">
|
|
69
|
+
<custom-employee-work-families :list="temp?.work_families || []" />
|
|
70
|
+
<custom-employee-text v-if="temp?.employee_history_text">
|
|
71
|
+
{{ temp.employee_history_text }}
|
|
72
|
+
</custom-employee-text>
|
|
73
|
+
<custom-employee-text v-if="temp?.employee_degree_text">
|
|
74
|
+
{{ temp.employee_degree_text }}
|
|
75
|
+
</custom-employee-text>
|
|
76
|
+
<custom-employee-text v-if="temp?.all_history_text">
|
|
77
|
+
{{ temp.all_history_text }}
|
|
78
|
+
</custom-employee-text>
|
|
79
|
+
</div>
|
|
80
|
+
<div
|
|
81
|
+
v-for="group in mainColumns.filter(c => {
|
|
82
|
+
if ((isTabMenu && !!temp?._id) || c.is_hidden) { return false }
|
|
83
|
+
if (!visibleLog && c.name === 'LOG') { return false }
|
|
84
|
+
if (c.group_type === 'GROUP_FIELD' && !c.columns?.length) { return false }
|
|
85
|
+
return true
|
|
86
|
+
})"
|
|
87
|
+
:key="group.name"
|
|
88
|
+
:class="['w-full empty:hidden', { 'p-2': !noPadding }]"
|
|
89
|
+
>
|
|
90
|
+
<core-form-fields
|
|
91
|
+
:ref="`REF_GROUP_${group.name}`"
|
|
92
|
+
:table="table"
|
|
93
|
+
:project-id="projectId"
|
|
94
|
+
:root-api-id="rootApiId"
|
|
95
|
+
:root-temp-id="rootTempId"
|
|
96
|
+
:pk_field_name="pk_field_name"
|
|
97
|
+
:default-size="defaultSize"
|
|
98
|
+
:temp="temp"
|
|
99
|
+
:group="group"
|
|
100
|
+
:searching="searching"
|
|
101
|
+
:disabled="disabled || group.disabled"
|
|
102
|
+
:ref-column="refColumns.find(c => c.tableName === group.group_fields)"
|
|
103
|
+
:ref-columns="refColumns"
|
|
104
|
+
:is-sub-menu="false"
|
|
105
|
+
:show-pkid="showPkid"
|
|
106
|
+
:level="level"
|
|
107
|
+
:is-locale-label="isLocaleLabel"
|
|
108
|
+
:no-padding-all="noPaddingAll"
|
|
109
|
+
:parent-form-col="parentFormCol"
|
|
110
|
+
@temp-change="handleTempChange"
|
|
111
|
+
@temp-change-all="$emit('temp-change-all', $event)"
|
|
112
|
+
@form-search="handleFormSearch"
|
|
113
|
+
/>
|
|
114
|
+
</div>
|
|
115
|
+
<div
|
|
116
|
+
v-if="mainFormMenus.length > 0 && tempId !== 'create'"
|
|
117
|
+
:class="['w-full flex flex-col md:flex-row gap-4 items-start justify-start', {
|
|
118
|
+
'p-2': !noPadding
|
|
119
|
+
}]"
|
|
120
|
+
>
|
|
121
|
+
<div
|
|
122
|
+
v-if="!isTabMenu"
|
|
123
|
+
:class="['w-full md:w-52 rounded bg-background p-2', {
|
|
124
|
+
// 'p-2': !noPadding
|
|
125
|
+
}]"
|
|
126
|
+
>
|
|
127
|
+
<div
|
|
128
|
+
v-for="(groupTitle, index) in groupTitles"
|
|
129
|
+
:key="index"
|
|
130
|
+
class="flex flex-col gap-2"
|
|
131
|
+
>
|
|
132
|
+
<div
|
|
133
|
+
:class="['cursor-pointer hover:bg-coreBgMain rounded px-2 py-1 text-sm font-semibold flex flex-row overflow-hidden items-center', {
|
|
134
|
+
'text-coreSecondaryText': visibleMenu !== groupTitle,
|
|
135
|
+
'text-coreRegularText': visibleMenu === groupTitle
|
|
136
|
+
}]"
|
|
137
|
+
@click="visibleMenu === groupTitle ? visibleMenu = '-1' : visibleMenu = groupTitle"
|
|
138
|
+
>
|
|
139
|
+
<div class="flex-1">
|
|
140
|
+
{{ groupTitle || 'Цэс' }}
|
|
141
|
+
</div>
|
|
142
|
+
<i :class="[' el-icon-arrow-down duration-200', { '-rotate-180': visibleMenu === groupTitle }]" />
|
|
143
|
+
</div>
|
|
144
|
+
<el-collapse-transition>
|
|
145
|
+
<div v-if="visibleMenu === groupTitle" class="gap-2 flex flex-col">
|
|
146
|
+
<nuxt-link
|
|
147
|
+
v-for="col in mainFormMenus.filter(c => c.group_title === groupTitle && !c.is_hidden)"
|
|
148
|
+
:key="col.name"
|
|
149
|
+
replace
|
|
150
|
+
:to="{ query: { ...$route.query, submenu: col.name } }"
|
|
151
|
+
:class="['flex gap-2 px-2 py-1 cursor-pointer items-center text-sm hover:text-corePrimary group hover:bg-coreBgMain rounded-lg', {
|
|
152
|
+
'bg-coreBgMain text-corePrimary': col.name === submenu,
|
|
153
|
+
'text-coreRegularText': col.name !== submenu
|
|
154
|
+
}]"
|
|
155
|
+
>
|
|
156
|
+
<div class="text-lg group-hover:text-corePrimary">
|
|
157
|
+
<i v-if="col.group_type === 'group'" class="isax isax-tick-square" />
|
|
158
|
+
<i v-else class="isax isax-tick-square" />
|
|
159
|
+
</div>
|
|
160
|
+
<span>{{ col.title }}</span>
|
|
161
|
+
</nuxt-link>
|
|
162
|
+
</div>
|
|
163
|
+
</el-collapse-transition>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
<div class="flex-1 bg-background rounded overflow-hidden w-full">
|
|
167
|
+
<transition name="el-fade-in-linear">
|
|
168
|
+
<div v-if="visible && selectedSubmenu && selectedSubmenu.group_type === 'group'">
|
|
169
|
+
<div
|
|
170
|
+
v-for="group in selectedColumns.filter(c => !c.is_hidden && (visibleLog || c.name !== 'LOG'))"
|
|
171
|
+
:key="group.name"
|
|
172
|
+
class="w-full"
|
|
173
|
+
>
|
|
174
|
+
<div :class="['rounded bg-background px-0 pb-2', { 'pt-2': !group.title, 'pt-0': group.title }]">
|
|
175
|
+
<core-form-fields
|
|
176
|
+
:ref="`REF_GROUP_${group.name}`"
|
|
177
|
+
:table="table"
|
|
178
|
+
:project-id="projectId"
|
|
179
|
+
:pk_field_name="pk_field_name"
|
|
180
|
+
:default-size="defaultSize"
|
|
181
|
+
:root-api-id="rootApiId"
|
|
182
|
+
:root-temp-id="rootTempId || tempId || temp?._id"
|
|
183
|
+
:temp="temp"
|
|
184
|
+
:group="group"
|
|
185
|
+
:searching="searching"
|
|
186
|
+
:ref-columns="refColumns"
|
|
187
|
+
:is-sub-menu="true"
|
|
188
|
+
:show-pkid="showPkid"
|
|
189
|
+
:level="level"
|
|
190
|
+
:is-locale-label="isLocaleLabel"
|
|
191
|
+
:no-padding-all="noPaddingAll"
|
|
192
|
+
:disabled="disabled || group.disabled"
|
|
193
|
+
:parent-form-col="parentFormCol"
|
|
194
|
+
@temp-change="handleTempChange"
|
|
195
|
+
@temp-change-all="$emit('temp-change-all', $event)"
|
|
196
|
+
@form-search="handleFormSearch"
|
|
197
|
+
/>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
<slot name="footer-actions" />
|
|
201
|
+
</div>
|
|
202
|
+
<div
|
|
203
|
+
v-if="visible && selectedSubmenu && selectedSubmenu.group_type === 'subtable'"
|
|
204
|
+
class="pt-1 px-2 pb-2 w-full overflow-hidden"
|
|
205
|
+
>
|
|
206
|
+
<fieldset
|
|
207
|
+
class="grid rounded w-full px-2 border border-coreLightBorder pt-2 overflow-hidden"
|
|
208
|
+
>
|
|
209
|
+
<legend class="font-default text-sm font-medium text-coreSecondaryText ml-5 px-2">
|
|
210
|
+
{{ selectedSubmenu.title }}
|
|
211
|
+
</legend>
|
|
212
|
+
<div class="w-full overflow-hidden">
|
|
213
|
+
<core-form-table
|
|
214
|
+
:table_name="selectedSubmenu.group_fields"
|
|
215
|
+
:ref-column="refColumns.find(c => c.tableName === selectedSubmenu.group_fields)"
|
|
216
|
+
:project-id="projectId"
|
|
217
|
+
:temp-id="tempId"
|
|
218
|
+
:root-api-id="rootApiId"
|
|
219
|
+
:root-temp-id="rootTempId || tempId || temp?._id"
|
|
220
|
+
:auto-height="true"
|
|
221
|
+
:hide-excel="true"
|
|
222
|
+
:no-search="true"
|
|
223
|
+
:plain-button="true"
|
|
224
|
+
:parent-level="level"
|
|
225
|
+
/>
|
|
226
|
+
</div>
|
|
227
|
+
</fieldset>
|
|
228
|
+
</div>
|
|
229
|
+
</transition>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
<el-alert
|
|
233
|
+
v-if="!!temp.xyp_log_id"
|
|
234
|
+
type="success"
|
|
235
|
+
:closable="!disabled"
|
|
236
|
+
show-icon
|
|
237
|
+
effect="light"
|
|
238
|
+
@close="$emit('reset-temp')"
|
|
239
|
+
>
|
|
240
|
+
ХУР системээс дуудсан талбаруудыг засварлах боломжгүй.
|
|
241
|
+
</el-alert>
|
|
242
|
+
</el-form>
|
|
243
|
+
<slot name="right" />
|
|
244
|
+
</div>
|
|
245
|
+
</template>
|
|
246
|
+
<script>
|
|
247
|
+
import { mapGetters } from 'vuex'
|
|
248
|
+
import { get } from 'lodash'
|
|
249
|
+
import { getButtons, groupFieldLog } from './../utils/role-helper'
|
|
250
|
+
export default {
|
|
251
|
+
name: 'CoreForm',
|
|
252
|
+
props: {
|
|
253
|
+
tempId: { type: String, default: null },
|
|
254
|
+
hasPassword: { type: Boolean, default: false },
|
|
255
|
+
table: { type: Object, default: () => { return null } },
|
|
256
|
+
rootApiId: { type: String, default: () => { return null } },
|
|
257
|
+
rootTempId: { type: String, default: () => { return null } },
|
|
258
|
+
columns: { type: Array, default: () => { return [] } },
|
|
259
|
+
temp: { type: Object, default: () => { return {} } },
|
|
260
|
+
saving: { type: Boolean, default: false },
|
|
261
|
+
loadingForm: { type: Boolean, default: false },
|
|
262
|
+
width: { type: String, default: '700px' },
|
|
263
|
+
rules: { type: Object, default: () => { return {} } },
|
|
264
|
+
labelWidth: { type: String, default: '140px' },
|
|
265
|
+
formLabelPosition: { type: String, default: null },
|
|
266
|
+
pk_field_name: { type: String, default: '_id' },
|
|
267
|
+
showPkid: { type: Boolean, default: false },
|
|
268
|
+
projectId: { type: String, default: null },
|
|
269
|
+
fullWidth: { type: Boolean, default: false },
|
|
270
|
+
refColumns: { type: Array, default: () => { return [] } },
|
|
271
|
+
defaultSize: { type: String, default: null },
|
|
272
|
+
config_group_fields: { type: Array, default: () => { return [] } },
|
|
273
|
+
config_form_menus: { type: Array, default: () => { return [] } },
|
|
274
|
+
searching: { type: Boolean, default: false },
|
|
275
|
+
noPadding: { type: Boolean, default: false },
|
|
276
|
+
noPaddingAll: { type: Boolean, default: false },
|
|
277
|
+
hideLog: { type: Boolean, default: false },
|
|
278
|
+
level: { type: Object, default: () => { return null } },
|
|
279
|
+
updateGroupName: { type: String, default: null },
|
|
280
|
+
isTabMenu: { type: Boolean, default: false },
|
|
281
|
+
isTableHidden: { type: Boolean, default: false },
|
|
282
|
+
locales: { type: Array, default: () => { return [] } },
|
|
283
|
+
isLocaleLabel: { type: Boolean, default: false },
|
|
284
|
+
disabled: { type: Boolean, default: false },
|
|
285
|
+
parentFormCol: { type: Number, default: 0 },
|
|
286
|
+
isDialog: { type: Boolean, default: false }
|
|
287
|
+
},
|
|
288
|
+
data () {
|
|
289
|
+
return {
|
|
290
|
+
groupLog: {
|
|
291
|
+
name: 'LOG',
|
|
292
|
+
group_type: 'GROUP_FIELD',
|
|
293
|
+
col_fields: groupFieldLog.col_fields.join(',')
|
|
294
|
+
},
|
|
295
|
+
submenuDialog: '',
|
|
296
|
+
visible: false,
|
|
297
|
+
visibleMenu: ''
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
computed: {
|
|
301
|
+
...mapGetters('settings', ['windowWidth']),
|
|
302
|
+
isEdit () {
|
|
303
|
+
return !!this.temp?._id
|
|
304
|
+
},
|
|
305
|
+
formWidth () {
|
|
306
|
+
if (this.columns.some(c => c.col_field.startsWith('html_'))) {
|
|
307
|
+
return '1024px'
|
|
308
|
+
}
|
|
309
|
+
return this.width
|
|
310
|
+
},
|
|
311
|
+
labelPosition () {
|
|
312
|
+
if (this.formLabelPosition) {
|
|
313
|
+
return this.formLabelPosition
|
|
314
|
+
}
|
|
315
|
+
if (this.windowWidth <= 640) {
|
|
316
|
+
return 'top'
|
|
317
|
+
}
|
|
318
|
+
return this.table?.form_label_position || 'left'
|
|
319
|
+
},
|
|
320
|
+
visibleLog () {
|
|
321
|
+
return !this.hideLog && this.temp && this.temp[this.pk_field_name]
|
|
322
|
+
},
|
|
323
|
+
groupTitles () {
|
|
324
|
+
const list = []
|
|
325
|
+
for (const r of this.mainFormMenus) {
|
|
326
|
+
if (!list.includes(r.group_title) && (r.name !== 'LOG' || this.isShowLogButton)) {
|
|
327
|
+
list.push(r.group_title)
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return list
|
|
331
|
+
},
|
|
332
|
+
mainColumns () {
|
|
333
|
+
const list = []
|
|
334
|
+
const groupFields = [...this.config_group_fields]
|
|
335
|
+
let columns = []
|
|
336
|
+
if (this.isTableHidden) {
|
|
337
|
+
columns = [...this.columns.filter(c => !c.tableHidden)]
|
|
338
|
+
} else {
|
|
339
|
+
columns = [...this.columns]
|
|
340
|
+
}
|
|
341
|
+
groupFields.push(this.groupLog)
|
|
342
|
+
const formMenus = [...this.config_form_menus]
|
|
343
|
+
const mainCols = columns.filter(c => !c.col_field.startsWith('custom_') && !groupFields.some(k => k.col_fields.split(',').includes(c.col_field)))
|
|
344
|
+
if (mainCols.length > 0) {
|
|
345
|
+
list.push({ name: 'MAIN', columns: mainCols, disabled: !!this.updateGroupName })
|
|
346
|
+
}
|
|
347
|
+
for (const group of groupFields.filter((c) => {
|
|
348
|
+
if (c.name === 'DOC_INDEX_UNITS' && this.temp?.number_type_id?.code !== 'UNIT') {
|
|
349
|
+
return false
|
|
350
|
+
}
|
|
351
|
+
if (c.name === 'DOC_INDEX_POSITIONS' && this.temp?.number_type_id?.code !== 'POSITION') {
|
|
352
|
+
return false
|
|
353
|
+
}
|
|
354
|
+
// ХЭРВЭЭ ҮЗЛЭГ, ЗАДЛАН БАЙВАЛ ӨМНӨХ ДҮГНЭЛТ ОБЪЕКТ БҮРТГЭХГҮЙ
|
|
355
|
+
if (['PREVS', 'RESOLUTION_OBJECTS'].includes(c.name) && ['06', '07'].includes(this.temp?.reg_type_id?.code)) {
|
|
356
|
+
return false
|
|
357
|
+
}
|
|
358
|
+
if (c.is_disabled) {
|
|
359
|
+
return false
|
|
360
|
+
}
|
|
361
|
+
const isGroupField = !this.updateGroupName && c.group_type !== 'UPDATE_FORM'
|
|
362
|
+
const isUpdateForm = c.name === this.updateGroupName && c.group_type === 'UPDATE_FORM'
|
|
363
|
+
return (isGroupField || isUpdateForm) && !formMenus.some(k => k.group_fields.split(',').includes(c.name))
|
|
364
|
+
})) {
|
|
365
|
+
const groupCols = columns.filter(c => !c.col_field.startsWith('custom_') && group.col_fields.split(',').includes(c.col_field))
|
|
366
|
+
if (groupCols.length > 0) {
|
|
367
|
+
list.push({ ...group, columns: groupCols })
|
|
368
|
+
} else {
|
|
369
|
+
list.push({ ...group })
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return list
|
|
373
|
+
},
|
|
374
|
+
mainFormMenus () {
|
|
375
|
+
if (this.isTabMenu) {
|
|
376
|
+
return [{ group_type: 'group', group_fields: 'MAIN', name: 'MAIN', title: 'Ерөнхий мэдээлэл' }].concat(this.config_form_menus)
|
|
377
|
+
} else {
|
|
378
|
+
return this.config_form_menus
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
submenu: {
|
|
382
|
+
get () {
|
|
383
|
+
if (this.isDialog) {
|
|
384
|
+
return this.submenuDialog || get(this.mainFormMenus, '[0].name')
|
|
385
|
+
}
|
|
386
|
+
return this.$route.query.submenu || get(this.mainFormMenus, '[0].name')
|
|
387
|
+
},
|
|
388
|
+
set (val) {
|
|
389
|
+
if (this.isDialog) {
|
|
390
|
+
this.submenuDialog = val
|
|
391
|
+
} else {
|
|
392
|
+
this.$router.replace({ query: { ...this.$route.query, submenu: val } })
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
selectedSubmenu () {
|
|
397
|
+
return this.mainFormMenus.find(c => c.name === this.submenu)
|
|
398
|
+
},
|
|
399
|
+
isShowLogButton () {
|
|
400
|
+
return this.level?.isAdmin || this.level?.actions?.some(c => c.code === 'LOG') || this.isDevelopment
|
|
401
|
+
},
|
|
402
|
+
selectedColumns () {
|
|
403
|
+
if (!this.selectedSubmenu) {
|
|
404
|
+
return []
|
|
405
|
+
}
|
|
406
|
+
if (this.selectedSubmenu.name === 'MAIN') {
|
|
407
|
+
return this.mainColumns
|
|
408
|
+
}
|
|
409
|
+
const list = []
|
|
410
|
+
const groupFields = [...this.config_group_fields]
|
|
411
|
+
let columns = []
|
|
412
|
+
if (this.isTableHidden) {
|
|
413
|
+
columns = [...this.columns.filter(c => !c.tableHidden)]
|
|
414
|
+
} else {
|
|
415
|
+
columns = [...this.columns]
|
|
416
|
+
}
|
|
417
|
+
groupFields.push(this.groupLog)
|
|
418
|
+
for (const group of groupFields.filter(c => this.selectedSubmenu.group_fields.split(',').includes(c.name))) {
|
|
419
|
+
if (group.name === 'LOG' && !this.isShowLogButton) {
|
|
420
|
+
continue
|
|
421
|
+
}
|
|
422
|
+
if (group.name === 'PREVS') {
|
|
423
|
+
continue
|
|
424
|
+
}
|
|
425
|
+
const groupCols = columns.filter(c => group.col_fields.split(',').includes(c.col_field))
|
|
426
|
+
if (groupCols.length > 0) {
|
|
427
|
+
list.push({ ...group, columns: groupCols })
|
|
428
|
+
} else {
|
|
429
|
+
list.push({ ...group })
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return list
|
|
433
|
+
},
|
|
434
|
+
buttons () {
|
|
435
|
+
return getButtons(this.level)
|
|
436
|
+
},
|
|
437
|
+
isDevelopment () {
|
|
438
|
+
return process.env.NODE_ENV === 'development'
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
watch: {
|
|
442
|
+
submenu () {
|
|
443
|
+
this.visible = false
|
|
444
|
+
this.$nextTick(() => {
|
|
445
|
+
this.visible = true
|
|
446
|
+
})
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
mounted () {
|
|
450
|
+
this.visible = true
|
|
451
|
+
this.visibleMenu = this.selectedSubmenu?.group_title
|
|
452
|
+
},
|
|
453
|
+
methods: {
|
|
454
|
+
get,
|
|
455
|
+
async clearValidate () {
|
|
456
|
+
await this.$nextTick()
|
|
457
|
+
await this.$nextTick()
|
|
458
|
+
const refForm = get(this.$refs, 'REF_FORM')
|
|
459
|
+
if (refForm) {
|
|
460
|
+
refForm.clearValidate()
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
async isValidate () {
|
|
464
|
+
let validated = true
|
|
465
|
+
const refForm = get(this.$refs, 'REF_FORM')
|
|
466
|
+
if (refForm) {
|
|
467
|
+
const validForm = await new Promise(resolve => refForm.validate().then(() => resolve(true)).catch(() => resolve(false)))
|
|
468
|
+
if (!validForm) {
|
|
469
|
+
validated = false
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
for (const group of this.mainColumns.concat(this.selectedColumns)) {
|
|
473
|
+
const refs = get(this.$refs, `REF_GROUP_${group.name}`)
|
|
474
|
+
const ref = Array.isArray(refs) ? get(refs, '[0]') : refs
|
|
475
|
+
if (ref && ref.isValidate) {
|
|
476
|
+
const isValid = await ref.isValidate()
|
|
477
|
+
if (!isValid) {
|
|
478
|
+
validated = false
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return validated
|
|
483
|
+
},
|
|
484
|
+
handleFormSearch (col) {
|
|
485
|
+
if (col.form.searchAction) {
|
|
486
|
+
this.$emit(col.form.searchAction, { prop: col.col_field })
|
|
487
|
+
} else {
|
|
488
|
+
this.$emit('form-search', { col_field: col.col_field })
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
handleTempChange (col, value) {
|
|
492
|
+
this.$emit('temp-change', col, value)
|
|
493
|
+
},
|
|
494
|
+
handleLocaleChange (locale) {
|
|
495
|
+
this.$emit('locale-change', locale)
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
</script>
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="visible">
|
|
3
|
+
<el-dialog
|
|
4
|
+
v-loading="loadingForm"
|
|
5
|
+
v-el-drag-dialog
|
|
6
|
+
:visible.sync="visible"
|
|
7
|
+
:title="title || (temp && !temp[pk_field_name] ? (buttons.textCreate || 'Бүртгэх') : (buttons.textEdit || 'Харах'))"
|
|
8
|
+
:width="width"
|
|
9
|
+
:append-to-body="appendToBody"
|
|
10
|
+
:close-on-click-modal="false"
|
|
11
|
+
:before-close="beforeClose"
|
|
12
|
+
@close="$emit('close')"
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
<div slot="footer" class="flex justify-between">
|
|
16
|
+
<div>
|
|
17
|
+
<el-button
|
|
18
|
+
v-if="hasPassword && isEdit && buttons.textRestorePassword"
|
|
19
|
+
type="warning"
|
|
20
|
+
icon="el-icon-key"
|
|
21
|
+
:loading="restoringPassword"
|
|
22
|
+
:size="sizeButton || defaultSize"
|
|
23
|
+
@click="$emit('restore-password')"
|
|
24
|
+
>
|
|
25
|
+
{{ buttons.textRestorePassword }}
|
|
26
|
+
</el-button>
|
|
27
|
+
<slot name="action-buttons" />
|
|
28
|
+
</div>
|
|
29
|
+
<div>
|
|
30
|
+
<!-- <el-button
|
|
31
|
+
v-if="!readOnly && isEdit && buttons.textDecision"
|
|
32
|
+
type="success"
|
|
33
|
+
:loading="saving"
|
|
34
|
+
:size="sizeButton || defaultSize"
|
|
35
|
+
icon="el-icon-check"
|
|
36
|
+
@click="$emit('save')"
|
|
37
|
+
>
|
|
38
|
+
{{ buttons.textDecision }}
|
|
39
|
+
</el-button> -->
|
|
40
|
+
<el-button
|
|
41
|
+
v-if="!readOnly && isEdit && buttons.textEdit"
|
|
42
|
+
type="success"
|
|
43
|
+
:loading="saving"
|
|
44
|
+
:disabled="restoringPassword"
|
|
45
|
+
:size="sizeButton || defaultSize"
|
|
46
|
+
icon="el-icon-check"
|
|
47
|
+
@click="$emit('save')"
|
|
48
|
+
>
|
|
49
|
+
<!-- {{ buttons.textEdit }} -->
|
|
50
|
+
Хадгалах
|
|
51
|
+
</el-button>
|
|
52
|
+
<el-button
|
|
53
|
+
v-if="!readOnly && isCreate && buttons.textCreate"
|
|
54
|
+
type="primary"
|
|
55
|
+
:loading="saving"
|
|
56
|
+
:size="sizeButton || defaultSize"
|
|
57
|
+
icon="el-icon-check"
|
|
58
|
+
@click="$emit('save')"
|
|
59
|
+
>
|
|
60
|
+
{{ buttons.textCreate }}
|
|
61
|
+
</el-button>
|
|
62
|
+
<el-button
|
|
63
|
+
:disabled="saving"
|
|
64
|
+
icon="el-icon-close"
|
|
65
|
+
:size="sizeButton || defaultSize"
|
|
66
|
+
@click="handleClose"
|
|
67
|
+
>
|
|
68
|
+
Буцах
|
|
69
|
+
</el-button>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</el-dialog>
|
|
73
|
+
</div>
|
|
74
|
+
</template>
|
|
75
|
+
<script>
|
|
76
|
+
import { getButtons } from './../utils/role-helper'
|
|
77
|
+
export default {
|
|
78
|
+
props: {
|
|
79
|
+
title: { type: String, default: '' },
|
|
80
|
+
appendToBody: { type: Boolean, default: false },
|
|
81
|
+
hasPassword: { type: Boolean, default: false },
|
|
82
|
+
temp: { type: Object, default: () => { return null } },
|
|
83
|
+
saving: { type: Boolean, default: false },
|
|
84
|
+
restoringPassword: { type: Boolean, default: false },
|
|
85
|
+
width: { type: String, default: '700px' },
|
|
86
|
+
pk_field_name: { type: String, default: '_id' },
|
|
87
|
+
loadingForm: { type: Boolean, default: false },
|
|
88
|
+
readOnly: { type: Boolean, default: false },
|
|
89
|
+
sizeButton: { type: String, default: null },
|
|
90
|
+
defaultSize: { type: String, default: null },
|
|
91
|
+
level: { type: Object, default: () => { return null } },
|
|
92
|
+
unsavedChanges: { type: Boolean, default: () => false },
|
|
93
|
+
isAdmin: { type: Boolean, default: false },
|
|
94
|
+
isLocalDefault: { type: Boolean, default: false }
|
|
95
|
+
},
|
|
96
|
+
computed: {
|
|
97
|
+
isCreate () {
|
|
98
|
+
return this.temp && !this.temp[this.pk_field_name]
|
|
99
|
+
},
|
|
100
|
+
isEdit () {
|
|
101
|
+
return this.temp && this.temp[this.pk_field_name]
|
|
102
|
+
},
|
|
103
|
+
visible: {
|
|
104
|
+
get () {
|
|
105
|
+
return !!this.temp
|
|
106
|
+
},
|
|
107
|
+
set () {
|
|
108
|
+
this.$emit('close')
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
buttons () {
|
|
112
|
+
return getButtons(this.level, '', this.isAdmin)
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
methods: {
|
|
116
|
+
async checkUnsavedChanges () {
|
|
117
|
+
if (this.unsavedChanges) {
|
|
118
|
+
await this.$showConfirm('Та өөрчлөлтийг хадгалахгүй хаах уу?')
|
|
119
|
+
this.$emit('set-unsaved-changes', false)
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
async handleClose () {
|
|
123
|
+
try {
|
|
124
|
+
await this.checkUnsavedChanges()
|
|
125
|
+
this.$emit('close')
|
|
126
|
+
} catch (err) {
|
|
127
|
+
this.$showError(err)
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
async beforeClose (done) {
|
|
131
|
+
try {
|
|
132
|
+
await this.checkUnsavedChanges()
|
|
133
|
+
done()
|
|
134
|
+
} catch (err) {
|
|
135
|
+
this.$showError(err)
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
</script>
|