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,306 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="(group.group_type || 'GROUP_FIELD') !== 'GROUP_FIELD' || groupColumns.length > 0"
|
|
4
|
+
:class="['rounded bg-background empty:hidden', {
|
|
5
|
+
'pt-4': !group.title && !['INLINE_TABLE'].includes(group.group_type) && !isLog && !noPaddingAll,
|
|
6
|
+
'pt-1 px-2 pb-2': !!group.title
|
|
7
|
+
}]"
|
|
8
|
+
>
|
|
9
|
+
<div v-if="isShowLogButton" class="text-center">
|
|
10
|
+
<el-button class="py-[2px]" type="text" size="mini" :icon="isShowLog ? 'el-icon-arrow-up' : 'el-icon-arrow-down'" @click="isShowLog = !isShowLog">
|
|
11
|
+
{{ isShowLog ? 'Лог хаах' : 'Лог харах' }}
|
|
12
|
+
</el-button>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="flex flex-row items-start justify-start gap-2">
|
|
15
|
+
<fieldset
|
|
16
|
+
v-if="isShow"
|
|
17
|
+
:class="['rounded w-full grid gap-x-4 flex-1', {
|
|
18
|
+
'px-2': !['INLINE_TABLE'].includes(group.group_type) && !noPaddingAll,
|
|
19
|
+
'grid-cols-1': (form_col || 1) === 1,
|
|
20
|
+
'grid-cols-1 md:grid-cols-2': form_col === 2,
|
|
21
|
+
// 'grid-cols-1 md:grid-cols-2 xl:grid-cols-3': form_col === 3,
|
|
22
|
+
// 'grid-cols-1 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4': form_col === 4,
|
|
23
|
+
'grid-cols-[repeat(auto-fit,minmax(300px,1fr))]': form_col >= 3,
|
|
24
|
+
'border border-coreLightBorder pt-2': group.title
|
|
25
|
+
}]"
|
|
26
|
+
>
|
|
27
|
+
<legend :class="['font-default text-sm font-medium text-coreSecondaryText ml-5 px-2', { 'mr-2': !group.title }]">
|
|
28
|
+
{{ group.title }}
|
|
29
|
+
</legend>
|
|
30
|
+
<div
|
|
31
|
+
v-if="group.group_type === 'SUB_FORM'" :class="['w-full col-span-full']"
|
|
32
|
+
>
|
|
33
|
+
<core-form-sub
|
|
34
|
+
:ref-column="refColumns.find(c => c.tableName === group.col_fields)"
|
|
35
|
+
:project-id="projectId"
|
|
36
|
+
:temp-id="temp && temp._id"
|
|
37
|
+
:root-api-id="rootApiId"
|
|
38
|
+
:root-temp-id="rootTempId"
|
|
39
|
+
:auto-height="true"
|
|
40
|
+
:hide-excel="true"
|
|
41
|
+
:no-search="true"
|
|
42
|
+
:plain-button="true"
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
<div
|
|
46
|
+
v-else-if="group.group_type === 'INLINE_TABLE'" :class="['w-full col-span-full']"
|
|
47
|
+
>
|
|
48
|
+
<reg-resolution-questions
|
|
49
|
+
v-if="group.name === 'RESOLUTION_QUESTIONS'"
|
|
50
|
+
:value="temp[group.name]"
|
|
51
|
+
:parent-temp="temp"
|
|
52
|
+
:parent-level="level"
|
|
53
|
+
:disabled="disabled || group.disabled"
|
|
54
|
+
@temp-change-forensics="$emit('temp-change', { col_field: 'RESOLUTION_FORENSICS' }, $event)"
|
|
55
|
+
@temp-change="$emit('temp-change', { col_field: group.name }, $event)"
|
|
56
|
+
/>
|
|
57
|
+
<reg-resolution-participants
|
|
58
|
+
v-else-if="group.name === 'PARTICIPANTS'"
|
|
59
|
+
:value="temp[group.name]"
|
|
60
|
+
:parent-temp="temp"
|
|
61
|
+
:table_name="group.col_fields"
|
|
62
|
+
:disabled="disabled || group.disabled"
|
|
63
|
+
:ref-column="refColumns.find(c => c.tableName === group.col_fields)"
|
|
64
|
+
@temp-change="$emit('temp-change', { col_field: group.name }, $event)"
|
|
65
|
+
@temp-change-all="$emit('temp-change-all', $event)"
|
|
66
|
+
/>
|
|
67
|
+
<!-- <reg-resolution-objects
|
|
68
|
+
v-else-if="group.name === 'RESOLUTION_OBJECTS'"
|
|
69
|
+
v-model="temp[group.name]"
|
|
70
|
+
:parent-temp="temp"
|
|
71
|
+
:disabled="group.is_disabled"
|
|
72
|
+
/> -->
|
|
73
|
+
<core-form-table-inline
|
|
74
|
+
v-else
|
|
75
|
+
:ref="`INLINE_TABLE_${group.name}`"
|
|
76
|
+
:value="temp[group.name]"
|
|
77
|
+
:group-name="group.name"
|
|
78
|
+
:table_name="group.col_fields"
|
|
79
|
+
:ref-column="refColumns.find(c => c.tableName === group.col_fields)"
|
|
80
|
+
:project-id="projectId"
|
|
81
|
+
:parent-temp="temp"
|
|
82
|
+
:parent-level="level"
|
|
83
|
+
:temp-id="temp && temp._id"
|
|
84
|
+
:disabled="disabled || group.disabled"
|
|
85
|
+
@temp-change="$emit('temp-change', { col_field: group.name }, $event)"
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
88
|
+
<div
|
|
89
|
+
v-else-if="['SUB_TABLE', 'SUB_TABLE_LOG'].includes(group.group_type)" :class="['w-full col-span-full']"
|
|
90
|
+
>
|
|
91
|
+
<core-form-table
|
|
92
|
+
:group-name="group.name"
|
|
93
|
+
:table_name="group.col_fields"
|
|
94
|
+
:text-where="group.text_where"
|
|
95
|
+
:ref-column="refColumns.find(c => c.tableName === group.col_fields)"
|
|
96
|
+
:project-id="projectId"
|
|
97
|
+
:root-api-id="rootApiId"
|
|
98
|
+
:root-temp-id="rootTempId"
|
|
99
|
+
:temp-id="temp?._id"
|
|
100
|
+
:temp-locale-id="temp?.locale_id"
|
|
101
|
+
:auto-height="true"
|
|
102
|
+
:hide-excel="true"
|
|
103
|
+
:no-search="true"
|
|
104
|
+
:plain-button="true"
|
|
105
|
+
:parent-level="level"
|
|
106
|
+
:is-log="'SUB_TABLE_LOG' === group.group_type"
|
|
107
|
+
/>
|
|
108
|
+
</div>
|
|
109
|
+
<div
|
|
110
|
+
v-else-if="group.group_type === 'CUSTOM'" :class="['w-full col-span-full']"
|
|
111
|
+
>
|
|
112
|
+
<custom-user-roles v-if="group.name === 'USER_ROLES'" :temp="temp" :level="level" />
|
|
113
|
+
<custom-user-skills v-else-if="group.name === 'USER_SKILLS'" :temp="temp" />
|
|
114
|
+
<custom-national-lang-skills v-else-if="group.name === 'NATIONAL_LANG_SKILLS'" :temp="temp" />
|
|
115
|
+
<custom-user-clothes v-else-if="group.name === 'USER_CLOTHES'" :temp="temp" :level="level" />
|
|
116
|
+
<training-plan-student v-else-if="group.name === 'PLAN_STUDENTS'" :parent-row="temp" :level="level" />
|
|
117
|
+
<training-plan-attendance v-else-if="group.name === 'PLAN_ATTENDANCES'" :parent-row="temp" :level="level" :group="group" :ref-column="refColumns.find(c => c.tableName === group.col_fields)" />
|
|
118
|
+
<training-plan-license v-else-if="group.name === 'PLAN_LICENSES'" :parent-row="temp" :level="level" :group="group" :ref-column="refColumns.find(c => c.tableName === group.col_fields)" />
|
|
119
|
+
<training-exam-question v-else-if="group.name === 'EXAM_QUESTIONS'" :parent-row="temp" :level="level" />
|
|
120
|
+
<training-exam-student v-else-if="group.name === 'EXAM_STUDENTS'" :parent-row="temp" :level="level" />
|
|
121
|
+
<training-hrm-material v-else-if="group.name === 'TRAINING_MATERIALS'" :parent-row="temp" :level="level" />
|
|
122
|
+
<training-hrm-material v-else-if="group.name === 'TRAINING_MATERIALS1'" :parent-row="temp" :level="level" />
|
|
123
|
+
<hrm-employee-inquiries v-else-if="group.name === 'HRM_EMPLOYEE_INQUIRIES'" :parent-row="temp" :level="level" />
|
|
124
|
+
<archive-document-pages v-else-if="group.name === 'ARCHIVE_DOCUMENT_PAGES'" :parent-temp="temp" :parent-root-api-id="rootApiId" :temp-id="temp && temp._id" :level="level" :group="group" :ref-column="refColumns.find(c => c.tableName === group.col_fields)" />
|
|
125
|
+
<archive-classification-item-pages v-else-if="group.name === 'CLASSIFICATION_ITEM_PAGES'" :parent-temp="temp" :temp-id="temp && temp._id" :level="level" :group="group" :ref-column="refColumns.find(c => c.tableName === group.col_fields)" />
|
|
126
|
+
</div>
|
|
127
|
+
<template v-else>
|
|
128
|
+
<template
|
|
129
|
+
v-for="col in groupColumns"
|
|
130
|
+
>
|
|
131
|
+
<div v-if="col.col_field === 'resolution_org_id'" :key="'break' + col.form.prop" class="col-span-full" />
|
|
132
|
+
<div v-if="col.col_field === 'doc_num'" :key="'break' + col.form.prop" class="col-span-full" />
|
|
133
|
+
<div
|
|
134
|
+
:key="col.form.prop"
|
|
135
|
+
:class="['min-w-[300px]', {
|
|
136
|
+
'col-span-1 md:col-span-2': form_col > 1 && col.form.colSpan === 2,
|
|
137
|
+
'col-span-1 md:col-span-3': form_col > 2 && col.form.colSpan === 3,
|
|
138
|
+
'col-span-1 md:col-span-4': form_col > 3 && col.form.colSpan === 4,
|
|
139
|
+
'col-span-full': col.form.colSpan === 99,
|
|
140
|
+
'row-span-2': col.form.rowSpan === 2,
|
|
141
|
+
'row-span-3': col.form.rowSpan === 3,
|
|
142
|
+
'row-span-4': col.form.rowSpan === 4
|
|
143
|
+
}]"
|
|
144
|
+
>
|
|
145
|
+
<el-form-item
|
|
146
|
+
class="group w-full flex-row"
|
|
147
|
+
:prop="col.form.prop"
|
|
148
|
+
:label="col.col_field.includes('html') ? '' : getLabel(col)"
|
|
149
|
+
:label-width="col.col_field.includes('html') ? '0' : null"
|
|
150
|
+
>
|
|
151
|
+
<span v-if="!col.col_field.includes('html')" slot="label">
|
|
152
|
+
<span v-if="isLocaleLabel">{{ $t(`formItem.${col.form.prop}`) }}</span>
|
|
153
|
+
<span v-else class="text-foreground">{{ getLabel(col) }}</span>
|
|
154
|
+
<el-popover
|
|
155
|
+
v-if="col.form.description"
|
|
156
|
+
placement="bottom"
|
|
157
|
+
width="200"
|
|
158
|
+
trigger="hover"
|
|
159
|
+
>
|
|
160
|
+
<div class="text-xs break-normal text-left text-coreRegularText">{{ col.form.description }}</div>
|
|
161
|
+
<i slot="reference" class="el-icon-info cursor-pointer text-coreSecondaryText" />
|
|
162
|
+
</el-popover>
|
|
163
|
+
</span>
|
|
164
|
+
<core-form-item
|
|
165
|
+
:col="col"
|
|
166
|
+
:parent-temp="parentTemp || temp"
|
|
167
|
+
:temp="temp"
|
|
168
|
+
:project-id="projectId"
|
|
169
|
+
:root-temp-id="rootTempId"
|
|
170
|
+
:pk_field_name="pk_field_name"
|
|
171
|
+
:default-size="defaultSize"
|
|
172
|
+
:loading="searching"
|
|
173
|
+
:disabled="checkDisabledColumn(col)"
|
|
174
|
+
@temp-change="$emit('temp-change', col, $event)"
|
|
175
|
+
@form-search="$emit('form-search', col)"
|
|
176
|
+
/>
|
|
177
|
+
</el-form-item>
|
|
178
|
+
</div>
|
|
179
|
+
</template>
|
|
180
|
+
</template>
|
|
181
|
+
</fieldset>
|
|
182
|
+
<div v-if="isXypImage" class="w-[3cm] aspect-[3/4] bg-coreBgHover rounded border mr-4">
|
|
183
|
+
<img
|
|
184
|
+
v-if="temp.xyp_log_id"
|
|
185
|
+
:src="`/api/xypservice/idcard/image/${temp.xyp_log_id}`"
|
|
186
|
+
class="w-full h-full object-cover"
|
|
187
|
+
>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
<custom-table-logs v-if="isShow && group.name === 'LOG' && table?._id && temp" :project_id="projectId" :table_id="table._id" :pk_id="temp[pk_field_name]" />
|
|
191
|
+
</div>
|
|
192
|
+
</template>
|
|
193
|
+
<script>
|
|
194
|
+
import { get, has } from 'lodash'
|
|
195
|
+
import { getTriggerEquals, getTriggerFields } from '../utils/data-helper'
|
|
196
|
+
export default {
|
|
197
|
+
name: 'CoreFormFields',
|
|
198
|
+
props: [
|
|
199
|
+
'group', 'parentTemp', 'rootTempId', 'rootApiId', 'temp', 'pk_field_name', 'defaultSize', 'table',
|
|
200
|
+
'projectId', 'searching', 'refColumns', 'disabled',
|
|
201
|
+
'isSubMenu', 'showPkid', 'level', 'isLocaleLabel',
|
|
202
|
+
'noPadding', 'noPaddingAll', 'parentFormCol'
|
|
203
|
+
],
|
|
204
|
+
data () {
|
|
205
|
+
return {
|
|
206
|
+
isShowLog: false
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
computed: {
|
|
210
|
+
form_col () {
|
|
211
|
+
return Number(this.parentFormCol || this.table.form_col || 1)
|
|
212
|
+
},
|
|
213
|
+
isLog () {
|
|
214
|
+
return this.group.name === 'LOG'
|
|
215
|
+
},
|
|
216
|
+
isShow () {
|
|
217
|
+
return !this.isLog || this.isSubMenu || this.isShowLog
|
|
218
|
+
},
|
|
219
|
+
isShowLogButton () {
|
|
220
|
+
return this.isLog && !this.isSubMenu && (this.level?.isAdmin || this.level?.actions?.some(c => c.code === 'LOG') || this.isDevelopment)
|
|
221
|
+
},
|
|
222
|
+
isXypImage () {
|
|
223
|
+
return ['firearm_', 'reg_'].some(c => this.table?.name.startsWith(c)) &&
|
|
224
|
+
this.group.columns?.filter(this.checkFilterColumns).some(c => ['register_num'].includes(c.col_field)) &&
|
|
225
|
+
has(this.temp, 'xyp_log_id') &&
|
|
226
|
+
!this.temp?.is_legal
|
|
227
|
+
},
|
|
228
|
+
groupColumns () {
|
|
229
|
+
return this.group.columns?.filter(this.checkFilterColumns)
|
|
230
|
+
},
|
|
231
|
+
isDevelopment () {
|
|
232
|
+
return process.env.NODE_ENV === 'development'
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
methods: {
|
|
236
|
+
getLabel (col) {
|
|
237
|
+
const trigger_fields = getTriggerFields(col.trigger_fields, 'label')
|
|
238
|
+
for (const r of trigger_fields) {
|
|
239
|
+
const { type, localKey, label } = r
|
|
240
|
+
const localVal = r.localVal
|
|
241
|
+
const operation = r.operation
|
|
242
|
+
let tempVal = get(this.temp, localKey)
|
|
243
|
+
if (tempVal && typeof tempVal === 'object' && has(tempVal, this.pk_field_name)) {
|
|
244
|
+
tempVal = type === 'number' ? Number(tempVal._id) : tempVal._id
|
|
245
|
+
}
|
|
246
|
+
if (operation === 'ne' && localVal !== tempVal) {
|
|
247
|
+
return label
|
|
248
|
+
} else if (operation === 'eq' && localVal === tempVal) {
|
|
249
|
+
return label
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return col.form.label
|
|
253
|
+
},
|
|
254
|
+
checkFilterColumns (c) {
|
|
255
|
+
return this.checkColumns(c, 'show')
|
|
256
|
+
},
|
|
257
|
+
checkDisabledColumn (c) {
|
|
258
|
+
if (this.disabled) {
|
|
259
|
+
return true
|
|
260
|
+
}
|
|
261
|
+
if (c.trigger_fields) {
|
|
262
|
+
const trigger_fields = getTriggerFields(c.trigger_fields, 'disable')
|
|
263
|
+
let isShow = false
|
|
264
|
+
for (const r of trigger_fields) {
|
|
265
|
+
isShow = getTriggerEquals(r, this.temp, isShow)
|
|
266
|
+
if (isShow) {
|
|
267
|
+
break
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return isShow
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
checkColumns (c, actionType, tt = true) {
|
|
274
|
+
if (c.trigger_fields) {
|
|
275
|
+
const trigger_fields = getTriggerFields(c.trigger_fields, actionType)
|
|
276
|
+
let isShow = tt
|
|
277
|
+
for (const r of trigger_fields) {
|
|
278
|
+
isShow = getTriggerEquals(r, this.temp, isShow)
|
|
279
|
+
if (isShow !== tt) {
|
|
280
|
+
break
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return isShow
|
|
284
|
+
}
|
|
285
|
+
if (actionType === 'show') {
|
|
286
|
+
return !['pkid', 'uuid'].includes(c.col_type) || this.showPkid
|
|
287
|
+
} else {
|
|
288
|
+
return true
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
async isValidate () {
|
|
292
|
+
let validated = true
|
|
293
|
+
if (this.group.group_type === 'INLINE_TABLE') {
|
|
294
|
+
const ref = this.$refs[`INLINE_TABLE_${this.group.name}`]
|
|
295
|
+
if (ref) {
|
|
296
|
+
const isValid = await this.$refs[`INLINE_TABLE_${this.group.name}`].isValidate()
|
|
297
|
+
if (!isValid) {
|
|
298
|
+
validated = false
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return validated
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
</script>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="componentName"
|
|
4
|
+
ref="refComponent"
|
|
5
|
+
v-bind="componentProps"
|
|
6
|
+
v-model="modelValue"
|
|
7
|
+
:pk_field_name="pk_field_name"
|
|
8
|
+
:size="defaultSize"
|
|
9
|
+
:loading="loading"
|
|
10
|
+
:project-id="projectId"
|
|
11
|
+
:parent-temp="coreSelectTemp"
|
|
12
|
+
:root-temp="coreRootTemp"
|
|
13
|
+
:root-temp-id="coreRootTempId"
|
|
14
|
+
:com-type="comType"
|
|
15
|
+
@form-search="($event) => $emit('form-search', $event)"
|
|
16
|
+
@keydown.native.enter="$emit('keydown-enter')"
|
|
17
|
+
@keydown-enter="$emit('keydown-enter')"
|
|
18
|
+
@keydown.native="$emit('keydown', $event)"
|
|
19
|
+
/>
|
|
20
|
+
</template>
|
|
21
|
+
<script>
|
|
22
|
+
import { get } from 'lodash'
|
|
23
|
+
export default {
|
|
24
|
+
name: 'CoreFormItem',
|
|
25
|
+
props: {
|
|
26
|
+
col: { type: Object, default: () => { return null } },
|
|
27
|
+
parentTemp: { type: Object, default: () => { return null } },
|
|
28
|
+
temp: { type: Object, default: () => { return null } },
|
|
29
|
+
projectId: { type: String, default: null },
|
|
30
|
+
rootTempId: { type: String, default: null },
|
|
31
|
+
pk_field_name: { type: String, default: '_id' },
|
|
32
|
+
loading: { type: Boolean, default: false },
|
|
33
|
+
defaultSize: { type: String, default: null },
|
|
34
|
+
disabled: { type: Boolean, default: null },
|
|
35
|
+
comType: { type: String, default: undefined }
|
|
36
|
+
},
|
|
37
|
+
computed: {
|
|
38
|
+
componentName () {
|
|
39
|
+
return get(this.col, 'form.component.name')
|
|
40
|
+
},
|
|
41
|
+
componentProps () {
|
|
42
|
+
const props = { ...get(this.col, 'form.component.props') }
|
|
43
|
+
if (this.disabled) {
|
|
44
|
+
props.disabled = true
|
|
45
|
+
}
|
|
46
|
+
return props
|
|
47
|
+
},
|
|
48
|
+
coreRootTempId () {
|
|
49
|
+
return [
|
|
50
|
+
'CoreFiles',
|
|
51
|
+
'CoreUploadImage'
|
|
52
|
+
].includes(this.componentName)
|
|
53
|
+
? this.rootTempId
|
|
54
|
+
: null
|
|
55
|
+
},
|
|
56
|
+
coreRootTemp () {
|
|
57
|
+
return [
|
|
58
|
+
'CoreCascaderChildOrg',
|
|
59
|
+
'CoreCascaderChildPosition'
|
|
60
|
+
].includes(this.componentName)
|
|
61
|
+
? this.parentTemp
|
|
62
|
+
: null
|
|
63
|
+
},
|
|
64
|
+
coreSelectTemp () {
|
|
65
|
+
if (['CoreDate'].includes(this.componentName) && this.col.col_field.endsWith('end_date')) {
|
|
66
|
+
return this.temp
|
|
67
|
+
}
|
|
68
|
+
return [
|
|
69
|
+
'CoreSelect',
|
|
70
|
+
'ConfigSelectColumns',
|
|
71
|
+
'CoreSelectTable',
|
|
72
|
+
'CustomUserSelect',
|
|
73
|
+
'CoreSelectOrgEmp',
|
|
74
|
+
'CoreCascaderChildOrg',
|
|
75
|
+
'CoreCascaderChildPosition',
|
|
76
|
+
'DocRegNum',
|
|
77
|
+
'DocIndexNum',
|
|
78
|
+
'DocOrgSelect',
|
|
79
|
+
'DocUserSelect',
|
|
80
|
+
'PoliceCode',
|
|
81
|
+
'FirearmBodyNumber',
|
|
82
|
+
'ArchiveRequestRegNum',
|
|
83
|
+
'RegCrimePlace'
|
|
84
|
+
].includes(this.componentName)
|
|
85
|
+
? this.temp
|
|
86
|
+
: null
|
|
87
|
+
},
|
|
88
|
+
modelValue: {
|
|
89
|
+
get () {
|
|
90
|
+
return get(this.temp, this.col.col_field)
|
|
91
|
+
},
|
|
92
|
+
set (val) {
|
|
93
|
+
this.$emit('temp-change', val)
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
async focus () {
|
|
99
|
+
await this.$nextTick()
|
|
100
|
+
const refComponents = this.$refs.refComponent
|
|
101
|
+
const refComponent = get(refComponents, '[0]') || refComponents
|
|
102
|
+
if (!refComponent) {
|
|
103
|
+
return
|
|
104
|
+
}
|
|
105
|
+
if (refComponent.focus) {
|
|
106
|
+
this.$refs.refComponent.focus()
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
handleFormSearch () {
|
|
110
|
+
this.$emit('form-search', this.col)
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
</script>
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<moment-add-code
|
|
3
|
+
v-if="col.col_field.startsWith('moment')"
|
|
4
|
+
:disabled="col.disabled"
|
|
5
|
+
:value="temp[col.col_field]"
|
|
6
|
+
@input="handleChange(col, $event)"
|
|
7
|
+
/>
|
|
8
|
+
<core-deep-link
|
|
9
|
+
v-else-if="['deeplink'].includes(col.type)"
|
|
10
|
+
:temp="temp"
|
|
11
|
+
:value="temp[col.col_field]"
|
|
12
|
+
:trigger-fields="col.trigger_fields"
|
|
13
|
+
@input="handleChange(col, $event)"
|
|
14
|
+
/>
|
|
15
|
+
<core-upload-image
|
|
16
|
+
v-else-if="['icon', 'file', 'image'].includes(col.type)"
|
|
17
|
+
:file-type="col.type"
|
|
18
|
+
:col-multiple="col.col_multiple"
|
|
19
|
+
:disabled="col.disabled"
|
|
20
|
+
:value="temp[col.col_field]"
|
|
21
|
+
@input="handleChange(col, $event)"
|
|
22
|
+
/>
|
|
23
|
+
<core-select
|
|
24
|
+
v-else-if="['manyToOne', 'table'].includes(col.type)"
|
|
25
|
+
:temp="temp"
|
|
26
|
+
:disabled="col.disabled"
|
|
27
|
+
:table-name="col.ref_table"
|
|
28
|
+
:ref-column="col.ref_column"
|
|
29
|
+
:value="temp[col.col_field]"
|
|
30
|
+
:project-id="projectId"
|
|
31
|
+
:col-multiple="col.col_multiple"
|
|
32
|
+
:trigger-fields="col.trigger_fields && !col.trigger_fields.includes('extract') ? col.trigger_fields : null"
|
|
33
|
+
:size="defaultSize"
|
|
34
|
+
@input="handleChange(col, $event)"
|
|
35
|
+
/>
|
|
36
|
+
<el-date-picker
|
|
37
|
+
v-else-if="col.type === 'date'"
|
|
38
|
+
:size="defaultSize"
|
|
39
|
+
:disabled="col.disabled"
|
|
40
|
+
type="date"
|
|
41
|
+
:value="temp[col.col_field] ? $moment(temp[col.col_field]).format('YYYY-MM-DD') : ''"
|
|
42
|
+
format="yyyy-MM-dd"
|
|
43
|
+
value-format="yyyy-MM-dd"
|
|
44
|
+
class="w-full"
|
|
45
|
+
@input="handleChange(col, $event)"
|
|
46
|
+
/>
|
|
47
|
+
<el-input-number
|
|
48
|
+
v-else-if="['number', 'decimal', 'pkid'].includes(col.type)"
|
|
49
|
+
:precision="['decimal'].includes(col.type) ? 1 : 0"
|
|
50
|
+
:disabled="col.disabled"
|
|
51
|
+
:value="temp[col.col_field]"
|
|
52
|
+
:size="defaultSize"
|
|
53
|
+
class="w-full"
|
|
54
|
+
@input="handleChange(col, $event)"
|
|
55
|
+
/>
|
|
56
|
+
<el-switch
|
|
57
|
+
v-else-if="col.type === 'boolean'"
|
|
58
|
+
:disabled="col.disabled"
|
|
59
|
+
:value="[1, '1', 'true', true, 'True', 'TRUE'].includes(temp[col.col_field])"
|
|
60
|
+
:size="defaultSize"
|
|
61
|
+
@input="handleChange(col, $event)"
|
|
62
|
+
/>
|
|
63
|
+
<div v-else-if="col.type === 'color'" class="flex gap-2">
|
|
64
|
+
<el-color-picker
|
|
65
|
+
:disabled="col.disabled"
|
|
66
|
+
:value="getValue(col, temp)"
|
|
67
|
+
:size="defaultSize"
|
|
68
|
+
@change="handleChange(col, $event)"
|
|
69
|
+
/>
|
|
70
|
+
<el-input
|
|
71
|
+
:disabled="col.disabled"
|
|
72
|
+
:value="getValue(col, temp)"
|
|
73
|
+
placeholder="Өнгө сонгоно уу"
|
|
74
|
+
:size="defaultSize"
|
|
75
|
+
@input="handleChange(col, $event)"
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
<editor
|
|
79
|
+
v-else-if="col.col_field.startsWith('html_')"
|
|
80
|
+
:disabled="col.disabled"
|
|
81
|
+
:value="getValue(col, temp)"
|
|
82
|
+
@input="handleChange(col, $event)"
|
|
83
|
+
/>
|
|
84
|
+
<core-vimeo
|
|
85
|
+
v-else-if="col.col_field.includes('vimeo_')"
|
|
86
|
+
:disabled="col.disabled"
|
|
87
|
+
:value="getValue(col, temp)"
|
|
88
|
+
@input="handleChange(col, $event)"
|
|
89
|
+
/>
|
|
90
|
+
<el-input
|
|
91
|
+
v-else
|
|
92
|
+
:type="col.type === 'email' ? 'email' : (col.col_length > 255 ? 'textarea' : 'text')"
|
|
93
|
+
:disabled="col.disabled"
|
|
94
|
+
:value="getValue(col, temp)"
|
|
95
|
+
:placeholder="col.form.placeholder"
|
|
96
|
+
:show-word-limit="col.col_length > 255"
|
|
97
|
+
:maxlength="col.col_length"
|
|
98
|
+
:size="defaultSize"
|
|
99
|
+
autosize
|
|
100
|
+
@input="handleChange(col, $event)"
|
|
101
|
+
>
|
|
102
|
+
<el-button
|
|
103
|
+
v-if="col.form.isSearch"
|
|
104
|
+
slot="append"
|
|
105
|
+
icon="el-icon-search"
|
|
106
|
+
:loading="searching"
|
|
107
|
+
@click="handleFormSearch(col)"
|
|
108
|
+
/>
|
|
109
|
+
<el-button
|
|
110
|
+
v-if="col.form.isCopy"
|
|
111
|
+
slot="append"
|
|
112
|
+
icon="el-icon-document-copy"
|
|
113
|
+
@click="$emit('form-copy', { prop: col.col_field })"
|
|
114
|
+
/>
|
|
115
|
+
</el-input>
|
|
116
|
+
</template>
|
|
117
|
+
<script>
|
|
118
|
+
import { get } from 'lodash'
|
|
119
|
+
export default {
|
|
120
|
+
name: 'CoreFormItemCopy',
|
|
121
|
+
props: {
|
|
122
|
+
col: { type: Object, default: () => { return null } },
|
|
123
|
+
temp: { type: Object, default: () => { return null } },
|
|
124
|
+
projectId: { type: String, default: null },
|
|
125
|
+
pk_field_name: { type: String, default: '_id' },
|
|
126
|
+
searching: { type: Boolean, default: false },
|
|
127
|
+
defaultSize: { type: String, default: null }
|
|
128
|
+
},
|
|
129
|
+
methods: {
|
|
130
|
+
getValue (col, row) {
|
|
131
|
+
const value = get(row, col.col_field)
|
|
132
|
+
if (col.type === 'boolean') {
|
|
133
|
+
return value ? 'Тийм' : 'Үгүй'
|
|
134
|
+
} else if (col.type === 'date') {
|
|
135
|
+
if (!value) {
|
|
136
|
+
return ''
|
|
137
|
+
}
|
|
138
|
+
return this.$moment(value).format('YYYY-MM-DD')
|
|
139
|
+
} else if (col.type === 'datetime') {
|
|
140
|
+
if (!value) {
|
|
141
|
+
return ''
|
|
142
|
+
}
|
|
143
|
+
return this.$moment(value).format('YYYY-MM-DD HH:mm')
|
|
144
|
+
}
|
|
145
|
+
return value
|
|
146
|
+
},
|
|
147
|
+
handleFormSearch (col) {
|
|
148
|
+
this.$emit('form-search', col)
|
|
149
|
+
},
|
|
150
|
+
handleChange (col, $event) {
|
|
151
|
+
this.$emit('temp-change', $event)
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
</script>
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="initted && table">
|
|
3
|
+
<core-form
|
|
4
|
+
ref="coreForm"
|
|
5
|
+
:temp="temp"
|
|
6
|
+
:columns="columns"
|
|
7
|
+
:rules="rules"
|
|
8
|
+
:table="table"
|
|
9
|
+
:pk_field_name="project.pk_field_name"
|
|
10
|
+
:show-pkid="showPkid"
|
|
11
|
+
:has-password="hasPassword"
|
|
12
|
+
:project-id="project._id"
|
|
13
|
+
:ref-columns="refColumns"
|
|
14
|
+
:config_group_fields="config_group_fields"
|
|
15
|
+
:config_form_menus="config_form_menus"
|
|
16
|
+
hide-log
|
|
17
|
+
no-padding
|
|
18
|
+
default-size="small"
|
|
19
|
+
@temp-change="handleTempChange"
|
|
20
|
+
/>
|
|
21
|
+
<div class="pb-2 flex justify-center">
|
|
22
|
+
<el-button
|
|
23
|
+
type="success"
|
|
24
|
+
:loading="saving"
|
|
25
|
+
:disabled="restoringPassword"
|
|
26
|
+
size="small"
|
|
27
|
+
plain
|
|
28
|
+
icon="el-icon-check"
|
|
29
|
+
@click="handleSave"
|
|
30
|
+
>
|
|
31
|
+
Хадгалах
|
|
32
|
+
</el-button>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
<script>
|
|
37
|
+
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '@/../core-components/utils/table-helper'
|
|
38
|
+
export default {
|
|
39
|
+
name: 'CoreFormSub',
|
|
40
|
+
props: {
|
|
41
|
+
table_name: { type: String, default: '' },
|
|
42
|
+
projectId: { type: [Number, String], default: '' },
|
|
43
|
+
sub: { type: String, default: null },
|
|
44
|
+
tempId: { type: String, default: null },
|
|
45
|
+
refColumn: { type: Object, default: () => { return null } },
|
|
46
|
+
autoHeight: { type: Boolean, default: false },
|
|
47
|
+
hideExcel: { type: Boolean, default: false },
|
|
48
|
+
noSearch: { type: Boolean, default: false },
|
|
49
|
+
plainButton: { type: Boolean, default: false },
|
|
50
|
+
apiName: { type: String, default: null },
|
|
51
|
+
showPkid: { type: Boolean, default: false }
|
|
52
|
+
},
|
|
53
|
+
data () {
|
|
54
|
+
return {
|
|
55
|
+
...tableData,
|
|
56
|
+
isFormSub: true,
|
|
57
|
+
currentPage: 1,
|
|
58
|
+
id: null,
|
|
59
|
+
configProjectId: null,
|
|
60
|
+
project: null,
|
|
61
|
+
table: null,
|
|
62
|
+
formWidth: null,
|
|
63
|
+
columns: null,
|
|
64
|
+
configTableName: null,
|
|
65
|
+
configColFields: null,
|
|
66
|
+
hasPassword: null,
|
|
67
|
+
refColumns: null,
|
|
68
|
+
subColumn: null,
|
|
69
|
+
parentRow: null,
|
|
70
|
+
readOnly: null,
|
|
71
|
+
config_group_fields: null,
|
|
72
|
+
config_form_menus: null,
|
|
73
|
+
initted: false
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
computed: {
|
|
77
|
+
...tableComputed,
|
|
78
|
+
tableName () {
|
|
79
|
+
return this.table?.name
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
watch: {
|
|
83
|
+
...tableWatch
|
|
84
|
+
},
|
|
85
|
+
mounted () {
|
|
86
|
+
this.handleGetConfig()
|
|
87
|
+
},
|
|
88
|
+
methods: {
|
|
89
|
+
...tableMethods,
|
|
90
|
+
async handleGetConfig () {
|
|
91
|
+
try {
|
|
92
|
+
this.initted = false
|
|
93
|
+
const config = await getAsyncData({
|
|
94
|
+
tableName: this.refColumn ? this.refColumn.ref_table : this.table_name,
|
|
95
|
+
projectId: this.projectId,
|
|
96
|
+
sub: this.refColumn ? this.refColumn._id : this.sub,
|
|
97
|
+
$axios: this.$axios,
|
|
98
|
+
id: this.tempId,
|
|
99
|
+
apiName: this.apiName,
|
|
100
|
+
error: this.$nuxt.error
|
|
101
|
+
})
|
|
102
|
+
for (const configKey in config) {
|
|
103
|
+
this[configKey] = config[configKey]
|
|
104
|
+
}
|
|
105
|
+
this.$nextTick(() => {
|
|
106
|
+
this.resetSearch()
|
|
107
|
+
this.resetDefaultTemp()
|
|
108
|
+
this.resetTemp()
|
|
109
|
+
})
|
|
110
|
+
} catch (err) {
|
|
111
|
+
this.$showError(err)
|
|
112
|
+
} finally {
|
|
113
|
+
this.initted = true
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
</script>
|