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,78 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-table-column
|
|
3
|
+
v-bind="col.props"
|
|
4
|
+
:key="col.col_field"
|
|
5
|
+
:prop="col.col_key"
|
|
6
|
+
:sortable="false"
|
|
7
|
+
:class-name="col.hasChildren ? 'core-group-column' : ''"
|
|
8
|
+
>
|
|
9
|
+
<template slot="header" slot-scope="scope">
|
|
10
|
+
<core-table-column-header :label="scope.column.label" :col_key="col.col_key" :sortable="!col.hasChildren && sorts?.length && (has(col.props, 'sortable') ? col.props.sortable : true)" @sort-change="$emit('sort-change', $event)" />
|
|
11
|
+
<div v-if="!col.hasChildren && search && !noSearch" class="font-normal">
|
|
12
|
+
<core-table-search :search="search" :col="col" :project-id="projectId" :table_name="table_name" @search-input="$emit('search-input', $event)" @search="$emit('search')" />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
<el-table-column
|
|
16
|
+
v-for="child in col.columns?.filter(c1 => col.hasChildren && !c1.tableHidden)"
|
|
17
|
+
v-bind="child.props"
|
|
18
|
+
:key="child.col_field"
|
|
19
|
+
:prop="child.col_key"
|
|
20
|
+
:sortable="false"
|
|
21
|
+
class-name="core-subgroup-column"
|
|
22
|
+
>
|
|
23
|
+
<template slot="header" slot-scope="scope">
|
|
24
|
+
<core-table-column-header
|
|
25
|
+
:label="scope.column.label"
|
|
26
|
+
:col_key=" child.col_key"
|
|
27
|
+
:sortable="sorts && sorts.length > 0 && (has(child.props, 'sortable') ? child.props.sortable : true)"
|
|
28
|
+
@sort-change="$emit('sort-change', $event)"
|
|
29
|
+
/>
|
|
30
|
+
<div v-if="search && !noSearch" class="font-normal">
|
|
31
|
+
<core-table-search :search="search" :col="child" :project-id="projectId" :table_name="table_name" @search-input="$emit('search-input', $event)" @search="$emit('search')" />
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<template slot-scope="scope">
|
|
35
|
+
<core-table-column-row
|
|
36
|
+
:col="child"
|
|
37
|
+
:scope="scope"
|
|
38
|
+
:fill-fields="fillFields"
|
|
39
|
+
:selectable="selectable"
|
|
40
|
+
@detail="(isNewTab) => handleDetail(scope.row, child, isNewTab)"
|
|
41
|
+
/>
|
|
42
|
+
</template>
|
|
43
|
+
</el-table-column>
|
|
44
|
+
<template v-if="!col.hasChildren" slot-scope="scope">
|
|
45
|
+
<core-table-column-row
|
|
46
|
+
:col="col"
|
|
47
|
+
:scope="scope"
|
|
48
|
+
:fill-fields="fillFields"
|
|
49
|
+
:edit-fields="editFields"
|
|
50
|
+
:selectable="selectable"
|
|
51
|
+
@detail="(isNewTab) => handleDetail(scope.row, col, isNewTab)"
|
|
52
|
+
@change-cell-value="($event) => $emit('change-cell-value', $event)"
|
|
53
|
+
/>
|
|
54
|
+
</template>
|
|
55
|
+
</el-table-column>
|
|
56
|
+
</template>
|
|
57
|
+
<script>
|
|
58
|
+
import { has } from 'lodash'
|
|
59
|
+
export default {
|
|
60
|
+
props: {
|
|
61
|
+
projectId: { type: [String, Number], default: '5' },
|
|
62
|
+
col: { type: Object, default: () => { return null } },
|
|
63
|
+
search: { type: Object, default: () => { return null } },
|
|
64
|
+
noSearch: { type: Boolean, default: false },
|
|
65
|
+
fillFields: { type: Array, default: () => { return [] } },
|
|
66
|
+
sorts: { type: Array, default: () => { return [] } },
|
|
67
|
+
table_name: { type: String, default: null },
|
|
68
|
+
editFields: { type: Array, default: () => { return [] } },
|
|
69
|
+
selectable: { type: Boolean, default: false }
|
|
70
|
+
},
|
|
71
|
+
methods: {
|
|
72
|
+
has,
|
|
73
|
+
handleDetail (row, col, isNewTab) {
|
|
74
|
+
this.$emit('detail', row, col, isNewTab)
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</script>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="h-full flex items-center w-full">
|
|
3
|
+
<div
|
|
4
|
+
class="flex-1 pl-1.5 text-xs leading-4 line-clamp-2 whitespace-normal break-normal"
|
|
5
|
+
:title="label"
|
|
6
|
+
>
|
|
7
|
+
{{ label }}
|
|
8
|
+
<!-- {{ col_key }} -->
|
|
9
|
+
</div>
|
|
10
|
+
<div v-if="sortable" class="caret-wrapper w-6">
|
|
11
|
+
<i class="sort-caret ascending" @click.stop="$emit('sort-change', { prop: col_key, order: 'ascending' })" />
|
|
12
|
+
<i class="sort-caret descending" @click.stop="$emit('sort-change', { prop: col_key, order: 'descending' })" />
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<script>
|
|
17
|
+
export default {
|
|
18
|
+
props: ['sortable', 'col_field', 'label', 'col_key'],
|
|
19
|
+
computed: {
|
|
20
|
+
isGroup () {
|
|
21
|
+
return this.col_key === 'is_group'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="editFields.includes(col.col_field)" @dblclick.prevent.stop>
|
|
3
|
+
<core-form-item
|
|
4
|
+
:col="col"
|
|
5
|
+
:temp="scope.row"
|
|
6
|
+
project-id="5"
|
|
7
|
+
pk_field_name="_id"
|
|
8
|
+
default-size="small"
|
|
9
|
+
com-type="inline"
|
|
10
|
+
@temp-change="modelValue = $event"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
<div v-else-if="col.col_field.endsWith('duration_justified')">
|
|
14
|
+
<core-duration-justified :value="getValue(col, scope.row)" />
|
|
15
|
+
</div>
|
|
16
|
+
<div
|
|
17
|
+
v-else-if="['image', 'profileImage'].includes(col.col_type)"
|
|
18
|
+
:class="['h-full flex items-center w-full', {
|
|
19
|
+
'justify-center': col.props.align === 'center',
|
|
20
|
+
'justify-end': col.props.align === 'right'
|
|
21
|
+
}]"
|
|
22
|
+
>
|
|
23
|
+
<core-table-image
|
|
24
|
+
:value="getValue(col, scope.row)"
|
|
25
|
+
:col_multiple="col.col_multiple"
|
|
26
|
+
:col_type="col.col_type"
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
<moment-add-code v-else-if="col.col_field.startsWith('moment')" :value="getValue(col, scope.row)" view-type="table" />
|
|
30
|
+
<core-vimeo-label v-else-if="col.col_field.includes('vimeo')" :value="getValue(col, scope.row)" />
|
|
31
|
+
<div v-else-if="col.col_field.includes('html')" v-html="getValue(col, scope.row)" />
|
|
32
|
+
<div
|
|
33
|
+
v-else
|
|
34
|
+
:class="['flex flex-row items-center w-full flex-wrap gap-x-2 h-full', {
|
|
35
|
+
'justify-center': col.props.align === 'center',
|
|
36
|
+
'justify-end': col.props.align === 'right'
|
|
37
|
+
}]"
|
|
38
|
+
>
|
|
39
|
+
<core-table-image v-if="col.refColumnImage" :value="scope.row[col.refColumnImage]" size="mini" hide-border circle />
|
|
40
|
+
<boolean-label v-if="col.col_type === 'boolean'" :value="scope.row[col.col_field]" :col_field="col.col_field" :label="getValue(col, scope.row)" />
|
|
41
|
+
<div
|
|
42
|
+
v-else
|
|
43
|
+
:class="['h-12 w-full flex items-center flex-wrap', {
|
|
44
|
+
'text-green-500 font-semibold': col.showStatus && isValue(col, scope.row),
|
|
45
|
+
'text-red-500 font-semibold': col.showStatus && !isValue(col, scope.row),
|
|
46
|
+
'justify-center': col.props.align === 'center',
|
|
47
|
+
'justify-end': col.props.align === 'right'
|
|
48
|
+
}]"
|
|
49
|
+
>
|
|
50
|
+
<div
|
|
51
|
+
v-if="isColor(col, scope.row) && isValue(col, scope.row)"
|
|
52
|
+
:style="{
|
|
53
|
+
color: getColor(col, scope.row),
|
|
54
|
+
background: getColor(col, scope.row) + '11',
|
|
55
|
+
borderColor: getColor(col, scope.row) + '33'
|
|
56
|
+
}"
|
|
57
|
+
class="rounded text-white px-1 py-[3px] text-xs leading-3 font-medium text-center w-full border relative"
|
|
58
|
+
>
|
|
59
|
+
<span>{{ getValue(col, scope.row) }}</span>
|
|
60
|
+
<div v-if="isPingExpired(col, scope.row)" class="absolute h-2 w-2 -top-1 -right-1">
|
|
61
|
+
<span class="relative flex h-2 w-2">
|
|
62
|
+
<!-- <span class="animate-ping absolute inline-flex h-full w-full rounded-full opacity-75" /> -->
|
|
63
|
+
<span class="relative inline-flex rounded-full h-2 w-2 bg-coreWarning" />
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
<div v-else-if="isPing(col, scope.row)" class="absolute h-2 w-2 -top-1 -right-1">
|
|
67
|
+
<span class="relative flex h-2 w-2">
|
|
68
|
+
<span class="animate-ping absolute inline-flex h-full w-full rounded-full opacity-75" :style="{ background: getColor(col, scope.row) + 'AA' }" />
|
|
69
|
+
<span class="relative inline-flex rounded-full h-2 w-2" :style="{ background: getColor(col, scope.row) + 'CC' }" />
|
|
70
|
+
</span>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div
|
|
74
|
+
v-else
|
|
75
|
+
:class="['py-[2px] max-h-12 line-clamp-3 whitespace-pre-wrap break-words leading-[14px]', {
|
|
76
|
+
'text-coreBlue cursor-pointer hover:underline underline-offset-2': fillFields.includes(col.col_key)
|
|
77
|
+
}]"
|
|
78
|
+
@click="handleDetail"
|
|
79
|
+
>
|
|
80
|
+
<!-- <nuxt-link
|
|
81
|
+
v-if="col.col_key === 'student_id.given_name'"
|
|
82
|
+
:to="{ name: 'systemCode-tableDetail-id',
|
|
83
|
+
params: { systemCode: 'training', tableDetail: 'service_students', id: get(scope.row, 'student_id._id') } }"
|
|
84
|
+
class="text-blue-500 underline underline-offset-4"
|
|
85
|
+
>
|
|
86
|
+
{{ getValue(col, scope.row) }}
|
|
87
|
+
</nuxt-link> -->
|
|
88
|
+
<span v-if="col.col_key.includes('custom_')" v-html="getValue(col, scope.row)" />
|
|
89
|
+
<span v-else>{{ getValue(col, scope.row) }}</span>
|
|
90
|
+
<span v-if="col.col_key === 'seq_num' && scope.row.is_group">
|
|
91
|
+
<i class="isax isax-profile-2user" />
|
|
92
|
+
</span>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
97
|
+
<script>
|
|
98
|
+
import { get, has } from 'lodash'
|
|
99
|
+
export default {
|
|
100
|
+
props: {
|
|
101
|
+
col: { type: Object, default: () => { return null } },
|
|
102
|
+
scope: { type: Object, default: () => { return null } },
|
|
103
|
+
fillFields: { type: Array, default: null },
|
|
104
|
+
editFields: { type: Array, default: () => { return [] } },
|
|
105
|
+
selectable: { type: Boolean, default: false }
|
|
106
|
+
},
|
|
107
|
+
computed: {
|
|
108
|
+
modelValue: {
|
|
109
|
+
get () {
|
|
110
|
+
return get(this.scope.row, this.col.col_field)
|
|
111
|
+
},
|
|
112
|
+
set (val) {
|
|
113
|
+
this.$emit('change-cell-value', { row: this.scope.row, col_field: this.col.col_field, value: val })
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
isGroup () {
|
|
117
|
+
return this.col.col_key === 'is_group'
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
methods: {
|
|
121
|
+
get,
|
|
122
|
+
isPingExpired (col, row) {
|
|
123
|
+
if (row.custom_is_end && row.custom_is_expired) {
|
|
124
|
+
return true
|
|
125
|
+
}
|
|
126
|
+
const regEndDate = get(row, 'reg_end_date')
|
|
127
|
+
if (!regEndDate) {
|
|
128
|
+
return false
|
|
129
|
+
}
|
|
130
|
+
const endDate = this.$moment(get(row, 'end_date'))
|
|
131
|
+
const dangerDay = 0
|
|
132
|
+
if (endDate) {
|
|
133
|
+
const dangerDate = this.$moment(regEndDate).add(dangerDay, 'days').startOf('days')
|
|
134
|
+
return dangerDate.isAfter(endDate, 'days')
|
|
135
|
+
}
|
|
136
|
+
return false
|
|
137
|
+
},
|
|
138
|
+
isPing (col, row) {
|
|
139
|
+
if (!col.child_key?.includes('.')) {
|
|
140
|
+
return false
|
|
141
|
+
}
|
|
142
|
+
const keys = col.child_key.split('.').slice(0, -1)
|
|
143
|
+
keys.push('is_ping')
|
|
144
|
+
const pingKey = keys.join('.')
|
|
145
|
+
return get(row, pingKey)
|
|
146
|
+
},
|
|
147
|
+
isColor (col, row) {
|
|
148
|
+
if (!col.child_key?.includes('.')) {
|
|
149
|
+
return false
|
|
150
|
+
}
|
|
151
|
+
const keys = col.child_key.split('.').slice(0, -1)
|
|
152
|
+
keys.push('color')
|
|
153
|
+
const colorKey = keys.join('.')
|
|
154
|
+
return has(row, colorKey)
|
|
155
|
+
},
|
|
156
|
+
getColor (col, row) {
|
|
157
|
+
if (!col.child_key?.includes('.')) {
|
|
158
|
+
return undefined
|
|
159
|
+
}
|
|
160
|
+
const keys = col.child_key.split('.').slice(0, -1)
|
|
161
|
+
keys.push('color')
|
|
162
|
+
const colorKey = keys.join('.')
|
|
163
|
+
return get(row, colorKey) || '#606266'
|
|
164
|
+
},
|
|
165
|
+
isValue (col, row) {
|
|
166
|
+
const colKey = col.child_key || col.col_key
|
|
167
|
+
const value = get(row, colKey) // || get(row, col.col_field)
|
|
168
|
+
return !!value
|
|
169
|
+
},
|
|
170
|
+
getValue (col, row) {
|
|
171
|
+
const colKey = col.child_key || col.col_key
|
|
172
|
+
if (col.col_multiple) {
|
|
173
|
+
const value = get(row, colKey) || get(row, col.col_field)
|
|
174
|
+
if (['manyToOne'].includes(col.col_type)) {
|
|
175
|
+
const ref_column_key = col.ref_column?.split(',')[0]
|
|
176
|
+
if (!value) {
|
|
177
|
+
return value
|
|
178
|
+
}
|
|
179
|
+
const len1 = value.length
|
|
180
|
+
const min1 = Math.min(len1, 4)
|
|
181
|
+
let txt = value.slice(0, min1).map(c => get(c, ref_column_key)).join(', ')
|
|
182
|
+
if (len1 > min1) {
|
|
183
|
+
txt += ', +' + (len1 - min1)
|
|
184
|
+
}
|
|
185
|
+
return txt
|
|
186
|
+
} else if (['file'].includes(col.col_type)) {
|
|
187
|
+
return value ? value.map(c => c.originalname).join(', ') : value
|
|
188
|
+
} else if (['image'].includes(col.col_type)) {
|
|
189
|
+
return value
|
|
190
|
+
} else {
|
|
191
|
+
return value ? value.join(', ') : value
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
const value = get(row, colKey)
|
|
195
|
+
if (['manyToOne'].includes(col.col_type)) {
|
|
196
|
+
return value
|
|
197
|
+
} else if (['file'].includes(col.col_type)) {
|
|
198
|
+
return value?.originalname
|
|
199
|
+
} else if (['boolean', 'booleannull'].includes(col.col_type)) {
|
|
200
|
+
return value ? 'Тийм' : 'Үгүй'
|
|
201
|
+
} else if (col.col_type === 'date') {
|
|
202
|
+
if (value && col.col_field?.endsWith('_month')) {
|
|
203
|
+
return this.$moment(value).format('YYYY-MM')
|
|
204
|
+
}
|
|
205
|
+
if (!value) {
|
|
206
|
+
return ''
|
|
207
|
+
}
|
|
208
|
+
return value
|
|
209
|
+
} else if (col.col_type === 'datetime') {
|
|
210
|
+
if (!value) {
|
|
211
|
+
return ''
|
|
212
|
+
}
|
|
213
|
+
return value
|
|
214
|
+
} else if (['seq_num'].includes(col.col_field)) {
|
|
215
|
+
return value
|
|
216
|
+
} else if (['number', 'decimal'].includes(col.col_type) && value) {
|
|
217
|
+
if (col.col_field?.includes('year') || col.col_field?.endsWith('duration_justified')) {
|
|
218
|
+
return value
|
|
219
|
+
} else {
|
|
220
|
+
return value.$format()
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return value
|
|
224
|
+
},
|
|
225
|
+
handleDetail (event) {
|
|
226
|
+
if (this.fillFields.includes(this.col.col_key) && !this.selectable) {
|
|
227
|
+
this.$emit('detail', (event.ctrlKey || event.metaKey))
|
|
228
|
+
event.stopPropagation()
|
|
229
|
+
event.preventDefault()
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
</script>
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<client-only>
|
|
3
|
+
<el-dialog v-el-drag-dialog :visible.sync="visible" title="Баганын тохиргоо" width="600px" append-to-body>
|
|
4
|
+
<div v-loading="loading" class="bg-white p-4 rounded">
|
|
5
|
+
<Container drag-handle-selector=".column-drag-handle" class="flex flex-col gap-2" @drop="onDrop">
|
|
6
|
+
<Draggable v-for="col in configColumns" :key="col._id">
|
|
7
|
+
<div class="flex flex-row border rounded px-2 items-center gap-2 bg-white py-2">
|
|
8
|
+
<div class="column-drag-handle text-lg">
|
|
9
|
+
<i class="el-icon-s-fold" />
|
|
10
|
+
</div>
|
|
11
|
+
<div>
|
|
12
|
+
<el-checkbox :value="!getConfigHidden(col)" @change="onChangeHidden(col)" />
|
|
13
|
+
</div>
|
|
14
|
+
<div class="flex-1">
|
|
15
|
+
{{ col.props.label }}
|
|
16
|
+
</div>
|
|
17
|
+
<div class="w-20">
|
|
18
|
+
<el-input :value="getConfigWidth(col)" size="mini" @input="onInputWidth(col, $event)" @change="onChangeWidth(col, $event)" />
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</Draggable>
|
|
22
|
+
</Container>
|
|
23
|
+
</div>
|
|
24
|
+
<div slot="footer" class="flex">
|
|
25
|
+
<el-button icon="el-icon-refresh-left" size="small" :disabled="loading" @click="handleReset">
|
|
26
|
+
Тохиргоо буцаах
|
|
27
|
+
</el-button>
|
|
28
|
+
<div class="flex-1">
|
|
29
|
+
<el-button type="primary" icon="el-icon-refresh" :disabled="loading" size="small" @click="handleReload">
|
|
30
|
+
Дахин ачаалах
|
|
31
|
+
</el-button>
|
|
32
|
+
<el-button
|
|
33
|
+
icon="el-icon-close"
|
|
34
|
+
size="small"
|
|
35
|
+
:disabled="loading"
|
|
36
|
+
@click="visible = false"
|
|
37
|
+
>
|
|
38
|
+
Буцах
|
|
39
|
+
</el-button>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</el-dialog>
|
|
43
|
+
</client-only>
|
|
44
|
+
</template>
|
|
45
|
+
<script>
|
|
46
|
+
import { mapGetters } from 'vuex'
|
|
47
|
+
import { cloneDeep, has, isInteger } from 'lodash'
|
|
48
|
+
import { Container, Draggable } from 'vue-smooth-dnd'
|
|
49
|
+
import { applyDrag } from '../utils/helpers'
|
|
50
|
+
export default {
|
|
51
|
+
name: 'CoreTableConfig',
|
|
52
|
+
components: { Container, Draggable },
|
|
53
|
+
props: {
|
|
54
|
+
api_id: { type: String, default: null },
|
|
55
|
+
table_id: { type: String, default: null },
|
|
56
|
+
sub_col_id: { type: String, default: null },
|
|
57
|
+
columns: { type: Array, default: () => { return [] } },
|
|
58
|
+
isShow: { type: Boolean, default: false }
|
|
59
|
+
},
|
|
60
|
+
data () {
|
|
61
|
+
return {
|
|
62
|
+
loading: false,
|
|
63
|
+
list: []
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
computed: {
|
|
67
|
+
...mapGetters('user', ['user']),
|
|
68
|
+
...mapGetters('settings', ['ignoreTableConfig']),
|
|
69
|
+
configTableId () {
|
|
70
|
+
return this.table_id.replace('F', '')
|
|
71
|
+
},
|
|
72
|
+
configColumns () {
|
|
73
|
+
const cols = this.columns.filter(c => c.props && !c.tableHidden && (this.showPkid || !['pkid', 'uuid'].includes(c.col_type))).map((col) => {
|
|
74
|
+
const item = this.list.find(c => c.column_id?._id === col.col_id)
|
|
75
|
+
const col_order = item && has(item, 'sort_order') && item?.sort_order !== null ? item?.sort_order : col.col_order
|
|
76
|
+
return { ...col, col_order }
|
|
77
|
+
})
|
|
78
|
+
cols.sort((a, b) => {
|
|
79
|
+
if (a.col_order !== b.col_order) { return Number(a.col_order) - Number(b.col_order) }
|
|
80
|
+
return Number(a._id) - Number(b._id)
|
|
81
|
+
})
|
|
82
|
+
return cols
|
|
83
|
+
},
|
|
84
|
+
visible: {
|
|
85
|
+
get () {
|
|
86
|
+
return this.isShow
|
|
87
|
+
},
|
|
88
|
+
set (val) {
|
|
89
|
+
this.$emit('update:isShow', val)
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
watch: {
|
|
94
|
+
visible () {
|
|
95
|
+
this.handleRefresh()
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
mounted () {
|
|
99
|
+
this.handleRefresh()
|
|
100
|
+
},
|
|
101
|
+
methods: {
|
|
102
|
+
handleReload () {
|
|
103
|
+
location.reload(true)
|
|
104
|
+
},
|
|
105
|
+
onInputWidth (col, $event) {
|
|
106
|
+
this.onSave({ column_id: col.col_id, col_width: $event }, false)
|
|
107
|
+
},
|
|
108
|
+
changeHeaderWidth ({ property, newWidth }) {
|
|
109
|
+
const col = this.configColumns.find(c => c.col_key === property)
|
|
110
|
+
if (col) {
|
|
111
|
+
this.onChangeWidth(col, newWidth)
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
onChangeWidth (col, $event) {
|
|
115
|
+
let colWidth = $event
|
|
116
|
+
if (!colWidth) {
|
|
117
|
+
colWidth = 'auto'
|
|
118
|
+
} else if (isInteger(parseInt(colWidth))) {
|
|
119
|
+
colWidth = parseInt(colWidth) + 'px'
|
|
120
|
+
} else {
|
|
121
|
+
colWidth = 'auto'
|
|
122
|
+
}
|
|
123
|
+
this.onSave({ column_id: col.col_id, col_width: colWidth })
|
|
124
|
+
},
|
|
125
|
+
getConfigWidth (col) {
|
|
126
|
+
const item = this.list.find(c => c.column_id === col.col_id)
|
|
127
|
+
const colWidth = [null, undefined].includes(item?.col_width) ? col.props.width : item.col_width
|
|
128
|
+
if (colWidth === 'auto') {
|
|
129
|
+
return ''
|
|
130
|
+
}
|
|
131
|
+
return colWidth?.replace('px', '')
|
|
132
|
+
},
|
|
133
|
+
onChangeHidden (col) {
|
|
134
|
+
const hidden = this.getConfigHidden(col)
|
|
135
|
+
this.onSave({ column_id: col.col_id, hidden: !hidden })
|
|
136
|
+
},
|
|
137
|
+
getConfigHidden (col) {
|
|
138
|
+
const item = this.list.find(c => c.column_id === col.col_id)
|
|
139
|
+
return [null, undefined].includes(item?.hidden) ? col.configHidden : item?.hidden
|
|
140
|
+
},
|
|
141
|
+
onDrop (e) {
|
|
142
|
+
if (!this.user) {
|
|
143
|
+
return
|
|
144
|
+
}
|
|
145
|
+
const cols = cloneDeep(this.configColumns)
|
|
146
|
+
const sortedCols = applyDrag(cols, e)
|
|
147
|
+
let i = 0
|
|
148
|
+
for (const col of sortedCols) {
|
|
149
|
+
const item = this.list.find(c => c.column_id === col.col_id)
|
|
150
|
+
if (item) {
|
|
151
|
+
item.sort_order = i
|
|
152
|
+
} else {
|
|
153
|
+
this.list.push({
|
|
154
|
+
api_id: this.api_id,
|
|
155
|
+
table_id: this.configTableId,
|
|
156
|
+
user_id: this.user._id,
|
|
157
|
+
_id: item?._id,
|
|
158
|
+
column_id: col.col_id,
|
|
159
|
+
sort_order: i
|
|
160
|
+
})
|
|
161
|
+
}
|
|
162
|
+
i++
|
|
163
|
+
}
|
|
164
|
+
this.handleSave()
|
|
165
|
+
},
|
|
166
|
+
onSave (cc, isSave = true) {
|
|
167
|
+
if (!this.user) {
|
|
168
|
+
return
|
|
169
|
+
}
|
|
170
|
+
const item = this.list.find(c => c.column_id === cc.column_id)
|
|
171
|
+
if (item) {
|
|
172
|
+
for (const key in cc) {
|
|
173
|
+
item[key] = cc[key]
|
|
174
|
+
}
|
|
175
|
+
} else {
|
|
176
|
+
this.list.push({
|
|
177
|
+
api_id: this.api_id,
|
|
178
|
+
table_id: this.configTableId,
|
|
179
|
+
user_id: this.user._id,
|
|
180
|
+
_id: item?._id,
|
|
181
|
+
...cc
|
|
182
|
+
})
|
|
183
|
+
}
|
|
184
|
+
if (isSave) {
|
|
185
|
+
this.handleSave()
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
async handleReset () {
|
|
189
|
+
try {
|
|
190
|
+
if (this.loading) {
|
|
191
|
+
return
|
|
192
|
+
}
|
|
193
|
+
await this.$showConfirm('Та тухайн хүснэгтийн анхны тохиргоонд буцаах уу?')
|
|
194
|
+
this.loading = true
|
|
195
|
+
for (const r of this.list) {
|
|
196
|
+
await this.$axios.delete(`1/config_table_users/${r._id}`)
|
|
197
|
+
}
|
|
198
|
+
this.handleReload()
|
|
199
|
+
} catch (err) {
|
|
200
|
+
this.$showError(err)
|
|
201
|
+
} finally {
|
|
202
|
+
this.loading = false
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
async handleSave () {
|
|
206
|
+
try {
|
|
207
|
+
if (this.loading) {
|
|
208
|
+
return
|
|
209
|
+
}
|
|
210
|
+
this.loading = true
|
|
211
|
+
const { data } = await this.$axios.post('multiple/1/config_table_users', this.list)
|
|
212
|
+
this.list = data
|
|
213
|
+
} catch (err) {
|
|
214
|
+
this.$showError(err)
|
|
215
|
+
} finally {
|
|
216
|
+
this.loading = false
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
async handleRefresh () {
|
|
220
|
+
try {
|
|
221
|
+
if (this.ignoreTableConfig) {
|
|
222
|
+
return
|
|
223
|
+
}
|
|
224
|
+
if (this.loading) {
|
|
225
|
+
return
|
|
226
|
+
}
|
|
227
|
+
this.loading = true
|
|
228
|
+
const { data } = await this.$axios.get('list/1/config_table_users', {
|
|
229
|
+
params: {
|
|
230
|
+
search: JSON.stringify({
|
|
231
|
+
api_id: { val: this.api_id || 'null', t: 'number', op: 'eq' },
|
|
232
|
+
table_id: { val: this.configTableId || 'null', t: 'number', op: 'eq' },
|
|
233
|
+
sub_col_id: { val: this.sub_col_id || 'null', t: 'number', op: 'eq' },
|
|
234
|
+
user_id: { val: this.user._id || 'null', t: 'number', op: 'eq' }
|
|
235
|
+
})
|
|
236
|
+
},
|
|
237
|
+
fields: ['_id', 'column_id', 'hidden', 'sort_order', 'col_width', 'sub_col_id._id'].join(',')
|
|
238
|
+
})
|
|
239
|
+
this.list = data
|
|
240
|
+
} catch (err) {
|
|
241
|
+
this.$showError(err)
|
|
242
|
+
} finally {
|
|
243
|
+
this.loading = false
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
</script>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="['flex gap-1 items-center', { 'justify-center': !col_multiple }]">
|
|
3
|
+
<div
|
|
4
|
+
v-if="images.length === 0"
|
|
5
|
+
:class="['flex items-center justify-center bg-coreBgInput text-coreBaseBorder', {
|
|
6
|
+
'rounded': !hideBorder,
|
|
7
|
+
'rounded-full': circle,
|
|
8
|
+
'w-10 h-10': size === 'medium',
|
|
9
|
+
'w-8 h-8': size === 'small',
|
|
10
|
+
'w-6 h-6': size === 'mini'
|
|
11
|
+
}]"
|
|
12
|
+
>
|
|
13
|
+
<i v-if="['profileImage'].includes(col_type)" class="isax isax-user text-3xl" />
|
|
14
|
+
<i v-else class="isax isax-image text-lg" />
|
|
15
|
+
</div>
|
|
16
|
+
<div
|
|
17
|
+
v-for="image in tableImages"
|
|
18
|
+
:key="image._id"
|
|
19
|
+
:class="['flex items-center justify-center bg-gray-200', {
|
|
20
|
+
'rounded': !hideBorder,
|
|
21
|
+
'rounded-full': circle,
|
|
22
|
+
'w-10 h-10': size === 'medium',
|
|
23
|
+
'w-8 h-8': size === 'small',
|
|
24
|
+
'w-6 h-6': size === 'mini'
|
|
25
|
+
}]"
|
|
26
|
+
>
|
|
27
|
+
<img
|
|
28
|
+
:class="['object-cover h-full w-full object-top', {
|
|
29
|
+
'rounded': !hideBorder,
|
|
30
|
+
'rounded-full': circle
|
|
31
|
+
}]"
|
|
32
|
+
:src="`/api/file/thumbnail/${image?._id}?tid=${image?.tid}`"
|
|
33
|
+
>
|
|
34
|
+
</div>
|
|
35
|
+
<div v-if="images.length > 1" class="font-bold text-gray-500">
|
|
36
|
+
+{{ images.length - 1 }}
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
<script>
|
|
41
|
+
import { mapGetters } from 'vuex'
|
|
42
|
+
export default {
|
|
43
|
+
props: {
|
|
44
|
+
value: {
|
|
45
|
+
type: [String, Object, Array],
|
|
46
|
+
default: ''
|
|
47
|
+
},
|
|
48
|
+
col_multiple: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
size: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: 'medium',
|
|
55
|
+
validator: val => ['mini', 'medium', 'large'].includes(val)
|
|
56
|
+
},
|
|
57
|
+
hideBorder: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false
|
|
60
|
+
},
|
|
61
|
+
circle: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false
|
|
64
|
+
},
|
|
65
|
+
col_type: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: null
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
computed: {
|
|
71
|
+
...mapGetters('settings', ['env']),
|
|
72
|
+
images () {
|
|
73
|
+
if (!this.value) {
|
|
74
|
+
return []
|
|
75
|
+
}
|
|
76
|
+
if (typeof this.value === 'object' && !Array.isArray(this.value)) {
|
|
77
|
+
return [this.value]
|
|
78
|
+
}
|
|
79
|
+
if (typeof this.value === 'object' && Array.isArray(this.value)) {
|
|
80
|
+
return this.value
|
|
81
|
+
}
|
|
82
|
+
return this.value
|
|
83
|
+
},
|
|
84
|
+
tableImages () {
|
|
85
|
+
return this.images.slice(0, 2)
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
</script>
|