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
package/store/user.js
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import { cloneDeep } from 'lodash'
|
|
3
|
+
export const state = () => ({
|
|
4
|
+
token: null,
|
|
5
|
+
user: null,
|
|
6
|
+
tokenName: null,
|
|
7
|
+
hideProfile: false,
|
|
8
|
+
projectId: null,
|
|
9
|
+
notificationCount: 0,
|
|
10
|
+
notificationList: [],
|
|
11
|
+
isLocked: false,
|
|
12
|
+
loginProps: null
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export const getters = {
|
|
16
|
+
user (state) {
|
|
17
|
+
return state.user
|
|
18
|
+
},
|
|
19
|
+
token (state) {
|
|
20
|
+
return state.token
|
|
21
|
+
},
|
|
22
|
+
tokenName (state) {
|
|
23
|
+
return state.tokenName
|
|
24
|
+
},
|
|
25
|
+
hideProfile (state) {
|
|
26
|
+
return state.hideProfile
|
|
27
|
+
},
|
|
28
|
+
projectId (state) {
|
|
29
|
+
return state.projectId
|
|
30
|
+
},
|
|
31
|
+
notificationCount (state) { return state.notificationCount },
|
|
32
|
+
notificationList (state) { return state.notificationList },
|
|
33
|
+
isLocked (state) { return state.isLocked },
|
|
34
|
+
loginProps (state) { return state.loginProps }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const mutations = {
|
|
38
|
+
SET_USER (state, user) {
|
|
39
|
+
state.user = user
|
|
40
|
+
},
|
|
41
|
+
SET_TOKEN (state, token) {
|
|
42
|
+
state.token = token
|
|
43
|
+
},
|
|
44
|
+
SET_TOKEN_NAME (state, tokenName) {
|
|
45
|
+
state.tokenName = tokenName
|
|
46
|
+
},
|
|
47
|
+
SET_HIDE_PROFILE (state, value) {
|
|
48
|
+
state.hideProfile = value
|
|
49
|
+
},
|
|
50
|
+
SET_REQUIRED_PASSWORD (state, val) {
|
|
51
|
+
state.user.required_password = val
|
|
52
|
+
},
|
|
53
|
+
SET_NOTIFICATION_COUNT (state, val) {
|
|
54
|
+
state.notificationCount = val
|
|
55
|
+
},
|
|
56
|
+
SET_NOTIFICATION_LIST (state, val) {
|
|
57
|
+
state.notificationList = val
|
|
58
|
+
},
|
|
59
|
+
SET_PROJECT_ID (state, val) {
|
|
60
|
+
state.projectId = val
|
|
61
|
+
},
|
|
62
|
+
SET_LOCKED (state, val) {
|
|
63
|
+
state.isLocked = val
|
|
64
|
+
},
|
|
65
|
+
SET_LOGIN_PROPS (state, val) {
|
|
66
|
+
state.loginProps = val
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const actions = {
|
|
71
|
+
async init ({ dispatch, commit }, { query, $cookies }) {
|
|
72
|
+
const tokenName = process.env.TOKEN_NAME || null
|
|
73
|
+
const projectId = process.env.PROJECT_ID
|
|
74
|
+
const loginProps = process.env.LOGIN_PROPS
|
|
75
|
+
// const token = query[tokenName] || $cookies.get(tokenName)
|
|
76
|
+
// if (token) {
|
|
77
|
+
// commit('SET_TOKEN', token)
|
|
78
|
+
// }
|
|
79
|
+
commit('SET_LOGIN_PROPS', loginProps)
|
|
80
|
+
commit('SET_TOKEN_NAME', tokenName)
|
|
81
|
+
commit('SET_PROJECT_ID', projectId)
|
|
82
|
+
const hideProfile = $cookies.get('HIDE_PROFILE')
|
|
83
|
+
if (hideProfile) {
|
|
84
|
+
commit('SET_HIDE_PROFILE', true)
|
|
85
|
+
}
|
|
86
|
+
await dispatch('refresh_user')
|
|
87
|
+
},
|
|
88
|
+
async refresh_user ({ commit }) {
|
|
89
|
+
const data = (await this.$axios.get('auth/user')).data
|
|
90
|
+
commit('SET_USER', data.user)
|
|
91
|
+
commit('SET_LOCKED', data.isLocked || false)
|
|
92
|
+
},
|
|
93
|
+
async set_notification_read ({ commit, state }, { id }) {
|
|
94
|
+
await this.$axios.post(`notification/read/${state.projectId}/service_notifications`, {
|
|
95
|
+
_id: id
|
|
96
|
+
})
|
|
97
|
+
const list = cloneDeep(state.notificationList)
|
|
98
|
+
if (id === 'all') {
|
|
99
|
+
list.forEach((r) => {
|
|
100
|
+
r.is_read = true
|
|
101
|
+
})
|
|
102
|
+
commit('SET_NOTIFICATION_COUNT', 0)
|
|
103
|
+
} else {
|
|
104
|
+
const item = list.find(c => c._id === id)
|
|
105
|
+
if (item) {
|
|
106
|
+
item.is_read = true
|
|
107
|
+
}
|
|
108
|
+
commit('SET_NOTIFICATION_COUNT', Math.max(0, state.notificationCount - 1))
|
|
109
|
+
}
|
|
110
|
+
commit('SET_NOTIFICATION_LIST', list)
|
|
111
|
+
},
|
|
112
|
+
async set_notification_count ({ commit, state }) {
|
|
113
|
+
const { count } = (await this.$axios.get(`notification/count/${state.projectId}/service_notifications`, {
|
|
114
|
+
params: { is_read: false }
|
|
115
|
+
})).data
|
|
116
|
+
commit('SET_NOTIFICATION_COUNT', count)
|
|
117
|
+
return count
|
|
118
|
+
},
|
|
119
|
+
async set_notification_list_refresh ({ commit, state }) {
|
|
120
|
+
commit('SET_NOTIFICATION_LIST', [])
|
|
121
|
+
const { data } = await this.$axios.get(`notification/list/${state.projectId}/service_notifications`, {
|
|
122
|
+
params: {
|
|
123
|
+
offset: 0,
|
|
124
|
+
pageSize: 20
|
|
125
|
+
}
|
|
126
|
+
})
|
|
127
|
+
commit('SET_NOTIFICATION_LIST', data)
|
|
128
|
+
return data
|
|
129
|
+
},
|
|
130
|
+
async set_notification_list ({ commit, state }) {
|
|
131
|
+
const { data } = await this.$axios.get(`notification/list/${state.projectId}/service_notifications`, {
|
|
132
|
+
params: {
|
|
133
|
+
offset: state.notificationList.length,
|
|
134
|
+
pageSize: 20
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
const list = [...state.notificationList]
|
|
138
|
+
for (const r of data) {
|
|
139
|
+
if (!list.some(c => c._id === r._id)) {
|
|
140
|
+
list.push(r)
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
commit('SET_NOTIFICATION_LIST', list)
|
|
144
|
+
},
|
|
145
|
+
set_user ({ commit }, user) {
|
|
146
|
+
commit('SET_USER', user)
|
|
147
|
+
},
|
|
148
|
+
set_required_password ({ commit }, val) {
|
|
149
|
+
commit('SET_REQUIRED_PASSWORD', val)
|
|
150
|
+
},
|
|
151
|
+
set_hide_profile ({ commit }, value) {
|
|
152
|
+
// const tokenOptions = { maxAge: 60 * 60 * 24 * 7, path: '/' }
|
|
153
|
+
if (value) {
|
|
154
|
+
// this.$cookies.set('HIDE_PROFILE', '1', tokenOptions)
|
|
155
|
+
this.$axios.post('config/set/settings', {
|
|
156
|
+
name: 'HIDE_PROFILE',
|
|
157
|
+
value: '1'
|
|
158
|
+
}).catch((_) => {})
|
|
159
|
+
} else {
|
|
160
|
+
this.$axios.delete('config/remove/settings/HIDE_PROFILE').catch((_) => {})
|
|
161
|
+
// this.$cookies.remove('HIDE_PROFILE', { path: '/' })
|
|
162
|
+
}
|
|
163
|
+
commit('SET_HIDE_PROFILE', value)
|
|
164
|
+
},
|
|
165
|
+
set_token ({ commit, getters }, token) {
|
|
166
|
+
// const tokenOptions = { maxAge: 60 * 60 * 24 * 7, path: '/' }
|
|
167
|
+
// this.$cookies.set(getters.tokenName, token, tokenOptions)
|
|
168
|
+
commit('SET_TOKEN', token)
|
|
169
|
+
if (process.client) {
|
|
170
|
+
localStorage.setItem('forensic_checkLogin', Date.now())
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
remove_token ({ commit, getters }) {
|
|
174
|
+
this.$cookies.remove(getters.tokenName, { path: '/' })
|
|
175
|
+
commit('SET_TOKEN', null)
|
|
176
|
+
if (process.client) {
|
|
177
|
+
localStorage.setItem('forensic_checkLogin', Date.now())
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
set_locked ({ commit }, val) {
|
|
181
|
+
commit('SET_LOCKED', val)
|
|
182
|
+
},
|
|
183
|
+
// async idle ({ commit }) {
|
|
184
|
+
// try {
|
|
185
|
+
// commit('SET_LOCKED', true)
|
|
186
|
+
// this.$cookies.set('idle_email', getters.user?.email, { path: '/' })
|
|
187
|
+
// await this.$axios.post('auth/logout')
|
|
188
|
+
// dispatch('set_user')
|
|
189
|
+
// dispatch('remove_token')
|
|
190
|
+
// } catch (err) {
|
|
191
|
+
// Vue.prototype.$showError(err)
|
|
192
|
+
// }
|
|
193
|
+
// },
|
|
194
|
+
async logout_locked ({ dispatch }) {
|
|
195
|
+
try {
|
|
196
|
+
await this.$axios.post('auth/logout')
|
|
197
|
+
dispatch('remove_token')
|
|
198
|
+
location.reload()
|
|
199
|
+
} catch (err) {
|
|
200
|
+
Vue.prototype.$showError(err)
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
async logout ({ dispatch, getters }) {
|
|
204
|
+
try {
|
|
205
|
+
// console.log('Vue', Vue)
|
|
206
|
+
await Vue.prototype.$showConfirm('Та системээс гарах уу?')
|
|
207
|
+
this.$cookies.remove('idle_email', { path: '/' })
|
|
208
|
+
await this.$axios.post('auth/logout')
|
|
209
|
+
dispatch('remove_token')
|
|
210
|
+
location.reload()
|
|
211
|
+
} catch (err) {
|
|
212
|
+
Vue.prototype.$showError(err)
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { getFormBoolean } from './data-helper'
|
|
2
|
+
|
|
3
|
+
export const getFormComponent = ({
|
|
4
|
+
col_field, col_type, col_readonly,
|
|
5
|
+
col_multiple, col_length, ref_table,
|
|
6
|
+
ref_column, trigger_fields, enum_values,
|
|
7
|
+
col_default, is_file_secret
|
|
8
|
+
}, {
|
|
9
|
+
isInline = false,
|
|
10
|
+
formReadonly = false,
|
|
11
|
+
isXyp = false,
|
|
12
|
+
table_name,
|
|
13
|
+
level_code,
|
|
14
|
+
projectId,
|
|
15
|
+
serviceName,
|
|
16
|
+
rootApiId
|
|
17
|
+
}) => {
|
|
18
|
+
let name = 'ElInput'
|
|
19
|
+
let props = { disabled: formReadonly || getFormBoolean(col_readonly) }
|
|
20
|
+
if (col_field.endsWith('duration_justified')) {
|
|
21
|
+
name = 'CoreDurationJustified'
|
|
22
|
+
} else if (col_field === 'app_password') {
|
|
23
|
+
name = 'CoreAppPassword'
|
|
24
|
+
} else if (table_name === 'archive_inquiry_requests' && col_field === 'request_reg_number') {
|
|
25
|
+
name = 'ArchiveRequestRegNumber'
|
|
26
|
+
} else if (col_field === 'deceased_forensic_id') {
|
|
27
|
+
name = 'DeceasedForensicNum'
|
|
28
|
+
} else if (col_field === 'deceased_info_num') {
|
|
29
|
+
name = 'DeceasedInfoNum'
|
|
30
|
+
} else if (['firearm_gun', 'firearm_air_gun', 'firearm_special_tool'].includes(table_name) && col_field === 'body_number') {
|
|
31
|
+
name = 'FirearmBodyNumber'
|
|
32
|
+
props = { ...props, table_name }
|
|
33
|
+
} else if (table_name === 'reg_org_emps' && col_field === 'username') {
|
|
34
|
+
name = 'PoliceCode'
|
|
35
|
+
} else if (table_name === 'reg_resolutions' && col_field === 'crime_place_id') {
|
|
36
|
+
name = 'RegCrimePlace'
|
|
37
|
+
props = { ...props, rootApiId }
|
|
38
|
+
} else if (table_name?.startsWith('doc_') && col_field?.includes('national') && col_type === 'string') {
|
|
39
|
+
props = { ...props, type: 'textarea', maxlength: col_length || 255, showWordLimit: true, style: 'font-family: Mongolian Baiti; font-size: 20px; writing-mode: vertical-lr; line-height: 1.15' }
|
|
40
|
+
} else if (['doc_controls', 'doc_requests', 'doc_request_receives'].includes(table_name) && col_field === 'reg_num') {
|
|
41
|
+
name = 'DocRegNum'
|
|
42
|
+
props.table_type = table_name
|
|
43
|
+
} else if (table_name === 'doc_controls' && col_field === 'doc_num') {
|
|
44
|
+
name = 'DocIndexNum'
|
|
45
|
+
} else if (col_type === 'json') {
|
|
46
|
+
name = 'CoreJson'
|
|
47
|
+
} else if (col_default === 'increment') {
|
|
48
|
+
props = { ...props, disabled: true, placeHolder: 'Системээс олгоно..' }
|
|
49
|
+
} else if (col_field === 'crime_num') {
|
|
50
|
+
name = 'CustomCrimeNum'
|
|
51
|
+
props = { ...props, clearable: true, maxlength: col_length || 255 }
|
|
52
|
+
} else if (col_field === 'crime_description') {
|
|
53
|
+
name = 'CustomCrimeDescription'
|
|
54
|
+
props = { ...props, type: 'textarea', clearable: true, maxlength: col_length || 255, showWordLimit: true }
|
|
55
|
+
} else if (col_field.startsWith('moment')) {
|
|
56
|
+
name = 'MomentAddCode'
|
|
57
|
+
props = { ...props }
|
|
58
|
+
} else if (enum_values) {
|
|
59
|
+
name = 'CoreSelectEnum'
|
|
60
|
+
props = { ...props, col_multiple, col_type, enum_values }
|
|
61
|
+
} else if (col_field === 'text_select_fields') {
|
|
62
|
+
name = 'ConfigSelectColumns'
|
|
63
|
+
} else if (['file', 'image'].includes(col_type) && col_multiple) {
|
|
64
|
+
name = 'CoreFiles'
|
|
65
|
+
let fileType = col_type
|
|
66
|
+
if (col_field.includes('pdf')) {
|
|
67
|
+
fileType = 'pdf'
|
|
68
|
+
}
|
|
69
|
+
props = {
|
|
70
|
+
...props,
|
|
71
|
+
col_multiple,
|
|
72
|
+
fileType,
|
|
73
|
+
table_name,
|
|
74
|
+
projectId,
|
|
75
|
+
serviceName,
|
|
76
|
+
rootApiId,
|
|
77
|
+
isFileSecret: is_file_secret
|
|
78
|
+
}
|
|
79
|
+
} else if (['icon', 'file', 'image', 'profileImage'].includes(col_type)) {
|
|
80
|
+
name = 'CoreUploadImage'
|
|
81
|
+
props = {
|
|
82
|
+
...props,
|
|
83
|
+
col_multiple,
|
|
84
|
+
fileType: col_type,
|
|
85
|
+
isInline,
|
|
86
|
+
isFileSecret: is_file_secret,
|
|
87
|
+
rootApiId
|
|
88
|
+
}
|
|
89
|
+
} else if (['boolean'].includes(col_type)) {
|
|
90
|
+
name = 'CoreSwitch'
|
|
91
|
+
} else if (['string'].includes(col_type) && col_multiple) {
|
|
92
|
+
props = { ...props, clearable: true, maxlength: col_length || 255 }
|
|
93
|
+
name = 'CoreMultipleInput'
|
|
94
|
+
} else if (['string'].includes(col_type)) {
|
|
95
|
+
props = { ...props, clearable: true, maxlength: col_length || 255 }
|
|
96
|
+
if (col_field === 'register_num' && (isXyp || table_name === 'hrm_employees')) {
|
|
97
|
+
name = 'CoreInputSearch'
|
|
98
|
+
} else if (col_length > 255) {
|
|
99
|
+
// autosize: { minRows: parseInt(col_length / 255) }
|
|
100
|
+
props = { ...props, type: 'textarea', showWordLimit: true }
|
|
101
|
+
}
|
|
102
|
+
} else if (['email', 'password'].includes(col_type)) {
|
|
103
|
+
props = { clearable: true, type: col_type }
|
|
104
|
+
} else if (['number', 'decimal'].includes(col_type)) {
|
|
105
|
+
if (col_field === 'age') {
|
|
106
|
+
name = 'CoreAgeMonth'
|
|
107
|
+
} else if (isInline) {
|
|
108
|
+
name = 'CoreInlineNumber'
|
|
109
|
+
props = { ...props }
|
|
110
|
+
} else {
|
|
111
|
+
name = 'CoreInputNumber'
|
|
112
|
+
const extraProps = {}
|
|
113
|
+
if (col_field?.includes('full_percent')) {
|
|
114
|
+
extraProps.min = 0
|
|
115
|
+
extraProps.max = 100
|
|
116
|
+
}
|
|
117
|
+
props = { ...props, clearable: true, controlsPosition: 'right', ...extraProps }
|
|
118
|
+
if (col_type === 'decimal') {
|
|
119
|
+
props.precision = 1
|
|
120
|
+
} else {
|
|
121
|
+
props.precision = 0
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
} else if (['date'].includes(col_type)) {
|
|
125
|
+
// if (col_field.endsWith('start_date')) {
|
|
126
|
+
// name = 'CoreDateRange'
|
|
127
|
+
// } else {
|
|
128
|
+
// name = 'CoreDate'
|
|
129
|
+
// }
|
|
130
|
+
if (col_field.endsWith('end_date')) {
|
|
131
|
+
props = { ...props, col_field }
|
|
132
|
+
} else if (col_field.endsWith('_month')) {
|
|
133
|
+
props = { ...props, type: 'month', format: 'yyyy-MM', valueFormat: 'yyyy-MM' }
|
|
134
|
+
}
|
|
135
|
+
name = 'CoreDate'
|
|
136
|
+
} else if (['datetime'].includes(col_type)) {
|
|
137
|
+
name = 'CoreDatetime'
|
|
138
|
+
} else if (col_field === 'reg_request_description') {
|
|
139
|
+
name = 'RegRequestDescription'
|
|
140
|
+
} else if (col_field.startsWith('html_')) {
|
|
141
|
+
name = 'CoreVueEditor'
|
|
142
|
+
if (col_field.includes('mini')) {
|
|
143
|
+
props = { ...props, isSimple: true, height: 350 }
|
|
144
|
+
}
|
|
145
|
+
} else if (['manyToOne', 'table'].includes(col_type)) {
|
|
146
|
+
// if (ref_table === 'hrm_employees') {
|
|
147
|
+
// name = 'CustomEmployeeSelect'
|
|
148
|
+
// } else
|
|
149
|
+
if (ref_table === 'hrm_users' && ['archive_classification_item', 'archive_classification_list'].includes(table_name)) {
|
|
150
|
+
name = 'DocUserSelect'
|
|
151
|
+
props = { ...props }
|
|
152
|
+
} else if (ref_table === 'hrm_organizations' && table_name === 'archive_classification_item') {
|
|
153
|
+
name = 'DocOrgSelect'
|
|
154
|
+
props = { ...props, org_type: 'unit' }
|
|
155
|
+
} else if (ref_table === 'hrm_organizations' && table_name.startsWith('police_departments')) {
|
|
156
|
+
name = 'DocOrgSelect'
|
|
157
|
+
props = { ...props, org_type: 'police' }
|
|
158
|
+
} else if (ref_table === 'hrm_organizations' && table_name.startsWith('doc_')) {
|
|
159
|
+
name = 'DocOrgSelect'
|
|
160
|
+
if (['doc_indexes', 'doc_categories', 'doc_headers'].includes(table_name) && col_field === 'organization_id') {
|
|
161
|
+
trigger_fields = 'category_id:1:number:eq'
|
|
162
|
+
if (level_code === 'LEVEL2') {
|
|
163
|
+
trigger_fields += ',_id:auth_self_organization_id:number:in'
|
|
164
|
+
} else if (level_code === 'LEVEL3') {
|
|
165
|
+
trigger_fields += ',_id:auth_child_organization_id:number:in'
|
|
166
|
+
} else {
|
|
167
|
+
trigger_fields += ',root_id.short_name:ШШЕГ:string:eq'
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
} else if (ref_table === 'hrm_users' && table_name.startsWith('doc_')) {
|
|
171
|
+
name = 'DocUserSelect'
|
|
172
|
+
props = { ...props, tname: table_name, fname: col_field }
|
|
173
|
+
} else if (col_field === 'child_position_id') {
|
|
174
|
+
name = 'CoreCascaderChildPosition'
|
|
175
|
+
} else if (col_field === 'child_organization_id') {
|
|
176
|
+
name = 'CoreCascaderChildOrg'
|
|
177
|
+
} else if (col_field === 'crime_place_reg_type_id') {
|
|
178
|
+
name = 'CoreSelect'
|
|
179
|
+
} else if (['reg_org_emps', 'reg_external_experts'].includes(ref_table)) {
|
|
180
|
+
name = 'CoreSelectOrgEmp'
|
|
181
|
+
} else if (col_field === 'resolution_org_id') {
|
|
182
|
+
name = 'CoreCascader'
|
|
183
|
+
} else if (ref_table === 'ref_reg_types') {
|
|
184
|
+
name = 'CoreSelectGroup'
|
|
185
|
+
} else if (ref_table === 'hrm_users') {
|
|
186
|
+
name = 'CustomUserSelect'
|
|
187
|
+
} else if (['organization_id', 'parent_id'].some(c => col_field.includes(c)) && !['other_organization_id', 'rest_organization_id'].some(c => col_field.includes(c))) {
|
|
188
|
+
name = 'CoreSelectTree'
|
|
189
|
+
} else {
|
|
190
|
+
name = 'CoreSelect'
|
|
191
|
+
}
|
|
192
|
+
const customProps = {}
|
|
193
|
+
// if (col_field === 'status_id') {
|
|
194
|
+
// customProps.disabled = true
|
|
195
|
+
// }
|
|
196
|
+
props = { ...props, col_field, table_name: ref_table, ref_column, col_multiple, trigger_fields, ...customProps }
|
|
197
|
+
}
|
|
198
|
+
return { name, props }
|
|
199
|
+
}
|
|
200
|
+
export const getFormColSpan = ({ col_field, col_type, col_length, col_multiple }, form_col, table_name) => {
|
|
201
|
+
let colSpan = 1
|
|
202
|
+
if (table_name?.startsWith('doc_') && col_field?.includes('national')) {
|
|
203
|
+
colSpan = 1
|
|
204
|
+
} else if (['icon', 'file', 'image'].includes(col_type) || col_multiple) {
|
|
205
|
+
colSpan = Math.min(2, form_col)
|
|
206
|
+
} else if (['html_'].some(c => col_field.startsWith(c))) {
|
|
207
|
+
colSpan = 99
|
|
208
|
+
} else if (col_type === 'string' && col_length >= 150) {
|
|
209
|
+
colSpan = Math.min(2, form_col)
|
|
210
|
+
} else if (col_type === 'email') {
|
|
211
|
+
colSpan = Math.min(2, form_col)
|
|
212
|
+
} else if (['organization_id', 'position_id'].includes(col_field)) {
|
|
213
|
+
colSpan = Math.min(2, form_col)
|
|
214
|
+
} else if (col_type === 'bigString') {
|
|
215
|
+
colSpan = 99
|
|
216
|
+
}
|
|
217
|
+
return colSpan
|
|
218
|
+
}
|
|
219
|
+
export const getFormRowSpan = ({ col_field, col_type, col_length }, form_col) => {
|
|
220
|
+
let rowSpan = 1
|
|
221
|
+
if (col_type === 'profileImage') {
|
|
222
|
+
rowSpan = 4
|
|
223
|
+
} else if (col_type === 'string' && col_length >= 300) {
|
|
224
|
+
rowSpan = 2
|
|
225
|
+
} else if (['html_'].some(c => col_field.startsWith(c))) {
|
|
226
|
+
rowSpan = Number(form_col || 1)
|
|
227
|
+
}
|
|
228
|
+
return rowSpan
|
|
229
|
+
}
|
|
230
|
+
export const getFormWidth = ({ col_field, col_type, col_length }, form_col) => {
|
|
231
|
+
let colCount = Number(form_col || 1)
|
|
232
|
+
if (['html_'].some(c => col_field.startsWith(c))) {
|
|
233
|
+
colCount = 1
|
|
234
|
+
} else if (col_type === 'string' && col_length >= 150) {
|
|
235
|
+
colCount = form_col / 2
|
|
236
|
+
}
|
|
237
|
+
if (colCount === 1) {
|
|
238
|
+
return '100%'
|
|
239
|
+
}
|
|
240
|
+
return `${100 / colCount}%`
|
|
241
|
+
}
|
|
242
|
+
export const getColAlign = ({ col_type, col_multiple, children }) => {
|
|
243
|
+
if (children?.length > 1) {
|
|
244
|
+
return 'center'
|
|
245
|
+
} else if (['number', 'pkid', 'decimal'].includes(col_type)) {
|
|
246
|
+
return 'right'
|
|
247
|
+
} else if (['boolean', 'datetime', 'date'].includes(col_type)) {
|
|
248
|
+
return 'center'
|
|
249
|
+
} else if (['image', 'profileImage'].includes(col_type) && !col_multiple) {
|
|
250
|
+
return 'center'
|
|
251
|
+
}
|
|
252
|
+
return 'left'
|
|
253
|
+
}
|
|
254
|
+
export const getColWidth = ({ col_type, col_multiple, col_length, col_key, col_field }, fill_field, isInline = false) => {
|
|
255
|
+
const valWidth = {}
|
|
256
|
+
const isGroup = col_key === 'is_group'
|
|
257
|
+
if (isGroup) {
|
|
258
|
+
valWidth.width = '35px'
|
|
259
|
+
} else if (fill_field?.split(',').includes(col_key)) {
|
|
260
|
+
valWidth['min-width'] = '150px'
|
|
261
|
+
valWidth.width = 'auto'
|
|
262
|
+
} else if (['manyToOne'].includes(col_type)) {
|
|
263
|
+
if (col_multiple) {
|
|
264
|
+
valWidth.width = '180px'
|
|
265
|
+
} else {
|
|
266
|
+
// console.log('-)
|
|
267
|
+
}
|
|
268
|
+
// console.log(col_type, col_multiple, col_length, col_key)
|
|
269
|
+
} else if (['datetime'].includes(col_type)) {
|
|
270
|
+
valWidth.width = isInline ? '160px' : '90px'
|
|
271
|
+
} else if (['date'].includes(col_type)) {
|
|
272
|
+
valWidth.width = isInline ? '150px' : '90px'
|
|
273
|
+
} else if (['number', 'decimal'].includes(col_type)) {
|
|
274
|
+
if (isInline) {
|
|
275
|
+
if (col_key?.includes('price')) {
|
|
276
|
+
valWidth.width = '110px'
|
|
277
|
+
} else {
|
|
278
|
+
valWidth.width = '70px'
|
|
279
|
+
}
|
|
280
|
+
} else {
|
|
281
|
+
valWidth.width = '110px'
|
|
282
|
+
}
|
|
283
|
+
} else if (['boolean'].includes(col_type)) {
|
|
284
|
+
valWidth.width = '90px'
|
|
285
|
+
} else if (['pkid'].includes(col_type)) {
|
|
286
|
+
valWidth.width = '60px'
|
|
287
|
+
} else if (['email'].includes(col_type)) {
|
|
288
|
+
valWidth.width = '200px'
|
|
289
|
+
} else if (['image', 'profileImage'].includes(col_type) && !getFormBoolean(col_multiple)) {
|
|
290
|
+
valWidth.width = '65px'
|
|
291
|
+
} else if (col_length) {
|
|
292
|
+
const len = Number(col_length)
|
|
293
|
+
if (len < 30) {
|
|
294
|
+
valWidth.align = 'center'
|
|
295
|
+
valWidth.width = '120px'
|
|
296
|
+
} else if (len < 50) {
|
|
297
|
+
valWidth.width = '110px'
|
|
298
|
+
} else if (len < 140) {
|
|
299
|
+
valWidth.width = '130px'
|
|
300
|
+
} else if (len < 160) {
|
|
301
|
+
valWidth.width = '150px'
|
|
302
|
+
} else if (len < 200) {
|
|
303
|
+
valWidth.width = '160px'
|
|
304
|
+
} else {
|
|
305
|
+
valWidth.width = '220px'
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
if (Object.keys(valWidth).length === 0) {
|
|
309
|
+
return {
|
|
310
|
+
width: '120px'
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
// console.log('col_field', col_field, col_type, col_key, valWidth)
|
|
314
|
+
return valWidth
|
|
315
|
+
}
|
|
316
|
+
export const isHidden = ({ col_field, col_hidden }, subColumn) => {
|
|
317
|
+
if (['oid', 'xyp_log_id', 'created_user_id'].includes(col_field)) {
|
|
318
|
+
return true
|
|
319
|
+
}
|
|
320
|
+
if (getFormBoolean(col_hidden)) {
|
|
321
|
+
return true
|
|
322
|
+
}
|
|
323
|
+
if (subColumn) {
|
|
324
|
+
if (col_field === subColumn.col_field) {
|
|
325
|
+
return true
|
|
326
|
+
} else if (subColumn.trigger_fields && !subColumn.trigger_fields.includes('extract')) {
|
|
327
|
+
for (const triggerField of subColumn.trigger_fields.split(',')) {
|
|
328
|
+
const triggerValues = triggerField.split(':')
|
|
329
|
+
if (triggerValues.length > 1 && triggerValues[1].startsWith('#') && triggerValues[1].slice(1) === col_field) {
|
|
330
|
+
return true
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return false
|
|
336
|
+
}
|