From 427b97a8a4c9ca8587caf89ccb542a3aeea80c05 Mon Sep 17 00:00:00 2001 From: GH Pages Bot Date: Thu, 10 Aug 2023 15:22:06 +0000 Subject: [PATCH] Deploy Storybook to GitHub Pages --- 10.74853aa643f64aa09273.bundle.js | 2 + 10.74853aa643f64aa09273.bundle.js.map | 1 + 3.74853aa643f64aa09273.bundle.js | 2 + 3.74853aa643f64aa09273.bundle.js.map | 1 + 4.74853aa643f64aa09273.bundle.js | 2 + 4.74853aa643f64aa09273.bundle.js.map | 1 + 5.74853aa643f64aa09273.bundle.js | 2 + 5.74853aa643f64aa09273.bundle.js.map | 1 + 6.74853aa643f64aa09273.bundle.js | 2 + 6.74853aa643f64aa09273.bundle.js.map | 1 + 7.74853aa643f64aa09273.bundle.js | 2 + 7.74853aa643f64aa09273.bundle.js.map | 1 + 8.74853aa643f64aa09273.bundle.js | 2 + 8.74853aa643f64aa09273.bundle.js.map | 1 + 9.74853aa643f64aa09273.bundle.js | 2 + 9.74853aa643f64aa09273.bundle.js.map | 1 + favicon.ico | Bin 0 -> 32988 bytes iframe.html | 74 + index.html | 19 + main.74853aa643f64aa09273.bundle.js | 5691 +++++++++++++++++ ...74853aa643f64aa09273.bundle.js.LICENSE.txt | 88 + main.74853aa643f64aa09273.bundle.js.map | 1 + main.81a96ea41a383c5e221b.bundle.js | 1 + ...hlight_abnf.3595e109029d4f440e1d.bundle.js | 1 + ...t_accesslog.0f89599e6edc25dc0dbd.bundle.js | 1 + ...ctionscript.2668a2938dc54fd6efc3.bundle.js | 1 + ...ghlight_ada.ab53a934b095cd959baa.bundle.js | 1 + ...angelscript.3e668fecc3af1eb1762d.bundle.js | 1 + ...ight_apache.cda0783c3f78182c3a1c.bundle.js | 1 + ...applescript.4390c778f4d931125c2a.bundle.js | 1 + ...ight_arcade.7bc14ceb3e9164ea3e58.bundle.js | 1 + ...ght_arduino.36447e38135cb07849e4.bundle.js | 1 + ...ight_armasm.00a5435c5d41ddb9fbe1.bundle.js | 1 + ...ht_asciidoc.c568cf5e33b55ff6fb84.bundle.js | 1 + ...ght_aspectj.e4f265065d126eeb3ac9.bundle.js | 1 + ..._autohotkey.7a9b4531ba3bf91d52c2.bundle.js | 1 + ...ight_autoit.60b4f69513c7df23895a.bundle.js | 1 + ...ight_avrasm.3493f1619539fd8c15d0.bundle.js | 1 + ...ghlight_awk.3a0579ae3f7aafb17221.bundle.js | 1 + ...ight_axapta.30ba5bf22faf8fc9537e.bundle.js | 1 + ...hlight_bash.a5ac41ce9c87c65ab918.bundle.js | 1 + ...light_basic.3add54087a6826e266d1.bundle.js | 1 + ...ghlight_bnf.aaaf3cf912502ef036b6.bundle.js | 1 + ...t_brainfuck.667865f0805c4a840c99.bundle.js | 1 + ...ghlight_cal.ad31d6f9d3cac90769b2.bundle.js | 1 + ...t_capnproto.d056d460a6309602f120.bundle.js | 1 + ...ight_ceylon.f85db3a4679c50cfbd0f.bundle.js | 1 + ...light_clean.45a1bb6da97c5f1f99dc.bundle.js | 1 + ...ght_clojure.9cb10c8b2002447f2773.bundle.js | 1 + ...clojureRepl.cc96b77f6338e3efc392.bundle.js | 1 + ...light_cmake.b98bb73e093e948f3e84.bundle.js | 1 + ...offeescript.954faf539e82b7461eb1.bundle.js | 1 + ...ghlight_coq.3c702fab66003db00103.bundle.js | 1 + ...ghlight_cos.db3e5cf3dc319d14ddf8.bundle.js | 1 + ...ghlight_cpp.8e6069f5ac985670445e.bundle.js | 1 + ...light_crmsh.36f77fe2e8ed24ce6e6c.bundle.js | 1 + ...ght_crystal.e59be9cfe94e639d965b.bundle.js | 1 + ...ighlight_cs.55bc21e78d2579ac8235.bundle.js | 1 + ...ghlight_csp.4c2c24d75e938a770235.bundle.js | 1 + ...ghlight_css.f81148707ba925d8edca.bundle.js | 1 + ...highlight_d.9484913953c438abfc89.bundle.js | 1 + ...hlight_dart.1ebeec13b2c891591e8c.bundle.js | 1 + ...ight_delphi.337f0d2f53936dd14758.bundle.js | 1 + ...hlight_diff.83e85df895aaf7db910d.bundle.js | 1 + ...ight_django.aa7739c7c678994535f6.bundle.js | 1 + ...ghlight_dns.12cb4f0a9e5a3e0fb36f.bundle.js | 1 + ..._dockerfile.c4f2acbbf36b6aba3fd9.bundle.js | 1 + ...ghlight_dos.ff1dab8d65115f55fe2e.bundle.js | 1 + ...ht_dsconfig.ad4d19746a1e055406eb.bundle.js | 1 + ...ghlight_dts.8d337e26f0c8661ede39.bundle.js | 1 + ...hlight_dust.f883fc84d6de192452d7.bundle.js | 1 + ...hlight_ebnf.f6cd143a4042a4e18c45.bundle.js | 1 + ...ight_elixir.8265aeaf48454fe54bbe.bundle.js | 1 + ...ghlight_elm.f1cd6c5aa17ceeeedfd4.bundle.js | 1 + ...ghlight_erb.63553f58f64b29484787.bundle.js | 1 + ...ight_erlang.7f4a4944181536b6815a.bundle.js | 1 + ..._erlangRepl.22a6f2832ce991764cc2.bundle.js | 1 + ...light_excel.feec4e31988cf21d453d.bundle.js | 1 + ...ghlight_fix.3d96b3e848f4b8b46607.bundle.js | 1 + ...hlight_flix.f68784f53707f0c4e6a7.bundle.js | 1 + ...ght_fortran.255442e4ecfd5beb673d.bundle.js | 1 + ...ight_fsharp.0952ec9d1db4802acf05.bundle.js | 1 + ...hlight_gams.079f3874ee7b3e554c8b.bundle.js | 1 + ...light_gauss.e2102f3313718dd79482.bundle.js | 1 + ...light_gcode.7869d29ffef590af1002.bundle.js | 1 + ...ght_gherkin.ad089e531547dcce8c21.bundle.js | 1 + ...hlight_glsl.a3b11c99b63f09ce4b11.bundle.js | 1 + ...ighlight_go.8a2e0791be616c80b04b.bundle.js | 1 + ...hlight_golo.bcd9c1003a06ca03c0ea.bundle.js | 1 + ...ight_gradle.18fb1a16e0450ab34ccc.bundle.js | 1 + ...ight_groovy.1a2aea85c5daf0209bb9.bundle.js | 1 + ...hlight_haml.58b5132ca17800799bc9.bundle.js | 1 + ..._handlebars.cf917a695ca255d7bd2c.bundle.js | 1 + ...ght_haskell.74b995827ff902332ac0.bundle.js | 1 + ...hlight_haxe.a04e512bde9238d99de8.bundle.js | 1 + ...ghlight_hsp.ba6c7f1b18a63ffdc7fd.bundle.js | 1 + ...ht_htmlbars.7d9bfacb28b16de17cd1.bundle.js | 1 + ...hlight_http.edc9f8f4494b9570a3f7.bundle.js | 1 + ...ighlight_hy.4eab1253f223441ccf39.bundle.js | 1 + ...ght_inform7.bed80903624c5f3b9b97.bundle.js | 1 + ...ghlight_ini.b24cfd88066151a88cf1.bundle.js | 1 + ...ight_irpf90.87cf91be05f606e776c3.bundle.js | 1 + ...hlight_java.8b5e779e595548d05e05.bundle.js | 1 + ..._javascript.4e39a54e0b2c2cbb9b0c.bundle.js | 1 + ...ht_jbossCli.c60bb3770f88cb7b3c6e.bundle.js | 1 + ...hlight_json.5add5b36e27632de9458.bundle.js | 1 + ...light_julia.9932ef49a4645713c566.bundle.js | 1 + ...t_juliaRepl.4d195c5137a32763eed4.bundle.js | 1 + ...ight_kotlin.35ad1c4e853e74168f44.bundle.js | 1 + ...light_lasso.3b830352c8360cc80e26.bundle.js | 1 + ...hlight_ldif.f283b2d8f1e3be7fa5f0.bundle.js | 1 + ...hlight_leaf.9645ca0a7e1e528c7fdb.bundle.js | 1 + ...hlight_less.53f5523f9656eae9832f.bundle.js | 1 + ...hlight_lisp.d9881c50691536c1b16b.bundle.js | 1 + ...ecodeserver.f4bdbc1b5e62b85ab57b.bundle.js | 1 + ..._livescript.4c508e373af008dcd2a7.bundle.js | 1 + ...hlight_llvm.c123fae96ce8e8fd47a9.bundle.js | 1 + ...ghlight_lsl.7bedb592414dda79ecbf.bundle.js | 1 + ...ghlight_lua.cfa8e4945753719ee35c.bundle.js | 1 + ...ht_makefile.63060e3551dd9d36c07f.bundle.js | 1 + ...ht_markdown.c40fb28d0eef57fe5ede.bundle.js | 1 + ...ight_matlab.07df354dd04183cb5048.bundle.js | 1 + ...ghlight_mel.bbe6a4db2d502b6719e5.bundle.js | 1 + ...ght_mercury.a5e70205c7c92da583ca.bundle.js | 1 + ...ght_mipsasm.a1178a73c583717e4387.bundle.js | 1 + ...light_mizar.e5e3939cfbb908608dfc.bundle.js | 1 + ...mojolicious.938e747f38dcc47256d0.bundle.js | 1 + ...ight_monkey.5efd6998b3a83bdb85ae.bundle.js | 1 + ..._moonscript.71e13b6bc41455f7225d.bundle.js | 1 + ...hlight_n1ql.72cba196e2ef6fd6ad50.bundle.js | 1 + ...light_nginx.89696f698e24709c93e8.bundle.js | 1 + ...ight_nimrod.4cf93eeb4cabef443978.bundle.js | 1 + ...ghlight_nix.ddcd670efa9c93902cd2.bundle.js | 1 + ...hlight_nsis.3a6d122c4b0064e636d8.bundle.js | 1 + ..._objectivec.79bde9460d392266608a.bundle.js | 1 + ...light_ocaml.bcc3ceda950a9d5d7db9.bundle.js | 1 + ...ht_openscad.7fa15193fd858ed149d3.bundle.js | 1 + ...ght_oxygene.f73d6ea82229cde8281e.bundle.js | 1 + ...ght_parser3.1633d69f04a5ca61db24.bundle.js | 1 + ...hlight_perl.fd77a55f6608f5365637.bundle.js | 1 + ...ighlight_pf.1928b035873686b59d37.bundle.js | 1 + ...light_pgsql.0eadfc2e2a5d8cbc8b1b.bundle.js | 1 + ...ghlight_php.7cc14229d23b984b1c26.bundle.js | 1 + ...t_plaintext.c46a62c156b5ef910fa4.bundle.js | 1 + ...hlight_pony.7becd858b0fd3607817f.bundle.js | 1 + ..._powershell.d74790746e386a8f35e9.bundle.js | 1 + ..._processing.9ccbf75fe0802093678e.bundle.js | 1 + ...ght_profile.46e0cfe18e0f00d1a301.bundle.js | 1 + ...ight_prolog.316b30be50f08a59877e.bundle.js | 1 + ..._properties.56f1e04574491e72a296.bundle.js | 1 + ...ht_protobuf.4263f6509aa2b8295559.bundle.js | 1 + ...ight_puppet.45802ec12666c116f98d.bundle.js | 1 + ...t_purebasic.ec096207c54e7b3dcc2c.bundle.js | 1 + ...ight_python.079560f2b4fc546a80f0.bundle.js | 1 + ...highlight_q.9c4029ba19dfe46153b4.bundle.js | 1 + ...ghlight_qml.8b7baa70904b424bc6de.bundle.js | 1 + ...highlight_r.808813b594159f44ab8e.bundle.js | 1 + ...ht_reasonml.2537bc8fcf2d57d468be.bundle.js | 1 + ...ghlight_rib.18b7a35b91cd4a211efa.bundle.js | 1 + ...ht_roboconf.4bb756a2b3b4a988c98f.bundle.js | 1 + ...ht_routeros.7400617a65900f99ef33.bundle.js | 1 + ...ghlight_rsl.bce3695f400d0d2a2722.bundle.js | 1 + ...hlight_ruby.100c6478ea85153c61b2.bundle.js | 1 + ...leslanguage.218f88128d45e08258a3.bundle.js | 1 + ...hlight_rust.586162907b510894e14d.bundle.js | 1 + ...ghlight_sas.02075715779bd2756198.bundle.js | 1 + ...light_scala.77f51c575699af32c2e8.bundle.js | 1 + ...ight_scheme.d210226caaf5609a1b6f.bundle.js | 1 + ...ight_scilab.d865ea5ba9c0fc247b30.bundle.js | 1 + ...hlight_scss.224c7b3f77d7d59c19ac.bundle.js | 1 + ...light_shell.a4a4ddf6b581d8a34de3.bundle.js | 1 + ...light_smali.ca54cf2386fd65b65fde.bundle.js | 1 + ...t_smalltalk.54911f3057cc32ae197f.bundle.js | 1 + ...ghlight_sml.fd3f6174d7a676d46462.bundle.js | 1 + ...ghlight_sql.6d0652319ca3ffc6c55f.bundle.js | 1 + ...hlight_stan.159492bc8c061469e206.bundle.js | 1 + ...light_stata.ae7051d04299b3dc7fcb.bundle.js | 1 + ...ight_step21.253f1fc254c2a97eb9c0.bundle.js | 1 + ...ight_stylus.ecfba3c6d3c4bdd958f8.bundle.js | 1 + ...ght_subunit.223cc1f32092be7bc31e.bundle.js | 1 + ...light_swift.464e6e091d2b3af51ef7.bundle.js | 1 + ...aggerscript.5a04193bb5bdd02cb997.bundle.js | 1 + ...ghlight_tap.c0c749a29fa23903dcd3.bundle.js | 1 + ...ghlight_tcl.198b2b216a4ed63f788e.bundle.js | 1 + ...ghlight_tex.0e7780133806fb1b264f.bundle.js | 1 + ...ight_thrift.facba6c6c493541fcb78.bundle.js | 1 + ...ighlight_tp.67e5d7ee7b6cc3e3b70d.bundle.js | 1 + ...hlight_twig.200583e3f1d421a6413d.bundle.js | 1 + ..._typescript.d0620c84578b80bbc1bb.bundle.js | 1 + ...hlight_vala.553be5636a8df5a8c23e.bundle.js | 1 + ...light_vbnet.981f107a93e03e52e6cf.bundle.js | 1 + ...ht_vbscript.5f54a0bca8b187bf3996.bundle.js | 1 + ...bscriptHtml.8ee669ce3f1e2db6fde3.bundle.js | 1 + ...ght_verilog.fbe6fa6d413d4a71f5fb.bundle.js | 1 + ...hlight_vhdl.19bdeeb62236e287300d.bundle.js | 1 + ...ghlight_vim.27e4ba3cd1c145d9988e.bundle.js | 1 + ...ight_x86asm.69ef32ab4c04e44285bc.bundle.js | 1 + ...ighlight_xl.2f3d0fdc102bf4d851eb.bundle.js | 1 + ...ghlight_xml.d74d24f48b79957e5bc5.bundle.js | 1 + ...ight_xquery.fd62093a33362428b734.bundle.js | 1 + ...hlight_yaml.a28e1c188ac596a2bd31.bundle.js | 1 + ...ight_zephir.06da87015f2737c4e74e.bundle.js | 1 + runtime~main.44000e22faab53a9602a.bundle.js | 1 + runtime~main.74853aa643f64aa09273.bundle.js | 2 + ...me~main.74853aa643f64aa09273.bundle.js.map | 1 + sb_dll/storybook_ui-manifest.json | 1 + sb_dll/storybook_ui_dll.LICENCE | 113 + sb_dll/storybook_ui_dll.js | 2 + static/media/image01.df0ac7ee.jpg | Bin 0 -> 110601 bytes static/media/image02.3c5ae515.jpg | Bin 0 -> 71865 bytes static/media/image03.7ff16f0f.jpg | Bin 0 -> 87080 bytes static/media/image04.3aa73dbb.jpg | Bin 0 -> 103321 bytes static/media/image05.9e458dfd.jpg | Bin 0 -> 87066 bytes static/media/image06.2b1ede32.jpg | Bin 0 -> 268034 bytes static/media/image07.74f2fb1a.jpg | Bin 0 -> 187065 bytes static/media/image08.a3fd2c6c.jpg | Bin 0 -> 85383 bytes static/media/image09.1542ebda.jpg | Bin 0 -> 148287 bytes static/media/image10.40c78ce6.jpg | Bin 0 -> 145490 bytes .../media/nuxeo-elements-catalog.784dbae7.svg | 14 + static/media/sample.198918f4.mp4 | Bin 0 -> 788493 bytes vendors~main.74853aa643f64aa09273.bundle.js | 5691 +++++++++++++++++ ...74853aa643f64aa09273.bundle.js.LICENSE.txt | 1217 ++++ ...rs~main.74853aa643f64aa09273.bundle.js.map | 1 + vendors~main.823b59303741c58a6209.bundle.js | 123 + ...ghlight_gml.0d5a2ce0a43074bd6333.bundle.js | 1 + ...hlight_isbl.bc41067b250a5e4b988b.bundle.js | 1 + ...mathematica.5c1d138ab9094d4ddd1f.bundle.js | 1 + ...ight_maxima.678c0a3695aeccdbdcdc.bundle.js | 1 + ...hlight_oneC.fdb3d0a6433691c8c4a5.bundle.js | 1 + ...ghlight_sqf.3f38aa2949f5e00c3e1a.bundle.js | 1 + 230 files changed, 13249 insertions(+) create mode 100644 10.74853aa643f64aa09273.bundle.js create mode 100644 10.74853aa643f64aa09273.bundle.js.map create mode 100644 3.74853aa643f64aa09273.bundle.js create mode 100644 3.74853aa643f64aa09273.bundle.js.map create mode 100644 4.74853aa643f64aa09273.bundle.js create mode 100644 4.74853aa643f64aa09273.bundle.js.map create mode 100644 5.74853aa643f64aa09273.bundle.js create mode 100644 5.74853aa643f64aa09273.bundle.js.map create mode 100644 6.74853aa643f64aa09273.bundle.js create mode 100644 6.74853aa643f64aa09273.bundle.js.map create mode 100644 7.74853aa643f64aa09273.bundle.js create mode 100644 7.74853aa643f64aa09273.bundle.js.map create mode 100644 8.74853aa643f64aa09273.bundle.js create mode 100644 8.74853aa643f64aa09273.bundle.js.map create mode 100644 9.74853aa643f64aa09273.bundle.js create mode 100644 9.74853aa643f64aa09273.bundle.js.map create mode 100644 favicon.ico create mode 100644 iframe.html create mode 100644 index.html create mode 100644 main.74853aa643f64aa09273.bundle.js create mode 100644 main.74853aa643f64aa09273.bundle.js.LICENSE.txt create mode 100644 main.74853aa643f64aa09273.bundle.js.map create mode 100644 main.81a96ea41a383c5e221b.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_abnf.3595e109029d4f440e1d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_accesslog.0f89599e6edc25dc0dbd.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_actionscript.2668a2938dc54fd6efc3.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_ada.ab53a934b095cd959baa.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_angelscript.3e668fecc3af1eb1762d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_apache.cda0783c3f78182c3a1c.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_applescript.4390c778f4d931125c2a.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_arcade.7bc14ceb3e9164ea3e58.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_arduino.36447e38135cb07849e4.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_armasm.00a5435c5d41ddb9fbe1.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_asciidoc.c568cf5e33b55ff6fb84.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_aspectj.e4f265065d126eeb3ac9.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_autohotkey.7a9b4531ba3bf91d52c2.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_autoit.60b4f69513c7df23895a.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_avrasm.3493f1619539fd8c15d0.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_awk.3a0579ae3f7aafb17221.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_axapta.30ba5bf22faf8fc9537e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_bash.a5ac41ce9c87c65ab918.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_basic.3add54087a6826e266d1.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_bnf.aaaf3cf912502ef036b6.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_brainfuck.667865f0805c4a840c99.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_cal.ad31d6f9d3cac90769b2.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_capnproto.d056d460a6309602f120.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_ceylon.f85db3a4679c50cfbd0f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_clean.45a1bb6da97c5f1f99dc.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_clojure.9cb10c8b2002447f2773.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_clojureRepl.cc96b77f6338e3efc392.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_cmake.b98bb73e093e948f3e84.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_coffeescript.954faf539e82b7461eb1.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_coq.3c702fab66003db00103.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_cos.db3e5cf3dc319d14ddf8.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_cpp.8e6069f5ac985670445e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_crmsh.36f77fe2e8ed24ce6e6c.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_crystal.e59be9cfe94e639d965b.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_cs.55bc21e78d2579ac8235.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_csp.4c2c24d75e938a770235.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_css.f81148707ba925d8edca.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_d.9484913953c438abfc89.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_dart.1ebeec13b2c891591e8c.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_delphi.337f0d2f53936dd14758.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_diff.83e85df895aaf7db910d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_django.aa7739c7c678994535f6.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_dns.12cb4f0a9e5a3e0fb36f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_dockerfile.c4f2acbbf36b6aba3fd9.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_dos.ff1dab8d65115f55fe2e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_dsconfig.ad4d19746a1e055406eb.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_dts.8d337e26f0c8661ede39.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_dust.f883fc84d6de192452d7.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_ebnf.f6cd143a4042a4e18c45.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_elixir.8265aeaf48454fe54bbe.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_elm.f1cd6c5aa17ceeeedfd4.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_erb.63553f58f64b29484787.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_erlang.7f4a4944181536b6815a.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_erlangRepl.22a6f2832ce991764cc2.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_excel.feec4e31988cf21d453d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_fix.3d96b3e848f4b8b46607.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_flix.f68784f53707f0c4e6a7.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_fortran.255442e4ecfd5beb673d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_fsharp.0952ec9d1db4802acf05.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_gams.079f3874ee7b3e554c8b.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_gauss.e2102f3313718dd79482.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_gcode.7869d29ffef590af1002.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_gherkin.ad089e531547dcce8c21.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_glsl.a3b11c99b63f09ce4b11.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_go.8a2e0791be616c80b04b.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_golo.bcd9c1003a06ca03c0ea.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_gradle.18fb1a16e0450ab34ccc.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_groovy.1a2aea85c5daf0209bb9.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_haml.58b5132ca17800799bc9.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_handlebars.cf917a695ca255d7bd2c.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_haskell.74b995827ff902332ac0.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_haxe.a04e512bde9238d99de8.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_hsp.ba6c7f1b18a63ffdc7fd.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_htmlbars.7d9bfacb28b16de17cd1.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_http.edc9f8f4494b9570a3f7.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_hy.4eab1253f223441ccf39.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_inform7.bed80903624c5f3b9b97.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_ini.b24cfd88066151a88cf1.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_irpf90.87cf91be05f606e776c3.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_java.8b5e779e595548d05e05.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_javascript.4e39a54e0b2c2cbb9b0c.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_jbossCli.c60bb3770f88cb7b3c6e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_json.5add5b36e27632de9458.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_julia.9932ef49a4645713c566.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_juliaRepl.4d195c5137a32763eed4.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_kotlin.35ad1c4e853e74168f44.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_lasso.3b830352c8360cc80e26.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_ldif.f283b2d8f1e3be7fa5f0.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_leaf.9645ca0a7e1e528c7fdb.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_less.53f5523f9656eae9832f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_lisp.d9881c50691536c1b16b.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_livecodeserver.f4bdbc1b5e62b85ab57b.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_livescript.4c508e373af008dcd2a7.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_llvm.c123fae96ce8e8fd47a9.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_lsl.7bedb592414dda79ecbf.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_lua.cfa8e4945753719ee35c.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_makefile.63060e3551dd9d36c07f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_markdown.c40fb28d0eef57fe5ede.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_matlab.07df354dd04183cb5048.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_mel.bbe6a4db2d502b6719e5.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_mercury.a5e70205c7c92da583ca.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_mipsasm.a1178a73c583717e4387.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_mizar.e5e3939cfbb908608dfc.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_mojolicious.938e747f38dcc47256d0.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_monkey.5efd6998b3a83bdb85ae.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_moonscript.71e13b6bc41455f7225d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_n1ql.72cba196e2ef6fd6ad50.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_nginx.89696f698e24709c93e8.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_nimrod.4cf93eeb4cabef443978.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_nix.ddcd670efa9c93902cd2.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_nsis.3a6d122c4b0064e636d8.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_objectivec.79bde9460d392266608a.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_ocaml.bcc3ceda950a9d5d7db9.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_openscad.7fa15193fd858ed149d3.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_oxygene.f73d6ea82229cde8281e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_parser3.1633d69f04a5ca61db24.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_perl.fd77a55f6608f5365637.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_pf.1928b035873686b59d37.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_pgsql.0eadfc2e2a5d8cbc8b1b.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_php.7cc14229d23b984b1c26.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_plaintext.c46a62c156b5ef910fa4.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_pony.7becd858b0fd3607817f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_powershell.d74790746e386a8f35e9.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_processing.9ccbf75fe0802093678e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_profile.46e0cfe18e0f00d1a301.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_prolog.316b30be50f08a59877e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_properties.56f1e04574491e72a296.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_protobuf.4263f6509aa2b8295559.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_puppet.45802ec12666c116f98d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_purebasic.ec096207c54e7b3dcc2c.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_python.079560f2b4fc546a80f0.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_q.9c4029ba19dfe46153b4.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_qml.8b7baa70904b424bc6de.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_r.808813b594159f44ab8e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_reasonml.2537bc8fcf2d57d468be.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_rib.18b7a35b91cd4a211efa.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_roboconf.4bb756a2b3b4a988c98f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_routeros.7400617a65900f99ef33.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_rsl.bce3695f400d0d2a2722.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_ruby.100c6478ea85153c61b2.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_ruleslanguage.218f88128d45e08258a3.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_rust.586162907b510894e14d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_sas.02075715779bd2756198.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_scala.77f51c575699af32c2e8.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_scheme.d210226caaf5609a1b6f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_scilab.d865ea5ba9c0fc247b30.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_scss.224c7b3f77d7d59c19ac.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_shell.a4a4ddf6b581d8a34de3.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_smali.ca54cf2386fd65b65fde.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_smalltalk.54911f3057cc32ae197f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_sml.fd3f6174d7a676d46462.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_sql.6d0652319ca3ffc6c55f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_stan.159492bc8c061469e206.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_stata.ae7051d04299b3dc7fcb.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_step21.253f1fc254c2a97eb9c0.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_stylus.ecfba3c6d3c4bdd958f8.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_subunit.223cc1f32092be7bc31e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_swift.464e6e091d2b3af51ef7.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_taggerscript.5a04193bb5bdd02cb997.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_tap.c0c749a29fa23903dcd3.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_tcl.198b2b216a4ed63f788e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_tex.0e7780133806fb1b264f.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_thrift.facba6c6c493541fcb78.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_tp.67e5d7ee7b6cc3e3b70d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_twig.200583e3f1d421a6413d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_typescript.d0620c84578b80bbc1bb.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_vala.553be5636a8df5a8c23e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_vbnet.981f107a93e03e52e6cf.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_vbscript.5f54a0bca8b187bf3996.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_vbscriptHtml.8ee669ce3f1e2db6fde3.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_verilog.fbe6fa6d413d4a71f5fb.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_vhdl.19bdeeb62236e287300d.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_vim.27e4ba3cd1c145d9988e.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_x86asm.69ef32ab4c04e44285bc.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_xl.2f3d0fdc102bf4d851eb.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_xml.d74d24f48b79957e5bc5.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_xquery.fd62093a33362428b734.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_yaml.a28e1c188ac596a2bd31.bundle.js create mode 100644 react-syntax-highlighter_languages_highlight_zephir.06da87015f2737c4e74e.bundle.js create mode 100644 runtime~main.44000e22faab53a9602a.bundle.js create mode 100644 runtime~main.74853aa643f64aa09273.bundle.js create mode 100644 runtime~main.74853aa643f64aa09273.bundle.js.map create mode 100644 sb_dll/storybook_ui-manifest.json create mode 100644 sb_dll/storybook_ui_dll.LICENCE create mode 100644 sb_dll/storybook_ui_dll.js create mode 100644 static/media/image01.df0ac7ee.jpg create mode 100644 static/media/image02.3c5ae515.jpg create mode 100644 static/media/image03.7ff16f0f.jpg create mode 100644 static/media/image04.3aa73dbb.jpg create mode 100644 static/media/image05.9e458dfd.jpg create mode 100644 static/media/image06.2b1ede32.jpg create mode 100644 static/media/image07.74f2fb1a.jpg create mode 100644 static/media/image08.a3fd2c6c.jpg create mode 100644 static/media/image09.1542ebda.jpg create mode 100644 static/media/image10.40c78ce6.jpg create mode 100644 static/media/nuxeo-elements-catalog.784dbae7.svg create mode 100644 static/media/sample.198918f4.mp4 create mode 100644 vendors~main.74853aa643f64aa09273.bundle.js create mode 100644 vendors~main.74853aa643f64aa09273.bundle.js.LICENSE.txt create mode 100644 vendors~main.74853aa643f64aa09273.bundle.js.map create mode 100644 vendors~main.823b59303741c58a6209.bundle.js create mode 100644 vendors~react-syntax-highlighter_languages_highlight_gml.0d5a2ce0a43074bd6333.bundle.js create mode 100644 vendors~react-syntax-highlighter_languages_highlight_isbl.bc41067b250a5e4b988b.bundle.js create mode 100644 vendors~react-syntax-highlighter_languages_highlight_mathematica.5c1d138ab9094d4ddd1f.bundle.js create mode 100644 vendors~react-syntax-highlighter_languages_highlight_maxima.678c0a3695aeccdbdcdc.bundle.js create mode 100644 vendors~react-syntax-highlighter_languages_highlight_oneC.fdb3d0a6433691c8c4a5.bundle.js create mode 100644 vendors~react-syntax-highlighter_languages_highlight_sqf.3f38aa2949f5e00c3e1a.bundle.js diff --git a/10.74853aa643f64aa09273.bundle.js b/10.74853aa643f64aa09273.bundle.js new file mode 100644 index 0000000000..dd58aac417 --- /dev/null +++ b/10.74853aa643f64aa09273.bundle.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1721:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_exports__.default="\x3c!-- XXX: stub for the element because it's still part of the nuxeo/nuxeo-web-ui repo. --\x3e\n\x3c!-- (to be reviewed once ELEMENTS-1321 is handled) --\x3e\n\n

No Preview

Sorry, but you either have no stories or none are selected somehow.

  • Please check the Storybook config.
  • Try reloading the page.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000000..0e1488d06b --- /dev/null +++ b/index.html @@ -0,0 +1,19 @@ +Storybook
\ No newline at end of file diff --git a/main.74853aa643f64aa09273.bundle.js b/main.74853aa643f64aa09273.bundle.js new file mode 100644 index 0000000000..7e91ccbc03 --- /dev/null +++ b/main.74853aa643f64aa09273.bundle.js @@ -0,0 +1,5691 @@ +/*! For license information please see main.74853aa643f64aa09273.bundle.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{10:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_polymer_element_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(29);window.Nuxeo=window.Nuxeo||{},Nuxeo.Element=class Element extends _polymer_polymer_polymer_element_js__WEBPACK_IMPORTED_MODULE_0__.a{}},1019:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(44),__webpack_require__(31),__webpack_require__(45),__webpack_require__(62),__webpack_require__(61),__webpack_require__(83),__webpack_require__(59),__webpack_require__(66),__webpack_require__(72),__webpack_require__(67),__webpack_require__(116),__webpack_require__(22),__webpack_require__(53),__webpack_require__(84),__webpack_require__(85),__webpack_require__(117);var _nuxeo_testing_helpers__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(840),_storybook_polymer__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(12),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(89),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(2),_analysis__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(169),_theme__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(821);__webpack_require__(1433),__webpack_require__(658),__webpack_require__(1434);function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i"),(function(){return _storybook_addon_actions__WEBPACK_IMPORTED_MODULE_18__.withActions.apply(void 0,_toConsumableArray(events))(storyFn)}),{notes:notes})}}),Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_17__.addParameters)({backgrounds:[{name:"Default",value:"#f5f5f5"},{name:"Dark",value:"#060826"},{name:"Kawai",value:"#f8d3e0"},{name:"Light",value:"#f7f7f7"}],options:{enableShortcuts:!1,theme:_theme__WEBPACK_IMPORTED_MODULE_21__.a}});var req=__webpack_require__(1435);Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_17__.configure)((function loadStories(){window.nuxeo.mock&&window.nuxeo.mock.restore(),window.nuxeo.mock=_nuxeo_testing_helpers__WEBPACK_IMPORTED_MODULE_16__.a.create(),req.keys().forEach((function(filename){return req(filename)}))}),module)}.call(this,__webpack_require__(27)(module))},105:function(module,__webpack_exports__,__webpack_require__){"use strict";const template=__webpack_require__(0).a` + + + +`;document.head.appendChild(template.content)},124:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return DocumentBuilder}));__webpack_require__(46),__webpack_require__(489),__webpack_require__(1460),__webpack_require__(59),__webpack_require__(66),__webpack_require__(31),__webpack_require__(416),__webpack_require__(100),__webpack_require__(72),__webpack_require__(62),__webpack_require__(67),__webpack_require__(61);var uuid_v4__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(79),uuid_v4__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(uuid_v4__WEBPACK_IMPORTED_MODULE_12__);function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _defineProperties(target,props){for(var descriptor,i=0;i + :host { + @apply --nuxeo-dialog; + visibility: visible; + } + + :host > ::slotted(h2), + :host > ::slotted(*) { + margin-top: 16px; + } + + :host > ::slotted(.buttons) { + @apply --layout-horizontal; + @apply --layout-justified; + margin-top: 16px; + } + + + + `}static get is(){return"nuxeo-dialog"}static get properties(){return{reparent:{type:Boolean,value:!1}}}ready(){super.ready(),this.addEventListener("iron-overlay-opened",this._opened)}disconnectedCallback(){this._observer&&this.detached(),this._clear()}_opened(e){const isIOS=/iPhone|iPad|iPod/.test(window.navigator.userAgent);if((this.reparent&&e.target.withBackdrop||isIOS)&&e.target.parentNode.insertBefore(e.target.backdropElement,e.target),!this._instance){const template=Object(_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_5__.a)(this).querySelector("nuxeo-dialog > template");template&&(this._templatizerTemplate||this.templatize(template),this._instance=this.stamp(),this.appendChild(this._instance.root))}}_clear(){if(this._instance){const c$=this._instance.children;if(c$&&c$.length){const parent=Object(_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_5__.a)(Object(_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_5__.a)(c$[0]).parentNode);for(let n,i=0;iRoutingBehavior.__router},urlFor:{type:Function,computed:"_computeUrlFor(router)"},navigateTo:{type:Function,computed:"_computeNavigateTo(router)"}},attached(){this._updateRouter(),this.routerChangedHandler=this._updateRouter.bind(this),document.addEventListener("nuxeo-router-changed",this.routerChangedHandler)},detached(){document.removeEventListener("nuxeo-router-changed",this.routerChangedHandler)},_updateRouter(){this.router=this.router||RoutingBehavior.__router},_routerChanged(router){router&&!RoutingBehavior.__router&&setRouter(router)},_generateUrl(baseUrl,path){const base=`${baseUrl}${this.router.useHashbang?(baseUrl.endsWith("/")?"":"/")+"#!":""}`;return`${base}${base.endsWith("/")||path.startsWith("/")?"":"/"}${path}`},_computeUrlFor:()=>function(...args){if(this.router){const[route,...params]=args;if(!route)return"";const baseUrl=this.router.baseUrl||"";let path;if("object"==typeof route){if(!Object.keys(route).length)return"";path=this._routeEntity(...args);/^http(s)?:\/\//.test(path)||(path=this._generateUrl(baseUrl,path))}else{if(route.startsWith("/"))return baseUrl+route;if(!this.router[route])return void console.error("Could not generate a url for route "+route);path=this._generateUrl(baseUrl,this.router[route].apply(this,params))}return path}},_computeNavigateTo:()=>function(...args){if(this.router){const[route,...params]=args;let path;"object"==typeof route?path=this._routeEntity(...args):(route.startsWith("/")&&this.router.navigate((this.router.baseUrl||"")+route),this.router[route]||console.error("Could not navigate to a url for route "+route),path=this.router[route].apply(this,params)),this.router.navigate(path)}else console.error("No router defined")},_routeEntity(...args){if(0===args.length)return;const[obj,...params]=args;if("object"!=typeof obj)throw new Error(`cannot resolve route: "${obj}" is not a valid entity object`);let entityType=obj["entity-type"];if(!entityType){if(!obj.path||!obj.uid)throw new Error('cannot resolve route: object does not have an "entity-type"');entityType="document"}let routeKey=_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_1__.a.get("router.key."+entityType),baseUrl="",fn=this.router[entityType];"document"===entityType&&(routeKey=routeKey||"path",(obj.isProxy||obj.isVersion)&&(routeKey="uid"),obj.repository&&Nuxeo.UI&&Nuxeo.UI.repositories&&Nuxeo.UI.repositories.length>1&&(baseUrl=`${window.location.origin}${Nuxeo.UI.repositories.find(r=>r.name===obj.repository).href}`),fn="path"===routeKey&&this.router.browse||fn),routeKey=routeKey||"id";const routeVal=obj[routeKey];if(!routeVal)throw new Error("invalid router key: "+routeKey);const path=fn(routeVal,...params);return baseUrl?this._generateUrl(baseUrl,path):path}},setRouter=router=>{RoutingBehavior.__router=router,document&&document.dispatchEvent(new Event("nuxeo-router-changed"))}},143:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return codePanelTemplate}));__webpack_require__(22),__webpack_require__(25),__webpack_require__(24),__webpack_require__(62),__webpack_require__(31),__webpack_require__(151),__webpack_require__(67),__webpack_require__(61);var _templateObject,_templateObject2,lit_html__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3),lit_html_directives_unsafe_html_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(836),lit_html_directives_until_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(837),highlight_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(838),highlight_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(highlight_js__WEBPACK_IMPORTED_MODULE_11__);function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var codePanelTemplate=function(path){return Object(lit_html__WEBPACK_IMPORTED_MODULE_8__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n \n
\n layout source\n \n ',"\n
\n"])),Object(lit_html_directives_until_js__WEBPACK_IMPORTED_MODULE_10__.a)(__webpack_require__(1674)("./".concat(path)).then((function(module){var val=highlight_js__WEBPACK_IMPORTED_MODULE_11___default.a.highlight("html",module.default).value;return Object(lit_html_directives_unsafe_html_js__WEBPACK_IMPORTED_MODULE_9__.a)("
".concat(val,"
"))})),Object(lit_html__WEBPACK_IMPORTED_MODULE_8__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n Loading layout source...\n "])))))}},1433:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(0);__webpack_require__(81);var template=Object(_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_3__.a)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n \n \n \n"])));document.head.appendChild(template.content)},1434:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(141).a.__router={baseUrl:"",useHashbang:!0,browse:function browse(){return"#"},user:function user(){return"#"},group:function group(){return"#"}}},1435:function(module,exports,__webpack_require__){var map={"./actions/actions.stories.js":1436,"./nuxeo-actions-menu/nuxeo-actions-menu.stories.js":1462,"./nuxeo-aggregation-widget/nuxeo-aggregation-widget.stories.js":1464,"./nuxeo-card/nuxeo-card.stories.js":1465,"./nuxeo-checkmark/nuxeo-checkmark.stories.js":1467,"./nuxeo-data-grid/nuxeo-data-grid.stories.js":1468,"./nuxeo-data-list/nuxeo-data-list.stories.js":1470,"./nuxeo-data-table/nuxeo-data-table.stories.js":1472,"./nuxeo-date-picker/nuxeo-date-picker.stories.js":1473,"./nuxeo-date/nuxeo-date.stories.js":1474,"./nuxeo-directory-radio-group/nuxeo-directory-radio-group.stories.js":1475,"./nuxeo-document-comments/nuxeo-document-comments.stories.js":1476,"./nuxeo-document-layout/nuxeo-document-layout.stories.js":1480,"./nuxeo-document-picker/nuxeo-document-picker.stories.js":1675,"./nuxeo-html-editor/nuxeo-html-editor.stories.js":1676,"./nuxeo-icons/nuxeo-icons.stories.js":1683,"./nuxeo-input/nuxeo-input.stories.js":1684,"./nuxeo-justified-grid/nuxeo-justified-grid.stories.js":1685,"./nuxeo-pagination-controls/nuxeo-pagination-controls.stories.js":1688,"./nuxeo-search-form-layout/nuxeo-search-form-layout.stories.js":1691,"./nuxeo-search-results-layout/nuxeo-search-results-layout.stories.js":1692,"./nuxeo-select/nuxeo-select.stories.js":1693,"./nuxeo-selectivity/nuxeo-selectivity.stories.js":1694,"./nuxeo-sort-select/nuxeo-sort-select.stories.js":1695,"./nuxeo-textarea/nuxeo-textarea.stories.js":1697,"./nuxeo-tree/nuxeo-tree.stories.js":1698,"./nuxeo-user-suggestion/nuxeo-user-suggestion.stories.js":1699,"./nuxeo-video/nuxeo-video-conversions.stories.js":1701,"./nuxeo-video/nuxeo-video-info.stories.js":1703,"./widgets/widget.stories.js":1705};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=1435},1436:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24),__webpack_require__(1444),__webpack_require__(1449),__webpack_require__(1450),__webpack_require__(1451),__webpack_require__(1452),__webpack_require__(1453),__webpack_require__(797),__webpack_require__(1454),__webpack_require__(1455),__webpack_require__(1456),__webpack_require__(1457),__webpack_require__(1458),__webpack_require__(1459),__webpack_require__(74);var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,lit_html__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(3),_storybook_polymer__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(2),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(89),_data_documents_data__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(124),_img_nuxeo_elements_catalog_svg__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(321),_img_nuxeo_elements_catalog_svg__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(_img_nuxeo_elements_catalog_svg__WEBPACK_IMPORTED_MODULE_22__),_lists_icons__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(196);function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import '@nuxeo/nuxeo-ui-elements/actions/nuxeo-add-to-collection-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-favorites-toggle-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-delete-blob-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-delete-document-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-download-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-export-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-link-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-lock-toggle-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-move-documents-down-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-move-documents-up-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-notifications-toggle-button';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-share-button.js';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-untrash-document-button.js';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-icons';\nimport { html } from 'lit-html';\nimport { storiesOf } from '@storybook/polymer';\nimport { color, select, text, boolean } from '@storybook/addon-knobs';\nimport { action } from '@storybook/addon-actions';\nimport DocumentBuilder from '../../data/documents.data';\nimport image from '../../img/nuxeo-elements-catalog.svg';\nimport iconMap from '../../lists/icons';\n\nconst documentBuilder = new DocumentBuilder()\n .setFileContent('Nuxeo Logo', image)\n .setPermissions(['Write', 'ManageWorkflows']);\n\nconst DOCUMENTS = [documentBuilder.build(), documentBuilder.build(), documentBuilder.build()];\n\nconst listOfIcons = iconMap.nuxeo;\n\nconst server = window.nuxeo.mock;\nserver.respondWith('POST', '/api/v1/automation/Document.AddToFavorites', DOCUMENTS[0]);\nserver.respondWith('POST', '/api/v1/automation/Document.RemoveFromFavorites', DOCUMENTS[0]);\nserver.respondWith('POST', '/api/v1/automation/Blob.RemoveFromDocument', DOCUMENTS[0]);\nserver.respondWith('POST', '/api/v1/automation/Document.Lock', DOCUMENTS[0]);\nserver.respondWith('POST', '/api/v1/automation/Document.Unlock', DOCUMENTS[0]);\nserver.respondWith('POST', '/api/v1/automation/Document.Subscribe', DOCUMENTS[0]);\nserver.respondWith('POST', '/api/v1/automation/Document.Unsubscribe', DOCUMENTS[0]);\nserver.respondWith('POST', '/api/v1/automation/Document.Untrash', DOCUMENTS[0]);\n\nconst stories = storiesOf('UI/Actions', module);\nstories\n .add(\n 'nuxeo-add-to-collection-button',\n () =>\n html`\n \n `,\n )\n\n .add(\n 'nuxeo-delete-blob-button',\n () =>\n html`\n \n `,\n )\n\n .add(\n 'nuxeo-delete-document-button',\n () =>\n html`\n \n \n `,\n )\n\n .add(\n 'nuxeo-download-button',\n () =>\n html`\n \n `,\n )\n\n .add(\n 'nuxeo-export-button',\n () =>\n html`\n \n `,\n )\n\n .add('nuxeo-favorites-toggle-button', () => {\n const favorite = boolean('Favorite', false);\n return html`\n \n \n \n `;\n })\n\n .add('nuxeo-link-button', () => {\n const href = text('Href', 'https://nuxeo.com');\n const icon = select('Icons', listOfIcons, 'nuxeo:add');\n const label = text('Label', 'Nuxeo');\n const showLabel = boolean('Show Label', false);\n return html`\n \n `;\n })\n\n .add('nuxeo-lock-toggle-button', () => {\n const locked = boolean('Locked', false);\n return html`\n \n \n `;\n })\n\n .add('nuxeo-move-documents-down-button', () => {\n const documents = DOCUMENTS;\n const selectedDocuments = [DOCUMENTS[1]];\n return html`\n \n \n `;\n })\n\n .add('nuxeo-move-documents-up-button', () => {\n const documents = DOCUMENTS;\n const selectedDocuments = [DOCUMENTS[1]];\n return html`\n \n \n `;\n })\n\n .add('nuxeo-notifications-toggle-button', () => {\n const subscribed = boolean('Subscribed', false);\n return html`\n \n \n \n `;\n })\n\n .add(\n 'nuxeo-share-button',\n () =>\n html`\n \n `,\n )\n\n .add('nuxeo-untrash-document-button', () => {\n const DOCUMENT_TRASHED = new DocumentBuilder()\n .setSystemProperties({ isTrashed: true })\n .setPermissions(['Write', 'ManageWorkflows'])\n .build();\n return html`\n \n \n `;\n });\n"),__ADDS_MAP__={},documentBuilder=(new _data_documents_data__WEBPACK_IMPORTED_MODULE_21__.a).setFileContent("Nuxeo Logo",_img_nuxeo_elements_catalog_svg__WEBPACK_IMPORTED_MODULE_22___default.a).setPermissions(["Write","ManageWorkflows"]),DOCUMENTS=[documentBuilder.build(),documentBuilder.build(),documentBuilder.build()],listOfIcons=_lists_icons__WEBPACK_IMPORTED_MODULE_23__.a.nuxeo,server=window.nuxeo.mock;server.respondWith("POST","/api/v1/automation/Document.AddToFavorites",DOCUMENTS[0]),server.respondWith("POST","/api/v1/automation/Document.RemoveFromFavorites",DOCUMENTS[0]),server.respondWith("POST","/api/v1/automation/Blob.RemoveFromDocument",DOCUMENTS[0]),server.respondWith("POST","/api/v1/automation/Document.Lock",DOCUMENTS[0]),server.respondWith("POST","/api/v1/automation/Document.Unlock",DOCUMENTS[0]),server.respondWith("POST","/api/v1/automation/Document.Subscribe",DOCUMENTS[0]),server.respondWith("POST","/api/v1/automation/Document.Unsubscribe",DOCUMENTS[0]),server.respondWith("POST","/api/v1/automation/Document.Untrash",DOCUMENTS[0]),Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_18__.storiesOf)("UI/Actions",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/actions.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/actions",{})).add("nuxeo-add-to-collection-button",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),DOCUMENTS[0])})).add("nuxeo-delete-blob-button",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),DOCUMENTS[0])})).add("nuxeo-delete-document-button",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n \n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),DOCUMENTS[0])})).add("nuxeo-download-button",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),DOCUMENTS[0])})).add("nuxeo-export-button",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),document)})).add("nuxeo-favorites-toggle-button",(function(){var favorite=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__.boolean)("Favorite",!1);return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n \n \n \n '])),Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__.color)("--nuxeo-action-color-activated","#00aded","CSS variables"),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),DOCUMENTS[0],favorite)})).add("nuxeo-link-button",(function(){var href=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__.text)("Href","https://nuxeo.com"),icon=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__.select)("Icons",listOfIcons,"nuxeo:add"),label=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__.text)("Label","Nuxeo"),showLabel=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__.boolean)("Show Label",!1);return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),href,icon,label,showLabel)})).add("nuxeo-lock-toggle-button",(function(){var locked=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__.boolean)("Locked",!1);return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n \n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),DOCUMENTS,selectedDocuments)})).add("nuxeo-move-documents-up-button",(function(){var selectedDocuments=[DOCUMENTS[1]];return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n \n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),DOCUMENTS,selectedDocuments)})).add("nuxeo-notifications-toggle-button",(function(){var subscribed=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_19__.boolean)("Subscribed",!1);return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["\n \n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),document)})).add("nuxeo-untrash-document-button",(function(){var DOCUMENT_TRASHED=(new _data_documents_data__WEBPACK_IMPORTED_MODULE_21__.a).setSystemProperties({isTrashed:!0}).setPermissions(["Write","ManageWorkflows"]).build();return Object(lit_html__WEBPACK_IMPORTED_MODULE_17__.html)(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n \n \n '])),Object(_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_20__.action)("clicked"),DOCUMENT_TRASHED)}))}.call(this,__webpack_require__(27)(module))},1444:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_10__=(__webpack_require__(36),__webpack_require__(103),__webpack_require__(10),__webpack_require__(96),__webpack_require__(123),__webpack_require__(429),__webpack_require__(47),__webpack_require__(38),__webpack_require__(76)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(7),_widgets_nuxeo_selectivity_js__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__(74),__webpack_require__(140),__webpack_require__(160));__webpack_require__(430),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class AddToCollectionButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_11__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_10__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + + +

[[i18n('addToCollectionButton.dialog.heading')]]

+ + + + + + +
+ [[i18n('addToCollectionButton.dialog.cancel')]] + + [[i18n('addToCollectionButton.dialog.add')]] + +
+
+ `}static get is(){return"nuxeo-add-to-collection-button"}static get properties(){return{document:Object,icon:{type:String,value:"nuxeo:collections"},collection:{type:String,value:""},resultsFilter:{type:Function,value(){return this._resultsFilter.bind(this)}},resultFormatter:{type:Function,value(){return this._resultFormatter.bind(this)}},selectionFormatter:{type:Function,value(){return this._selectionFormatter.bind(this)}},newEntryFormatter:{type:Function,value(){return this._newEntryFormatter.bind(this)}},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(i18n)"}}}_isAvailable(doc){return this.isCollectionMember(doc)}_computeLabel(){return this.i18n("addToCollectionButton.tooltip")}_toggleDialog(){this.$.dialog.toggle()}_add(){if(this._isNew()){const op=this.$$("#createCollectionOp"),name=this.$.nxSelect.selectedItem.displayLabel;return op.params={name:name,description:this.description},op.execute().then(response=>{this.collection=response.uid,this._addToCollection()})}this._addToCollection()}_addToCollection(){const op=this.$$("#addToCollectionOp");return op.params={collection:this.collection},op.execute().then(()=>{this.dispatchEvent(new CustomEvent("added-to-collection",{composed:!0,bubbles:!0,detail:{docId:this.document.uid,collectionId:this.collection}})),this._resetPopup()})}_resultsFilter(entry){return entry.id&&-1===entry.id.indexOf("-999999")}_resultFormatter(item){const label=item.displayLabel||item.title;return-1===item.id?''+label:Object(_widgets_nuxeo_selectivity_js__WEBPACK_IMPORTED_MODULE_14__.a)(label)}_selectionFormatter(item){const label=item.displayLabel||item.title;return-1===item.id?label:Object(_widgets_nuxeo_selectivity_js__WEBPACK_IMPORTED_MODULE_14__.a)(label)}_newEntryFormatter(term){return{id:-1,displayLabel:term}}_isValid(){return this.collection}_isNew(){return-1===this.collection}_resetPopup(){this.set("collection",null),this.description=""}}customElements.define(AddToCollectionButton.is,AddToCollectionButton),Nuxeo.AddToCollectionButton=AddToCollectionButton}},1445:function(module,exports,__webpack_require__){var map={"./af":665,"./af.js":665,"./ar":666,"./ar-dz":667,"./ar-dz.js":667,"./ar-kw":668,"./ar-kw.js":668,"./ar-ly":669,"./ar-ly.js":669,"./ar-ma":670,"./ar-ma.js":670,"./ar-sa":671,"./ar-sa.js":671,"./ar-tn":672,"./ar-tn.js":672,"./ar.js":666,"./az":673,"./az.js":673,"./be":674,"./be.js":674,"./bg":675,"./bg.js":675,"./bm":676,"./bm.js":676,"./bn":677,"./bn.js":677,"./bo":678,"./bo.js":678,"./br":679,"./br.js":679,"./bs":680,"./bs.js":680,"./ca":681,"./ca.js":681,"./cs":682,"./cs.js":682,"./cv":683,"./cv.js":683,"./cy":684,"./cy.js":684,"./da":685,"./da.js":685,"./de":686,"./de-at":687,"./de-at.js":687,"./de-ch":688,"./de-ch.js":688,"./de.js":686,"./dv":689,"./dv.js":689,"./el":690,"./el.js":690,"./en-SG":691,"./en-SG.js":691,"./en-au":692,"./en-au.js":692,"./en-ca":693,"./en-ca.js":693,"./en-gb":694,"./en-gb.js":694,"./en-ie":695,"./en-ie.js":695,"./en-il":696,"./en-il.js":696,"./en-nz":697,"./en-nz.js":697,"./eo":698,"./eo.js":698,"./es":699,"./es-do":700,"./es-do.js":700,"./es-us":701,"./es-us.js":701,"./es.js":699,"./et":702,"./et.js":702,"./eu":703,"./eu.js":703,"./fa":704,"./fa.js":704,"./fi":705,"./fi.js":705,"./fo":706,"./fo.js":706,"./fr":707,"./fr-ca":708,"./fr-ca.js":708,"./fr-ch":709,"./fr-ch.js":709,"./fr.js":707,"./fy":710,"./fy.js":710,"./ga":711,"./ga.js":711,"./gd":712,"./gd.js":712,"./gl":713,"./gl.js":713,"./gom-latn":714,"./gom-latn.js":714,"./gu":715,"./gu.js":715,"./he":716,"./he.js":716,"./hi":717,"./hi.js":717,"./hr":718,"./hr.js":718,"./hu":719,"./hu.js":719,"./hy-am":720,"./hy-am.js":720,"./id":721,"./id.js":721,"./is":722,"./is.js":722,"./it":723,"./it-ch":724,"./it-ch.js":724,"./it.js":723,"./ja":725,"./ja.js":725,"./jv":726,"./jv.js":726,"./ka":727,"./ka.js":727,"./kk":728,"./kk.js":728,"./km":729,"./km.js":729,"./kn":730,"./kn.js":730,"./ko":731,"./ko.js":731,"./ku":732,"./ku.js":732,"./ky":733,"./ky.js":733,"./lb":734,"./lb.js":734,"./lo":735,"./lo.js":735,"./lt":736,"./lt.js":736,"./lv":737,"./lv.js":737,"./me":738,"./me.js":738,"./mi":739,"./mi.js":739,"./mk":740,"./mk.js":740,"./ml":741,"./ml.js":741,"./mn":742,"./mn.js":742,"./mr":743,"./mr.js":743,"./ms":744,"./ms-my":745,"./ms-my.js":745,"./ms.js":744,"./mt":746,"./mt.js":746,"./my":747,"./my.js":747,"./nb":748,"./nb.js":748,"./ne":749,"./ne.js":749,"./nl":750,"./nl-be":751,"./nl-be.js":751,"./nl.js":750,"./nn":752,"./nn.js":752,"./oc-lnc":753,"./oc-lnc.js":753,"./pa-in":754,"./pa-in.js":754,"./pl":755,"./pl.js":755,"./pt":756,"./pt-br":757,"./pt-br.js":757,"./pt.js":756,"./ro":758,"./ro.js":758,"./ru":759,"./ru.js":759,"./sd":760,"./sd.js":760,"./se":761,"./se.js":761,"./si":762,"./si.js":762,"./sk":763,"./sk.js":763,"./sl":764,"./sl.js":764,"./sq":765,"./sq.js":765,"./sr":766,"./sr-cyrl":767,"./sr-cyrl.js":767,"./sr.js":766,"./ss":768,"./ss.js":768,"./sv":769,"./sv.js":769,"./sw":770,"./sw.js":770,"./ta":771,"./ta.js":771,"./te":772,"./te.js":772,"./tet":773,"./tet.js":773,"./tg":774,"./tg.js":774,"./th":775,"./th.js":775,"./tl-ph":776,"./tl-ph.js":776,"./tlh":777,"./tlh.js":777,"./tr":778,"./tr.js":778,"./tzl":779,"./tzl.js":779,"./tzm":780,"./tzm-latn":781,"./tzm-latn.js":781,"./tzm.js":780,"./ug-cn":782,"./ug-cn.js":782,"./uk":783,"./uk.js":783,"./ur":784,"./ur.js":784,"./uz":785,"./uz-latn":786,"./uz-latn.js":786,"./uz.js":785,"./vi":787,"./vi.js":787,"./x-pseudo":788,"./x-pseudo.js":788,"./yo":789,"./yo.js":789,"./zh-cn":790,"./zh-cn.js":790,"./zh-hk":791,"./zh-hk.js":791,"./zh-tw":792,"./zh-tw.js":792};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=1445},1449:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_8__=(__webpack_require__(36),__webpack_require__(103),__webpack_require__(10),__webpack_require__(96),__webpack_require__(47),__webpack_require__(38),__webpack_require__(76)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7);__webpack_require__(74),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class FavoritesToggleButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_9__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_8__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + `}static get is(){return"nuxeo-favorites-toggle-button"}static get properties(){return{document:{type:Object,observer:"_documentChanged"},icon:{type:String,value:"nuxeo:favorites"},favorite:{type:Boolean,readOnly:!0,notify:!0,reflectToAttribute:!0},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(favorite, i18n)"}}}ready(){super.ready(),this.removeFromFavoritesHandler=e=>{this.document&&e.detail.docUid&&e.detail.docUid===this.document.uid&&this._setFavorite(!1)},window.addEventListener("removed-from-favorites",this.removeFromFavoritesHandler),this.addEventListener("click",this._toggle)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("removed-from-favorites",this.removeFromFavoritesHandler),this.removeFromFavoritesHandler=null}_isAvailable(doc){return this.isCollectionMember(doc)}_toggle(){this.favorite?this.$.opRemove.execute().then(()=>{this.dispatchEvent(new CustomEvent("removed-from-favorites",{composed:!0,bubbles:!0,detail:{doc:this.document}})),this._setFavorite(!1)}):this.$.opAdd.execute().then(()=>{this.dispatchEvent(new CustomEvent("added-to-favorites",{composed:!0,bubbles:!0,detail:{doc:this.document}})),this._setFavorite(!0)})}_computeLabel(favorite){return this.i18n&&this.i18n("favoritesToggleButton.tooltip."+(favorite?"remove":"add"))}_computeHoverLabel(favorite,doc){return`${doc&&doc.title}${this._computeLabel(favorite)}`}_documentChanged(){this._setFavorite(this.isFavorite(this.document))}}customElements.define(FavoritesToggleButton.is,FavoritesToggleButton),Nuxeo.FavoritesToggleButton=FavoritesToggleButton}},1450:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_9__=(__webpack_require__(36),__webpack_require__(103),__webpack_require__(10),__webpack_require__(96),__webpack_require__(123),__webpack_require__(47),__webpack_require__(38),__webpack_require__(76)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7);__webpack_require__(74),__webpack_require__(140),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class DeleteBlobButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_10__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_9__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + + +

[[i18n('deleteBlobButton.dialog.heading')]]

+
[[i18n('deleteBlobButton.dialog.message')]]
+
+ [[i18n('deleteBlobButton.dialog.no')]] + [[i18n('deleteBlobButton.dialog.yes')]] +
+
+ + + `}static get is(){return"nuxeo-delete-blob-button"}static get properties(){return{connectionId:{type:String,value:"nx"},document:Object,xpath:{type:String,value:"file:content"},icon:{type:String,value:"nuxeo:remove"},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(i18n)"}}}_isAvailable(doc){return doc&&this.hasPermission(doc,"WriteProperties")&&!this.isImmutable(doc)&&!this.hasType(doc,"Root")&&!this.isTrashed(doc)&&!this._isPropUnderRetention(doc)}_isPropUnderRetention(doc){if(doc&&doc.isUnderRetentionOrLegalHold&&doc.retainedProperties&&doc.retainedProperties.length>0){const{retainedProperties:retainedProperties}=doc;return retainedProperties.find(prop=>this._transformXpathRegex(prop,this.xpath)||prop.startsWith(this.xpath)||prop.includes(this.xpath.split("/")[0])&&!prop.includes("/"))}return!1}_transformXpathRegex(prop,xpath){const transformedArray=[];if(prop.includes("*")){let xpathArray=xpath.split("/");for(let i=0;i{this._dispatchEvent("file-deleted",response)}).catch(error=>{this._dispatchEvent("error",error)})):this._removeBlob()}else this._removeBlob()}_removeBlob(){this.$.operation.execute().then(response=>{this._dispatchEvent("file-deleted",response)})}_dispatchEvent(eventName,response){this.dispatchEvent(new CustomEvent(eventName,{composed:!0,bubbles:!0,detail:{response:response}}))}}customElements.define(DeleteBlobButton.is,DeleteBlobButton),Nuxeo.DeleteBlobButton=DeleteBlobButton}},1451:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_9__=(__webpack_require__(36),__webpack_require__(103),__webpack_require__(10),__webpack_require__(96),__webpack_require__(123),__webpack_require__(47),__webpack_require__(38),__webpack_require__(76)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7);__webpack_require__(74),__webpack_require__(140),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class DeleteDocumentButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_10__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_9__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + + `}static get is(){return"nuxeo-delete-document-button"}static get properties(){return{document:Object,icon:{type:String,value:"nuxeo:delete",computed:"_computeIcon(hard)"},hard:{type:Boolean,value:!1},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(hard, i18n)"}}}_isAvailable(doc){return!this.isVersion(doc)&&this.hasPermission(doc,"Remove")&&(!this.isTrashed(doc)||this.hard)}_computeIcon(hard){return hard?"nuxeo:delete-permanently":"nuxeo:delete"}_computeLabel(hard){return this.i18n(hard?"deleteButton.tooltip.permanently":"deleteButton.tooltip")}_delete(){if(!window.confirm(this.i18n("deleteButton.confirm")))return;(this.hard?this.$.deleteOp:this.$.trashOp).execute().then(()=>{this.dispatchEvent(new CustomEvent("document-deleted",{composed:!0,bubbles:!0,detail:{doc:this.document,hard:this.hard}}))}).catch(error=>{this.dispatchEvent(new CustomEvent("document-deleted",{composed:!0,bubbles:!0,detail:{doc:this.document,error:error,hard:this.hard}}))})}}customElements.define(DeleteDocumentButton.is,DeleteDocumentButton),Nuxeo.DeleteDocumentButton=DeleteDocumentButton}},1452:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_7__=(__webpack_require__(36),__webpack_require__(103),__webpack_require__(10),__webpack_require__(47),__webpack_require__(38),__webpack_require__(76)),_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(88);__webpack_require__(74),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class DownloadButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_8__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_7__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + `}static get is(){return"nuxeo-download-button"}static get properties(){return{document:Object,icon:{type:String,value:"nuxeo:download"},xpath:{type:String,value:"file:content"},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(i18n)"}}}_isAvailable(doc){return this.hasContent(doc,this.formatPropertyXpath(this.xpath))}_computeLabel(){return this.i18n("downloadButton.tooltip")}_computeHoverLabel(doc){return`${doc&&doc.title}${this._computeLabel()}`}async _download(){const blob=this.document&&this._deepFind(this.document.properties,this.xpath);blob&&await new Promise(()=>{window.location.href=blob.downloadUrl?blob.downloadUrl:blob.data})}_deepFind(obj,props){for(let i=0,path=props.split("/"),len=path.length;i + .item { + @apply --layout-horizontal; + @apply --layout-center; + padding-top: 0.4em; + padding-bottom: 0.4em; + } + + .item iron-icon { + margin-right: 1em; + } + + a { + color: var(--nuxeo-link-color, #3a3a54); + } + a:hover { + color: var(--nuxeo-link-hover-color, #0066ff); + } + + + + + + + +

[[i18n('exportButton.dialog.heading')]]

+ + + + + +
+ [[i18n('exportButton.dialog.cancel')]] +
+
+ `}static get is(){return"nuxeo-export-button"}static get properties(){return{document:Object,icon:{type:String,value:"nuxeo:export"},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(i18n)"}}}_isAvailable(document){return document}_computeLabel(){return this.i18n("exportButton.tooltip")}_toggleDialog(){this.$.dialog.toggle()}_filterRenditions(document){return document&&document.contextParameters&&document.contextParameters.renditions?document.contextParameters.renditions.filter(rendition=>"nuxeo:video:conversion"!==rendition.kind&&"nuxeo:picture:conversion"!==rendition.kind).map(item=>Object.assign({label:this.formatRendition(item.name)},item)):[]}}customElements.define(ExportButton.is,ExportButton),Nuxeo.ExportButton=ExportButton}},1454:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_9__=(__webpack_require__(36),__webpack_require__(103),__webpack_require__(220),__webpack_require__(10),__webpack_require__(96),__webpack_require__(47),__webpack_require__(38),__webpack_require__(87)),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(76),_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(88),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7);__webpack_require__(74),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class LockToggleButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_9__.a,_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_12__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_10__.a,_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_11__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + + + + + `}static get is(){return"nuxeo-lock-toggle-button"}static get properties(){return{document:{type:Object,observer:"_documentChanged"},icon:{type:String,computed:"_computeIcon(locked)"},locked:{type:Boolean,notify:!0,reflectToAttribute:!0},tooltip:{type:String,notify:!0,computed:"_computeTooltip(locked, i18n, document)"},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(locked, i18n)"}}}ready(){super.ready(),this.addEventListener("click",this._toggle)}_isAvailable(doc,locked){return doc&&!doc.isVersion&&!this.isImmutable(doc)&&"Root"!==doc.type&&(this.hasPermission(doc,"Write")||locked&&this.hasPermission(doc,"Read"))}_toggle(){!this.locked&&this._canLock()?this.$.opLock.execute().then(doc=>{this.locked=!0,this.dispatchEvent(new CustomEvent("document-locked",{composed:!0,bubbles:!0,detail:{doc:doc}}))}).catch(this._handleError.bind(this)):this._canUnlock()&&this.$.opUnlock.execute().then(doc=>{this.locked=!1,this.dispatchEvent(new CustomEvent("document-unlocked",{composed:!0,bubbles:!0,detail:{doc:doc}}))}).catch(this._handleError.bind(this))}_handleError(err){const errorKey=`lockToggleButton.${this.locked?"unlock":"lock"}.error`;let message;switch(err.response.status){case 403:message=this.i18n(errorKey+".noPermissions");break;case 409:message=this.i18n(`${errorKey}.${this.locked?"lockedByAnotherUser":"alreadyLocked"}`);break;default:message=this.i18n(errorKey+".unexpectedError")}this.notify({message:message})}_computeTooltip(locked){return locked&&this.document.lockOwner&&this.document.lockCreated?this.i18n("lockToggleButton.tooltip.lockedBy",this.document.lockOwner,this.formatDate(this.document.lockCreated)):this.i18n("lockToggleButton.tooltip."+(locked?"unlock":"lock"))}_computeLabel(locked){return this.i18n("lockToggleButton.tooltip."+(locked?"unlock":"lock"))}_computeIcon(locked){return locked?"nuxeo:lock":"nuxeo:unlock"}_documentChanged(){this.locked=!(!this.document||!this.document.lockCreated)}_canLock(){return this.$.nxcon.connect().then(currentUser=>!this.document.isProxy&&!this.document.isVersion&&(currentUser.isAdministrator||this.document.contextParameters.permissions.indexOf("Everything")>-1||this.document.contextParameters.permissions.indexOf("Write")>-1))}_canUnlock(){return this.$.nxcon.connect().then(currentUser=>!this.document.isProxy&&((!!(currentUser.isAdministrator||this.document.contextParameters.permissions.indexOf("Everything")>-1)||currentUser.id===this.document.lockOwner&&this.document.contextParameters.permissions.indexOf("Write")>-1)&&!document.isVersion))}}customElements.define(LockToggleButton.is,LockToggleButton),Nuxeo.LockToggleButton=LockToggleButton}},1455:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_6__=(__webpack_require__(10),__webpack_require__(96),__webpack_require__(47),__webpack_require__(38),__webpack_require__(87)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7);__webpack_require__(74),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class MoveDocumentsDown extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_6__.a,_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_7__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + `}static get is(){return"nuxeo-move-documents-down-button"}static get properties(){return{documents:Array,selectedDocuments:Array,tooltipPosition:{type:String,value:"bottom"},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(i18n)"},_available:Boolean,_beforeUid:Document,_sortedDocuments:Array}}static get observers(){return["_isAvailable(selectedDocuments.splices)"]}ready(){super.ready(),this.addEventListener("click",this.move)}move(){this.$.moveDownOp.execute().then(()=>{for(let i=0;i{this.notify({message:this.i18n("moveDocumentButton.error")})})}_isAvailable(){if(this._available=!1,this.selectedDocuments&&this.selectedDocuments.length>0){this._sortedDocuments=this.selectedDocuments.slice(0);try{this._sortedDocuments.sort((a,b)=>{const idxa=this.documents.indexOf(a),idxb=this.documents.indexOf(b);if(idxa<0||idxb<0)throw new Error("Document is not in the list.");return idxb-idxa})}catch(e){return void this.dispatchEvent(new CustomEvent("clear-selected-items",{composed:!0,bubbles:!0}))}let sequenceBreakIdx;const isSequence=this._sortedDocuments.every((doc,idx)=>!(idx>0)||(this._sortedDocuments[idx-1].uid===this.documents[this.documents.indexOf(doc)+1].uid||(sequenceBreakIdx=idx,!1)));if(this._sortedDocuments[0].uid===this.documents[this.documents.length-1].uid){if(isSequence)return;this._focusIndex=this.documents.indexOf(this._sortedDocuments[0])-sequenceBreakIdx,this._sortedDocuments.splice(0,sequenceBreakIdx),this._beforeUid=this.documents[this._focusIndex+1].uid}else{const tmpIdx=this.documents.indexOf(this._sortedDocuments[0]);tmpIdxthis.documents.indexOf(a)-this.documents.indexOf(b)),this._available=!0}}_computeLabel(){return this.i18n("moveDocumentButton.down.tooltip")}_computeParams(){return this._beforeUid?{before:this._beforeUid}:{}}}customElements.define(MoveDocumentsDown.is,MoveDocumentsDown),Nuxeo.MoveDocumentsDown=MoveDocumentsDown}},1456:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_6__=(__webpack_require__(10),__webpack_require__(96),__webpack_require__(47),__webpack_require__(38),__webpack_require__(87)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7);__webpack_require__(74),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class MoveDocumentsUp extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_6__.a,_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_7__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + `}static get is(){return"nuxeo-move-documents-up-button"}static get properties(){return{documents:Array,selectedDocuments:Array,tooltipPosition:{type:String,value:"bottom"},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(i18n)"},_available:Boolean,_beforeUid:Document,_sortedDocuments:Array}}static get observers(){return["_isAvailable(selectedDocuments.splices)"]}ready(){super.ready(),this.addEventListener("click",this.move)}move(){this.$.moveUpOp.execute().then(()=>{for(let i=this._sortedDocuments.length-1;i>=0;i--)this.documents.splice(this.documents.indexOf(this._sortedDocuments[i]),1),this.documents.splice(this._focusIndex,0,this._sortedDocuments[i]);this._sortedDocuments=[],this.dispatchEvent(new CustomEvent("refresh-display",{composed:!0,bubbles:!0,detail:{focusIndex:this._focusIndex}}))}).catch(()=>{this.notify({message:this.i18n("moveDocumentButton.error")})})}_isAvailable(){if(this._available=!1,this.selectedDocuments&&this.selectedDocuments.length>0){this._sortedDocuments=this.selectedDocuments.slice(0);try{this._sortedDocuments.sort((a,b)=>{const idxa=this.documents.indexOf(a),idxb=this.documents.indexOf(b);if(idxa<0||idxb<0)throw new Error("Document is not in the list.");return idxa-idxb})}catch(e){return void this.dispatchEvent(new CustomEvent("clear-selected-items",{composed:!0,bubbles:!0,detail:{}}))}let sequenceBreakIdx;const isSequence=this._sortedDocuments.every((doc,idx)=>!(idx>0)||(this._sortedDocuments[idx-1].uid===this.documents[this.documents.indexOf(doc)-1].uid||(sequenceBreakIdx=idx,!1)));if(this._sortedDocuments[0].uid===this.documents[0].uid){if(isSequence)return;this._focusIndex=this.documents.indexOf(this._sortedDocuments[sequenceBreakIdx-1])+1,this._sortedDocuments.splice(0,sequenceBreakIdx)}else this._focusIndex=this.documents.indexOf(this._sortedDocuments[0])-1;this._beforeUid=this.documents[this._focusIndex].uid,this._available=!0}}_computeLabel(){return this.i18n("moveDocumentButton.up.tooltip")}}customElements.define(MoveDocumentsUp.is,MoveDocumentsUp),Nuxeo.MoveDocumentsDown=MoveDocumentsUp}},1457:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_9__=(__webpack_require__(36),__webpack_require__(103),__webpack_require__(798),__webpack_require__(10),__webpack_require__(96),__webpack_require__(47),__webpack_require__(38),__webpack_require__(7)),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(76);__webpack_require__(74),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class NotificationsToggleButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_9__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_10__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + `}static get is(){return"nuxeo-notifications-toggle-button"}static get properties(){return{document:{type:Object,observer:"_documentChanged"},icon:{type:String,value:"nuxeo:notify"},subscribed:{type:Boolean,notify:!0,reflectToAttribute:!0},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(subscribed, i18n)"}}}ready(){super.ready(),this.documentUnsubscribedHandler=e=>{this.document&&e.detail.docUid&&e.detail.docUid===this.document.uid&&(this.subscribed=!1)},window.addEventListener("document-unsubscribed",this.documentUnsubscribedHandler),this.addEventListener("click",this._toggle)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("document-unsubscribed",this.documentUnsubscribedHandler),this.documentUnsubscribedHandler=null}_isAvailable(doc){return doc&&!doc.isVersion}_toggle(){this.subscribed?this.$.opUnsubscribe.execute().then(()=>{this.dispatchEvent(new CustomEvent("document-unsubscribed",{composed:!0,bubbles:!0,detail:{doc:this.document}})),this.subscribed=!1}):this.$.opSubscribe.execute().then(()=>{this.dispatchEvent(new CustomEvent("document-subscribed",{composed:!0,bubbles:!0,detail:{doc:this.document}})),this.subscribed=!0})}_computeLabel(isSubscribed){return this.i18n("notificationsToggleButton.tooltip."+(isSubscribed?"doNotNotify":"notify"))}_documentChanged(){this.subscribed=this.isSubscribed(this.document)}}customElements.define(NotificationsToggleButton.is,NotificationsToggleButton),Nuxeo.NotificationsToggleButton=NotificationsToggleButton}},1458:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19),_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_13__=(__webpack_require__(64),__webpack_require__(36),__webpack_require__(103),__webpack_require__(798),__webpack_require__(10),__webpack_require__(123),__webpack_require__(47),__webpack_require__(223),__webpack_require__(38),__webpack_require__(87)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7);__webpack_require__(74),__webpack_require__(140),__webpack_require__(222),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class ShareButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_3__.b)([_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_13__.a,_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_14__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + +
+

[[i18n('shareButton.dialog.heading')]]

+
+
+ + + + [[i18n('shareButton.operation.copy')]] +
+ +
+ [[i18n('shareButton.dialog.close')]] +
+
+ `}static get is(){return"nuxeo-share-button"}static get properties(){return{document:Object,icon:{type:String,value:"nuxeo:share"},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(i18n)"}}}_isAvailable(document){return document}_computeLabel(){return this.i18n("shareButton.tooltip")}_toggleDialog(){this.$.dialog.toggle()}_buildPermalink(document){return document?`${window.location.origin+window.location.pathname}#!/doc/${document.uid}`:""}_copyLink(e){const shareButton=e.currentTarget,link=shareButton.previousElementSibling;link.$.paperInput.$.nativeInput.select(),window.document.execCommand("copy")&&(shareButton._debouncer=_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_1__.a.debounce(shareButton._debouncer,_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__.d.after(2e3),()=>{link.$.paperInput.$.nativeInput.setSelectionRange(0,0),link.$.paperInput.blur(),shareButton.set("icon","link"),shareButton.classList.remove("selected")}),shareButton.set("icon","check"),shareButton.classList.add("selected"),this.notify({message:this.i18n("shareButton.operation.copied"),duration:2e3}))}}customElements.define(ShareButton.is,ShareButton),Nuxeo.ShareButton=ShareButton}},1459:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_9__=(__webpack_require__(36),__webpack_require__(103),__webpack_require__(10),__webpack_require__(96),__webpack_require__(123),__webpack_require__(47),__webpack_require__(38),__webpack_require__(76)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7);__webpack_require__(74),__webpack_require__(140),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class UntrashDocumentButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_10__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_9__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + `}static get is(){return"nuxeo-untrash-document-button"}static get properties(){return{document:Object,icon:{type:String,value:"nuxeo:restore-deleted"},showLabel:{type:Boolean,value:!1},_label:{type:String,computed:"_computeLabel(i18n)"}}}_isAvailable(doc){return doc&&this.isTrashed(doc)&&this.hasPermission(doc,"Write")}_computeLabel(){return this.i18n("untrashButton.tooltip")}_untrash(){this.$.operation.execute().then(res=>{this.dispatchEvent(new CustomEvent("document-untrashed",{composed:!0,bubbles:!0,detail:{doc:res}}))}).catch(error=>{this.dispatchEvent(new CustomEvent("document-untrashed",{composed:!0,bubbles:!0,detail:{error:error}}))})}}customElements.define(UntrashDocumentButton.is,UntrashDocumentButton),Nuxeo.UntrashDocumentButton=UntrashDocumentButton}},1462:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(25),__webpack_require__(24),__webpack_require__(22),__webpack_require__(94);var _templateObject,_templateObject2,_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2),lit_html__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(3),_lists_icons__WEBPACK_IMPORTED_MODULE_9__=(__webpack_require__(1463),__webpack_require__(797),__webpack_require__(196));function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { number } from '@storybook/addon-knobs';\nimport { html } from 'lit-html';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-actions-menu';\nimport '@nuxeo/nuxeo-ui-elements/actions/nuxeo-link-button';\nimport iconMap from '../../lists/icons';\n\nconst iconsList = iconMap.nuxeo;\n\nconst label = 'Number of items';\nconst defaultValue = 5;\nconst options = {\n range: true,\n min: 1,\n max: iconsList.length + 1,\n step: 1,\n};\n\nstoriesOf('UI/nuxeo-actions-menu', module).add('Default', () => {\n const value = number(label, defaultValue, options);\n const list = iconsList.slice(0, value);\n return html`\n \n \n ${list.map(\n (i) => html`\n \n `,\n )}\n \n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-actions-menu--default":{startLoc:{col:47,line:19},endLoc:{col:1,line:36},startBody:{col:58,line:19},endBody:{col:1,line:36}}},iconsList=_lists_icons__WEBPACK_IMPORTED_MODULE_9__.a.nuxeo,options={range:!0,min:1,max:iconsList.length+1,step:1};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__.storiesOf)("UI/nuxeo-actions-menu",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-actions-menu.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-actions-menu",{})).add("Default",(function(){var value=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.number)("Number of items",5,options),list=iconsList.slice(0,value);return Object(lit_html__WEBPACK_IMPORTED_MODULE_6__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n \n \n ","\n \n "])),list.map((function(i){return Object(lit_html__WEBPACK_IMPORTED_MODULE_6__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n + `}static get is(){return"nuxeo-actions-menu"}connectedCallback(){super.connectedCallback(),this._observer=new _polymer_polymer_lib_utils_flattened_nodes_observer_js__WEBPACK_IMPORTED_MODULE_1__.a(this,({addedNodes:addedNodes,removedNodes:removedNodes})=>{const unresolved=addedNodes.filter(node=>node.tagName&&node.tagName.includes("-")&&!customElements.get(node.tagName.toLowerCase()));unresolved.forEach(node=>customElements.whenDefined(node.tagName.toLowerCase()).then(this._layout.bind(this))),(addedNodes.length>0&&0===unresolved.length||removedNodes.length>0)&&this._layout()}),this.addEventListener("iron-resize",this._layout),this.addEventListener("dom-change",this._layout),this.addEventListener("iron-overlay-opened",this._reparent)}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect(),this.removeEventListener("iron-resize",this._layout),this.removeEventListener("dom-change",this._layout),this.removeEventListener("iron-overlay-opened",this._reparent)}ready(){super.ready()}get contentWidth(){return this._getMenuElements().reduce((sum,current)=>sum+current.clientWidth,0)}_reparent(e){const src=e.composedPath()[0];if(("NUXEO-DIALOG"===src.tagName||"PAPER-DIALOG"===src.tagName)&&"dropdown"===e.target.slot){const parent=e.target.parentElement,sibling=e.target.nextElementSibling,action=e.target;_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__.b.run(()=>{this.$.reparent.appendChild(action),action._actionsMenuReparent=action._actionsMenuReparent||(evt=>{let path=evt.composedPath();"NUXEO-DIALOG"!==path[0].tagName&&"PAPER-DIALOG"!==path[0].tagName||(path=path.slice(0,path.findIndex(el=>el===action)),path.filter(el=>"NUXEO-DIALOG"===el.tagName||"PAPER-DIALOG"===el.tagName).length>1||parent.insertBefore(action,sibling))}),action.addEventListener("iron-overlay-closed",action._actionsMenuReparent)})}}_getMenuElements(){return this.$.slot.assignedNodes({flatten:!0}).filter(node=>node.nodeType===Node.ELEMENT_NODE&&"NUXEO-SLOT"!==node.tagName)}_getDropdownElements(){return this.$.dropdown.assignedNodes({flatten:!0}).filter(node=>node.nodeType===Node.ELEMENT_NODE&&"NUXEO-SLOT"!==node.tagName)}_moveToMenu(el){el.slot="",el.removeAttribute("show-label")}_moveToDropdown(el){el.slot="dropdown",setTimeout(()=>{el.setAttribute("show-label","")},0)}_layout(e){e&&e.type&&e.composedPath().find(el=>"reparent"===el.id||"dropdownButton"===el.id)||(this.__layoutDebouncer=_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_3__.a.debounce(this.__layoutDebouncer,_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__.c,()=>{let els=this._getDropdownElements();for(els.length||(this.$.dropdownButton.hidden=!0),els=this._getMenuElements();els.length&&this.contentWidth+(this.$.dropdownButton.hidden?0:this.$.dropdownButton.offsetWidth)>this.clientWidth;)this._moveToDropdown(els.pop()),this.$.dropdownButton.hidden&&(this.$.dropdownButton.hidden=!1);for(;els.length&&this.contentWidth<=this.clientWidth;)this._moveToMenu(els.shift())}))}}customElements.define(ActionsMenu.is,ActionsMenu),Nuxeo.ActionsMenu=ActionsMenu}},1464:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),lit_html__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2);__webpack_require__(816);var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { html } from 'lit-html';\nimport { boolean, number, text } from '@storybook/addon-knobs';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-aggregation/nuxeo-checkbox-aggregation.js';\n\nconst DATA = {\n 'entity-type': 'aggregate',\n extendedBuckets: [\n {\n docCount: 2,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Tolkien',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2292',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2292',\n },\n {\n docCount: 1,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Asimov',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n {\n docCount: 3,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Hemingway',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n {\n docCount: 4,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Dostoevsky',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n {\n docCount: 5,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Tolstoy',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n {\n docCount: 6,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Pessoa',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n {\n docCount: 7,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Balzac',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n {\n docCount: 8,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Cervantes',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n {\n docCount: 9,\n fetchedKey: {\n 'entity-type': 'document',\n properties: {\n 'dc:title': 'Shakespeare',\n },\n uid: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n key: '59cf794f-6875-45ca-a837-053c196b2291',\n },\n ],\n field: 'book:author',\n id: 'book_author_agg',\n properties: {\n order: 'count desc',\n size: '20',\n },\n ranges: [],\n selection: [],\n type: 'terms',\n};\n\nstoriesOf('UI/nuxeo-checkbox-aggregation', module).add('Default', () => {\n const label = text('Label', 'Some Label');\n const collapsible = boolean('Collapsible', false);\n const opened = boolean('Opened (collapsible)', false);\n const visibleItems = number('Number of visible items (collapsible)', 8);\n return html`\n \n \n \n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-checkbox-aggregation--default":{startLoc:{col:55,line:120},endLoc:{col:1,line:142},startBody:{col:66,line:120},endBody:{col:1,line:142}}},DATA={"entity-type":"aggregate",extendedBuckets:[{docCount:2,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Tolkien"},uid:"59cf794f-6875-45ca-a837-053c196b2292"},key:"59cf794f-6875-45ca-a837-053c196b2292"},{docCount:1,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Asimov"},uid:"59cf794f-6875-45ca-a837-053c196b2291"},key:"59cf794f-6875-45ca-a837-053c196b2291"},{docCount:3,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Hemingway"},uid:"59cf794f-6875-45ca-a837-053c196b2291"},key:"59cf794f-6875-45ca-a837-053c196b2291"},{docCount:4,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Dostoevsky"},uid:"59cf794f-6875-45ca-a837-053c196b2291"},key:"59cf794f-6875-45ca-a837-053c196b2291"},{docCount:5,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Tolstoy"},uid:"59cf794f-6875-45ca-a837-053c196b2291"},key:"59cf794f-6875-45ca-a837-053c196b2291"},{docCount:6,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Pessoa"},uid:"59cf794f-6875-45ca-a837-053c196b2291"},key:"59cf794f-6875-45ca-a837-053c196b2291"},{docCount:7,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Balzac"},uid:"59cf794f-6875-45ca-a837-053c196b2291"},key:"59cf794f-6875-45ca-a837-053c196b2291"},{docCount:8,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Cervantes"},uid:"59cf794f-6875-45ca-a837-053c196b2291"},key:"59cf794f-6875-45ca-a837-053c196b2291"},{docCount:9,fetchedKey:{"entity-type":"document",properties:{"dc:title":"Shakespeare"},uid:"59cf794f-6875-45ca-a837-053c196b2291"},key:"59cf794f-6875-45ca-a837-053c196b2291"}],field:"book:author",id:"book_author_agg",properties:{order:"count desc",size:"20"},ranges:[],selection:[],type:"terms"};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__.storiesOf)("UI/nuxeo-checkbox-aggregation",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-aggregation-widget.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-aggregation-widget",{})).add("Default",(function(){var label=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.text)("Label","Some Label"),collapsible=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.boolean)("Collapsible",!1),opened=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.boolean)("Opened (collapsible)",!1),visibleItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.number)("Number of visible items (collapsible)",8);return Object(lit_html__WEBPACK_IMPORTED_MODULE_4__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n \n \n '])),DATA,label,collapsible,opened,visibleItems)}))}.call(this,__webpack_require__(27)(module))},1465:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),lit_html__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3);__webpack_require__(306);var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { text, select, boolean } from '@storybook/addon-knobs';\nimport { html } from 'lit-html';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-card';\n\nconst ICONS = {\n attachment: 'nuxeo:attachment',\n dashboard: 'nuxeo:dashboard',\n edit: 'nuxeo:edit',\n none: '',\n};\n\nstoriesOf('UI/nuxeo-card', module).add('nuxeo-card', () => {\n const heading = text('Heading', 'About Nuxeo');\n const icon = select('Icon', ICONS, ICONS.attachment);\n const collapsible = boolean('Collapsible', false);\n const opened = boolean('Opened', false);\n return html`\n \n ${text(\n 'Content',\n `Nuxeo makes it easy to build smart content applications that enhance customer experiences,\n improve decision making, and accelerate products to market.`,\n )}\n \n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-card--nuxeo-card":{startLoc:{col:39,line:13},endLoc:{col:1,line:27},startBody:{col:53,line:13},endBody:{col:1,line:27}}},ICONS={attachment:"nuxeo:attachment",dashboard:"nuxeo:dashboard",edit:"nuxeo:edit",none:""};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__.storiesOf)("UI/nuxeo-card",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-card.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-card",{})).add("nuxeo-card",(function(){var heading=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.text)("Heading","About Nuxeo"),icon=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.select)("Icon",ICONS,ICONS.attachment),collapsible=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("Collapsible",!1),opened=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("Opened",!1);return Object(lit_html__WEBPACK_IMPORTED_MODULE_5__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n ',"\n \n "])),heading,icon,collapsible,opened,Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.text)("Content","Nuxeo makes it easy to build smart content applications that enhance customer experiences,\n improve decision making, and accelerate products to market."))}))}.call(this,__webpack_require__(27)(module))},1467:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),lit_html__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3);__webpack_require__(799);var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { boolean, color } from '@storybook/addon-knobs';\nimport { html } from 'lit-html';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-checkmark';\n\nstoriesOf('UI/nuxeo-checkmark', module).add('nuxeo-checkmark', () => {\n const bgColor = color('--nuxeo-checkmark-background-color', '#fffff', 'CSS variables');\n const bgColorChecked = color('--nuxeo-checkmark-background-color-checked', '#0000ff', 'CSS variables');\n const checked = boolean('checked', false);\n const disabled = boolean('disabled', false);\n return html`\n \n \n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-checkmark--nuxeo-checkmark":{startLoc:{col:44,line:6},endLoc:{col:1,line:20},startBody:{col:63,line:6},endBody:{col:1,line:20}}};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__.storiesOf)("UI/nuxeo-checkmark",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-checkmark.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-checkmark",{})).add("nuxeo-checkmark",(function(){var bgColor=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.color)("--nuxeo-checkmark-background-color","#fffff","CSS variables"),bgColorChecked=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.color)("--nuxeo-checkmark-background-color-checked","#0000ff","CSS variables"),checked=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("checked",!1),disabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("disabled",!1);return Object(lit_html__WEBPACK_IMPORTED_MODULE_5__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n \n \n '])),bgColor,bgColorChecked,checked,disabled)}))}.call(this,__webpack_require__(27)(module))},1468:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_templateObject2,lit_html__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2),_storybook_analysis__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(169),_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(33);__webpack_require__(1469);function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { html } from 'lit-html';\nimport { storiesOf } from '@storybook/polymer';\nimport { number } from '@storybook/addon-knobs';\nimport { analyse } from '../../../.storybook/analysis';\nimport { LIST } from '../../data/lists.data.js';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-data-grid/nuxeo-data-grid.js';\n\nconst docs = analyse('nuxeo-data-grid').notes;\n\nconst stories = storiesOf('UI/nuxeo-data-grid', module);\n\nstories\n .add(\n 'Empty',\n () => html`\n \n \n `,\n { notes: { markdown: docs } },\n )\n .add(\n 'Default',\n () => {\n const numberOfItems = number('Number of items', 50);\n return html`\n \n \n \n \n `;\n },\n { notes: { markdown: docs } },\n );\n"),__ADDS_MAP__={},docs=Object(_storybook_analysis__WEBPACK_IMPORTED_MODULE_6__.a)("nuxeo-data-grid").notes;Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__.storiesOf)("UI/nuxeo-data-grid",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-data-grid.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-data-grid",{})).add("Empty",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n \n \n '])),Object(_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__.a)(0).data)}),{notes:{markdown:docs}}).add("Default",(function(){var numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.number)("Number of items",50);return Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n \n \n \n \n '])),Object(_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__.a)(numberOfItems).data)}),{notes:{markdown:docs}})}.call(this,__webpack_require__(27)(module))},1469:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__(36),__webpack_require__(307),__webpack_require__(55)),_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_10__=(__webpack_require__(308),__webpack_require__(10),__webpack_require__(38),__webpack_require__(86),__webpack_require__(800),__webpack_require__(11)),_nuxeo_draggable_list_behavior_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(228),_nuxeo_page_provider_display_behavior_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(170);{class DataGrid extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_4__.a,_nuxeo_page_provider_display_behavior_js__WEBPACK_IMPORTED_MODULE_12__.a,_nuxeo_draggable_list_behavior_js__WEBPACK_IMPORTED_MODULE_11__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + +
+ + +
+
+ + + +
+
+ + + + + + + + + + + + +
+ `}static get is(){return"nuxeo-data-grid"}static get properties(){return{multiSelection:{type:Boolean,value:!0},displayNavigation:{type:Boolean,value:!1}}}static get observers(){return["_fetchMissingItems(loading)"]}ready(){super.ready(),this.addEventListener("iron-resize",this._fetchMissingItems)}_fetchMissingItems(){!this.loading&&this.$.list.lastVisibleIndex&&this._pageSize&&_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_10__.b.run(()=>{this.$.list.lastVisibleIndex>this._pageSize&&this._fetchRange(this._pageSize,this.$.list.lastVisibleIndex)})}_removeFilter(e){this.dispatchEvent(new CustomEvent("column-filter-changed",{composed:!0,bubbles:!0,detail:{value:"",filterBy:e.model.filter.path,filterExpression:e.model.filter.expression}}))}_onScrollTo(e){this.scrollToIndex(e.detail.index)}draggableFilter(el){return el.selected}get visible(){return Boolean(this.offsetWidth||this.offsetHeight)}}customElements.define(DataGrid.is,DataGrid),Nuxeo.DataGrid=DataGrid}},1470:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_templateObject2,_templateObject3,lit_html__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2),_storybook_analysis__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(169),_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(33);__webpack_require__(1471),__webpack_require__(801);function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { html } from 'lit-html';\nimport { storiesOf } from '@storybook/polymer';\nimport { number } from '@storybook/addon-knobs';\nimport { analyse } from '../../../.storybook/analysis';\nimport { LIST } from '../../data/lists.data.js';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-data-list/nuxeo-data-list.js';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-document-thumbnail/nuxeo-document-thumbnail.js';\n\nconst docs = analyse('nuxeo-data-list').notes;\nconst stories = storiesOf('UI/nuxeo-data-list', module);\n\nstories\n .add(\n 'Empty',\n () =>\n html`\n \n \n `,\n { notes: { markdown: docs } },\n )\n .add(\n 'Default',\n () => {\n const numberOfItems = number('Number of items', 50);\n return html`\n \n \n \n \n `;\n },\n { notes: { markdown: docs } },\n )\n .add(\n 'With thumbnail',\n () => {\n const numberOfItems = number('Number of items', 50);\n return html`\n \n \n \n \n `;\n },\n { notes: { markdown: docs } },\n );\n"),__ADDS_MAP__={},docs=Object(_storybook_analysis__WEBPACK_IMPORTED_MODULE_6__.a)("nuxeo-data-list").notes;Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__.storiesOf)("UI/nuxeo-data-list",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-data-list.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-data-list",{})).add("Empty",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n \n \n '])),Object(_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__.a)(0).data)}),{notes:{markdown:docs}}).add("Default",(function(){var numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.number)("Number of items",50);return Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n \n \n \n \n '])),Object(_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__.a)(numberOfItems).data)}),{notes:{markdown:docs}}).add("With thumbnail",(function(){var numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.number)("Number of items",50);return Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n \n \n \n \n '])),Object(_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__.a)(numberOfItems).data)}),{notes:{markdown:docs}})}.call(this,__webpack_require__(27)(module))},1471:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__(36),__webpack_require__(307),__webpack_require__(55)),_nuxeo_draggable_list_behavior_js__WEBPACK_IMPORTED_MODULE_11__=(__webpack_require__(308),__webpack_require__(10),__webpack_require__(815),__webpack_require__(38),__webpack_require__(86),__webpack_require__(800),__webpack_require__(228)),_nuxeo_page_provider_display_behavior_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(170);{class DataList extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_4__.a,_nuxeo_page_provider_display_behavior_js__WEBPACK_IMPORTED_MODULE_12__.a,_nuxeo_draggable_list_behavior_js__WEBPACK_IMPORTED_MODULE_11__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + +
+ + +
+
+ + + +
+
+ + + + + + + + + + + + +
+ `}static get is(){return"nuxeo-data-list"}static get properties(){return{multiSelection:{type:Boolean,value:!1},selectOnTap:{type:Boolean,value:!1},displayNavigation:{type:Boolean,value:!1}}}ready(){super.ready(),this.listen(this.$.list,"keydown","_keydown")}_keydown(e){switch(e.key){case"ArrowUp":case"Up":this._select(-1,1);break;case"k":this._select(-1,0);break;case"ArrowDown":case"Down":this._select(1,-1);break;case"j":this._select(1,0)}}_select(indexOffset,focusOffset){const index=this._selectedItemIndex()+indexOffset;index>=0&&index tableTemplate(LIST(0)))\n .add('Basic', () => {\n const numberOfItems = number('Number of items', 50);\n return tableTemplate(LIST(numberOfItems));\n })\n .add('Editable and Orderable', () => {\n const orderable = boolean('Orderable', true);\n const editable = boolean('Editable', true);\n const numberOfItems = number('Number of items', 50);\n return tableTemplate(Object.assign({}, LIST(numberOfItems), { orderable, editable }));\n })\n .add('Settings', () => {\n const settingsEnabled = boolean('Settings', true);\n const numberOfItems = number('Number of items', 50);\n return tableTemplate(Object.assign({}, LIST(numberOfItems), { settingsEnabled }));\n })\n .add('Selectable', () => {\n const selectionEnabled = boolean('Selection Enabled', true);\n const selectAllEnabled = boolean('Select All Enabled', true);\n const multiSelection = boolean('Multi Selection', true);\n const numberOfItems = number('Number of items', 50);\n return tableTemplate(\n Object.assign({}, LIST(numberOfItems), {\n selectionEnabled,\n selectAllEnabled,\n multiSelection,\n }),\n );\n })\n .add('Complex', () => {\n const orderable = boolean('Orderable', true);\n const editable = boolean('Editable', true);\n const settingsEnabled = boolean('Settings', true);\n const selectionEnabled = boolean('Selection Enabled', true);\n const selectAllEnabled = boolean('Select All Enabled', false);\n const multiSelection = boolean('Multi Selection', true);\n const selectOnTap = boolean('Select on tap', false);\n const label = text('Label', 'Label');\n const required = boolean('Required', false);\n const hidden = boolean('Hide Date column', false);\n const alignRight = boolean('Align Right', false);\n const flex = number('Flex size on User column', undefined);\n const columnNumbers = {\n range: false,\n min: 0,\n max: 1,\n step: 1,\n };\n const orderColumn = number('Order Department column', 0, columnNumbers);\n const numberOfItems = number('Number of items', 50);\n return tableTemplate(\n Object.assign({}, LIST(numberOfItems), {\n orderable,\n editable,\n settingsEnabled,\n selectionEnabled,\n selectAllEnabled,\n multiSelection,\n selectOnTap,\n label,\n required,\n hidden,\n alignRight,\n flex,\n orderColumn,\n }),\n );\n });\n"),__ADDS_MAP__={};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_1__.storiesOf)("UI/nuxeo-data-table",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-data-table.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-data-table",{})).add("Empty",(function(){return Object(_nuxeo_data_table_structure_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object(_data_lists_data__WEBPACK_IMPORTED_MODULE_3__.a)(0))})).add("Basic",(function(){var numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.number)("Number of items",50);return Object(_nuxeo_data_table_structure_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object(_data_lists_data__WEBPACK_IMPORTED_MODULE_3__.a)(numberOfItems))})).add("Editable and Orderable",(function(){var orderable=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Orderable",!0),editable=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Editable",!0),numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.number)("Number of items",50);return Object(_nuxeo_data_table_structure_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object.assign({},Object(_data_lists_data__WEBPACK_IMPORTED_MODULE_3__.a)(numberOfItems),{orderable:orderable,editable:editable}))})).add("Settings",(function(){var settingsEnabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Settings",!0),numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.number)("Number of items",50);return Object(_nuxeo_data_table_structure_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object.assign({},Object(_data_lists_data__WEBPACK_IMPORTED_MODULE_3__.a)(numberOfItems),{settingsEnabled:settingsEnabled}))})).add("Selectable",(function(){var selectionEnabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Selection Enabled",!0),selectAllEnabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Select All Enabled",!0),multiSelection=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Multi Selection",!0),numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.number)("Number of items",50);return Object(_nuxeo_data_table_structure_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object.assign({},Object(_data_lists_data__WEBPACK_IMPORTED_MODULE_3__.a)(numberOfItems),{selectionEnabled:selectionEnabled,selectAllEnabled:selectAllEnabled,multiSelection:multiSelection}))})).add("Complex",(function(){var orderable=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Orderable",!0),editable=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Editable",!0),settingsEnabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Settings",!0),selectionEnabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Selection Enabled",!0),selectAllEnabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Select All Enabled",!1),multiSelection=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Multi Selection",!0),selectOnTap=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Select on tap",!1),label=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.text)("Label","Label"),required=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Required",!1),hidden=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Hide Date column",!1),alignRight=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.boolean)("Align Right",!1),flex=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.number)("Flex size on User column",void 0),orderColumn=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.number)("Order Department column",0,{range:!1,min:0,max:1,step:1}),numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_2__.number)("Number of items",50);return Object(_nuxeo_data_table_structure_js__WEBPACK_IMPORTED_MODULE_4__.a)(Object.assign({},Object(_data_lists_data__WEBPACK_IMPORTED_MODULE_3__.a)(numberOfItems),{orderable:orderable,editable:editable,settingsEnabled:settingsEnabled,selectionEnabled:selectionEnabled,selectAllEnabled:selectAllEnabled,multiSelection:multiSelection,selectOnTap:selectOnTap,label:label,required:required,hidden:hidden,alignRight:alignRight,flex:flex,orderColumn:orderColumn}))}))}.call(this,__webpack_require__(27)(module))},1473:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24),__webpack_require__(53);var _templateObject,_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2),lit_html__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(3);__webpack_require__(309);var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { text, date } from '@storybook/addon-knobs';\nimport { html } from 'lit-html';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-date-picker';\n\nstoriesOf('UI/nuxeo-date-picker', module).add('nuxeo-date-picker', () => {\n const dateTime = date('Date', new Date());\n const label = text('label', 'Choose a date');\n return html`\n \n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-date-picker--nuxeo-date-picker":{startLoc:{col:46,line:6},endLoc:{col:1,line:12},startBody:{col:67,line:6},endBody:{col:1,line:12}}};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__.storiesOf)("UI/nuxeo-date-picker",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-date-picker.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-date-picker",{})).add("nuxeo-date-picker",(function(){var dateTime=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.date)("Date",new Date),label=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.text)("label","Choose a date");return Object(lit_html__WEBPACK_IMPORTED_MODULE_6__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n '])),new Date(dateTime),label)}))}.call(this,__webpack_require__(27)(module))},1474:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24),__webpack_require__(53);var _templateObject,lit_html__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_storybook_polymer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_7__=(__webpack_require__(802),__webpack_require__(2));var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { html } from 'lit-html';\nimport { storiesOf } from '@storybook/polymer';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-date';\nimport { select, date } from '@storybook/addon-knobs';\n\nstoriesOf('UI/nuxeo-date', module).add('Nuxeo Date', () => {\n const dateTime = date('Date', new Date());\n const relativeFormat = select('Format', ['MMM D, YYYY', 'MMMM D, YYYY HH:mm', 'relative'], 'MMM D, YYYY');\n const tooltipFormat = select('Tooltip Format', ['MMMM D, YYYY HH:mm', 'relative'], 'MMMM D, YYYY HH:mm');\n return html`\n \n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-date--nuxeo-date":{startLoc:{col:39,line:6},endLoc:{col:1,line:13},startBody:{col:53,line:6},endBody:{col:1,line:13}}};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_5__.storiesOf)("UI/nuxeo-date",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-date.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-date",{})).add("Nuxeo Date",(function(){var dateTime=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_7__.date)("Date",new Date),relativeFormat=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_7__.select)("Format",["MMM D, YYYY","MMMM D, YYYY HH:mm","relative"],"MMM D, YYYY"),tooltipFormat=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_7__.select)("Tooltip Format",["MMMM D, YYYY HH:mm","relative"],"MMMM D, YYYY HH:mm");return Object(lit_html__WEBPACK_IMPORTED_MODULE_4__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n \n '])),new Date(dateTime),relativeFormat,tooltipFormat)}))}.call(this,__webpack_require__(27)(module))},1475:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,lit_html__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2),_data_directory_suggestion_data_js__WEBPACK_IMPORTED_MODULE_7__=(__webpack_require__(817),__webpack_require__(327));var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { html } from 'lit-html';\nimport { storiesOf } from '@storybook/polymer';\nimport { text } from '@storybook/addon-knobs';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-directory-radio-group.js';\nimport { DIRECTORY_SUGGESTION_ENTRIES } from '../../data/directory-suggestion.data.js';\n\nconst server = window.nuxeo.mock;\nserver.respondWith('post', '/api/v1/automation/Directory.SuggestEntries', () => DIRECTORY_SUGGESTION_ENTRIES);\n\nstoriesOf('UI/nuxeo-directory-radio-group', module).add('Default', () => {\n const label = text('Label', 'Select language');\n return html`\n \n
\n \n
\n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-directory-radio-group--default":{startLoc:{col:56,line:10},endLoc:{col:1,line:22},startBody:{col:67,line:10},endBody:{col:1,line:22}}};window.nuxeo.mock.respondWith("post","/api/v1/automation/Directory.SuggestEntries",(function(){return _data_directory_suggestion_data_js__WEBPACK_IMPORTED_MODULE_7__.a})),Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__.storiesOf)("UI/nuxeo-directory-radio-group",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-directory-radio-group.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-directory-radio-group",{})).add("Default",(function(){var label=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.text)("Label","Select language");return Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n
\n \n
\n '])),label)}))}.call(this,__webpack_require__(27)(module))},1476:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(25),__webpack_require__(24),__webpack_require__(1477),__webpack_require__(117),__webpack_require__(84),__webpack_require__(22),__webpack_require__(150),__webpack_require__(31),__webpack_require__(291),__webpack_require__(53),__webpack_require__(46),__webpack_require__(416),__webpack_require__(805),__webpack_require__(807);var _templateObject,_templateObject2,_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(2),_storybook_polymer__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(12),lit_html__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(3),uuid_v4__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(79),uuid_v4__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(uuid_v4__WEBPACK_IMPORTED_MODULE_17__),_data_comments_data_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(835);function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import '@nuxeo/nuxeo-ui-elements/nuxeo-document-comments/nuxeo-document-comment';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-document-comments/nuxeo-document-comment-thread';\nimport { boolean, color, radios } from '@storybook/addon-knobs';\nimport { storiesOf } from '@storybook/polymer';\nimport { html } from 'lit-html';\nimport uuid from 'uuid/v4';\nimport { getCommentsSample } from '../../data/comments.data.js';\n\nconst commentsSample = getCommentsSample;\nconst server = window.nuxeo.mock;\nserver.respondWith('delete', new RegExp(/\\/api\\/v1\\/id\\/(\\S+)\\/@comment\\/(\\S+)/));\nserver.respondWith('get', new RegExp(/\\/api\\/v1\\/id\\/(\\S+)\\/@comment\\//), ({ queryParams }, args) => {\n const id = args[0];\n if (id === 'doc-id') {\n return {\n entries: commentsSample.slice(0, queryParams.pageSize === 0 ? commentsSample.length : 10),\n totalSize: commentsSample.length,\n };\n }\n const comment = commentsSample.find((c) => c.id === id);\n if (!comment) {\n return {\n entries: [],\n totalSize: 0,\n };\n }\n const replies = [];\n // To avoid showing threads with more than two levels\n const repliesSample = commentsSample.filter((c) => c.numberOfReplies === 0);\n for (let i = 0; i < comment.numberOfReplies; i++) {\n replies.push(repliesSample[Math.floor(Math.random() * repliesSample.length)]);\n }\n return {\n entries: replies,\n totalSize: comment ? comment.numberOfReplies : commentsSample.length,\n };\n});\nserver.respondWith('post', new RegExp(/\\/api\\/v1\\/id\\/(\\S+)\\/@comment\\//), ({ body }) => {\n return {\n 'entity-type': 'comment',\n parentId: body.parentId,\n id: uuid(),\n numberOfReplies: 0,\n author: 'Administrator',\n creationDate: new Date(),\n text: body.text,\n };\n});\nserver.respondWith('put', new RegExp(/\\/api\\/v1\\/id\\/(\\S+)\\/@comment\\/(\\S+)/), ({ body }, args) => {\n const parentId = args[0];\n const id = args[1];\n let comment = commentsSample.find((c) => c.id === parentId && c.parentId === id);\n if (!comment) {\n comment = {\n 'entity-type': 'comment',\n parentId,\n id,\n numberOfReplies: 0,\n author: 'Administrator',\n creationDate: new Date(),\n };\n }\n comment.modificationDate = new Date();\n comment.text = body.text;\n return comment;\n});\n\nstoriesOf('UI/Comments', module)\n .addElement('nuxeo-document-comment', () => {\n const level = radios('Comment Type', { Comment: '1', Response: '2' }, '1', 'States');\n const hasReplies = boolean('Has Replies?', false, 'States');\n const isTruncated = boolean('Is text big?', false, 'States');\n const comment = Object.assign(\n {},\n commentsSample.find(\n (entry) =>\n (hasReplies ? entry.numberOfReplies > 0 : entry.numberOfReplies === 0) &&\n (isTruncated ? entry.text.length >= 256 : entry.text.length < 256),\n ),\n );\n return html`\n \n \n `;\n })\n .addElement(\n 'nuxeo-document-comment-thread',\n () =>\n html`\n \n \n `,\n );\n"),__ADDS_MAP__={"ui-comments--nuxeo-document-comment-thread":{startLoc:{col:4,line:92},endLoc:{col:7,line:102},startBody:{col:4,line:93},endBody:{col:7,line:102}},"ui-comments--nuxeo-document-comment":{startLoc:{col:14,line:69},endLoc:{col:3,line:90},startBody:{col:40,line:69},endBody:{col:3,line:90}}},commentsSample=_data_comments_data_js__WEBPACK_IMPORTED_MODULE_18__.a,server=window.nuxeo.mock;server.respondWith("delete",new RegExp(/\/api\/v1\/id\/(\S+)\/@comment\/(\S+)/)),server.respondWith("get",new RegExp(/\/api\/v1\/id\/(\S+)\/@comment\//),(function(_ref,args){var queryParams=_ref.queryParams,id=args[0];if("doc-id"===id)return{entries:commentsSample.slice(0,0===queryParams.pageSize?commentsSample.length:10),totalSize:commentsSample.length};var comment=commentsSample.find((function(c){return c.id===id}));if(!comment)return{entries:[],totalSize:0};for(var replies=[],repliesSample=commentsSample.filter((function(c){return 0===c.numberOfReplies})),i=0;ientry.text.length)})));return Object(lit_html__WEBPACK_IMPORTED_MODULE_16__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n \n \n '])),Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_14__.color)("--nuxeo-comment-more-content-color","#1f28bf","CSS"),Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_14__.color)("--nuxeo-comment-placeholder-color","#939caa","CSS"),comment,+level)})).addElement("nuxeo-document-comment-thread",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_16__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n \n \n '])),Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_14__.color)("--nuxeo-comment-more-content-color","#1f28bf","CSS"),Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_14__.color)("--nuxeo-comment-placeholder-color","#939caa","CSS"))}))}.call(this,__webpack_require__(27)(module))},1480:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_templateObject2,_templateObject3,_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),lit_html__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2),_nuxeo_nuxeo_ui_elements_nuxeo_layout_behavior_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(229),_polymer_polymer_lib_legacy_polymer_fn_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(6),_img_image01_jpg__WEBPACK_IMPORTED_MODULE_12__=(__webpack_require__(1481),__webpack_require__(222),__webpack_require__(309),__webpack_require__(658),__webpack_require__(325)),_img_image01_jpg__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_img_image01_jpg__WEBPACK_IMPORTED_MODULE_12__),_data_documents_data__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(124),_code_panel_template_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(143);function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { html } from 'lit-html';\nimport { select } from '@storybook/addon-knobs';\nimport { LayoutBehavior } from '@nuxeo/nuxeo-ui-elements/nuxeo-layout-behavior.js';\nimport { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-document-layout.js';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-input.js';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-date-picker.js';\nimport '../../../.storybook/i18n';\nimport image from '../../img/image01.jpg';\nimport DocumentBuilder from '../../data/documents.data';\nimport { codePanelTemplate } from '../code-panel-template.js';\n\nwindow.Polymer = Polymer;\nwindow.Nuxeo.LayoutBehavior = LayoutBehavior;\n\nconst documentBuilder = new DocumentBuilder().setTitle('My Document').setFileContent('Nuxeo Logo', image);\n\nstoriesOf('UI/nuxeo-document-layout', module)\n .add('Default', () => {\n const layout = select('Layout', ['view', 'edit', 'metadata'], 'view');\n return html`\n
\n \n \n
\n ${codePanelTemplate(`document/file/nuxeo-file-${layout}-layout.html`)}\n `;\n })\n .add(\n 'Custom validation',\n () => html`\n

This layout won't allow Title and Description to have the same value.

\n \n
\n \n \n {\n const docLayout = e.target.previousElementSibling;\n const form = e.target.parentElement;\n const valid = docLayout.validate();\n form.style.border = `2px ${valid ? 'dashed green' : 'solid red'}`;\n e.preventDefault();\n }}\n >\n Validate\n \n \n
\n ${codePanelTemplate('document/picture/nuxeo-picture-edit-layout.html')}\n `,\n )\n .add(\n 'Missing layout',\n () =>\n html`\n \n \n `,\n );\n"),__ADDS_MAP__={"ui-nuxeo-document-layout--missing-layout":{startLoc:{col:4,line:63},endLoc:{col:7,line:72},startBody:{col:4,line:64},endBody:{col:7,line:72}},"ui-nuxeo-document-layout--custom-validation":{startLoc:{col:4,line:35},endLoc:{col:5,line:60},startBody:{col:4,line:36},endBody:{col:5,line:60}},"ui-nuxeo-document-layout--default":{startLoc:{col:7,line:20},endLoc:{col:3,line:33},startBody:{col:18,line:20},endBody:{col:3,line:33}}};window.Polymer=_polymer_polymer_lib_legacy_polymer_fn_js__WEBPACK_IMPORTED_MODULE_7__.a,window.Nuxeo.LayoutBehavior=_nuxeo_nuxeo_ui_elements_nuxeo_layout_behavior_js__WEBPACK_IMPORTED_MODULE_6__.a;var documentBuilder=(new _data_documents_data__WEBPACK_IMPORTED_MODULE_13__.a).setTitle("My Document").setFileContent("Nuxeo Logo",_img_image01_jpg__WEBPACK_IMPORTED_MODULE_12___default.a);Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__.storiesOf)("UI/nuxeo-document-layout",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-document-layout.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-document-layout",{})).add("Default",(function(){var layout=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.select)("Layout",["view","edit","metadata"],"view");return Object(lit_html__WEBPACK_IMPORTED_MODULE_4__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n
\n \n \n
\n ',"\n "])),documentBuilder.setType("File").build(),layout,Object(_code_panel_template_js__WEBPACK_IMPORTED_MODULE_14__.a)("document/file/nuxeo-file-".concat(layout,"-layout.html")))})).add("Custom validation",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_4__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n

This layout won\'t allow Title and Description to have the same value.

\n \n
\n \n \n \n \n '])),documentBuilder.setType("MyDoc").build())}))}.call(this,__webpack_require__(27)(module))},1481:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(10),__webpack_require__(434),__webpack_require__(86);var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(0),_polymer_polymer_lib_utils_resolve_url_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(56),_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(39),_polymer_polymer_lib_legacy_class__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7);function getAbsoluteUrl(relativeUrl){const publicPath=__webpack_require__.p;let url="";return(!publicPath||publicPath.indexOf("://")<0)&&(url+=window.location.protocol+"//"+window.location.host),url+=publicPath||"/",url+relativeUrl}{class DocumentLayout extends(Object(_polymer_polymer_lib_legacy_class__WEBPACK_IMPORTED_MODULE_6__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_7__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_3__.a` + +
+ + + +
+ + + `}static get is(){return"nuxeo-document-layout"}static get importMeta(){return{url:getAbsoluteUrl("/nuxeo-document-layout.js")}}static get properties(){return{document:{type:Object,notify:!0},layout:{type:String,value:"view",reflectToAttribute:!0},hrefTemplate:{type:String,value:()=>"${document.type}/nuxeo-${document.type}-${layout}-layout.html"},hrefBase:{type:String,value:""},hrefFunction:{type:Function,computed:"_buildHrefFn(hrefTemplate)"},_model:{type:Object,value:{},readOnly:!0},_href:{type:String,readOnly:!0},_errorMessages:{type:Array,readOnly:!0,value:[]}}}static get observers(){return["_loadLayout(document, layout, hrefFunction, hrefBase)"]}get element(){return this.$.layout.element}validate(){return this.$.layout.validate()}applyAutoFocus(){const focusableElement=this._getFocusableElement(this.element);focusableElement&&focusableElement.focus()}reportValidation(validationReport){this._resetValidationErrors(),validationReport.violations.reverse().forEach(violation=>{this.invalid=!0,violation.path?violation.path.forEach(p=>{const widgets=this._getBoundElements("document.properties."+p.field_name);if(widgets){const msg=this.i18n(violation.messageKey,violation.invalid_value,p.field_name);msg===violation.messageKey&&violation.constraint&&violation.constraint.name?this._addValidationError(this.i18n("label.schema.constraint.violation."+violation.constraint.name,violation.invalid_value,p.field_name,...Object.values(violation.constraint.parameters))):this._addValidationError(msg),Object.values(widgets).forEach(widget=>{widget.invalid=!0})}else this._addValidationError(this.i18n(violation.messageKey,violation.invalid_value,p.field_name))}):this._addValidationError(this.i18n(violation.messageKey))})}_buildHrefFn(tmpl){return()=>{const matches=tmpl.matchAll(/\${([^}]+)}/g);let str=tmpl;for(const[match,prop]of matches){const val=prop.match(/^(layout|document)(\.(.+))?$/)?this.get(prop).toLowerCase():"";str=str.replace(match,val)}return str}}_loadLayout(document,layout,hrefFunction,hrefBase){if(this._resetValidationErrors(),document){this.previousDocument&&document.uid===this.previousDocument.uid||this._set_href(null),this.previousDocument&&document.type!==this.previousDocument.type||this._set_model({document:document});const base=hrefBase||Object(_polymer_polymer_lib_utils_resolve_url_js__WEBPACK_IMPORTED_MODULE_4__.a)(this.__dataHost.importPath||this.importPath),path=[base,hrefFunction(document,layout)].join("/"!==base.slice(-1)?"/":"");this._set_href(path)}else void 0===document&&this._set_model({document:document});this.previousDocument=document}_elementChanged(){this._set_model({document:this.document}),this.element&&this.element.addEventListener("document-changed",e=>{this.notifyPath(e.detail.path,e.detail.value)}),Object(_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_5__.a)(this,()=>{this.dispatchEvent(new CustomEvent("document-layout-changed",{bubbles:!0,composed:!0,detail:{element:this.element,layout:this.layout}})),this.applyAutoFocus()})}_getBoundElements(property){return this.$.layout._getBoundElements(property)}_getFocusableElement(parent){if(parent&&parent.shadowRoot&&!parent.shadowRoot.activeElement){const nodes=Array.from(parent.shadowRoot.querySelectorAll("*")).filter(node=>{const style=window.getComputedStyle(node);return!node.disabled&&"none"!==style.display&&"hidden"!==style.visibility});let focusableElement=nodes.find(node=>node.autofocus);if(focusableElement)return focusableElement;nodes.filter(node=>node.shadowRoot).forEach(node=>{if(focusableElement=this._getFocusableElement(node),focusableElement)return focusableElement})}}_addValidationError(message){this.push("_errorMessages",message),this.$.error.scrollIntoView(),this.$.error.focus()}_hasValidationErrors(){return this._errorMessages&&this._errorMessages.length>0}_resetValidationErrors(){this._set_errorMessages([])}}customElements.define(DocumentLayout.is,DocumentLayout)}},154:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19),_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11);__webpack_require__(10),__webpack_require__(220);{class Resource extends Nuxeo.Element{static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + `}static get is(){return"nuxeo-resource"}static get properties(){return{connectionId:{type:String,value:""},success:{type:Boolean,notify:!0},error:{type:Object,notify:!0},uncancelable:{type:Boolean},auto:{type:Boolean,value:!1},method:{type:String,value:"get"},path:{type:String},params:{type:Object,value:null},data:{type:Object,value:null},response:{type:Object,value:null,notify:!0},type:{type:String,value:""},headers:{type:Object,value:null},enrichers:{type:Object,value:{}},enrichersEntity:{type:String,value:"document"},contentType:{type:String,value:"application/json"},schemas:{type:String,value:""},autoDelay:{type:Number,value:300},activeRequests:{type:Number,value:0,notify:!0,readOnly:!0},syncIndexing:Boolean,loading:{type:Boolean,notify:!0,readOnly:!0,value:!1}}}static get observers(){return["_autoGet(connectionId, auto, path, params, type, enrichers, enrichersEntity)","_isLoading(activeRequests)"]}get(){return this.method="get",this.execute()}post(){return this.method="post",this.execute()}put(){return this.method="put",this.execute()}remove(){return this.method="delete",this.execute()}execute(){this._setActiveRequests(this.activeRequests+1);const options={method:this.method||"get"};if(this.data&&"get"!==this.method&&(options.body=this.data),this.schemas&&this.schemas.length>1&&(options.schemas=this.schemas.trim().split(/[\s,]+/)),options.headers=this.headers||{},this.syncIndexing&&(options.headers["nx-es-sync"]=!0),options.headers.accept=options.headers.accept||"text/plain,application/json",options.headers["Content-Type"]=this.contentType,this.enrichers){let enrich={};"string"==typeof this.enrichers?enrich[this.enrichersEntity]=this.enrichers:enrich=this.enrichers,Object.entries(enrich).forEach(([type,value])=>{let v=value;Array.isArray(value)&&(v=value.join(",")),options.headers["enrichers-"+type]=v})}options.resolveWithFullResponse=!0,this.uncancelable||(this._controller&&this._controller.abort(),this._controller=new AbortController,options.signal=this._controller.signal);const params=this.params||{};return this.$.nx.request().then(request=>(this._request=request,this._doExecute(params,options)))}_autoGet(){this.auto&&this.path&&(this._debouncer=_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_1__.a.debounce(this._debouncer,_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__.d.after(this.autoDelay),()=>this.get()))}_doExecute(params,options){return this._request.path(this.path).queryParams(params).repositoryName("default"===this._request._baseOptions.repositoryName?void 0:this._request._baseOptions.repositoryName).execute(options).then(response=>response.text().then(text=>{const contentType=response.headers?response.headers.get("content-type"):options.headers.accept;if(!contentType||!contentType.includes("application/json"))return text;try{return text?JSON.parse(text):{}}catch(e){return{error:"Invalid json"}}})).then(data=>(this.dispatchEvent(new CustomEvent("response",{bubbles:!0,composed:!0,detail:{response:data}})),this.response=data,this.success=!0,this._setActiveRequests(this.activeRequests-1),this.response)).catch(error=>{if(this.success=!1,this._setActiveRequests(this.activeRequests-1),error.response)return 401===error.response.status&&this.dispatchEvent(new CustomEvent("unauthorized-request",{bubbles:!0,composed:!0,detail:error})),error.response.text().then(text=>{if(text)try{this.error=JSON.parse(text),this.error.status=error.response.status,console.warn("Resource request failed: "+this.error.message)}catch(e){this.error={message:"Invalid json",status:error.response.status}}else this.error={message:"No message",status:error.response.status};throw this.error});throw error})}_isLoading(){this._setLoading(this.activeRequests>0)}}customElements.define(Resource.is,Resource),Nuxeo.Resource=Resource}},160:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global,module){__webpack_require__.d(__webpack_exports__,"a",(function(){return escapeHTML}));var _polymer_iron_form_element_behavior_iron_form_element_behavior_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(65),_polymer_iron_validatable_behavior_iron_validatable_behavior_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(41),_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__(10),__webpack_require__(96),__webpack_require__(19)),_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(11),_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_nuxeo_i18n_behavior__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7);__webpack_require__(36);!function(f){if("object"==typeof exports&&void 0!==module)module.exports=f();else if("function"==typeof define&&__webpack_require__(1447))define([],f);else{let g;g="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:this,g.selectivity=f()}}(()=>function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){const a=!1;if(!u&&a)return(void 0)(o,!0);if(i)return i(o,!0);const f=new Error(`Cannot find module '${o}'`);throw f.code="MODULE_NOT_FOUND",f}const l=n[o]={exports:{}};t[o][0].call(l.exports,e=>s(t[o][1][e]||e),l,l.exports,e,t,n,r)}return n[o].exports}var i=!1;for(let o=0;o{let index=-1,length=sources.length,customizer=length>1?sources[length-1]:void 0,guard=length>2?sources[2]:void 0;for(customizer=assigner.length>3&&"function"==typeof customizer?(length--,customizer):void 0,guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?void 0:customizer,length=1),object=Object(object);++index":">",'"':""","'":"'"});module.exports=escapeHtmlChar},{12:12}],23:[function(_dereq_,module,exports){(function(global){const freeGlobal="object"==typeof global&&global&&global.Object===Object&&global;module.exports=freeGlobal}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],24:[function(_dereq_,module,exports){let baseIsNative=_dereq_(9),getValue=_dereq_(26);module.exports=function getNative(object,key){const value=getValue(object,key);return baseIsNative(value)?value:void 0}},{26:26,9:9}],25:[function(_dereq_,module,exports){const Symbol=_dereq_(1),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol?Symbol.toStringTag:void 0;module.exports=function getRawTag(value){let isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=void 0;var unmasked=!0}catch(e){}const result=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]),result}},{1:1}],26:[function(_dereq_,module,exports){module.exports=function getValue(object,key){return null==object?void 0:object[key]}},{}],27:[function(_dereq_,module,exports){const reIsUint=/^(?:0|[1-9]\d*)$/;module.exports=function isIndex(value,length){return!!(length=null==length?9007199254740991:length)&&("number"==typeof value||reIsUint.test(value))&&value>-1&&value%1==0&&value0){if(++count>=800)return arguments[0]}else count=0;return func(...arguments)}}},{}],39:[function(_dereq_,module,exports){const funcToString=Function.prototype.toString;module.exports=function toSource(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return""+func}catch(e){}}return""}},{}],40:[function(_dereq_,module,exports){let assignValue=_dereq_(5),copyObject=_dereq_(18),createAssigner=_dereq_(20),isArrayLike=_dereq_(48),isPrototype=_dereq_(30),keys=_dereq_(57);const hasOwnProperty=Object.prototype.hasOwnProperty,assign=createAssigner((object,source)=>{if(isPrototype(source)||isArrayLike(source))copyObject(source,keys(source),object);else for(const key in source)hasOwnProperty.call(source,key)&&assignValue(object,key,source[key])});module.exports=assign},{18:18,20:20,30:30,48:48,5:5,57:57}],41:[function(_dereq_,module,exports){module.exports=function constant(value){return function(){return value}}},{}],42:[function(_dereq_,module,exports){let isObject=_dereq_(52),now=_dereq_(58),toNumber=_dereq_(60);let nativeMax=Math.max,nativeMin=Math.min;module.exports=function debounce(func,wait,options){let lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){let args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args),result}function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}function shouldInvoke(time){let timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){const time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){let result=wait-(time-lastCallTime);return maxing?nativeMin(result,maxWait-(time-lastInvokeTime)):result}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){let time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return leadingEdge(lastCallTime);if(maxing)return timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxing="maxWait"in options,maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced}},{52:52,58:58,60:60}],43:[function(_dereq_,module,exports){module.exports=function eq(value,other){return value===other||value!=value&&other!=other}},{}],44:[function(_dereq_,module,exports){let escapeHtmlChar=_dereq_(22),toString=_dereq_(61),reUnescapedHtml=/[&<>"']/g,reHasUnescapedHtml=RegExp(reUnescapedHtml.source);module.exports=function escape(string){return(string=toString(string))&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string}},{22:22,61:61}],45:[function(_dereq_,module,exports){module.exports=function identity(value){return value}},{}],46:[function(_dereq_,module,exports){let baseIsArguments=_dereq_(8),isObjectLike=_dereq_(53);const objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,propertyIsEnumerable=objectProto.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};module.exports=isArguments},{53:53,8:8}],47:[function(_dereq_,module,exports){const isArray=Array.isArray;module.exports=isArray},{}],48:[function(_dereq_,module,exports){let isFunction=_dereq_(50),isLength=_dereq_(51);module.exports=function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}},{50:50,51:51}],49:[function(_dereq_,module,exports){let root=_dereq_(36),stubFalse=_dereq_(59);const freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,isBuffer=(Buffer?Buffer.isBuffer:void 0)||stubFalse;module.exports=isBuffer},{36:36,59:59}],50:[function(_dereq_,module,exports){let baseGetTag=_dereq_(7),isObject=_dereq_(52);module.exports=function isFunction(value){if(!isObject(value))return!1;const tag=baseGetTag(value);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag}},{52:52,7:7}],51:[function(_dereq_,module,exports){module.exports=function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991}},{}],52:[function(_dereq_,module,exports){module.exports=function isObject(value){const type=typeof value;return null!=value&&("object"==type||"function"==type)}},{}],53:[function(_dereq_,module,exports){module.exports=function isObjectLike(value){return null!=value&&"object"==typeof value}},{}],54:[function(_dereq_,module,exports){let baseGetTag=_dereq_(7),isArray=_dereq_(47),isObjectLike=_dereq_(53);module.exports=function isString(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&"[object String]"==baseGetTag(value)}},{47:47,53:53,7:7}],55:[function(_dereq_,module,exports){let baseGetTag=_dereq_(7),isObjectLike=_dereq_(53);module.exports=function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&"[object Symbol]"==baseGetTag(value)}},{53:53,7:7}],56:[function(_dereq_,module,exports){let baseIsTypedArray=_dereq_(10),baseUnary=_dereq_(17),nodeUtil=_dereq_(32);const nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray},{10:10,17:17,32:32}],57:[function(_dereq_,module,exports){let arrayLikeKeys=_dereq_(3),baseKeys=_dereq_(11),isArrayLike=_dereq_(48);module.exports=function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}},{11:11,3:3,48:48}],58:[function(_dereq_,module,exports){const root=_dereq_(36);module.exports=function(){return root.Date.now()}},{36:36}],59:[function(_dereq_,module,exports){module.exports=function stubFalse(){return!1}},{}],60:[function(_dereq_,module,exports){let isObject=_dereq_(52),isSymbol=_dereq_(55);const reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;module.exports=function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject(value)){const other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?""+other:other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");const isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value}},{52:52,55:55}],61:[function(_dereq_,module,exports){const baseToString=_dereq_(16);module.exports=function toString(value){return null==value?"":baseToString(value)}},{16:16}],62:[function(_dereq_,module,exports){const assign=_dereq_(40),EventListener=_dereq_(63),getItemSelector=_dereq_(79),matchesSelector=_dereq_(81),parseElement=_dereq_(82),removeElement=_dereq_(83),stopPropagation=_dereq_(84),toggleClass=_dereq_(85),Selectivity=_dereq_(76),SCROLL_EVENTS=["scroll","touchend","touchmove"];function SelectivityDropdown(selectivity,options){this.el=parseElement(selectivity.template("dropdown",{dropdownCssClass:selectivity.options.dropdownCssClass,searchInputPlaceholder:selectivity.options.searchInputPlaceholder,showSearchInput:options.showSearchInput})),this.resultsContainer=this.$(".selectivity-results-container"),this.hasMore=!1,this.highlightedResult=null,this.loadMoreHighlighted=!1,this.options=options,this.results=[],this.selectivity=selectivity,this._closed=!1,this._lastMousePosition={},this.close=this.close.bind(this),this.position=this.position.bind(this),!1!==selectivity.options.closeOnSelect&&selectivity.events.on("selectivity-selecting",this.close),this.addToDom(),this.showLoading(),options.showSearchInput&&(selectivity.initInput(this.$(".selectivity-search-input")),selectivity.focus());const events={};events["click .selectivity-load-more"]=this._loadMoreClicked,events["click .selectivity-result-item"]=this._resultClicked,events["mouseenter .selectivity-load-more"]=this._loadMoreHovered,events["mouseenter .selectivity-result-item"]=this._resultHovered,this.events=new EventListener(this.el,this),this.events.on(events),this._attachScrollListeners(),this._suppressWheel(),setTimeout(this.triggerOpen.bind(this),1)}assign(SelectivityDropdown.prototype,{$(selector){return this.el.querySelector(selector)},addToDom(){this.selectivity.el.appendChild(this.el)},close(){this._closed||(this._closed=!0,removeElement(this.el),this.selectivity.events.off("selectivity-selecting",this.close),this.triggerClose(),this._removeScrollListeners())},highlight(item,options){toggleClass(this.$(".highlight"),"highlight",!1),toggleClass(this.$(getItemSelector(".selectivity-result-item",item.id)),"highlight",!0),this.highlightedResult=item,this.loadMoreHighlighted=!1,this.selectivity.triggerEvent("selectivity-highlight",{item:item,id:item.id,reason:options&&options.reason||"unspecified"})},highlightLoadMore(){toggleClass(this.$(".highlight"),"highlight",!1),toggleClass(this.$(".selectivity-load-more"),"highlight",!0),this.highlightedResult=null,this.loadMoreHighlighted=!0},loadMore(){removeElement(this.$(".selectivity-load-more")),this.resultsContainer.innerHTML+=this.selectivity.template("loading"),this.options.query({callback:function(response){if(!response||!response.results)throw new Error("callback must be passed a response object");this._showResults(Selectivity.processItems(response.results),{add:!0,hasMore:!!response.more})}.bind(this),error:this._showResults.bind(this,[],{add:!0}),offset:this.results.length,selectivity:this.selectivity,term:this.term})},position(){const position=this.options.position;position&&position(this.el,this.selectivity.el),this._scrolled()},renderItems(items){const selectivity=this.selectivity;return items.map((function(item){let result=selectivity.template(item.id?"resultItem":"resultLabel",item);return item.children&&(result+=selectivity.template("resultChildren",{childrenHtml:this.renderItems(item.children)})),result}),this).join("")},search(term){this.term=term,this.options.query({callback:function(response){if(!response||!response.results)throw new Error("callback must be passed a response object");if(this.options.items){term=Selectivity.transformText(term);const matcher=this.selectivity.options.matcher||Selectivity.matcher;this._showResults(this.options.items.map(item=>matcher(item,term)).filter(item=>!!item),{term:term})}else this._showResults(Selectivity.processItems(response.results),{hasMore:!!response.more,term:term})}.bind(this),error:this.showError.bind(this),offset:0,selectivity:this.selectivity,term:term})},selectHighlight(){this.highlightedResult?this.selectItem(this.highlightedResult.id):this.loadMoreHighlighted&&this.loadMore()},selectItem(id){const item=Selectivity.findNestedById(this.results,id);if(item&&!item.disabled&&!1!==item.selectable){const options={id:id,item:item};this.selectivity.triggerEvent("selectivity-selecting",options)&&this.selectivity.triggerEvent("selectivity-selected",options)}},showError(message,options){this.resultsContainer.innerHTML=this.selectivity.template("error",{escape:!options||!1!==options.escape,message:message}),this.hasMore=!1,this.results=[],this.highlightedResult=null,this.loadMoreHighlighted=!1,this.position()},showLoading(){this.resultsContainer.innerHTML=this.selectivity.template("loading"),this.hasMore=!1,this.results=[],this.highlightedResult=null,this.loadMoreHighlighted=!1,this.position()},showResults(results,options){const searchText=options&&options.term&&options.term.trim();options.add?removeElement(this.$(".selectivity-loading")):searchText&&""!==searchText&&(this.resultsContainer.innerHTML="");const filteredResults=this.selectivity.filterResults(results),value=this.selectivity.getValue();let resultsHtml=filteredResults.some(item=>""!==item.text.trim())?this.renderItems(filteredResults):"";if(options.hasMore?resultsHtml+=this.selectivity.template("loadMore"):value&&Array.isArray(value)&&value.includes(options.term)?resultsHtml=this.selectivity.template("tagExists"):resultsHtml||options.add||(resultsHtml=this.selectivity.template("noResults",{term:options.term})),resultsHtml&&(this.resultsContainer.innerHTML="",removeElement(this.$(".selectivity-loading")),this.resultsContainer.innerHTML+=resultsHtml),this.results=options.add?this.results.concat(results):results,this.hasMore=options.hasMore,value&&!Array.isArray(value)){const item=Selectivity.findNestedById(results,value);item&&this.highlight(item,{reason:"current_value"})}else!1===this.options.highlightFirstItem||options.add&&!this.loadMoreHighlighted||this._highlightFirstItem(filteredResults);this.position()},triggerClose(){this.selectivity.triggerEvent("selectivity-close")},triggerOpen(){this.selectivity.triggerEvent("selectivity-open")},_attachScrollListeners(){for(let i=0;i{const delta=0===event.deltaMode?event.deltaY:40*event.deltaY,el=function findClosestElementMatchingSelector(el,selector){for(;el&&!matchesSelector(el,selector);)el=el.parentElement;return el||null}(event.target,selector),height=el.clientHeight,scrollHeight=el.scrollHeight,scrollTop=el.scrollTop;function prevent(){stopPropagation(event),event.preventDefault()}scrollHeight>height&&(delta<-scrollTop?(el.scrollTop=0,prevent()):delta>scrollHeight-height-scrollTop&&(el.scrollTop=scrollHeight,prevent()))})}}),module.exports=Selectivity.Dropdown=SelectivityDropdown},{40:40,63:63,76:76,79:79,81:81,82:82,83:83,84:84,85:85}],63:[function(_dereq_,module,exports){const assign=_dereq_(40),isString=_dereq_(54),matchesSelector=_dereq_(81),CAPTURED_EVENTS=["blur","focus","mouseenter","mouseleave","scroll"];function EventListener(el,context){this.context=context||null,this.el=el,this.events={},this._onEvent=this._onEvent.bind(this)}assign(EventListener.prototype,{destruct(){Object.keys(this.events).forEach((function(eventName){const useCapture=CAPTURED_EVENTS.indexOf(eventName)>-1;this.el.removeEventListener(eventName,this._onEvent,useCapture)}),this),this.context=null,this.el=null,this.events=null},off(eventName,selector,callback){if(this.events)if(isString(selector)||(callback=selector,selector=""),callback){let events=this.events[eventName];if(events&&(events=events[selector],events))for(let i=0;i-1;this.el.addEventListener(eventName,this._onEvent,useCapture),this.events[eventName]={}}this.events[eventName].hasOwnProperty(selector)||(this.events[eventName][selector]=[]),this.events[eventName][selector].indexOf(callback)<0&&this.events[eventName][selector].push(callback)}else{const eventsMap=eventName;for(const key in eventsMap)if(eventsMap.hasOwnProperty(key)){const split=key.split(" ");split.length>1?this.on(split[0],split[1],eventsMap[key]):this.on(split[0],eventsMap[key])}}},_onEvent(event){let isPropagationStopped=!1;const stopPropagation=event.stopPropagation;event.stopPropagation=function(){stopPropagation.call(event),isPropagationStopped=!0};const context=this.context;function callAll(callbacks){for(let i=0;i-1)return!1;const dotIndex=email.lastIndexOf(".");return-1===dotIndex?atIndexatIndex)||dotIndex=0;i--)if(/\s/.test(token[i]))return token.slice(i+1,length);return token.slice(0,length)}function stripEnclosure(token,enclosure){return token.charAt(0)===enclosure[0]&&token.slice(-1)===enclosure[1]?token.slice(1,-1).trim():token.trim()}function createEmailItem(token){let email=lastWord(token),name=token.slice(0,-email.length).trim();return isValidEmail(email)?(email=stripEnclosure(stripEnclosure(email,"()"),"<>"),name=stripEnclosure(name,'""').trim()||email,{id:email,text:name}):token.trim()?{id:token,text:token}:null}function emailTokenizer(input,selection,createToken){function hasToken(input){if(input)for(let i=0,length=input.length;iwindow.innerHeight&&rect.top-dropdownHeight>0;assign(el.style,{left:rect.left+"px",top:(openUpwards?rect.top-dropdownHeight:rect.bottom)+"px",width:rect.width+"px"})},showSearchInputInDropdown:!1},options)),this._reset();const events={change:this.rerenderSelection,click:this._clicked,"selectivity-selected":this._resultSelected};events["change "+INPUT_SELECTOR]=stopPropagation,events["click .selectivity-multiple-selected-item"]=this._itemClicked,events["click .selectivity-multiple-selected-item-remove"]=this._itemRemoveClicked,events["keydown "+INPUT_SELECTOR]=this._keyHeld,events["keyup "+INPUT_SELECTOR]=this._keyReleased,events["paste "+INPUT_SELECTOR]=this._onPaste,this.events.on(events)}var callSuper=Selectivity.inherits(MultipleInput,Selectivity,{add(item){const itemIsId=Selectivity.isValidId(item),id=itemIsId?item:this.validateItem(item)&&item.id;-1===this._value.indexOf(id)&&(this._value.push(id),itemIsId&&this.options.initSelection?this.options.initSelection([id],data=>{this._value.indexOf(id)>-1&&(item=this.validateItem(data[0]),this._data.push(item),this.triggerChange({added:item}))}):(itemIsId&&(item=this.getItemForId(id)),this._data.push(item),this.triggerChange({added:item}))),this.input.value="",this._updateInputWidth()},clear(){this.setData([])},filterResults(results){return(results=results.map((function(item){const result={id:item.id,text:item.text,item:item.item};return item.children&&(result.children=this.filterResults(item.children)),result}),this)).filter((function(item){return!Selectivity.findById(this._data,item.id)}),this)},getDataForValue(value){return value.map(this.getItemForId,this).filter(item=>!!item)},getValueForData:data=>data.map(item=>item.id),remove(item){const id=item.id||item;let removedItem,index=Selectivity.findIndexById(this._data,id);index>-1&&(removedItem=this._data[index],this._data.splice(index,1)),this._value[index]!==id&&(index=this._value.indexOf(id)),index>-1&&this._value.splice(index,1),removedItem&&this.triggerChange({removed:removedItem}),id===this._highlightedItemId&&(this._highlightedItemId=null),this._updateInputWidth()},rerenderSelection(event){(event=event||{}).added?(this._renderSelectedItem(event.added),this._scrollToBottom()):event.removed?removeElement(this.$(getItemSelector(".selectivity-multiple-selected-item",event.removed.id))):(this._forEachSelectedItem(removeElement),this._data.forEach(this._renderSelectedItem,this),this._updateInputWidth()),(event.added||event.removed)&&(this.dropdown&&this.dropdown.showResults(this.filterResults(this.dropdown.results),{hasMore:this.dropdown.hasMore}),hasTouch||this.focus()),this.positionDropdown(),this._updatePlaceholder()},search(term){this.options.tokenizer&&(term=this.options.tokenizer(term,this._data,this.add.bind(this),this.options),isString(term)&&term!==this.input.value&&(this.input.value=term)),this._updateInputWidth(),this.dropdown&&callSuper(this,"search",term)},setOptions(options){const wasEnabled=this.enabled;callSuper(this,"setOptions",options),wasEnabled!==this.enabled&&this._reset()},validateData(data){if(null===data)return[];if(Array.isArray(data))return data.map(this.validateItem,this);throw new Error("Data for MultiSelectivity instance should be an array")},validateValue(value){if(null===value)return[];if(Array.isArray(value)){if(value.every(Selectivity.isValidId))return value;throw new Error("Value contains invalid IDs")}throw new Error("Value for MultiSelectivity instance should be an array")},_backspacePressed(){this.options.backspaceHighlightsBeforeDelete?this._highlightedItemId?this._deletePressed():this._value.length&&this._highlightItem(this._value.slice(-1)[0]):this._value.length&&this.remove(this._value.slice(-1)[0])},_clicked(event){this.enabled&&(!1!==this.options.showDropdown?this.open():this.focus(),stopPropagation(event))},_createToken(){const term=this.input.value,createTokenItem=this.options.createTokenItem;if(term&&createTokenItem){const item=createTokenItem(term);item&&this.add(item)}},_deletePressed(){this._highlightedItemId&&this.remove(this._highlightedItemId)},_forEachSelectedItem(callback){Array.prototype.forEach.call(this.el.querySelectorAll(".selectivity-multiple-selected-item"),callback)},_highlightItem(id){this._highlightedItemId=id,this._forEachSelectedItem(el=>{toggleClass(el,"highlighted",el.getAttribute("data-item-id")===id)}),hasTouch||this.focus()},_itemClicked(event){this.enabled&&this._highlightItem(this.getRelatedItemId(event))},_itemRemoveClicked(event){this.remove(this.getRelatedItemId(event)),stopPropagation(event)},_keyHeld(event){this._originalValue=this.input.value,13!==getKeyCode(event)||event.ctrlKey||event.preventDefault()},_keyReleased(event){const inputHadText=!!this._originalValue,keyCode=getKeyCode(event);13!==keyCode||event.ctrlKey?8!==keyCode||inputHadText?46!==keyCode||inputHadText||this._deletePressed():this._backspacePressed():this._createToken()},_onPaste(){setTimeout(()=>{this.search(this.input.value),this._createToken()},10)},_renderSelectedItem(item){const el=parseElement(this.template("multipleSelectedItem",assign({highlighted:item.id===this._highlightedItemId,removable:!this.options.readOnly},item)));this.input.parentNode.insertBefore(el,this.input)},_reset(){this.el.innerHTML=this.template("multipleSelectInput",{enabled:this.enabled}),this._highlightedItemId=null,this.initInput(this.$(INPUT_SELECTOR)),this.rerenderSelection()},_resultSelected(event){-1===this._value.indexOf(event.id)?this.add(event.item):this.remove(event.item)},_scrollToBottom(){const inputContainer=this.$(INPUT_SELECTOR+"-container");inputContainer.scrollTop=inputContainer.clientHeight},_updateInputWidth(){const inputContent=this.input.value||!this._data.length&&this.options.placeholder||"",placeholderLength=null!=this.options.placeholder&&this.options.placeholder.length;this.enabled&&!this._data.length&&inputContent.length<=placeholderLength?this.input.setAttribute("size",placeholderLength):this.input.setAttribute("size",inputContent.length+2),this.positionDropdown()},_updatePlaceholder(){const placeholder=!this._data.length&&this.options.placeholder||"";this.enabled?this.input.setAttribute("placeholder",placeholder):this.$(".selectivity-placeholder").textContent=placeholder}});module.exports=Selectivity.Inputs.Multiple=MultipleInput},{40:40,54:54,76:76,79:79,80:80,82:82,83:83,84:84,85:85}],66:[function(_dereq_,module,exports){const assign=_dereq_(40),Selectivity=_dereq_(76),stopPropagation=_dereq_(84);function SingleInput(options){Selectivity.call(this,assign({positionDropdown(el,selectEl){const rect=selectEl.getBoundingClientRect(),dropdownTop=rect.bottom,deltaUp=Math.min(Math.max(dropdownTop+el.clientHeight-window.innerHeight,0),rect.top+rect.height);assign(el.style,{left:rect.left+"px",top:dropdownTop-deltaUp+"px",width:rect.width+"px"})}},options)),this.el.innerHTML=this.template("singleSelectInput",this.options),this.rerenderSelection(),!1===options.showSearchInputInDropdown&&this.initInput(this.$(".selectivity-single-select-input"),{search:!1}),this.events.on({change:this.rerenderSelection,click:this._clicked,"click .selectivity-search-input":stopPropagation,"click .selectivity-single-selected-item-remove":this._itemRemoveClicked,"focus .selectivity-single-select-input":this._focused,"selectivity-selected":this._resultSelected})}var callSuper=Selectivity.inherits(SingleInput,Selectivity,{clear(){this.setData(null)},close(options){this._closing=!0,callSuper(this,"close"),options&&options.keepFocus&&this.input&&this.input.focus(),this._closing=!1},getDataForValue(value){return this.getItemForId(value)},getValueForData:data=>data?data.id:null,rerenderSelection(){const template=this._data?"singleSelectedItem":"singleSelectPlaceholder",options=this._data?assign({removable:this.options.allowClear&&!this.options.readOnly},this._data):{placeholder:this.options.placeholder};this.el.querySelector("input").value=this._value,this.$(".selectivity-single-result-container").innerHTML=this.template(template,options)},validateData(data){return null===data?data:this.validateItem(data)},validateValue(value){if(null==value||Selectivity.isValidId(value))return value;throw new Error("Value for SingleSelectivity instance should be a valid ID or null")},_clicked(){this.enabled&&(this.dropdown?this.close({keepFocus:!0}):!1!==this.options.showDropdown&&this.open())},_focused(){!this.enabled||this._closing||this._opening||!1===this.options.showDropdown||this.open()},_itemRemoveClicked(event){this.setData(null),stopPropagation(event)},_resultSelected(event){this.setData(event.item),this.close({keepFocus:!0})}});module.exports=Selectivity.Inputs.Single=SingleInput},{40:40,76:76,84:84}],67:[function(_dereq_,module,exports){const escape=_dereq_(44),Selectivity=_dereq_(76);module.exports=Selectivity.Locale={loading:"Loading...",loadMore:"Load more...",noResults:"No results found",tagExists:"Tag already exists",ajaxError:term=>term?`Failed to fetch results for ${escape(term)}`:"Failed to fetch results",needMoreCharacters:numCharacters=>`Enter ${numCharacters} more characters to search`,noResultsForTerm:term=>`No results for ${escape(term)}`}},{44:44,76:76}],68:[function(_dereq_,module,exports){const debounce=_dereq_(42),Selectivity=_dereq_(76);_dereq_(67);function addUrlParam(url,key,value){return`${url+(url.indexOf("?")>-1?"&":"?")+key}=${encodeURIComponent(value)}`}function doFetch(ajax,queryOptions){const fetch=ajax.fetch||window.fetch,term=queryOptions.term;let url="function"==typeof ajax.url?ajax.url(queryOptions):ajax.url;if(ajax.params){const params=ajax.params(term,queryOptions.offset||0);for(const key in params)params.hasOwnProperty(key)&&(url=addUrlParam(url,key,params[key]))}fetch(url,function pick(object,keys){const result={};return keys.forEach(key=>{void 0!==object[key]&&(result[key]=object[key])}),result}(ajax,["body","cache","credentials","headers","integrity","method","mode","redirect","referrer","referrerPolicy"]),queryOptions).then(response=>{if(response.ok)return response.json();if(Array.isArray(response)||response.results)return response;throw new Error("Unexpected AJAX response")}).then(response=>{Array.isArray(response)?queryOptions.callback({results:response,more:!1}):queryOptions.callback({results:response.results,more:!!response.more})}).catch(error=>{const formatError=ajax.formatError||Selectivity.Locale.ajaxError;queryOptions.error(formatError(term,error),{escape:!1})})}Selectivity.OptionListeners.unshift((selectivity,options)=>{const ajax=options.ajax;if(ajax&&ajax.url){const fetch=ajax.quietMillis?debounce(doFetch,ajax.quietMillis):doFetch;options.query=function(queryOptions){const numCharsNeeded=ajax.minimumInputLength-queryOptions.term.length;numCharsNeeded>0?queryOptions.error(Selectivity.Locale.needMoreCharacters(numCharsNeeded)):fetch(ajax,queryOptions)}}})},{42:42,67:67,76:76}],69:[function(_dereq_,module,exports){const Selectivity=_dereq_(76);let latestQueryNum=0;Selectivity.OptionListeners.push((selectivity,options)=>{const query=options.query;query&&!query._async&&(options.query=function(queryOptions){latestQueryNum++;const queryNum=latestQueryNum,callback=queryOptions.callback,error=queryOptions.error;queryOptions.callback=function(){queryNum===latestQueryNum&&callback(...arguments)},queryOptions.error=function(){queryNum===latestQueryNum&&error(...arguments)},query(queryOptions)},options.query._async=!0)})},{76:76}],70:[function(_dereq_,module,exports){const DIACRITICS={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},Selectivity=_dereq_(76),previousTransform=Selectivity.transformText;Selectivity.transformText=function(string){let result="";for(let i=0,length=string.length;i0?0:resultItems.length-1;let index=defaultIndex;const highlightedResult=dropdown.highlightedResult;if(highlightedResult){const highlightedResultItem=findResultItem(resultItems,highlightedResult.id);if(index=resultItems.indexOf(highlightedResultItem)+delta,delta>0?index>=resultItems.length:index<0){if(dropdown.hasMore)return dropdown.highlightLoadMore(),void scrollToHighlight();index=defaultIndex}}const resultItem=resultItems[index],result=Selectivity.findNestedById(results,selectivity.getRelatedItemId(resultItem));result&&(dropdown.highlight(result,{delay:!!result.submenu}),scrollToHighlight())}input.addEventListener("keydown",(function keyHeld(event){const dropdown=selectivity.dropdown;if(dropdown){const keyCode=getKeyCode(event);if(8===keyCode){if(!input.value){if(dropdown.submenu){let submenu=dropdown.submenu;for(;submenu.submenu;)submenu=submenu.submenu;closeSubmenu=submenu}event.preventDefault(),keydownCanceled=!0}}else 40===keyCode?moveHighlight(dropdown,1):38===keyCode?moveHighlight(dropdown,-1):9===keyCode?setTimeout(()=>{selectivity.close()},1):13===keyCode&&event.preventDefault()}})),input.addEventListener("keyup",(function keyReleased(event){function open(){!1!==selectivity.options.showDropdown&&selectivity.open()}const dropdown=selectivity.dropdown,keyCode=getKeyCode(event);keydownCanceled?(event.preventDefault(),keydownCanceled=!1,closeSubmenu&&(closeSubmenu.close(),selectivity.focus(),closeSubmenu=null)):8===keyCode?!dropdown&&selectivity.options.allowClear&&selectivity.clear():13!==keyCode||event.ctrlKey?27===keyCode?(selectivity.close(),event.preventDefault()):40===keyCode||38===keyCode?(open(),event.preventDefault()):open():(dropdown?dropdown.selectHighlight():!1!==selectivity.options.showDropdown&&open(),event.preventDefault())}))}))},{76:76,78:78,80:80}],72:[function(_dereq_,module,exports){const Selectivity=_dereq_(76),allowedOptions={allowClear:"boolean",backspaceHighlightsBeforeDelete:"boolean",closeOnSelect:"boolean",createTokenItem:"function",dropdown:"function|null",initSelection:"function|null",inputListeners:"array",items:"array|null",matcher:"function|null",placeholder:"string",positionDropdown:"function|null",query:"function|null",readOnly:"boolean",removeOnly:"boolean",shouldOpenSubmenu:"function",showSearchInputInDropdown:"boolean",suppressWheelSelector:"string|null",tabIndex:"number",templates:"object",tokenizer:"function"};Selectivity.OptionListeners.unshift((selectivity,options)=>{for(const key in options){if(!options.hasOwnProperty(key))continue;var value=options[key];const type=allowedOptions[key];if(type&&!type.split("|").some(type=>"null"===type?null===value:"array"===type?Array.isArray(value):null!=value&&typeof value===type))throw new Error(`${key} must be of type ${type}`)}})},{76:76}],73:[function(_dereq_,module,exports){const Dropdown=_dereq_(62),Selectivity=_dereq_(76),findResultItem=_dereq_(78);function SubmenuPlugin(selectivity,options){this.parentMenu=options.parentMenu,Dropdown.call(this,selectivity,options),this._closeSubmenuTimeout=0,this._openSubmenuTimeout=0}var callSuper=Selectivity.inherits(SubmenuPlugin,Dropdown,{close(){this.submenu&&this.submenu.close(),callSuper(this,"close"),this.parentMenu&&(this.parentMenu.submenu=null,this.parentMenu=null),clearTimeout(this._closeSubmenuTimeout),clearTimeout(this._openSubmenuTimeout)},highlight(item,options){const reason=(options=options||{}).reason||"unspecified";options.delay?(callSuper(this,"highlight",item),clearTimeout(this._openSubmenuTimeout),this._openSubmenuTimeout=setTimeout(this._doHighlight.bind(this,item,reason),300)):this.submenu?this.highlightedResult&&this.highlightedResult.id===item.id?this._doHighlight(item,reason):(clearTimeout(this._closeSubmenuTimeout),this._closeSubmenuTimeout=setTimeout(this._closeSubmenuAndHighlight.bind(this,item,reason),100)):(this.parentMenu&&this.parentMenu._closeSubmenuTimeout&&(clearTimeout(this.parentMenu._closeSubmenuTimeout),this.parentMenu._closeSubmenuTimeout=0),!1===options.openSubmenu?callSuper(this,"highlight",item):this._doHighlight(item,reason))},search(term){if(this.submenu){const searchInput=this.$(".selectivity-search-input");if(!searchInput||searchInput!==document.activeElement)return void this.submenu.search(term);this.submenu.close()}callSuper(this,"search",term)},selectHighlight(){this.submenu?this.submenu.selectHighlight():callSuper(this,"selectHighlight")},showResults(results,options){this.submenu&&options.dropdown!==this?this.submenu.showResults(results,options):(results.forEach((function setSelectable(item){item.children&&item.children.forEach(setSelectable),item.submenu&&(item.selectable=!!item.selectable)})),callSuper(this,"showResults",results,options))},triggerClose(){this.parentMenu?this.selectivity.triggerEvent("selectivity-close-submenu"):callSuper(this,"triggerClose")},triggerOpen(){this.parentMenu?this.selectivity.triggerEvent("selectivity-open-submenu"):callSuper(this,"triggerOpen")},_closeSubmenuAndHighlight(item,reason){this.submenu&&this.submenu.close(),this._doHighlight(item,reason)},_doHighlight(item,reason){callSuper(this,"highlight",item);const options=this.selectivity.options;if(!item.submenu||this.submenu||options.shouldOpenSubmenu&&!1===options.shouldOpenSubmenu(item,reason))return;const Dropdown=options.dropdown||Selectivity.Dropdown;if(Dropdown){const resultItems=this.el.querySelectorAll(".selectivity-result-item"),resultItem=findResultItem(resultItems,item.id),dropdownEl=this.el;this.submenu=new Dropdown(this.selectivity,{highlightFirstItem:!item.selectable,items:item.submenu.items||null,parentMenu:this,position(el,selectEl){if(item.submenu.positionDropdown)item.submenu.positionDropdown(el,selectEl,resultItem,dropdownEl);else{const rect=dropdownEl.getBoundingClientRect();let left=rect.right;const width=rect.width;left+width>document.body.clientWidth&&rect.left-width>0&&(left=rect.left-width+10);const submenuTop=resultItem.getBoundingClientRect().top,deltaUp=Math.min(Math.max(submenuTop+el.clientHeight-window.innerHeight,0),rect.top+rect.height);el.style.left=left+"px",el.style.top=submenuTop-deltaUp+"px",el.style.width=width+"px"}},query:item.submenu.query||null,showSearchInput:item.submenu.showSearchInput}),this.submenu.search("")}}});Selectivity.Dropdown=SubmenuPlugin,module.exports=SubmenuPlugin},{62:62,76:76,78:78}],74:[function(_dereq_,module,exports){const assign=_dereq_(40),Selectivity=_dereq_(76);function defaultTokenizer(input,selection,createToken,options){const createTokenItem=options.createTokenItem||function(token){return token?{id:token,text:token}:null},separators=options.tokenSeparators;function hasToken(input){return!!input&&separators.some(separator=>input.indexOf(separator)>-1)}function takeToken(input){for(let i=0,length=input.length;i-1)return{term:input.slice(0,i),input:input.slice(i+1)};return{}}for(;hasToken(input);){const token=takeToken(input);if(token.term){const item=createTokenItem(token.term);item&&!Selectivity.findById(selection,item.id)&&createToken(item)}input=token.input}return input}Selectivity.OptionListeners.push((selectivity,options)=>{options.tokenSeparators&&(options.allowedTypes=assign({tokenSeparators:"array"},options.allowedTypes),options.tokenizer=options.tokenizer||defaultTokenizer)})},{40:40,76:76}],75:[function(_dereq_,module,exports){_dereq_(62),_dereq_(64),_dereq_(65),_dereq_(66),_dereq_(67),_dereq_(68),_dereq_(69),_dereq_(70),_dereq_(71),_dereq_(72),_dereq_(73),_dereq_(74),_dereq_(77),window.Selectivity=_dereq_(76)},{62:62,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,76:76,77:77}],76:[function(_dereq_,module,exports){const assign=_dereq_(40),isString=_dereq_(54),EventListener=_dereq_(63),toggleClass=_dereq_(85);function Selectivity(options){this.dropdown=null,this.el=options.element,this.enabled=!options.readOnly&&!options.removeOnly,this.input=null,this.items=null,this.options={},this.templates=assign({},Selectivity.Templates),this.term="",this.setOptions(options),options.value?this.setValue(options.value,{triggerChange:!1}):this.setData(options.data||null,{triggerChange:!1}),this.el.setAttribute("tabindex",options.tabIndex||0),this.events=new EventListener(this.el,this),this.events.on({blur:this._blur,mouseenter:this._mouseenter,mouseleave:this._mouseleave,"selectivity-close":this._closed})}assign(Selectivity.prototype,{$(selector){return this.el.querySelector(selector)},close(){this._clearCloseTimeout(),this.dropdown&&(this.dropdown.close(),this.dropdown=null)},destroy(){this.events.destruct();const el=this.el;for(;el.firstChild;)el.removeChild(el.firstChild);el.selectivity=null},filterResults:results=>results,focus(){this._clearCloseTimeout(),this._focusing=!0,this.input&&this.input.focus(),this._focusing=!1},getData(){return this._data},getItemForId(id){const items=this.items;return items?Selectivity.findNestedById(items,id):null===id?null:{id:id,text:""+id}},getRelatedItemId(elementOrEvent){let el=elementOrEvent.target||elementOrEvent;for(;el&&!el.hasAttribute("data-item-id");)el=el.parentNode;if(!el)return null;const id=el.getAttribute("data-item-id");if(Selectivity.findById(this._data||[],id))return id;{let dropdown=this.dropdown;for(;dropdown;){if(Selectivity.findNestedById(dropdown.results,id))return id;dropdown=dropdown.submenu}const number=parseInt(id,10);return""+number===id?number:id}},getValue(){return this._value},initInput(input,options){this.input=input;const selectivity=this;(this.options.inputListeners||Selectivity.InputListeners).forEach(listener=>{listener(selectivity,input,options)}),options&&!1===options.search||input.addEventListener("keyup",event=>{event.defaultPrevented||selectivity.search(event.target.value)})},open(){if(this._opening||this.dropdown||!this.triggerEvent("selectivity-opening"))return;this._opening=!0;const Dropdown=this.options.dropdown||Selectivity.Dropdown;Dropdown&&(this.dropdown=new Dropdown(this,{items:this.items,position:this.options.positionDropdown,query:this.options.query,showSearchInput:!1!==this.options.showSearchInputInDropdown})),this.search(this.input.value),this.focus(),toggleClass(this.el,"open",!0),this._opening=!1},positionDropdown(){this.dropdown&&this.dropdown.position()},search(term){this.open(),this.dropdown&&this.dropdown.search(term)},setData(newData,options){options=options||{},newData=this.validateData(newData),this._data=newData,this._value=this.getValueForData(newData),!1!==options.triggerChange&&(Array.isArray(this._value)?this.rerenderSelection():this.triggerChange())},setOptions(options){options=options||{};const selectivity=this;Selectivity.OptionListeners.forEach(listener=>{listener(selectivity,options)}),"items"in options&&(this.items=options.items?Selectivity.processItems(options.items):null),"templates"in options&&assign(this.templates,options.templates),assign(this.options,options),this.enabled=!this.options.readOnly&&!this.options.removeOnly},setValue(newValue,options){options=options||{};const fn=function(item){if(item&&"string"!=typeof item){if(!this.options.idFunction)throw new Error("missing id function");return this.options.idFunction(item)}return item}.bind(this);let ids=Array.isArray(newValue)?newValue.map(fn):fn(newValue);ids=this.validateValue(ids),this._value=ids,this._value&&this.options.initSelection?this.options.initSelection(newValue,data=>{this._data=this.validateData(data),!1!==options.triggerChange&&this.triggerChange(),this.rerenderSelection()}):(this._data=this.getDataForValue(ids),!1!==options.triggerChange&&this.triggerChange())},template(templateName,options){const template=this.templates[templateName];if(!template)throw new Error("Unknown template: "+templateName);return"function"==typeof template?template(options):template.render?template.render(options):template.toString()},triggerChange(options){const data=assign({value:this._value,items:this._data},options);this.triggerEvent("change",data),this.triggerEvent("selectivity-change",data)},triggerEvent(eventName,data){const event=document.createEvent("Event");return event.initEvent(eventName,!1,!0),assign(event,data),this.el.dispatchEvent(event),!event.defaultPrevented},validateItem(item){if(item&&Selectivity.isValidId(item.id)&&isString(item.text))return item;throw new Error("Item should have id (number or string) and text (string) properties")},_blur(){this._focusing||this.el.classList.contains("hover")||(this._clearCloseTimeout(),this._closeTimeout=setTimeout(this.close.bind(this),166),this.input.value="")},_clearCloseTimeout(){this._closeTimeout&&(clearTimeout(this._closeTimeout),this._closeTimeout=0)},_closed(){this.dropdown=null,toggleClass(this.el,"open",!1)},_mouseleave(event){this.el.contains(event.relatedTarget)||toggleClass(this.el,"hover",!1)},_mouseenter(){toggleClass(this.el,"hover",!0)}}),Selectivity.Dropdown=null,Selectivity.InputListeners=[],Selectivity.Inputs={},Selectivity.OptionListeners=[],Selectivity.Templates={},Selectivity.findById=function(array,id){const index=Selectivity.findIndexById(array,id);return index>-1?array[index]:null},Selectivity.findIndexById=function(array,id){for(let i=0,length=array.length;i-1)result=item;else if(item.children){const matchingChildren=item.children.map(child=>Selectivity.matcher(child,term)).filter(child=>!!child);matchingChildren.length&&(result={id:item.id,text:item.text,children:matchingChildren})}return result},Selectivity.processItem=function(item){if(Selectivity.isValidId(item))return{id:item,text:""+item};if(item&&(Selectivity.isValidId(item.id)||item.children)&&isString(item.text))return item.children&&(item.children=Selectivity.processItems(item.children)),item;throw new Error("invalid item")},Selectivity.processItems=function(items){if(Array.isArray(items))return items.map(Selectivity.processItem);throw new Error("invalid items")},Selectivity.transformText=function(string){return string.toLowerCase()},module.exports=Selectivity},{40:40,54:54,63:63,85:85}],77:[function(_dereq_,module,exports){const escape=_dereq_(44),Selectivity=_dereq_(76);_dereq_(67);Selectivity.Templates={dropdown(options){let extraClass=options.dropdownCssClass?" "+options.dropdownCssClass:"",searchInput="";if(options.showSearchInput){extraClass+=" has-search-input";const placeholder=options.searchInputPlaceholder;searchInput=`
`}return`
${searchInput}
`},error:options=>`
${options.escape?escape(options.message):options.message}
`,loading:()=>`
${Selectivity.Locale.loading}
`,loadMore:()=>`
${Selectivity.Locale.loadMore}
`,multipleSelectInput:options=>`\n
\n ${options.enabled?'':'
'}\n
\n \n \n
\n `,multipleSelectedItem:options=>`${options.removable?'':""}${escape(options.text)}`,noResults:options=>`
${options.term?Selectivity.Locale.noResultsForTerm(options.term):Selectivity.Locale.noResults}
`,tagExists:()=>`
${Selectivity.Locale.tagExists}
`,resultChildren:options=>`
${options.childrenHtml}
`,resultItem:options=>`
${escape(options.text)}${options.submenu?'':""}
`,resultLabel:options=>`
${escape(options.text)}
`,singleSelectInput:options=>`\n
\n \n
\n \n \n
\n `,singleSelectPlaceholder:options=>`
${escape(options.placeholder)}
`,singleSelectedItem:options=>`${options.removable?'':""}${escape(options.text)}`,selectCompliance(options){const mode=options.mode;let name=options.name;return"multiple"===mode&&"[]"!==name.slice(-2)&&(name+="[]"),``},selectOptionCompliance:options=>``}},{44:44,67:67,76:76}],78:[function(_dereq_,module,exports){module.exports=function(resultItems,itemId){for(let i=0,length=resultItems.length;i + .selectivity-clearfix { + clear: both; + } + + .selectivity-input { + display: inline-block; + width: 250px; + } + + .selectivity-input select { + display: none; + } + + .selectivity-input:focus { + outline: none; + } + + .selectivity-placeholder { + color: #999; + } + + /** + * Dropdown + */ + .selectivity-dropdown { + background: var(--nuxeo-dropdown-list-background, #fff); + border-radius: 4px; + -webkit-box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.15), 0 10px 16px 0 rgba(0, 0, 0, 0.2); + box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.15), 0 10px 16px 0 rgba(0, 0, 0, 0.2); + position: fixed; + z-index: 9999; + word-break: break-all; + } + + .selectivity-search-input-container { + border-bottom: 1px solid #eee; + } + + .selectivity-search-input { + background: transparent; + border: 0; + outline: 0; + width: 100%; + color: var(--nuxeo-text-default, #3a3a54); + } + + .selectivity-results-container { + max-height: 28em; + overflow: auto; + position: relative; + } + + .selectivity-load-more, + .selectivity-result-item { + cursor: pointer; + padding: 7px; + } + + .selectivity-result-children .selectivity-result-item { + padding-left: 17px; + } + + .selectivity-load-more.highlight, + .selectivity-result-item.highlight { + background: var(--nuxeo-primary-color); + color: #fff; + } + + .selectivity-result-item.disabled { + cursor: default; + color: #999; + } + + .selectivity-result-item:first-child { + border-radius: 4px 4px 0 0; + } + + .selectivity-dropdown.has-search-input .selectivity-result-item:first-child { + border-radius: 0; + } + + .selectivity-result-label { + font-weight: bold; + } + + .selectivity-load-more, + .selectivity-result-item:last-child, + .selectivity-result-children:last-child .selectivity-result-item:last-child { + border-radius: 0 0 4px 4px; + } + + .selectivity-result-children .selectivity-result-item:last-child { + border-radius: 0; + } + + .selectivity-error, + .selectivity-loading, + .selectivity-search-input-container, + .selectivity-result-label { + padding: 7px; + } + + /** + * Multi-selection input + */ + .selectivity-multiple-input-container { + cursor: text; + min-height: 26px; + position: relative; + padding-top: 5px; + } + + .selectivity-multiple-input, + input[type='text'].selectivity-multiple-input { + height: 100%; + background-color: transparent; + border: none; + float: left; + font: inherit; + max-width: 100%; + outline: 0; + padding: 0; + padding-top: 1px; + color: var(--nuxeo-text-default, #3a3a54); + } + + .selectivity-multiple-input:focus, + input[type='text'].selectivity-multiple-input:focus { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; + outline: none; + } + + .selectivity-multiple-input::placeholder { + color: #999; + } + + .selectivity-multiple-selected-item { + background: none var(--nuxeo-tag-background, #fff); + border-radius: 3px; + cursor: default; + float: left; + line-height: 2em; + margin: 2px; + padding: 0 5px; + position: relative; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + user-select: none; + white-space: nowrap; + @apply --nuxeo-tag; + } + + .selectivity-multiple-selected-item.highlighted { + background-color: #ccc; + } + + .selectivity-multiple-selected-item-remove, .selectivity-single-selected-item-remove { + color: #000; + cursor: pointer; + margin-left: -5px; + padding: 5px; + } + + /** + * Single-selection input + */ + #input[readonly] .selectivity-caret { + display: none; + } + + .selectivity-single-select { + display: flex; + cursor: pointer; + min-height: 31px; + position: relative; + } + + #input:focus { + outline: 0; + } + + /** + * XXX - This ensures the input is reachable through tab navigation + */ + .selectivity-single-select-input { + position: absolute; + opacity: 0; + pointer-events: none; + } + + .selectivity-single-result-container { + display: flex; + align-items: center; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .selectivity-single-selected-item { + color: #000; + margin: 2px 2px 0px 2px; + @apply --nuxeo-tag; + } + + .selectivity-caret { + position: absolute; + top: 12px; + right: 0; + } + + @media only screen and (max-device-width: 480px) { + .selectivity-single-result-container { + right: 5px; + } + + .selectivity-caret { + display: none; + } + } + + /** + * Submenu + */ + .selectivity-submenu-icon { + position: absolute; + right: 4px; + } + + .selectivity-remove:before, + .fa-close:before, + .fa-times:before { + content: "\\00d7"; + color: var(--nuxeo-text-default, #3a3a54); + } + + /* We need to hide overflow-x explicitly here in order to have auto overflow on Y axis */ + :host { + height: 100%; + min-height: 100%; + display: block; + position: relative; + padding-bottom: 8px; + overflow-x: hidden; + overflow-y: auto; + } + + :host([hidden]) { + display: none; + } + + :host([invalid]) .label, + .error { + color: var(--paper-input-container-invalid-color, #de350b); + } + + :host([invalid]) .error { + opacity: 1; + font-size: .923rem; + } + + .label { + @apply --nuxeo-label; + } + + .label[required]::after { + display: inline-block; + content: '*'; + margin-left: 4px; + color: var(--paper-input-container-invalid-color, #de350b); + } + + .preserve-white-space { + white-space: pre; + } + + .underline { + height: 1px; + width: 100%; + position: absolute; + bottom: 0; + background-color: #3a3a54; + } + + #input[readonly] .underline { + background-color: transparent; + } + + #input.open .underline, + #input:focus .underline { + height: 2px; + background-color: var(--nuxeo-primary-color, #0066ff); + } + + + + + + +
+ + + `}connectedCallback(){super.connectedCallback();const options={searchFloor:this.minChars,tokenSeparators:[this.separator],width:"100%",readOnly:this.readonly,backspaceHighlightsBeforeDelete:!0,initSelection:(value,callback)=>{if(!value)return;const prep=item=>{const id=this.idFunction(item);return{id:id,text:id,item:item}};this.initSelection(value,selection=>{callback(this.multiple?selection.map(prep):prep(selection))})},idFunction:value=>this.idFunction(value),templates:{resultItem:opts=>`
${this.resultFormatter(opts.item)}
`,resultLabel:opts=>`
${escapeHTML(opts.text)}
`,singleSelectedItem:opts=>`${opts.removable?``:""}${this.selectionFormatter(opts.item||opts)}`,multipleSelectedItem:opts=>`${opts.removable?``:""}${this.selectionFormatter(opts.item||opts)}`}},InputType=Selectivity.Inputs[this.multiple?"Multiple":"Single"];options.element=this.$.input,options.closeOnSelect=!this.stayOpenOnSelect,this.readonly||(options.placeholder=this.placeholder,options.allowClear=!this.required&&!this.multiple),this.data&&(options.items=this._wrap(this.data)),options.query=query=>{query.term.length{this._query(query)})},this.multiple&&this.tagging&&(options.createTokenItem=term=>this._wrap(this.newEntryFormatter(term))),this._updateSelectionHandler=this._updateSelection.bind(this),this.$.input.addEventListener("selectivity-change",this._updateSelectionHandler),this._selectivity=new InputType(options);const self=this;Selectivity.Locale={get loading(){return self.i18n("selectivity.loading")},get loadMore(){return self.i18n("selectivity.loadMore")},get noResults(){return self.i18n("selectivity.noResults")},get tagExists(){return self.i18n("selectivity.tagExists")},ajaxError:term=>term?this.i18n("selectivity.failedFetchResultsForTerm",`${escapeHTML(term)}`):this.i18n("selectivity.failedFetchResults"),needMoreCharacters:numCharacters=>this.i18n("selectivity.minChars",numCharacters),noResultsForTerm:term=>this.i18n("selectivity.noResultsForTerm",`${escapeHTML(term)}`)},(this.value||this.selectedItem||this.selectedItems)&&setTimeout(()=>{this._valueChanged(this.value||this.selectedItem||this.selectedItems)},100),this.scopeSubtree(this.$.input,!0),this._scrollParent=this._getScrollParent(),this._scrollParent.addEventListener("scroll",this._updateDropdownPosition.bind(this)),this._visibilityObserver=new IntersectionObserver(entries=>{if(entries&&entries.length>0){0===entries[0].intersectionRatio&&this._selectivity.close()}},{root:this._scrollParent,rootMargin:"0px",threshold:0}),this._visibilityObserver.observe(this),this._readonlyChanged()}disconnectedCallback(){this.$.input.removeEventListener("selectivity-change",this._updateSelectionHandler),this._updateSelectionHandler=null,this._selectivity.destroy(),this._selectivity=null,this._visibilityObserver.unobserve(this),this._scrollParent.removeEventListener("scroll",this._updateDropdownPosition.bind(this)),super.disconnectedCallback()}_updateDropdownPosition(){this._selectivity&&this._selectivity.positionDropdown()}escapeHTML(...args){return escapeHTML(...args)}_getValidity(){return!this.required||(this.multiple?!!this.value&&this.value.length>0:!!this.value)}_initSelection(value,callback){return this.multiple?callback(value.map(this.resolveEntry.bind(this))):callback(this.resolveEntry(value))}_resolveEntry(entry){if(!this.data)return{id:this.idFunction(entry),displayLabel:this.resultFormatter(entry)};for(let i=0;i{items.push(el.item?el.item:el)}),this.selectedItems=items}else this.set("selectedItem",e.items?e.items.item:null);this._inUpdateSelection=!1,e.added?this.addedEntryHandler&&this.addedEntryHandler(e.added):e.removed&&this.removedEntryHandler&&this.removedEntryHandler(e.removed)}_valueChanged(newValue){if(this._selectivity&&!this._inUpdateSelection)if(newValue)this._selectivity.setValue(newValue,{triggerChange:!1});else{const cv=this._selectivity.getValue();(this.multiple&&cv.length>0||!this.multiple&&cv)&&this._selectivity.clear()}}_dataChanged(){if(this._selectivity){this._selectivity.setOptions({items:this._wrap(this.data)});const selectivityData=this._selectivity.getData(),newData=this._wrap(this.data).filter(obj=>selectivityData.some(item=>item.id===obj.id));0!==newData.length&&JSON.stringify(newData)!==JSON.stringify(selectivityData)&&this._selectivity.setData(newData)}}_placeholderChanged(){this.$.input.setAttribute("placeholder",this.placeholder);const multipleInput=this.shadowRoot.querySelector(".selectivity-multiple-input");if(this.multiple&&multipleInput)multipleInput.setAttribute("placeholder",this.placeholder);else{const singleInputPlaceholder=this.shadowRoot.querySelector(".selectivity-placeholder");!this.multiple&&singleInputPlaceholder&&(singleInputPlaceholder.innerText=this.placeholder)}}_readonlyChanged(){this._selectivity&&this._selectivity.setOptions({readOnly:this.readonly,placeholder:this.placeholder})}_idFunction(item){const id=["computeId","uid","id"].find(key=>item.hasOwnProperty(key));return id?item[id]:item}_newEntryFormatter(term){return{id:term,displayLabel:term}}_selectionFormatter(item){return escapeHTML(item.displayLabel||item.title||item.text||item)}_resultFormatter(item){return escapeHTML(item.displayLabel||item.title||item.text||item)}_wrap(value){const fn=(item,level)=>{const depth=level||0,id=this.idFunction(item),entry={id:id,text:item.displayLabel||item.text||id||"",item:item,depth:depth};return item.children&&(entry.children=item.children.map(child=>fn(child,depth+1))),entry};return Array.isArray(value)?value.map(item=>fn(item)):fn(value)}_triggerQueryCallback(query,results){if(this.queryResultsFilter&&(results=results.filter(this.queryResultsFilter)),this.tagging&&query.term){results.some(item=>item.id===query.term)||results.push(this.newEntryFormatter(query.term))}query.callback({results:this._wrap(results)})}_query(query){if(this.data)return this._triggerQueryCallback(query,this.data);if(!this.operation)return this._triggerQueryCallback(query,[]);const params=this.params||{};params.searchTerm=query.term,this.$.op.params=params,this.$.op.execute().then(response=>{let results=Array.isArray(response.entries)?response.entries:response;this._triggerQueryCallback(query,results)})}_getScrollParent(){let scrollParent=document.body,style=getComputedStyle(this);const excludeStaticParent="absolute"===style.position,overflowRegex=/(auto|scroll)/;if("fixed"!==style.position){let parent=this;for(;parent;){if(parent.parentElement)parent=parent.parentElement;else{if(!parent.getRootNode())break;parent=parent.getRootNode().host}if(parent&&(style=getComputedStyle(parent),(!excludeStaticParent||"static"!==style.position)&&overflowRegex.test(style.overflow+style.overflowY+style.overflowX))){scrollParent=parent;break}}}return scrollParent}}customElements.define(SelectivityElement.is,SelectivityElement),Nuxeo.Selectivity=SelectivityElement}function escapeHTML(markup){const replaceMap={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof markup?markup:String(markup).replace(/[&<>"'/\\]/g,match=>replaceMap[match])}}).call(this,__webpack_require__(48),__webpack_require__(27)(module))},1674:function(module,exports,__webpack_require__){var map={"./document/file/nuxeo-file-edit-layout.html":[1714,3],"./document/file/nuxeo-file-metadata-layout.html":[1715,4],"./document/file/nuxeo-file-view-layout.html":[1716,5],"./document/picture/nuxeo-picture-edit-layout.html":[1717,6],"./search/picker/nuxeo-picker-search-form.html":[1718,7],"./search/picker/nuxeo-picker-search-results.html":[1719,8],"./search/test/nuxeo-test-search-form.html":[1720,9],"./search/test/nuxeo-test-search-results.html":[1721,10]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return __webpack_require__.e(ids[1]).then((function(){return __webpack_require__(id)}))}webpackAsyncContext.keys=function webpackAsyncContextKeys(){return Object.keys(map)},webpackAsyncContext.id=1674,module.exports=webpackAsyncContext},1675:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24),__webpack_require__(49),__webpack_require__(654),__webpack_require__(94);var _templateObject,_storybook_polymer__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(12),lit_html__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3),_code_panel_template_js__WEBPACK_IMPORTED_MODULE_9__=(__webpack_require__(818),__webpack_require__(143));var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { html } from 'lit-html';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-document-picker/nuxeo-document-picker.js';\nimport { codePanelTemplate } from '../code-panel-template.js';\n\nwindow.nuxeo.I18n.en['pickerSearch.title'] = 'Quick Search';\nwindow.nuxeo.I18n.en['searchResults.noResults'] = 'No documents match the search criteria.';\n\nstoriesOf('UI/nuxeo-document-picker', module).add(\n 'nuxeo-document-picker',\n () => html`\n \n {\n const picked = e.detail.selectedItems;\n const span = e.target.parentElement.querySelector('span.info');\n span.innerText = `${picked.length} document(s) picked (${picked.map((doc) => doc.title).join(', ')})`;\n }}\"\n >\n \n No documents picked.\n ${codePanelTemplate('search/picker/nuxeo-picker-search-form.html')}\n ${codePanelTemplate('search/picker/nuxeo-picker-search-results.html')}\n `,\n);\n"),__ADDS_MAP__={"ui-nuxeo-document-picker--nuxeo-document-picker":{startLoc:{col:2,line:10},endLoc:{col:3,line:45},startBody:{col:2,line:11},endBody:{col:3,line:45}}};window.nuxeo.I18n.en["pickerSearch.title"]="Quick Search",window.nuxeo.I18n.en["searchResults.noResults"]="No documents match the search criteria.",Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_6__.storiesOf)("UI/nuxeo-document-picker",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-document-picker.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-document-picker",{})).add("nuxeo-document-picker",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_7__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n \n \n No documents picked.\n ',"\n ","\n "])),(function(e){var picked=e.detail.selectedItems;e.target.parentElement.querySelector("span.info").innerText="".concat(picked.length," document(s) picked (").concat(picked.map((function(doc){return doc.title})).join(", "),")")}),(function(e){return e.target.parentElement.querySelector("nuxeo-document-picker").open()}),Object(_code_panel_template_js__WEBPACK_IMPORTED_MODULE_9__.a)("search/picker/nuxeo-picker-search-form.html"),Object(_code_panel_template_js__WEBPACK_IMPORTED_MODULE_9__.a)("search/picker/nuxeo-picker-search-results.html"))}))}.call(this,__webpack_require__(27)(module))},1676:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),lit_html__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3);__webpack_require__(1711);var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { html } from 'lit-html';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-html-editor';\n\nstoriesOf('UI/nuxeo-html-editor', module).add(\n 'nuxeo-html-editor',\n () => html`\n \n
\n \n
\n `,\n);\n"),__ADDS_MAP__={"ui-nuxeo-html-editor--nuxeo-html-editor":{startLoc:{col:2,line:6},endLoc:{col:3,line:17},startBody:{col:2,line:7},endBody:{col:3,line:17}}};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__.storiesOf)("UI/nuxeo-html-editor",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-html-editor.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-html-editor",{})).add("nuxeo-html-editor",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_4__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n
\n \n
\n '])))}))}.call(this,__webpack_require__(27)(module))},1683:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(94),__webpack_require__(73),__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,lit_html__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_storybook_polymer__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(12),_lists_icons_js__WEBPACK_IMPORTED_MODULE_10__=(__webpack_require__(86),__webpack_require__(74),__webpack_require__(306),__webpack_require__(196));var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,'import { html } from \'lit-html\';\nimport { storiesOf } from \'@storybook/polymer\';\nimport \'@polymer/polymer/lib/elements/dom-repeat.js\';\nimport \'@nuxeo/nuxeo-ui-elements/nuxeo-icons.js\';\nimport \'@nuxeo/nuxeo-ui-elements/widgets/nuxeo-card.js\';\nimport iconMap from \'../../lists/icons.js\';\n\nconst items = Object.keys(iconMap).map((key) => {\n return { name: key, icons: iconMap[key] };\n});\n\nstoriesOf(\'UI/nuxeo-icons\', module).add(\n \'Icon catalogue\',\n () => html`\n \n \n \n \n \n `,\n);\n'),__ADDS_MAP__={"ui-nuxeo-icons--icon-catalogue":{startLoc:{col:2,line:13},endLoc:{col:3,line:45},startBody:{col:2,line:14},endBody:{col:3,line:45}}},items=Object.keys(_lists_icons_js__WEBPACK_IMPORTED_MODULE_10__.a).map((function(key){return{name:key,icons:_lists_icons_js__WEBPACK_IMPORTED_MODULE_10__.a[key]}}));Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_6__.storiesOf)("UI/nuxeo-icons",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-icons.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-icons",{})).add("Icon catalogue",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_5__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n \n \n \n \n '])),items)}))}.call(this,__webpack_require__(27)(module))},1684:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),lit_html__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3);__webpack_require__(222);var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { boolean, color, number, select, text } from '@storybook/addon-knobs';\nimport { html } from 'lit-html';\nimport '@nuxeo/nuxeo-ui-elements/widgets/nuxeo-input';\n\nstoriesOf('UI/nuxeo-input', module).add('nuxeo-input', () => {\n const listOfTypes = ['email', 'number', 'password', 'tel', 'text', 'url'];\n const type = select('Type', listOfTypes, 'text');\n const label = text('Label', 'Label');\n const placeholder = text('Placeholder', 'Placeholder');\n const errorMessage = text('Error message', '');\n const readOnly = boolean('readonly', false);\n const disabled = boolean('Disabled', false);\n const required = boolean('Required', false);\n const invalid = boolean('Invalid', false);\n const autoFocus = boolean('Autofocus', false);\n const minLength = number('minlength', 0);\n const maxLength = number('maxLength', 10);\n const min = number('min', 0);\n const max = number('max', 100);\n const step = number('Step', 1);\n const invalidColor = color('--paper-input-container-invalid-color', '#de350b', 'CSS variables');\n\n return html`\n \n \n \n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-input--nuxeo-input":{startLoc:{col:40,line:6},endLoc:{col:1,line:50},startBody:{col:55,line:6},endBody:{col:1,line:50}}};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__.storiesOf)("UI/nuxeo-input",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-input.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-input",{})).add("nuxeo-input",(function(){var type=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.select)("Type",["email","number","password","tel","text","url"],"text"),label=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.text)("Label","Label"),placeholder=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.text)("Placeholder","Placeholder"),errorMessage=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.text)("Error message",""),readOnly=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("readonly",!1),disabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("Disabled",!1),required=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("Required",!1),invalid=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("Invalid",!1),autoFocus=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.boolean)("Autofocus",!1),minLength=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.number)("minlength",0),maxLength=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.number)("maxLength",10),min=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.number)("min",0),max=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.number)("max",100),step=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.number)("Step",1),invalidColor=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_4__.color)("--paper-input-container-invalid-color","#de350b","CSS variables");return Object(lit_html__WEBPACK_IMPORTED_MODULE_5__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n \n \n \n '])),invalidColor,type,placeholder,errorMessage,autoFocus,readOnly,disabled,required,minLength,maxLength,min,max,step,invalid,label)}))}.call(this,__webpack_require__(27)(module))},1685:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_templateObject2,_templateObject3,lit_html__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2),_storybook_analysis__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(169),_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(33);__webpack_require__(1686),__webpack_require__(1687);function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { html } from 'lit-html';\nimport { storiesOf } from '@storybook/polymer';\nimport { boolean, button, number } from '@storybook/addon-knobs';\nimport { analyse } from '../../../.storybook/analysis';\nimport { LIST } from '../../data/lists.data.js';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-justified-grid/nuxeo-justified-grid.js';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-justified-grid/nuxeo-justified-grid-item.js';\n\nconst docs = analyse('nuxeo-justified-grid').notes;\n\nconst stories = storiesOf('UI/nuxeo-justified-grid', module);\n\nconst server = window.nuxeo.mock;\n\nstories\n .add(\n 'Empty',\n () =>\n html`\n \n `,\n { notes: { markdown: docs } },\n )\n .add(\n 'Default',\n () => {\n const numberOfItems = number('Number of items', 50);\n button('Refresh grid', () => {\n const grid = document.querySelector('nuxeo-justified-grid');\n grid.reset();\n grid.fetch();\n });\n server.respondWith('GET', '/api/v1/search/pp/default_search/execute', {\n 'entity-type': 'documents',\n entries: LIST(numberOfItems).data,\n currentPage: 1,\n numberOfPages: 1,\n resultsCount: numberOfItems,\n offset: 0,\n pageSize: numberOfItems,\n isPreviousPageAvailable: false,\n currentPageSize: numberOfItems,\n });\n return html`\n \n\n \n \n\n \n \n \n `;\n },\n { notes: { markdown: docs } },\n )\n .add(\n 'Selection',\n () => {\n const numberOfItems = number('Number of items', 50);\n const selectionEnabled = boolean('Selection Enabled', true);\n const multiSelection = boolean('Multi selection', false);\n server.respondWith('GET', '/api/v1/search/pp/default_search/execute', {\n 'entity-type': 'documents',\n entries: LIST(numberOfItems).data,\n currentPage: 1,\n numberOfPages: 1,\n resultsCount: numberOfItems,\n offset: 0,\n pageSize: numberOfItems,\n isPreviousPageAvailable: false,\n currentPageSize: numberOfItems,\n });\n button('Refresh grid', () => {\n const grid = document.querySelector('nuxeo-justified-grid');\n grid.reset();\n grid.fetch();\n });\n return html`\n \n\n \n \n\n \n \n \n `;\n },\n { notes: { markdown: docs } },\n );\n"),__ADDS_MAP__={},docs=Object(_storybook_analysis__WEBPACK_IMPORTED_MODULE_6__.a)("nuxeo-justified-grid").notes,stories=Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__.storiesOf)("UI/nuxeo-justified-grid",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-justified-grid.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-justified-grid",{})),server=window.nuxeo.mock;stories.add("Empty",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n \n "])))}),{notes:{markdown:docs}}).add("Default",(function(){var numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.number)("Number of items",50);return Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.button)("Refresh grid",(function(){var grid=document.querySelector("nuxeo-justified-grid");grid.reset(),grid.fetch()})),server.respondWith("GET","/api/v1/search/pp/default_search/execute",{"entity-type":"documents",entries:Object(_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__.a)(numberOfItems).data,currentPage:1,numberOfPages:1,resultsCount:numberOfItems,offset:0,pageSize:numberOfItems,isPreviousPageAvailable:!1,currentPageSize:numberOfItems}),Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n \n\n \n \n\n \n \n \n '])),numberOfItems)}),{notes:{markdown:docs}}).add("Selection",(function(){var numberOfItems=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.number)("Number of items",50),selectionEnabled=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.boolean)("Selection Enabled",!0),multiSelection=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.boolean)("Multi selection",!1);return server.respondWith("GET","/api/v1/search/pp/default_search/execute",{"entity-type":"documents",entries:Object(_data_lists_data_js__WEBPACK_IMPORTED_MODULE_7__.a)(numberOfItems).data,currentPage:1,numberOfPages:1,resultsCount:numberOfItems,offset:0,pageSize:numberOfItems,isPreviousPageAvailable:!1,currentPageSize:numberOfItems}),Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.button)("Refresh grid",(function(){var grid=document.querySelector("nuxeo-justified-grid");grid.reset(),grid.fetch()})),Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(['\n \n\n \n \n\n \n \n \n '])),numberOfItems,selectionEnabled,multiSelection)}),{notes:{markdown:docs}})}.call(this,__webpack_require__(27)(module))},1686:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_polymer_polymer_lib_legacy_templatizer_behavior_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(106),_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_6__=(__webpack_require__(307),__webpack_require__(55)),_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_13__=(__webpack_require__(308),__webpack_require__(10),__webpack_require__(47),__webpack_require__(505),__webpack_require__(38),__webpack_require__(86),__webpack_require__(19)),_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(39),_nuxeo_page_provider_display_behavior_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(170),_nuxeo_routing_behavior_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(141);{class JustifiedGrid extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_3__.b)([_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_6__.a,_polymer_polymer_lib_legacy_templatizer_behavior_js__WEBPACK_IMPORTED_MODULE_4__.a,_nuxeo_page_provider_display_behavior_js__WEBPACK_IMPORTED_MODULE_15__.a,_nuxeo_routing_behavior_js__WEBPACK_IMPORTED_MODULE_16__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + +
+ + + + + + + +
+ `}static get is(){return"nuxeo-justified-grid"}static get properties(){return{rowHeight:{type:Number,value:196},page:{type:Number,value:1},pageSize:{type:Number,value:50},rows:{type:Array,value:[]},_isFetching:{type:Boolean,value:!1},_templateElement:{type:Object}}}static get observers(){return["_selectedItemsChanged(selectedItems.splices)"]}ready(){super.ready();const template=Object(_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_1__.a)(this).querySelector("template");template&&(this.templatize(template),this._templateElement=this.stamp().root.firstElementChild)}disconnectedCallback(){super.disconnectedCallback(),this._templateElement=null}_itemChanged(item){this._templateElement&&item&&item._view&&Object(_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_14__.a)(this,()=>{const el=this.$$("#item-"+item._view.index);if(el)if(el.childNodes.length>0)el.childNodes[0].set("document",item);else{const clone=this._templateElement.cloneNode(!0);clone.set("document",item),el.appendChild(clone)}})}reset(size){this.set("items",[]),this.set("rows",[]),this.page=1,this.$.scrollThreshold.clearTriggers(),this._reset(size)}fetch(){return this._fetchNewPage(!0)}_fetchNewPage(reset){return this._isFetching||!this._hasPageProvider()||this.page>this.nxProvider.numberOfPages?(reset||this.$.scrollThreshold.clearTriggers(),this._isFetching=!1,Promise.resolve()):(this._isFetching=!0,this.page=reset?1:this.page,this._fetchPage(this.page,this.pageSize).then(response=>{this._addItems(response.entries),reset&&1!==this.page||(this.page+=1,this.$.scrollThreshold.clearTriggers()),this._isFetching=!1}))}_scrollChanged(){return this._debouncer=_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_13__.a.debounce(this._debouncer,_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__.d.after(this.scrollThrottle>0?this.scrollThrottle:1),()=>this._fetchNewPage(!1)),this._fetchNewPage(!1)}getSelectedItems(){return this.$.selector.selected}selectItem(item){this.selectionEnabled&&(this.$.selector.select(item),this._updateFlags())}selectIndex(index){this.selectionEnabled&&(this.$.selector.selectIndex(index),this._updateFlags())}selectItems(items){this.selectionEnabled&&items&&items.length>0&&(items.forEach(item=>this.$.selector.select(item)),this._updateFlags())}deselectItem(item){this.selectionEnabled&&!this.selectAllActive&&(this.$.selector.deselect(item),this._updateFlags())}deselectIndex(index){this.selectionEnabled&&!this.selectAllActive&&(this.$.selector.deselectIndex(index),this._updateFlags())}clearSelection(){this._isSelectAllActive=!1,this.$.selector.clearSelection(),this._updateFlags()}_check(e){this.selectionEnabled&&!this.selectAllActive?(this.selectionMode=!0,this._click(e)):(e.preventDefault(),e.stopPropagation())}_click(e){const{index:index}=e.model.item._view;this.selectionEnabled&&this.selectionMode&&!this.selectAllActive?this._isIndexSelected(index)?this.deselectIndex(index):this.selectIndex(index):this.dispatchEvent(new CustomEvent("navigate",{composed:!0,bubbles:!0,detail:{doc:this.items[index],index:index}})),e.stopPropagation()}_selectedItemsChanged(){this.selectionMode=this.selectedItems&&this.selectedItems.length>0}_isSelected(item){return this._isIndexSelected(item._view.index)}_isIndexSelected(index){return this.selectedItems.indexOf(this.items[index])>-1}_addItems(newItems){let items=newItems;if(this.rows.length>0){items=this.rows[this.rows.length-1].map(item=>this.items[item._view.index]).concat(items),this.pop("rows")}this._computeRows(items).forEach(row=>this.push("rows",row)),this.$.scrollThreshold.clearTriggers()}_computeRows(items){const gridWidth=this.$.list.offsetWidth,rows=[];let currentRowWidth=0,currentRow=[];return items.filter(item=>0!==Object.keys(item).length).forEach((item,idx)=>{const clone=Object.assign({},item);clone.size=clone.properties["picture:info"]||{width:1,height:1},clone.size.width=clone.size.width||1,clone.size.height=clone.size.height||1,clone._view={},clone._view.index=this.items.indexOf(item),clone._view.width=clone.size.width*this.rowHeight/clone.size.height,clone._view.height=this.rowHeight,currentRowWidth+clone._view.width<=gridWidth?(currentRow.push(clone),currentRowWidth+=clone._view.width):(rows.push(this._fitItemsToWidth(currentRow,currentRowWidth,gridWidth)),currentRow=[clone],currentRowWidth=clone._view.width),idx===items.length-1&&rows.push(this._fitItemsToWidth(currentRow,currentRowWidth,gridWidth))}),rows}_fitItemsToWidth(currentRow,currentRowWidth,gridWidth){const computedHeight=gridWidth*this.rowHeight/currentRowWidth;return currentRow.forEach(item=>{item._view.height=computedHeight,item._view.width=item._view.width/currentRowWidth*gridWidth}),currentRow}_resize(){(this.$.list.offsetWidth||this.$.list.offsetHeight)&&(this._debouncer=_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_13__.a.debounce(this._debouncer,_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__.d.after(150),()=>{this.rows=this._computeRows(this.items)}))}}customElements.define(JustifiedGrid.is,JustifiedGrid),Nuxeo.JustifiedGrid=JustifiedGrid}},1687:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(10);var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0);__webpack_require__(811);{class JustifiedGridItem extends Nuxeo.Element{static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__.a` + + +
+ +
[[document.title]]
+
+ `}static get is(){return"nuxeo-justified-grid-item"}static get properties(){return{document:Object}}_url(doc){return doc&&doc.contextParameters&&doc.contextParameters.thumbnail&&doc.contextParameters.thumbnail.url?doc.contextParameters.thumbnail.url:""}}customElements.define(JustifiedGridItem.is,JustifiedGridItem),Nuxeo.JustifiedGridItem=JustifiedGridItem}},1688:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,lit_html__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12),_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2);__webpack_require__(1689);var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { html } from 'lit-html';\nimport { storiesOf } from '@storybook/polymer';\nimport { number } from '@storybook/addon-knobs';\nimport '@nuxeo/nuxeo-ui-elements/nuxeo-pagination-controls.js';\n\nstoriesOf('UI/nuxeo-pagination-controls', module).add('Nuxeo pagination', () => {\n const numberOfPages = number('Number of pages', 5);\n return html`\n \n \n `;\n});\n"),__ADDS_MAP__={"ui-nuxeo-pagination-controls--nuxeo-pagination":{startLoc:{col:54,line:6},endLoc:{col:1,line:16},startBody:{col:74,line:6},endBody:{col:1,line:16}}};Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_4__.storiesOf)("UI/nuxeo-pagination-controls",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-pagination-controls.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-pagination-controls",{})).add("Nuxeo pagination",(function(){var numberOfPages=Object(_storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_5__.number)("Number of pages",5);return Object(lit_html__WEBPACK_IMPORTED_MODULE_3__.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n \n '])),numberOfPages)}))}.call(this,__webpack_require__(27)(module))},1689:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(1690),__webpack_require__(103),__webpack_require__(10),__webpack_require__(47),__webpack_require__(64),__webpack_require__(310);var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0);{class PaginationControls extends Nuxeo.Element{static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_6__.a` + + +
+ + + + +
+ + + / [[numberOfPages]] +
+ + + + +
+ `}static get is(){return"nuxeo-pagination-controls"}static get properties(){return{page:{type:Number,value:1,notify:!0},numberOfPages:Number}}_previous(){this.page--}_next(){this.page++}_first(){this.page=1}_last(){this.page=this.numberOfPages}_isFirst(page){return 1===page}_isLast(page){return page===this.numberOfPages}_computePageOptions(numberOfPages){return Array.from({length:numberOfPages},(x,i)=>i+1)}}customElements.define(PaginationControls.is,PaginationControls),Nuxeo.PaginationControls=PaginationControls}},169:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return analyse}));__webpack_require__(44),__webpack_require__(31),__webpack_require__(45),__webpack_require__(85),__webpack_require__(73),__webpack_require__(46),__webpack_require__(59),__webpack_require__(66),__webpack_require__(150),__webpack_require__(94);var _storybook_addon_knobs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(2),_nuxeo_nuxeo_ui_elements_analysis_json__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(820),ELEMENTS={};_nuxeo_nuxeo_ui_elements_analysis_json__WEBPACK_IMPORTED_MODULE_11__.elements.forEach((function(el){ELEMENTS[el.tagname]=el}));var knobFor=function(prop){var overrides=1 html`\n
\n \n
\n ${codePanelTemplate('search/test/nuxeo-test-search-form.html')}\n `,\n )\n .add(\n 'Missing layout',\n () => html`\n \n `,\n );\n"),__ADDS_MAP__={"ui-nuxeo-search-form-layout--missing-layout":{startLoc:{col:4,line:31},endLoc:{col:5,line:38},startBody:{col:4,line:32},endBody:{col:5,line:38}},"ui-nuxeo-search-form-layout--default":{startLoc:{col:4,line:18},endLoc:{col:5,line:28},startBody:{col:4,line:19},endBody:{col:5,line:28}}};window.Polymer=_polymer_polymer_lib_legacy_polymer_fn_js__WEBPACK_IMPORTED_MODULE_6__.a,window.Nuxeo.LayoutBehavior=_nuxeo_nuxeo_ui_elements_nuxeo_layout_behavior_js__WEBPACK_IMPORTED_MODULE_5__.a,window.nuxeo.I18n.en["defaultSearch.fullText"]="Full Text",window.nuxeo.I18n.en["defaultSearch.fullText.placeholder"]="Search for something...",window.nuxeo.I18n.en["defaultSearch.modifiedDate"]="Modification Date",Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__.storiesOf)("UI/nuxeo-search-form-layout",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-search-form-layout.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-search-form-layout",{})).add("Default",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_4__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n
\n \n
\n ',"\n "])),Object(_code_panel_template_js__WEBPACK_IMPORTED_MODULE_10__.a)("search/test/nuxeo-test-search-form.html"))})).add("Missing layout",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_4__.html)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n \n '])))}))}.call(this,__webpack_require__(27)(module))},1692:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var _templateObject,_templateObject2,_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),lit_html__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_nuxeo_nuxeo_ui_elements_nuxeo_layout_behavior_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(229),_polymer_polymer_lib_legacy_polymer_fn_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_code_panel_template_js__WEBPACK_IMPORTED_MODULE_8__=(__webpack_require__(810),__webpack_require__(143));function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withSourceLoader=__webpack_require__(14).withSource,__STORY__=(__webpack_require__(14).addSource,"import { storiesOf } from '@storybook/polymer';\nimport { html } from 'lit-html';\nimport { LayoutBehavior } from '@nuxeo/nuxeo-ui-elements/nuxeo-layout-behavior.js';\nimport { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport '@nuxeo/nuxeo-ui-elements/search/nuxeo-search-results-layout.js';\nimport { codePanelTemplate } from '../code-panel-template.js';\n\nwindow.Polymer = Polymer;\nwindow.Nuxeo.LayoutBehavior = LayoutBehavior;\n\nstoriesOf('UI/nuxeo-search-results-layout', module)\n .add(\n 'Default',\n () => html`\n
\n \n
\n \n \n ${codePanelTemplate('search/test/nuxeo-test-search-results.html')}\n `,\n )\n .add(\n 'Missing layout',\n () => html`\n \n `,\n );\n"),__ADDS_MAP__={"ui-nuxeo-search-results-layout--missing-layout":{startLoc:{col:4,line:32},endLoc:{col:5,line:35},startBody:{col:4,line:33},endBody:{col:5,line:35}},"ui-nuxeo-search-results-layout--default":{startLoc:{col:4,line:13},endLoc:{col:5,line:29},startBody:{col:4,line:14},endBody:{col:5,line:29}}};window.Polymer=_polymer_polymer_lib_legacy_polymer_fn_js__WEBPACK_IMPORTED_MODULE_6__.a,window.Nuxeo.LayoutBehavior=_nuxeo_nuxeo_ui_elements_nuxeo_layout_behavior_js__WEBPACK_IMPORTED_MODULE_5__.a,Object(_storybook_polymer__WEBPACK_IMPORTED_MODULE_3__.storiesOf)("UI/nuxeo-search-results-layout",module).addParameters({storySource:{source:__STORY__,locationsMap:__ADDS_MAP__}}).addDecorator(withSourceLoader(__STORY__,__ADDS_MAP__,"/nuxeo-search-results-layout.stories.js",[],{},"/home/runner/work/nuxeo-elements/nuxeo-elements/storybook/src/elements/nuxeo-search-results-layout",{})).add("Default",(function(){return Object(lit_html__WEBPACK_IMPORTED_MODULE_4__.html)(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n
\n \n
\n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ `}static get is(){return"nuxeo-html-editor"}static get properties(){return{value:{type:String,notify:!0},placeholder:{type:String,value:"Type here..."},readOnly:{type:Boolean,value:!1,reflectToAttribute:!0},_editor:{type:Object}}}static get observers(){return["_valueChanged(value, _editor)","_readOnlyChanged(readOnly, _editor)"]}static get importMeta(){return{url:getAbsoluteUrl("s/nuxeo-html-editor.js")}}ready(){super.ready();const{placeholder:placeholder,readOnly:readOnly}=this;this._editor=new Quill(this.$.editor,{theme:"snow",modules:{toolbar:"#toolbar"},placeholder:placeholder,readOnly:readOnly}),this._editor.on("text-change",()=>{this._debouncer=debounce.a.debounce(this._debouncer,utils_async.d.after(200),()=>this._updateValue())})}_updateValue(){this._internalChange=!0,this.value=this._editor.getSemanticHTML(),this._internalChange=!1}_valueChanged(){if(this._editor&&!this._internalChange){const delta=this._editor.clipboard.convert({html:this.value});this._editor.setContents(delta,this.readOnly?Quill.sources.SILENT:Quill.sources.USER),this._editor.setSelection(0,Quill.sources.SILENT)}}_readOnlyChanged(){this._editor&&(this._editor.enable(!this.readOnly),this._editor.getModule("toolbar").container.style.display=this.readOnly?"none":"")}_onImageUpload(){this.$.qlImage.click()}_onSearchImage(){this.$.picker.open()}_onPickerSelected(e){const selectedDocuments=e.detail&&e.detail.selectedItems;if(selectedDocuments){const templateToInsert=selectedDocuments.filter(doc=>doc.properties["file:content"]&&doc.properties["file:content"].data).map(doc=>``).join("\n");this._editor.clipboard.dangerouslyPasteHTML(this._editor.getSelection(!0).index,templateToInsert)}}}customElements.define(HTMLEditor.is,HTMLEditor)}},1712:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(10);var html_tag=__webpack_require__(0),polymer_dom=__webpack_require__(1),legacy_class=(__webpack_require__(305),__webpack_require__(91),__webpack_require__(4)),templatizer_behavior=__webpack_require__(106),nuxeo_i18n_behavior=__webpack_require__(7);{class TreeNode extends(Object(legacy_class.b)([templatizer_behavior.a,nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + + + `}static get is(){return"nuxeo-tree-node"}static get properties(){return{data:Object,_children:{type:Array},controller:Object,opened:{type:Boolean,value:!1,observer:"_openedChanged"},loading:{type:Boolean,value:!1,observer:"_loadingChanged"},template:Object,nodeKey:{type:String,value:"id"},page:{type:Number,value:1},isNextAvailable:{type:Boolean,value:!1},_parentModel:{type:Boolean,value:!0}}}static get observers(){return["_renderNodeContent(data)"]}toggle(){this._updated?this.opened=!this.opened:(this._fetchChildren(),this.opened=!0)}_selectNode(e){let detail;detail=e.detail.item?{item:e.detail.item}:{item:this.data},this.dispatchEvent(new CustomEvent("select",{composed:!0,bubbles:!0,detail:detail}))}open(){return this.opened=!0,this._updated?Promise.resolve():this._fetchChildren()}close(){this.opened=!1}_renderNodeContent(){if(this.template){this._instance&&(this._teardownInstance(),this._fetchChildren()),this.template.__templatizeOwner=null,this.templatize(this.template,!0),this._instance=this.stamp({}),this._instance.item=this.data,this._instance.opened=this.opened,this._instance.loading=this.loading,this._instance.isLeaf=this.controller.isLeaf(this.data),this.dataset[this.nodeKey]=this.data[this.nodeKey];const content=document.createElement("div");content.id="content",Object(polymer_dom.a)(content).appendChild(this._instance.root),Object(polymer_dom.a)(this).appendChild(content);const children=document.createElement("iron-collapse");children.id="children",children.opened=this.opened,children.loading=this.loading,children.noAnimation="true",Object(polymer_dom.a)(this).appendChild(children),Object(polymer_dom.b)(),this._setupToggleListener()}}_renderChildNodes(){if(this.template)return new Promise(resolve=>{const children=Object(polymer_dom.a)(this).querySelector("#children");for(;children.lastChild;)children.removeChild(children.lastChild);const items=this._children||[];for(let i=0;i(results.items?(results.items.forEach(doc=>{this.push("_children",doc)}),this.isNextAvailable=results.isNextAvailable):(this._children=results,this.isNextAvailable=!1),this._updated=!0,this._renderChildNodes()))}_setupToggleListener(){Object(polymer_dom.b)();const selectElts=Object(polymer_dom.a)(this).querySelector("#content").querySelectorAll("[select]");for(let i=0;i + :host { + display: block; + @apply --nuxeo-tree-theme; + } + + + + `}static get is(){return"nuxeo-tree"}static get properties(){return{data:Object,controller:Object,template:Object,nodeKey:{type:String,value:"id"}}}static get observers(){return["_update(data, controller)"]}_update(){if(this.data&&this.controller){const template=Object(polymer_dom.a)(this).querySelector("template");this._root&&Object(polymer_dom.a)(this).removeChild(this._root),this._root=document.createElement("nuxeo-tree-node"),this._root.id="root",this._root.template=template,this._root.dataHost=this.dataHost,this._root.controller=this.controller,this._root.nodeKey=this.nodeKey,this._root.data=this.data,this._root.dataset[this.nodeKey]=this.data[this.nodeKey],Object(polymer_dom.a)(this).appendChild(this._root),this._root.open()}}open(){this._openNodes(arguments)}_openNodes(keys){if(!keys||0===keys.length)return;const node=this._find(keys[0]);node&&node.open().then(()=>{this._openNodes(Array.prototype.slice.call(keys,1))})}_find(key){return this.querySelector(`[data-${this.nodeKey}="${key}"]`)}removeNodes(keys){if(!keys||0===keys.length)return;const node=this._find(keys[0]);node&&node.removeSelf().then(()=>{this.removeNodes(Array.prototype.slice.call(keys,1))})}}customElements.define(Tree.is,Tree),Nuxeo.Tree=Tree}},196:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(44),__webpack_require__(31),__webpack_require__(45),__webpack_require__(85);var _polymer_iron_meta_iron_meta_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(194),iconMap={};new _polymer_iron_meta_iron_meta_js__WEBPACK_IMPORTED_MODULE_4__.a({type:"iconset"}).list.forEach((function(item){iconMap[item.name]=item.getIconNames()})),__webpack_exports__.a=iconMap},199:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return tableTemplate}));__webpack_require__(22),__webpack_require__(25),__webpack_require__(24);var lit_html=__webpack_require__(3),html_tag=(__webpack_require__(813),__webpack_require__(801),__webpack_require__(802),__webpack_require__(309),__webpack_require__(0)),legacy_class=__webpack_require__(4),nuxeo_routing_behavior=(__webpack_require__(10),__webpack_require__(38),__webpack_require__(141));__webpack_require__(36),__webpack_require__(7);{class Tag extends Nuxeo.Element{static get template(){return html_tag.a` + + + + + + + `}static get is(){return"nuxeo-tag"}static get properties(){return{icon:String,uppercase:{type:Boolean,value:!1,reflectToAttribute:!0}}}}customElements.define(Tag.is,Tag),Nuxeo.Tag=Tag}var _templateObject;__webpack_require__(803),__webpack_require__(60);{class UserTag extends(Object(legacy_class.b)([nuxeo_routing_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + +
+ + + + + + + + + + + +
+
+ `}static get is(){return"nuxeo-user-tag"}static get properties(){return{user:Object,disabled:{type:Boolean,value:!1},fetchAvatar:{type:Boolean,value:!1}}}_isEntity(user){return user&&user["entity-type"]&&("user"===user["entity-type"]||"document"===user["entity-type"]&&"user"===user.type)&&user.properties}_id(user){if(user){return user.id||user.uid||user.replace("user:","")}}_name(user){if(this._isEntity(user)){const firstName=user.properties.firstName||user.properties["user:firstName"],lastName=user.properties.lastName||user.properties["user:lastName"],email=user.properties.email||user.properties["user:email"];return[firstName,lastName].join(" ").trim()||email||this._id(user)}return this._id(user)}_email(user){if(this._isEntity(user)){const email=user.properties.email||user.properties["user:email"];return email!==this._id(user)?email:""}return""}_href(user){return this.urlFor("user",this._id(user))}_hasLink(disabled,user){return!(disabled||"system"===this._name(user))}_preventPropagation(e){e.stopPropagation()}}customElements.define(UserTag.is,UserTag),Nuxeo.UserTag=UserTag}var tableTemplate=function(params){return Object(lit_html.html)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n \n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n \n '])),params.data,params.editable,params.orderable,params.settingsEnabled,params.selectionEnabled,params.selectAllEnabled,params.multiSelection,params.selectOnTap,params.detailsEnabled,params.label?params.label:"",params.required,params.hidden,params.orderColumn,params.alignRight,params.flex)}},220:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(529);var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0);__webpack_require__(10);{const nxClients={};class Connection extends Nuxeo.Element{static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__.a` + + `}static get is(){return"nuxeo-connection"}static get properties(){return{connectionId:{type:String,value:"nx"},url:{type:String,value:"",notify:!0},repositoryName:{type:String,value:null},username:{type:String,value:null},password:{type:String,value:null},method:{type:String,value:"basic"},user:{type:Object,readOnly:!0,notify:!0},platformVersion:{type:String,readOnly:!0,notify:!0},token:{type:String,value:null}}}ready(){super.ready(),this.connect().catch(error=>{console.warn("Nuxeo connection refused: "+error)})}connect(){const id=this.connectionId?this.connectionId:Object.keys(nxClients)[0];if(this.client=nxClients[id],this.client){if(this.url||this.username||this.password||this.repositoryName||(this.set("url",this.client._baseURL),this.username=this.client._username,this.password=this.client._password,this.repositoryName=this.client._baseOptions.repositoryName),this.client._baseURL===this.url&&this.client._username===this.username&&this.client._password===this.password&&this.client._baseOptions.repositoryName===this.repositoryName)return this.client._promise.then(this._handleConnected.bind(this));this.client=null}const options={baseURL:this.url,schemas:["*"]};return"basic"===this.method?this.username&&(options.auth={method:"basic",username:this.username,password:this.password}):("token"===this.method&&this.token&&(options.auth={method:"token",token:this.token}),options.headers={"X-No-Basic-Header":!0}),this.repositoryName&&(options.repositoryName=this.repositoryName),nxClients[id]=this.client=this.client||new Nuxeo(options),this.client._promise=this.client.connect(),this.client._promise.then(this._handleConnected.bind(this)).catch(error=>{if(401!==error.response.status||"form"!==this.method)throw error;{document.cookie=`nuxeo.start.url.fragment=${window.location.hash.substring(1)||""}; path=/`;const loginUrl=`${this.url}/login.jsp?requestedUrl=${window.location.href}`;window.location.replace(loginUrl)}})}get connected(){return this.client&&this.client.connected}get active(){return this.client&&this.client._activeRequests>0}_handleConnected(nuxeo){return this.client.connected&&(this._setUser(nuxeo.user),this._setPlatformVersion(nuxeo.nuxeoVersion),this.dispatchEvent(new CustomEvent("connected",{bubbles:!0,composed:!0}))),nuxeo.user}request(){return this.connect().then(()=>this.client.request())}operation(op){return this.connect().then(()=>this.client.operation(op))}http(url){return this.connect().then(()=>this.client._http({url:url}))}batchUpload(){return this.connect().then(()=>this.client.batchUpload())}}customElements.define(Connection.is,Connection),Nuxeo.Connection=Connection}},222:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_iron_form_element_behavior_iron_form_element_behavior_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(65),_polymer_iron_validatable_behavior_iron_validatable_behavior_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(41),_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__(10),__webpack_require__(223),__webpack_require__(0)),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4);{class Input extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_5__.b)([_polymer_iron_form_element_behavior_iron_form_element_behavior_js__WEBPACK_IMPORTED_MODULE_0__.a,_polymer_iron_validatable_behavior_iron_validatable_behavior_js__WEBPACK_IMPORTED_MODULE_1__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_4__.a` + + + + + + + `}static get is(){return"nuxeo-input"}static get properties(){return{label:String,type:String,name:String,value:{type:String,notify:!0},placeholder:String,errorMessage:String,autofocus:{type:Boolean,value:!1,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},required:{type:Boolean,value:!1,reflectToAttribute:!0},min:String,max:String,step:Number,minlength:Number,maxlength:Number,pattern:String,validator:String,autoValidate:{type:Boolean,value:!1}}}focus(){this.$.paperInput.focus()}_getValidity(){return this.$.paperInput.validate()}}customElements.define(Input.is,Input),Nuxeo.Input=Input}},228:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return DraggableListBehavior}));__webpack_require__(5);var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0);__webpack_require__(10);const template=_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__.a` + + + +`;document.head.appendChild(template.content);const DraggableListBehavior={properties:{draggable:{type:Boolean,value:!1,reflectToAttribute:!0},dropTargetFilter:{type:Function,value(){return this.dropTargetFilter.bind(this)}},draggableFilter:{type:Function,value(){return this.draggableFilter.bind(this)}}},attached(){let proxy;const bodyEl=document.querySelector("body"),moveFn=e=>{(new Date).getTime()-this._mouseDownStarted<=150||(this.style.pointerEvents="none",bodyEl.setAttribute("style","cursor: grabbing; cursor: -webkit-grabbing;"),proxy||(proxy=document.createElement("nuxeo-drag-proxy"),proxy.counter=this.selectedItems.length,bodyEl.appendChild(proxy)),proxy.setPosition(e.pageX,e.pageY),proxy.hidden=!1,this._scrollList(e),this.target=null,this.droptargets.forEach(target=>{target.classList.remove("droptarget-hover");const boundingClientRect=target.getBoundingClientRect();e.clientX>boundingClientRect.left&&e.clientXboundingClientRect.top&&e.clientY-1?(this.target=null,proxy.hidden=!0,bodyEl.style.cursor="not-allowed"):this.target.classList.add("droptarget-hover")))},upFn=()=>{this._mouseDownStarted=null,this.style.pointerEvents="",bodyEl.style.cursor="",proxy&&(bodyEl.removeChild(proxy),proxy=null),document.removeEventListener("mousemove",moveFn),document.removeEventListener("mouseup",upFn),this.target&&(this.target.classList.remove("droptarget-hover"),this.fire("nuxeo-documents-dropped",{targetDocument:this.modelForElement(this.target).item,documents:this.selectedItems}),this.target=null)};this.addEventListener("mousedown",e=>{this.draggable&&e.target&&this.draggableFilter(e.target)&&(e.preventDefault(),this._mouseDownStarted=this._mouseDownStarted||(new Date).getTime(),document.addEventListener("mousemove",moveFn),document.addEventListener("mouseup",upFn))})},get droptargets(){return Array.from(this.$.list.queryAllEffectiveChildren("*")).filter(el=>this.dropTargetFilter(el,this.modelForElement(el)))},dropTargetFilter:()=>!0,draggableFilter:()=>!0,_scrollList(e){const container=this.$.list,boundingClientRect=container.getBoundingClientRect();boundingClientRect.bottom-e.pageY<=100?container.scrollTop+=30:e.pageY>=boundingClientRect.top&&e.pageY<=boundingClientRect.top+100&&(container.scrollTop-=30)}};{class DragProxy extends Nuxeo.Element{static get is(){return"nuxeo-drag-proxy"}static get properties(){return{counter:Number}}setPosition(x,y){this.style.left=x+"px",this.style.top=y+"px"}}customElements.define(DragProxy.is,DragProxy),Nuxeo.DragProxy=DragProxy}},229:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return LayoutBehavior}));var _nuxeo_routing_behavior_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(141),_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(76),_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(88);const LayoutBehavior=[_nuxeo_routing_behavior_js__WEBPACK_IMPORTED_MODULE_0__.a,_nuxeo_filters_behavior_js__WEBPACK_IMPORTED_MODULE_1__.a,_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_2__.a]},306:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(305),__webpack_require__(64),__webpack_require__(36),__webpack_require__(1466);var _polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(55),_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_7__=(__webpack_require__(10),__webpack_require__(38),__webpack_require__(0)),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4);{class Card extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_8__.b)([_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_4__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_7__.a` + + + + + + + + + + + + + + `}static get is(){return"nuxeo-card"}static get properties(){return{icon:{type:String,value:null},heading:{type:String,value:null},collapsible:{type:Boolean,value:!1,reflectToAttribute:!0},opened:{type:Boolean,value:!1,reflectToAttribute:!0}}}_hasHeading(icon,heading,collapsible){return icon||heading||collapsible}_opened(opened,collapsible){return!collapsible||opened}_toggle(){this.collapsible&&(this.opened=!this.opened,this.$$("iron-collapse")&&this.$$("iron-collapse").addEventListener("transitionend",fireEvent=>{this.dispatchEvent(new CustomEvent("iron-resize",{bubbles:!0,composed:!0})),this.removeEventListener("transitionend",fireEvent)}))}_toggleIcon(opened){return"hardware:keyboard-arrow-"+(opened?"up":"down")}}customElements.define(Card.is,Card),Nuxeo.Card=Card}},309:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_iron_form_element_behavior_iron_form_element_behavior_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(65),_polymer_iron_validatable_behavior_iron_validatable_behavior_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(41),_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__=(__webpack_require__(10),__webpack_require__(223),__webpack_require__(1706),__webpack_require__(92)),_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(78),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7);{class DatePicker extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_7__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_9__.a,_polymer_iron_form_element_behavior_iron_form_element_behavior_js__WEBPACK_IMPORTED_MODULE_0__.a,_polymer_iron_validatable_behavior_iron_validatable_behavior_js__WEBPACK_IMPORTED_MODULE_1__.a],Nuxeo.Element)){static get is(){return"nuxeo-date-picker"}static get properties(){return{label:String,defaultTime:String,errorMessage:String,max:String,min:String,required:{type:Boolean,value:!1,reflectToAttribute:!0},value:{type:String,notify:!0,observer:"_valueChanged"},disabled:{type:Boolean,value:!1},firstDayOfWeek:{type:Number},timezone:{type:String,value:()=>_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_8__.a.get("timezone")},_inputValue:{type:String,observer:"_inputValueChanged"},hideClearDateButton:{type:Boolean,value:!1,reflectToAttribute:!0},_preventInputUpdate:{type:Boolean,value:!1}}}static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_6__.a` + + + + + + + `}ready(){super.ready(),_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a.locale(window.nuxeo.I18n.language?window.nuxeo.I18n.language.split("-")[0]:"en"),this.$.date.set("i18n.formatDate",date=>this._moment(date).format(_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a.localeData().longDateFormat("L"))),this.$.date.set("i18n.parseDate",text=>{const date=this._moment(text,_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a.localeData().longDateFormat("L"));return{day:date.get("D"),month:date.get("M"),year:date.get("Y")}}),this.$.date.set("i18n.monthNames",_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a.months()),this.$.date.set("i18n.weekdays",_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a.weekdays()),this.$.date.set("i18n.weekdaysShort",_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a.weekdaysShort()),this.$.date.set("i18n.cancel",this.i18n("command.cancel")),this.$.date.set("i18n.clear",this.i18n("command.clear")),this.$.date.set("i18n.today",this.i18n("today")),this.$.date.set("i18n.firstDayOfWeek",this.firstDayOfWeek||_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_8__.a.get("firstDayOfWeek",_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a.localeData().firstDayOfWeek()||0))}_moment(...args){return("Etc/UTC"===this.timezone?_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a.utc:_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a)(...args)}_getValidity(){return this.$.date.validate(this.value?this.$.date.i18n.formatDate(this.value):this.value)&&(!this.required||!!this.value)}_valueChanged(){if(!this.value)return void(this._inputValue=null);const date=this._moment(this.value);if(this.value&&date.isValid()){this._preventInputUpdate=!0;const year=(""+date.get("Y")).padStart(4,"0"),month=(""+(date.get("M")+1)).padStart(2,"0"),day=(""+date.get("D")).padStart(2,"0");this._inputValue=`${year}-${month}-${day}`}else this._inputValue=""}_inputValueChanged(){if(null!==this._inputValue&&!this._preventInputUpdate){const date=this._moment(this._inputValue);if(date.isValid()){if(this.defaultTime){const time=Object(_nuxeo_moment_min_moment_with_locales_js__WEBPACK_IMPORTED_MODULE_5__.a)(this.defaultTime,"HH:mm:ss");if(!time.isValid())throw new Error("Invalid default time "+this.defaultTime);date.add(time.hour(),"hour"),date.add(time.minute(),"minute"),date.add(time.second(),"second")}this.set("value",date.toJSON())}else this.set("value",null)}this._preventInputUpdate=!1}}customElements.define(DatePicker.is,DatePicker),Nuxeo.DatePicker=DatePicker}},310:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_iron_validatable_behavior_iron_validatable_behavior_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(41),_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_7__=(__webpack_require__(10),__webpack_require__(1709),__webpack_require__(812),__webpack_require__(38),__webpack_require__(86),__webpack_require__(431),__webpack_require__(0)),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4),_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(55);{class Select extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_8__.b)([_polymer_iron_resizable_behavior_iron_resizable_behavior_js__WEBPACK_IMPORTED_MODULE_9__.a,_polymer_iron_validatable_behavior_iron_validatable_behavior_js__WEBPACK_IMPORTED_MODULE_0__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_7__.a` + + + + + + + + + + + + + `}static get is(){return"nuxeo-select"}static get properties(){return{label:{type:String,value:null},placeholder:{type:String,value:" "},errorMessage:{type:String},options:{type:Array,value:null},selected:{type:String,notify:!0},attrForSelected:{type:String,value:null},horizontalAlign:{type:String,value:"left"},verticalAlign:{type:String,value:"top"},dynamicAlign:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},required:{type:Boolean,value:!1,reflectToAttribute:!0}}}connectedCallback(){super.connectedCallback(),this._resizeObserver||(this._resizeObserver=new ResizeObserver(()=>this._resize())),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}close(){this.$.paperDropdownMenu.close()}_resize(){const button=this.$.paperDropdownMenu.$.menuButton;button.noOverlap=!0,button.verticalOffset=-8;const{width:width}=this.getBoundingClientRect();width>0&&(this.$.paperDropdownMenu.style.width=this.$.paperMenu.style.width=width+"px")}_id(item){return this.selected||(this.selected=item&&item.id?item.id:item),item&&item.id?item.id:item}_label(item){return item&&item.label?item.label:item}_computeAttrForSelected(attrForSelected,options){return options?"option":attrForSelected}_getValidity(){return this.$.paperDropdownMenu._getValidity()}}customElements.define(Select.is,Select),Nuxeo.Select=Select}},311:function(module,__webpack_exports__,__webpack_require__){"use strict";Nuxeo=Nuxeo||{},Nuxeo.UI=Nuxeo.UI||{},Nuxeo.UI.config=Nuxeo.UI.config||{};const{config:config}=Nuxeo.UI;Object.assign(config,{get(path,fallback){let val=path.split(".").reduce((a,b)=>a&&a[b],this);if(void 0!==val&&typeof val!=typeof fallback)if("boolean"==typeof fallback)val="true"===val;else{let type;switch(typeof fallback){case"number":type=Number;break;case"string":type=String;break;case"bigint":type=BigInt}val=null!=(type&&type(val))?type(val):val}return null!=val?val:fallback},set(path,value){const parentPath=path.substring(0,path.lastIndexOf("."));let parent=this.get(parentPath);parent||(parent=path.split(".").slice(0,-1).reduce((a,b)=>(a[b]=a[b]||{},a[b]),this)),parent[path.substring(path.lastIndexOf(".")+1)]=value}}),__webpack_exports__.a=config},321:function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"static/media/nuxeo-elements-catalog.784dbae7.svg"},325:function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"static/media/image01.df0ac7ee.jpg"},327:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return DIRECTORY_SUGGESTION_ENTRIES}));var DIRECTORY_SUGGESTION_ENTRIES=[{absoluteLabel:"Arabic",computedId:"ar",directoryName:"language",displayLabel:"Arabic","entity-type":"directoryEntry",id:"ar",label:"Arabic",obsolete:0,ordering:1e7,properties:{id:"ar",label:"Arabic",obsolete:0,ordering:1e7}},{absoluteLabel:"Chinese",computedId:"zh",directoryName:"language",displayLabel:"Chinese","entity-type":"directoryEntry",id:"zh",label:"Chinese",obsolete:0,ordering:1e7,properties:{id:"zh",label:"Chinese",obsolete:0,ordering:1e7}},{absoluteLabel:"English",computedId:"en",directoryName:"language",displayLabel:"English","entity-type":"directoryEntry",id:"en",label:"English",obsolete:0,ordering:1e7,properties:{id:"en",label:"English",obsolete:0,ordering:1e7}},{absoluteLabel:"French",computedId:"fr",directoryName:"language",displayLabel:"French","entity-type":"directoryEntry",id:"fr",label:"French",obsolete:0,ordering:1e7,properties:{id:"fr",label:"French",obsolete:0,ordering:1e7}}]},329:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return USER_SUGGESTION_ENTRIES}));var USER_SUGGESTION_ENTRIES=[{company:"",displayIcon:!0,displayLabel:"Administrator",email:"devnull@nuxeo.com","entity-type":"user",firstName:"",groups:[],id:"Administrator",lastName:"",prefixed_id:"user:Administrator",tenantId:null,type:"USER_TYPE",username:"Administrator"},{company:"",displayIcon:!0,displayLabel:"jdoe",email:"devnull@nuxeo.com","entity-type":"user",firstName:"",groups:[],id:"jdoe",lastName:"",prefixed_id:"user:Administrator",tenantId:null,type:"USER_TYPE",username:"jdoe"},{company:"",displayIcon:!0,displayLabel:"Bob Jones",email:"bob@jones.com","entity-type":"user",firstName:"Bob",groups:[],id:"bobJones",lastName:"Jones",prefixed_id:"user:bjones",tenantId:null,type:"USER_TYPE",username:"bjones"}]},33:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return cities})),__webpack_require__.d(__webpack_exports__,"a",(function(){return LIST}));var _documents_data__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(124),_img_image01_jpg__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(325),_img_image01_jpg__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_img_image01_jpg__WEBPACK_IMPORTED_MODULE_1__),_img_image02_jpg__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(826),_img_image02_jpg__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_img_image02_jpg__WEBPACK_IMPORTED_MODULE_2__),_img_image03_jpg__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(827),_img_image03_jpg__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_img_image03_jpg__WEBPACK_IMPORTED_MODULE_3__),_img_image04_jpg__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(828),_img_image04_jpg__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_img_image04_jpg__WEBPACK_IMPORTED_MODULE_4__),_img_image05_jpg__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(829),_img_image05_jpg__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_img_image05_jpg__WEBPACK_IMPORTED_MODULE_5__),_img_image06_jpg__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(830),_img_image06_jpg__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_img_image06_jpg__WEBPACK_IMPORTED_MODULE_6__),_img_image07_jpg__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(831),_img_image07_jpg__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_img_image07_jpg__WEBPACK_IMPORTED_MODULE_7__),_img_image08_jpg__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(832),_img_image08_jpg__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_img_image08_jpg__WEBPACK_IMPORTED_MODULE_8__),_img_image09_jpg__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(833),_img_image09_jpg__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_img_image09_jpg__WEBPACK_IMPORTED_MODULE_9__),_img_image10_jpg__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(834),_img_image10_jpg__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_img_image10_jpg__WEBPACK_IMPORTED_MODULE_10__),images=[_img_image01_jpg__WEBPACK_IMPORTED_MODULE_1___default.a,_img_image02_jpg__WEBPACK_IMPORTED_MODULE_2___default.a,_img_image03_jpg__WEBPACK_IMPORTED_MODULE_3___default.a,_img_image04_jpg__WEBPACK_IMPORTED_MODULE_4___default.a,_img_image05_jpg__WEBPACK_IMPORTED_MODULE_5___default.a,_img_image06_jpg__WEBPACK_IMPORTED_MODULE_6___default.a,_img_image07_jpg__WEBPACK_IMPORTED_MODULE_7___default.a,_img_image08_jpg__WEBPACK_IMPORTED_MODULE_8___default.a,_img_image09_jpg__WEBPACK_IMPORTED_MODULE_9___default.a,_img_image10_jpg__WEBPACK_IMPORTED_MODULE_10___default.a],companyNames=["Oyope","Babbleset","Twimm","Flipstorm","Feedmix","Dabjam","Photobug","Browsezoom","Yadel","Zooxo"],departments=["Marketing","Training","Accounting","Product Management","Legal","Engineering","Support","Research and Development","Services","Sales"],users=["cmagauran0@sbwire.com","tgorgler1@wordpress.org","wfogg2@photobucket.com","cvanezis3@nymag.com","ageist4@washingtonpost.com","cwhilder5@bluehost.com","blemmen9@salon.com","phydechambers8@artisteer.com","mcorbould7@symantec.com","gmaddicks6@macromedia.com"],dates=["8/16/2018","9/18/2018","7/20/2018","10/21/2018","3/3/2019","9/10/2018","5/24/2019","7/22/2018","12/8/2018","9/28/2018"],cities=["Lisbon","Paris","San Francisco","Oslo","New York","Copenhagen","London","Madrid","Rome","Berlin"],LIST=function(numberOfItems){for(var list={data:[]},index=0;index + :host { + display: block; + position: relative; + padding-bottom: 8px; + word-break: break-all; + } + + :host([hidden]) { + display: none; + } + + :host([required]) label::after { + display: inline-block; + content: '*'; + margin-left: 4px; + color: var(--paper-input-container-invalid-color, #de350b); + } + + paper-textarea { + --paper-input-container: { + margin-top: 5px; + padding: 0; + } + --iron-autogrow-textarea: { + padding: 0; + } + } + + label { + @apply --nuxeo-label; + } + + + + + + + `}static get is(){return"nuxeo-textarea"}static get properties(){return{label:String,name:String,value:{type:String,notify:!0},rows:Number,placeholder:String,errorMessage:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},required:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,value:!1,reflectToAttribute:!0}}}_getValidity(){return this.$.paperTextarea.validate()}}customElements.define(Textarea.is,Textarea),Nuxeo.Textarea=Textarea}},434:function(module,__webpack_exports__,__webpack_require__){"use strict";var iron_resizable_behavior=__webpack_require__(55),html_tag=(__webpack_require__(10),__webpack_require__(0)),polymer_dom=__webpack_require__(1),flush=__webpack_require__(77),legacy_class=__webpack_require__(4);function whenImportsReady(cb){window.HTMLImports?HTMLImports.whenReady(cb):cb()}var nuxeo_i18n_behavior=__webpack_require__(7);{class Error extends(Object(legacy_class.b)([nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + +
[[code]]
+
[[_label(code)]]
+
[[url]]
+
[[message]]
+ `}static get is(){return"nuxeo-error"}static get properties(){return{code:{type:String,value:""},message:{type:String,value:""},url:{type:String,value:""},hidden:{type:Boolean,value:!1,reflectToAttribute:!0}}}show(code,url,message){arguments.length&&(this.code=code,this.url=url,this.message=message),this.hidden=!1}hide(){this.hidden=!0}_label(){return this.code?this.i18n("error."+this.code):null}}customElements.define(Error.is,Error),Nuxeo.Error=Error}{class Layout extends(Object(legacy_class.b)([iron_resizable_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + +
+ `}static get is(){return"nuxeo-layout"}static get properties(){return{href:{type:String,observer:"_stamp"},model:{type:Object,value:{}},error:{type:String,value:"Failed to find layout"},element:{type:Object,readOnly:!0,notify:!0}}}static get observers(){return["_update(model.*)"]}_getBoundElements(property){const model={};for(let i=0;i{"property"===binding.kind&&binding.parts.forEach(part=>{"{"===part.mode&&!part.signature&&part.source.startsWith(property)&&(model[part.source]=model[part.source]||[],model[part.source]=node)})})}}return model}validate(){let valid=!0;if(this.element){const elements=this._getValidatableElements(this.element.root);for(let el,i=0;i0||node.offsetWidth>0||styles.opacity>0&&"hidden"!==styles.visibility)}_stamp(href){if(!href)return this.hidden=!0,void this._setElement(null);this.$.error.hidden=!0,this.hidden=this.$.container.hidden=!1;const name=href.split("/").pop().split(".")[0];!function(href,onload,onerror,optAsync){let link=document.head.querySelector('link[href="'+href+'"][import-href]');link||(link=document.createElement("link"),link.rel="import",link.href=href,link.setAttribute("import-href","")),optAsync&&link.setAttribute("async","");let cleanup=function(){link.removeEventListener("load",loadListener),link.removeEventListener("error",errorListener)},loadListener=function(event){cleanup(),link.__dynamicImportLoaded=!0,onload&&whenImportsReady(()=>{onload(event)})},errorListener=function(event){cleanup(),link.parentNode&&link.parentNode.removeChild(link),onerror&&whenImportsReady(()=>{onerror(event)})};link.addEventListener("load",loadListener),link.addEventListener("error",errorListener),null==link.parentNode?document.head.appendChild(link):link.__dynamicImportLoaded&&link.dispatchEvent(new Event("load"))}(href,()=>{const element=document.createElement(name);this.$.container.hasChildNodes()?this.$.container.replaceChild(element,this.$.container.firstChild):this.$.container.appendChild(element),this._setElement(element),this._update(),this.notifyResize(),Object(flush.b)()},()=>{this._setElement(void 0),this.$.error.hidden=!1,this.$.container.hidden=!0,this.notifyResize()})}_update(){this.element&&this.model&&Object.keys(this.model).forEach(prop=>{this.element[prop]=this.model[prop]})}}customElements.define(Layout.is,Layout),Nuxeo.Layout=Layout}},60:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(10),__webpack_require__(1448);var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1),_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(11);{class Tooltip extends Nuxeo.Element{static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_2__.a` + + + + `}static get is(){return"nuxeo-tooltip"}static get properties(){return{for:String,position:{type:String,value:"bottom"},offset:{type:Number,value:14},animationDelay:{type:Number,value:500}}}constructor(){super(),this._showListener=this.show.bind(this),this._hideListener=this.hide.bind(this),this._keyListener=this.keydown.bind(this)}connectedCallback(){super.connectedCallback(),this._target=this.target,this._target&&(this._target.addEventListener("mouseenter",this._showListener),this._target.addEventListener("focus",this._showListener),this._target.addEventListener("mouseleave",this._hideListener),this._target.addEventListener("blur",this._hideListener),this._target.addEventListener("tap",this._hideListener),window.addEventListener("keydown",this._keyListener))}disconnectedCallback(){super.disconnectedCallback(),this._target&&(this.hide(),this._target.removeEventListener("mouseenter",this._showListener),this._target.removeEventListener("focus",this._showListener),this._target.removeEventListener("mouseleave",this._hideListener),this._target.removeEventListener("blur",this._hideListener),this._target.removeEventListener("tap",this._hideListener),window.removeEventListener("keydown",this._keyListener)),this._target=null}show(){this._tooltip||this.hidden||(this._tooltip=document.createElement("paper-tooltip"),document.body.appendChild(this._tooltip),this.$.content.assignedNodes().forEach(node=>{this._tooltip.appendChild(node.cloneNode(!0))}),this._tooltip.manualMode=!0,this._tooltip._target=this._target,this._tooltip.animationDelay=this.animationDelay,this._tooltip.offset=this.offset,this._tooltip.position=this.position,this._tooltip.fitToVisibleBounds=!0,_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_4__.c.run(()=>{this._tooltip.show()}))}hide(){const paperToolTip=document.getElementsByTagName("paper-tooltip")[0];paperToolTip&&document.body.removeChild(paperToolTip),this._tooltip=null}keydown(){this.hide()}get target(){const{parentNode:parentNode}=Object(_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_3__.a)(this),ownerRoot=Object(_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_3__.a)(this).getOwnerRoot();let target;return target=this.for?Object(_polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_3__.a)(ownerRoot).querySelector("#"+this.for):parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?ownerRoot.host:parentNode,target}}customElements.define(Tooltip.is,Tooltip),Nuxeo.Tooltip=Tooltip}},658:function(module,__webpack_exports__,__webpack_require__){"use strict";var _ui_i18n_messages_json__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(824);window.nuxeo={I18n:{language:"en",en:_ui_i18n_messages_json__WEBPACK_IMPORTED_MODULE_0__}}},659:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19),_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11),_config_js__WEBPACK_IMPORTED_MODULE_6__=(__webpack_require__(10),__webpack_require__(96),__webpack_require__(154),__webpack_require__(311));{class PageProvider extends Nuxeo.Element{static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + + + + + `}static get is(){return"nuxeo-page-provider"}static get properties(){return{connectionId:{type:String,value:""},auto:{type:Boolean,value:!1},autoDelay:{type:Number,value:300},provider:{type:String,value:""},query:{type:String},path:{type:String,computed:"_computePath(provider, query)"},params:{type:Object,value:{}},pageSize:{type:Number,value:-1},page:{type:Number,value:1},offset:{type:Number,notify:!0},currentPage:{type:Array,value:[],notify:!0},sort:{type:Object,value:{},notify:!0},numberOfPages:{type:Number,notify:!0},resultsCount:{type:Number,notify:!0},aggregations:{type:Object,value:{},notify:!0},quickFilters:{type:Array,notify:!0},isNextPageAvailable:{type:Boolean,value:!1,notify:!0},isPreviousPageAvailable:{type:Boolean,value:!1,notify:!0},currentPageSize:{type:Number,notify:!0},enrichers:{type:Object,value:{}},schemas:{type:String},headers:{type:Object,value:null},fetchAggregates:{type:Boolean,value:!1,observer:"_fetchAggregatesChanged"},loading:{type:Boolean,notify:!0,readOnly:!0},skipAggregates:Boolean,method:{type:String,value:()=>_config_js__WEBPACK_IMPORTED_MODULE_6__.a.get("pageprovider.method","get")}}}static get observers(){return["_autoFetch(auto, provider, query, params.*, pageSize, page, sort)"]}ready(){super.ready(),this.$.nxResource.addEventListener("loading-changed",()=>{this._setLoading(this.$.nxResource.loading)})}fetch(options){this.headers||(this.headers={}),this.skipAggregates||options&&options.skipAggregates?this.headers.skipAggregates="true":delete this.headers.skipAggregates;const params=this._params;let target;return"get"===this.method.toLowerCase()?(target=this.$.nxResource,params.namedParameters&&(Object.assign(params,params.namedParameters),delete params.namedParameters)):(target=this.$.op,this.query?target.op="Repository.Query":(target.op="Repository.PageProvider",params.providerName=this.provider)),target.params=params,target.execute().then(response=>(this.currentPage=response.entries.slice(0),this.numberOfPages=response.numberOfPages,this.resultsCount=response.resultsCount,options&&options.skipAggregates||(this.aggregations=response.aggregations),this.quickFilters=response.quickFilters,this.isNextPageAvailable=response.isNextPageAvailable,this.offset=response.currentPageOffset,this.pageSize=response.pageSize,this.isPreviousPageAvailable=response.isPreviousPageAvailable,this.currentPageSize=response.currentPageSize,this.dispatchEvent(new CustomEvent("update",{bubbles:!0,composed:!0})),response)).catch(error=>{throw this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:{error:error}})),error})}get _params(){const params={currentPageIndex:this.page-1,offset:this.offset,pageSize:this.pageSize};if(this._sortKeys.length>0&&(params.sortBy=this._sortKeys.join(","),params.sortOrder=this._sortValues.join(",")),this.query&&(params.query=this.query),Array.isArray(this.params))params.queryParams=this.params;else{const{queryParams:queryParams,...otherParams}=this.params;if(queryParams&&(params.queryParams=queryParams),otherParams){const namedParams={};Object.entries(otherParams).forEach(([key,value])=>{null!=value&&(Array.isArray(value)?value=JSON.stringify(value.map(item=>item["entity-type"]?item.uid||item.id:item)):"string"!=typeof value&&(value=value["entity-type"]?value.uid||value.id:JSON.stringify(value)),namedParams[key]=value)}),params.namedParameters=namedParams}}if(this.quickFilters){const retainedFilters=[];for(let i=0;ithis.sort[k])}_autoFetch(){this.$.nxResource.params&&this.query&&0===this.query.length&&this.query!==this.$.nxResource.params.query&&(this.page=1),this.auto&&(this.query||this.provider)&&(this._debouncer=_polymer_polymer_lib_utils_debounce_js__WEBPACK_IMPORTED_MODULE_1__.a.debounce(this._debouncer,_polymer_polymer_lib_utils_async_js__WEBPACK_IMPORTED_MODULE_2__.d.after(this.autoDelay),()=>this.fetch()))}_computePath(provider,query){let path="";return query?path="/search/execute":provider&&(path=`/search/pp/${provider}/execute`),path}_fetchAggregatesChanged(){null===this.headers&&(this.headers={}),!0===this.fetchAggregates?this.headers["fetch-aggregate"]="key":delete this.headers["fetch-aggregate"]}}customElements.define(PageProvider.is,PageProvider),Nuxeo.PageProvider=PageProvider}},7:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return I18nBehavior}));__webpack_require__(5);window.nuxeo=window.nuxeo||{},window.nuxeo.I18n=window.nuxeo.I18n||{},window.nuxeo.I18n.translate=window.nuxeo.I18n.translate||function(...args){const language=window.nuxeo.I18n.language||"en",key=args[0];let value=window.nuxeo.I18n[language]&&window.nuxeo.I18n[language][key]||key;const params=Array.prototype.slice.call(args,1);for(let i=0;i{window.nuxeo.I18n.translate=window.nuxeo.I18n.translate.bind(null),document.dispatchEvent(new Event("i18n-locale-loaded"))}):new Promise(()=>{})};const I18nBehavior={properties:{i18n:{type:Function,notify:!0,value:()=>window.nuxeo.I18n.translate}},created(){this.localeLoadedHandler=this.refreshI18n.bind(this),document.addEventListener("i18n-locale-loaded",this.localeLoadedHandler)},detached(){document.removeEventListener("i18n-locale-loaded",this.localeLoadedHandler),this.localeLoadedHandler=null},refreshI18n(){this.set("i18n",window.nuxeo.I18n.translate)}}},74:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(192);const template=__webpack_require__(0).a` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NXQL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +`;document.head.appendChild(template.content)},76:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return FiltersBehavior}));var _nuxeo_moment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(825);const FiltersBehavior={isFavorite:doc=>doc&&doc.contextParameters&&doc.contextParameters.favorites&&doc.contextParameters.favorites.isFavorite,isSubscribed:doc=>doc&&doc.contextParameters&&doc.contextParameters.subscribedNotifications&&doc.contextParameters.subscribedNotifications.length>0,isCollectionMember:doc=>!(!doc||!doc.facets)&&-1===doc.facets.indexOf("NotCollectionMember"),isTrashed(doc){return!!doc&&(void 0===doc.isTrashed?this.hasState(doc,"deleted"):doc.isTrashed)},canSetRetention(document){return document&&!this.hasRunningWorkflows(document)&&!document.hasLegalHold&&!this.isVersion(document)&&this.hasPermission(document,"MakeRecord")&&this.hasPermission(document,"SetRetention")&&Object.prototype.hasOwnProperty.call(document.properties,"file:content")},canSetLegalHold(document){return!this.isVersion(document)&&this.hasPermission(document,"MakeRecord")&&this.hasPermission(document,"ManageLegalHold")&&Object.prototype.hasOwnProperty.call(document.properties,"file:content")},isRetentionDateIndeterminate:doc=>doc&&doc.retainUntil&&0===Object(_nuxeo_moment__WEBPACK_IMPORTED_MODULE_0__.a)(doc.retainUntil).diff("9999-01-01T00:00:00.000+00:00"),isVersion:doc=>doc&&doc.isVersion,isImmutable(doc){return this.hasFacet(doc,"Immutable")},isUnderRetentionOrLegalHold:doc=>doc&&doc.isUnderRetentionOrLegalHold,isRecord:doc=>doc&&doc.isRecord,hasType:(doc,type)=>doc&&doc.type===type,isProxy:doc=>doc&&doc.isProxy,pathMatches:(doc,regex)=>doc&&doc.path&&new RegExp(regex).test(doc.path),pathStartsWith(doc,path){return this.pathMatches(doc,"^"+path)},hasState:(doc,state)=>doc&&doc.state===state,hasFacet:(doc,facet)=>doc&&doc.facets&&-1!==doc.facets.indexOf(facet),hasPermission:(doc,permission)=>doc&&doc.contextParameters&&doc.contextParameters.permissions&&-1!==doc.contextParameters.permissions.indexOf(permission),hasContent(doc,xpath){return!(!doc||!doc.properties)&&this.get(xpath||"file:content",doc.properties)},hasAttachments:doc=>doc&&doc.properties&&doc.properties["files:files"]&&doc.properties["files:files"].length>0,hasVersions:doc=>doc&&(doc.properties["uid:major_version"]>0||doc.properties["uid:minor_version"]>0),hasCollections:doc=>doc&&doc.contextParameters&&doc.contextParameters.collections&&doc.contextParameters.collections.length>0,hasSchema:(doc,schema)=>doc&&doc.schemas&&doc.schemas.some(sch=>sch.prefix===schema||sch.name===schema),isMember:(user,group)=>user&&user.extendedGroups&&user.extendedGroups.find(grp=>grp.name===group),isPublishable(doc){return doc&&!this.isProxy(doc)&&!this.isRecord(doc)&&!this.isTrashed(doc)&&this.hasFacet(doc,"Publishable")&&this.hasPermission(doc,"WriteVersion")},isPublication(doc){return doc&&this.isProxy(doc)&&this.hasFacet(doc,"Immutable")},isTaggable(doc){return!this.isProxy(doc)&&!doc.isVersion&&this.hasPermission(doc,"Write")},hasAdministrationPermissions(user){return user&&(user.isAdministrator||this.isMember(user,"powerusers"))},hasRunningWorkflows(document){if(!document||!document.contextParameters)return!1;const workflows=document.contextParameters.runningWorkflows;return workflows&&workflows.length>0},hasRunnableWorkflows(document){if(!document||!document.contextParameters)return!1;const processes=document.contextParameters.runnableWorkflows;return processes&&processes.length>0}}},78:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return config.a}));__webpack_require__(220),__webpack_require__(154);var html_tag=__webpack_require__(0);__webpack_require__(10);{class DocumentElement extends Nuxeo.Element{static get template(){return html_tag.a` + + + + `}static get is(){return"nuxeo-document"}static get properties(){return{connectionId:{type:String,value:""},auto:{type:Boolean,value:!1},method:{type:String,value:"get"},docId:{type:String,value:""},docPath:{type:String,value:""},path:{type:String,computed:"_computePath(docId, docPath)"},params:{type:Object,value:null},data:{type:Object,value:null},response:{type:Object,value:null,notify:!0},type:{type:String,value:""},headers:{type:Object,value:null},enrichers:{type:Object,value:{}},schemas:{type:String,value:""},syncIndexing:Boolean,loading:{type:Boolean,notify:!0,readOnly:!0,value:!1}}}ready(){super.ready(),this.$.nxResource.addEventListener("loading-changed",()=>{this._setLoading(this.$.nxResource.loading)}),this.$.nxResource.addEventListener("response",e=>{this.documentData=e.detail&&e.detail.response?e.detail.response:null;const documentDataProperties=this.documentData&&this.documentData.properties,fileContent=documentDataProperties&&documentDataProperties["file:content"],files=documentDataProperties&&documentDataProperties["files:files"];(fileContent&&fileContent.data||files&&files.length>0&&files.every(item=>item.file&&item.file.data))&&!this.isFollowRedirectEnabled()&&this.setDocumentViewDownloadProp()})}isFollowRedirectEnabled(){const followRedirect=Nuxeo&&Nuxeo.UI&&Nuxeo.UI.config&&Nuxeo.UI.config.url&&Nuxeo.UI.config.url.followRedirect;return!!followRedirect&&"true"===String(followRedirect).toLowerCase()}get(){return this.method="get",this.execute()}post(){return this.method="post",this.execute()}put(){return this.method="put",this.execute()}remove(){return this.method="delete",this.execute()}execute(){return this.$.nxResource.execute()}_computePath(docId,docPath){let path="";return docId?path="/id/"+docId:docPath&&(path="/path/"+docPath),path}appendClientReason(documentProp){let sourceUrl="";if(documentProp&&("url"in documentProp?sourceUrl="url":"data"in documentProp&&(sourceUrl="data")),sourceUrl){const splitter=documentProp[sourceUrl].indexOf("?")>-1?"&":"?";documentProp.viewUrl=`${documentProp[sourceUrl]}${splitter}clientReason=view`,documentProp.downloadUrl=`${documentProp[sourceUrl]}${splitter}clientReason=download`}}setDocumentViewDownloadProp(){const documentProps=[];if(this.documentData){if(this.documentData.contextParameters){const documentContextParams=this.documentData.contextParameters;documentProps.push(documentContextParams.preview),documentProps.push(documentContextParams.renditions)}if(this.documentData.properties){const documentDataProperties=this.documentData.properties;documentProps.push(documentDataProperties["file:content"],documentDataProperties["files:files"],documentDataProperties["picture:views"],documentDataProperties["vid:transcodedVideos"],documentDataProperties["vid:storyboard"])}documentProps.forEach(docProp=>{if(Array.isArray(docProp)){let propContentObj;docProp.forEach(prop=>{propContentObj=prop.content?prop.content:prop,this.appendClientReason(prop.file?prop.file:propContentObj)})}else this.appendClientReason(docProp)})}}}customElements.define(DocumentElement.is,DocumentElement),Nuxeo.Document=DocumentElement}__webpack_require__(96),__webpack_require__(659);var debounce=__webpack_require__(19),utils_async=__webpack_require__(11),legacy_class=__webpack_require__(4),nuxeo_notify_behavior=__webpack_require__(87);{class AuditPageProvider extends(Object(legacy_class.b)([nuxeo_notify_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + + + + + + + `}static get is(){return"nuxeo-audit-page-provider"}static get properties(){return{connectionId:{type:String,value:""},auto:{type:Boolean,value:!1},autoDelay:{type:Number,value:300},params:{type:Object,value:{}},docId:{type:String},pageSize:{type:Number,value:-1},page:{type:Number,value:1},currentPage:{type:Array,value:[],notify:!0},sort:{type:Object,value:{},notify:!0},numberOfPages:{type:Number,notify:!0},resultsCount:{type:Number,notify:!0},isNextPageAvailable:{type:Boolean,value:!1,notify:!0},currentPageSize:{type:Number,notify:!0},enrichers:{type:Object,value:{}},schemas:{type:String},headers:{type:Object,value:null},loading:{type:Boolean,notify:!0,readOnly:!0}}}static get observers(){return["_resetAndAutoFetch(params.*, docId, pageSize, sort)","_autoFetch(page)"]}_stringifyJSONObject(input){const result=input;return null!==input&&Object.keys(input).forEach(key=>{"string"==typeof input[key]?result[key]=input[key]:result[key]=JSON.stringify(input[key])}),result}fetch(){return this._isForDoc?this._fetchRes():this._fetchOp()}_fetchOp(){const params={providerName:"EVENTS_VIEW",namedQueryParams:this._stringifyJSONObject(this.params),currentPageIndex:this.page-1,pageSize:this.pageSize};return this._fetch(this.$.auditOp,params)}_fetchRes(){const params={};return this.params.startDate&&(params.startEventDate=this.params.startDate),this.params.endDate&&(params.endEventDate=this.params.endDate),this.params.eventCategory&&(params.category=this.params.eventCategory),this.params.eventIds&&(params.eventId=this.params.eventIds),this.params.principalName&&(params.principalName=this.params.principalName),params.currentPageIndex=this.page-1,params.pageSize=this.pageSize,this._fetch(this.$.res,params)}_fetch(exec,params){return this._sortKeys.length>0&&(params.sortBy=this._sortKeys.join(","),params.sortOrder=this._sortValues.join(",")),exec.params=params,exec.execute().then(response=>(this.currentPage=response.entries.slice(0),this.numberOfPages=response.numberOfPages,this.resultsCount=response.resultsCount,this.isNextPageAvailable=response.isNextPageAvailable,this.currentPageSize=response.currentPageSize,this.dispatchEvent(new CustomEvent("update",{bubbles:!0,composed:!0})),response)).catch(error=>{throw this.notify({error:error}),error})}get _sortKeys(){return Object.keys(this.sort)}get _sortValues(){return this._sortKeys.map(k=>this.sort[k])}get _isForDoc(){return this.docId&&this.docId.length>0}_resetAndAutoFetch(){this.page=1,this._autoFetch()}_autoFetch(){this.auto&&(this._debouncer=debounce.a.debounce(this._debouncer,utils_async.d.after(this.autoDelay),()=>this.fetch()))}}customElements.define(AuditPageProvider.is,AuditPageProvider),Nuxeo.AuditPageProvider=AuditPageProvider}{class TaskPageProvider extends Nuxeo.Element{static get template(){return html_tag.a` + + + + + `}static get is(){return"nuxeo-task-page-provider"}static get properties(){return{connectionId:{type:String,value:""},auto:{type:Boolean,value:!1},autoDelay:{type:Number,value:300},params:{type:Object,value:{}},pageSize:{type:Number,value:40},page:{type:Number,value:1},offset:{type:Number,notify:!0},currentPage:{type:Array,value:[],notify:!0},numberOfPages:{type:Number,notify:!0},resultsCount:{type:Number,notify:!0},aggregations:{type:Object,value:{},notify:!0},isNextPageAvailable:{type:Boolean,value:!1,notify:!0},isPreviousPageAvailable:{type:Boolean,value:!1,notify:!0},currentPageSize:{type:Number,notify:!0},headers:{type:Function,value:()=>({"fetch-task":"targetDocumentIds,actors"})},loading:{type:Boolean,notify:!0,readOnly:!0}}}static get observers(){return["_autoFetch(auto, params.*, pageSize, page)"]}ready(){super.ready(),this.$.nxResource.addEventListener("loading-changed",()=>{this._setLoading(this.$.nxResource.loading)})}fetch(){return this.headers||(this.headers={}),this.$.nxResource.params=this._params,this.$.nxResource.execute().then(response=>(this.currentPage=response.entries.slice(0),this.numberOfPages=response.numberOfPages,this.resultsCount=response.resultsCount,this.isNextPageAvailable=response.isNextPageAvailable,this.offset=response.currentPageOffset,this.pageSize=response.pageSize,this.isPreviousPageAvailable=response.isPreviousPageAvailable,this.currentPageSize=response.currentPageSize,this.dispatchEvent(new CustomEvent("update",{bubbles:!0,composed:!0})),response)).catch(error=>{throw this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:{error:error}})),error})}get _params(){const params={currentPageIndex:this.page-1,offset:this.offset,pageSize:this.pageSize};return Object.keys(this.params).forEach(key=>{const value=this.params[key];null!=value&&("string"==typeof value?params[key]=value:Array.isArray(value)?params[key]=JSON.stringify(value.map(item=>item["entity-type"]?item.uid||item.id:item)):params[key]=value["entity-type"]?value.uid||value.id:JSON.stringify(value))},this),params}_autoFetch(){this.$.nxResource.params&&(this.page=1),this.auto&&(this._debouncer=debounce.a.debounce(this._debouncer,utils_async.d.after(this.autoDelay),()=>this.fetch()))}}customElements.define(TaskPageProvider.is,TaskPageProvider)}{class Search extends Nuxeo.Element{static get template(){return html_tag.a` + + + + + `}static get is(){return"nuxeo-search"}static get properties(){return{searchId:{type:String,value:""},data:{type:Object},search:{type:Object,notify:!0},searches:{type:Array,notify:!0},results:{type:Array,notify:!0},path:{type:String,computed:"_computePath(auto, searchId)"},params:{type:Object},connectionId:{type:String},auto:{type:Boolean,value:!1,observer:"_autoChanged"},method:{type:String,value:"get"},headers:{type:Object},autoDelay:{type:Number,value:300},loading:{type:Boolean,notify:!0,readOnly:!0}}}ready(){super.ready(),this.$.resource.addEventListener("loading-changed",()=>{this._setLoading(this.$.resource.loading)})}get(){return this.method="get",this.$.resource.execute().then(response=>(this.searchId?this.search=response:this.searches=response.entries,response))}post(){return this.method="post",this.$.resource.execute()}put(){return this.method="put",this.$.resource.execute()}remove(){return this.method="delete",this.$.resource.execute()}execute(){this.searchId&&(this.method="get",this.$.resource.path+="/execute",this.$.resource.execute().then(response=>{this.results=response.entries}))}_computePath(){let path="/search/saved";return this.searchId&&(path+="/"+this.searchId),path}_autoChanged(){this.auto&&this.path&&(this._debouncer=debounce.a.debounce(this._debouncer,utils_async.d.after(this.autoDelay),()=>this.get().then(()=>this.execute())))}}customElements.define(Search.is,Search),Nuxeo.Search=Search}var config=__webpack_require__(311)},797:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__(10),__webpack_require__(47),__webpack_require__(7));__webpack_require__(222),__webpack_require__(60),__webpack_require__(105),__webpack_require__(81);{class LinkButton extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_4__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + `}static get is(){return"nuxeo-link-button"}static get properties(){return{href:String,target:String,iconSrc:String,icon:String,showLabel:{type:Boolean,value:!1},label:String}}_isAvailable(){return this.href&&(this.icon||this.iconSrc)}}customElements.define(LinkButton.is,LinkButton),Nuxeo.LinkButton=LinkButton}},799:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(36),__webpack_require__(10);var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0);__webpack_require__(74);{class CheckMark extends Nuxeo.Element{static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_2__.a` + + + + `}static get is(){return"nuxeo-checkmark"}static get properties(){return{checked:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_ariaChecked"},disabled:{type:Boolean,reflectToAttribute:!0,value:!1}}}ready(){super.ready(),this.setAttribute("role","checkbox"),this.setAttribute("aria-checked",!1)}_tap(){this.disabled||(this.checked=!this.checked)}_ariaChecked(){this.setAttribute("aria-checked",this.checked)}}customElements.define(CheckMark.is,CheckMark),Nuxeo.CheckMark=CheckMark}},800:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__(10),__webpack_require__(86),__webpack_require__(7));{class AggregationNavigation extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_4__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + +
+ + + +
+
[[_cursorLabel]]
+
+
+ `}static get is(){return"nuxeo-aggregation-navigation"}static get properties(){return{buckets:{type:Array,value:[],observer:"_bucketsChanged"},granularity:{type:Number,value:30},opacity:{type:Number,value:.85},_keys:{type:Array,value:[]},_count:{type:Number,value:0},_cursorIndex:{type:Number,value:0},_cursorLabel:{type:String,value:""},_rect:{type:Object,value:{top:0,right:0,left:0,bottom:0}}}}connectedCallback(){super.connectedCallback(),this.addEventListener("mouseover",()=>{this._visibility(!0)}),this.addEventListener("mouseout",()=>{this._visibility(!1)})}_visibility(visible){this.$.keys.style.visibility=visible?"visible":"hidden",this.style.background=visible?"rgba(255, 255, 255, 0.85)":"transparent"}_label(key){return this.i18n(key.name)}_bucketsChanged(buckets){this._rect=this.$.keys.getBoundingClientRect(),this._count=0,buckets.forEach(bucket=>{this._count+=bucket.docCount}),this.style.opacity=this._count?this.opacity:0,this.set("_keys",[]);let offset=1,{granularity:granularity}=this;buckets.forEach(bucket=>{let visible=!1;granularity>=this.granularity&&(visible=!0,granularity=0);const height=bucket.docCount*(this._rect.height/this._count);this.push("_keys",{name:bucket.key,offset:offset,size:bucket.docCount,top:offset*this._rect.height/this._count,height:height,visible:visible}),offset+=bucket.docCount,granularity+=height})}_tap(){this.dispatchEvent(new CustomEvent("scroll-to",{composed:!0,bubbles:!0,detail:{index:this._cursorIndex}}))}_mouseMove(e){const y=e.y-this._rect.top;this.$.cursor.style.display="block",this.$.cursor.style.top=y+"px",this._cursorIndex=Math.round(this._count*y/this._rect.height),this._cursorLabel=this._label(e.model.key)}_mouseOut(){this.$.cursor.style.display="none"}_color(visible){return visible?"black":"transparent"}}customElements.define(AggregationNavigation.is,AggregationNavigation),Nuxeo.AggregationNavigation=AggregationNavigation}},801:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(10);var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),_nuxeo_i18n_behavior__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7);{class DocumentThumbnail extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_2__.b)([_nuxeo_i18n_behavior__WEBPACK_IMPORTED_MODULE_3__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__.a` + + + [[_title(document)]] + `}static get is(){return"nuxeo-document-thumbnail"}static get properties(){return{document:Object}}_thumbnail(doc){return doc&&doc.uid&&doc.contextParameters&&doc.contextParameters.thumbnail&&doc.contextParameters.thumbnail.url?doc.contextParameters.thumbnail.url:""}_error(){this.$.img.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}_title(doc){return doc&&doc.title?this.i18n("accessibility.thumbnail",doc.title):""}}customElements.define(DocumentThumbnail.is,DocumentThumbnail),Nuxeo.DocumentThumbnail=DocumentThumbnail}},802:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_3__=(__webpack_require__(10),__webpack_require__(78)),_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(88),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7);__webpack_require__(60);{class Date extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_1__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_5__.a,_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_4__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + [[formatDate(datetime, format, timezone)]] + + + [[formatDateTime(datetime, tooltipFormat, timezone)]] + + `}static get is(){return"nuxeo-date"}static get properties(){return{datetime:{type:String},format:String,tooltipFormat:String,timezone:{type:String,value:()=>_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_3__.a.get("timezone")}}}_producesSameDateFormat(datetime,format,tooltipFormat,timezone){return this.formatDate(datetime,format,timezone)===this.formatDateTime(datetime,tooltipFormat,timezone)}}customElements.define(Date.is,Date),Nuxeo.Date=Date}},803:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);__webpack_require__(36),__webpack_require__(10),__webpack_require__(154),__webpack_require__(74);{class UserAvatar extends Nuxeo.Element{static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + + + + + `}static get is(){return"nuxeo-user-avatar"}static get properties(){return{user:{type:Object},fetchAvatar:{type:Boolean,value:!1},height:{type:Number,value:48,observer:"__obsHeight"},width:{type:Number,value:48,observer:"__obsWidth"},textColor:{type:String,value:"#FFFFFF",observer:"__obsTextColor"},fontSize:{type:Number,value:20,observer:"__obsFontSize"},fontWeight:{type:Number,value:400,observer:"__obsFontWeight"},borderRadius:{type:Number,value:0,observer:"__obsBorderRadius"},boxShadow:{type:String,value:"0px 0px 0px 0px rgba(33,33,33,0.75)",observer:"__obsBoxShadow"},textShadow:{type:String,value:"0px 0px 0px rgba(33,33,33,0.75)",observer:"__obsTextShadow"},_output:{type:String}}}static get observers(){return["__makeAvatar(user)"]}_username(user){return this._isEntity(user)?user.properties.username||user.properties["user:username"]:this._id(user)}_isEntity(user){return user&&user["entity-type"]&&("user"===user["entity-type"]||"document"===user["entity-type"]&&"user"===user.type)&&user.properties}_id(user){if(user){return user.id||user.uid||user.replace("user:","")}}_name(user){if(this._isEntity(user)){return[user.properties.firstName||user.properties["user:firstName"],user.properties.lastName||user.properties["user:lastName"]].join(" ").trim()||this._id(user)}return this._id(user)}_email(user){if(this._isEntity(user)){const email=user.properties.email||user.properties["user:email"];return email!==this._id(user)?email:""}return""}__obsHeight(){this.$.container.style.height=this.height+"px"}__obsWidth(){this.$.container.style.width=this.width+"px"}__obsTextColor(){this.$.character.style.color=this.textColor}__obsFontSize(){this.$.character.style.fontSize=this.fontSize+"px"}__obsFontWeight(){this.$.character.style.fontWeight=this.fontWeight}__obsBorderRadius(){""!==this.borderRadius&&null!=this.borderRadius||(this.borderRadius=0),this.$.container.style.borderRadius=this.borderRadius+"%"}__obsBoxShadow(){this.$.container.style.webkitBoxShadow=this.boxShadow,this.$.container.style.mozBoxShadow=this.boxShadow,this.$.container.style.boxShadow=this.boxShadow}__obsTextShadow(){this.$.character.style.webkitTextShadow=this.textShadow,this.$.character.style.mozTextShadow=this.textShadow,this.$.character.style.textShadow=this.textShadow}__generateHue(){let hash=0;const userId=this._id(this.user);return Object.keys(userId).forEach(user=>{hash&=hash,hash=userId.charCodeAt(user)+((hash<<5)-hash)}),Math.abs(hash%360)}__makeAvatar(){if(this.user)if(this.user.contextParameters&&this.user.contextParameters.userprofile&&this.user.contextParameters.userprofile.avatar)this._output="",this.$.container.style.background=`url(${this.user.contextParameters.userprofile.avatar.data})`,this.$.container.style.backgroundRepeat="no-repeat",this.$.container.style.backgroundSize=`${this.height}px ${this.height}px`;else{const name=this._name(this.user),alphabetPosition=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","1","2","3","4","5","6","7","8","9","0"].indexOf(name.charAt(0).toLowerCase());if(this.$.container.style.backgroundColor=`hsl(${this.__generateHue()}, 70%, 42%)`,this._isInTheAlphabet=alphabetPosition>-1,this._isInTheAlphabet){let tempName="";const splitName=name.split(" ");for(let i=0;i{res.contextParameters&&res.contextParameters.userprofile&&res.contextParameters.userprofile.avatar&&(this.user=res)}).catch(()=>{console.warn("Cannot fetch profile for user "+this._username(this.user))}))}}}customElements.define(UserAvatar.is,UserAvatar),Nuxeo.UserAvatar=UserAvatar}},805:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(64),__webpack_require__(36),__webpack_require__(123),__webpack_require__(47),__webpack_require__(1479),__webpack_require__(435),__webpack_require__(431),__webpack_require__(433),__webpack_require__(38),__webpack_require__(220),__webpack_require__(10),__webpack_require__(154);var _nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(87),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_17__=(__webpack_require__(140),__webpack_require__(60),__webpack_require__(807),__webpack_require__(808),__webpack_require__(4)),_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(0),_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(39),_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(88);__webpack_require__(81);{class DocumentComment extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_17__.b)([_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_12__.a,_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_20__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_18__.a` + + + + + + +

[[i18n('comments.deletion.dialog.heading')]]

+
[[_computeConfirmationLabel(comment.numberOfReplies)]]
+
+ [[i18n('comments.deletion.dialog.buttons.cancel')]] + [[i18n('comments.deletion.dialog.buttons.delete')]] +
+
+ + + + + `}static get is(){return"nuxeo-document-comment"}static get properties(){return{comment:{type:Object},level:{type:Number,value:1},truncated:{type:Boolean,computed:"_computeTruncatedFlag(comment.showFull, comment.text, maxChars)"},maxChars:{type:Number,readOnly:!0,value:256},editing:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1}}}connectedCallback(){super.connectedCallback(),this.addEventListener("number-of-replies",this._handleRepliesChange),this.text=this.comment&&this.comment.text}disconnectedCallback(){this.removeEventListener("number-of-replies",this._handleRepliesChange),super.disconnectedCallback()}_checkForEnter(e){13===e.keyCode&&e.ctrlKey&&!this._isBlank(this.comment.text)&&this._submitComment()}_clearInput(){this._setEditing(!1),this.text=this.comment.text}_deleteComment(){this.$.commentRequest.data={},this.$.commentRequest.remove().then(()=>{this.dispatchEvent(new CustomEvent("delete-comment",{composed:!0,bubbles:!0,detail:{commentId:this.comment.id}}))}).catch(error=>{if(404!==error.status)throw this.notify({message:this._computeTextLabel(this.level,"deletion.error")}),error;this.notify({message:this._computeTextLabel(this.level,"notFound")})})}_editComment(){this._setEditing(!0),this.set("comment.text",this.$$("#view-comment").innerHTML),this.text=this.get("comment.text"),Object(_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_19__.a)(this,(function(){this.$$("#inputContainer").focus()}))}_expand(){this.set("comment.expanded",!0)}_handleRepliesChange(event){const numberOfReplies=event.detail.total;0===numberOfReplies&&this.set("comment.expanded",!1),this.set("comment.numberOfReplies",numberOfReplies),event.stopPropagation()}_reply(){this.comment.expanded||this._expand(),Object(_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_19__.a)(this,(function(){this.$$("#thread").focusInput()}))}_showFullComment(){this.set("comment.showFull",!0)}_submitComment(e){e&&e.preventDefault(),this.$.commentRequest.data={"entity-type":"comment",parentId:this.comment.parentId,text:this.$$("#inputContainer").value.trim()},this.$.commentRequest.put().then(response=>{this.dispatchEvent(new CustomEvent("edit-comment",{composed:!0,bubbles:!0,detail:{commentId:this.comment.id,modificationDate:response.modificationDate,text:response.text}})),this.text=response.text,this.set("comment.modificationDate",response.modificationDate),this.set("comment.text",response.text),this._clearInput()}).catch(error=>{if(404!==error.status)throw this.notify({message:this._computeTextLabel(this.level,"edition.error")}),error;this.notify({message:this._computeTextLabel(this.level,"notFound")})})}_toggleDeletionConfirmation(){this.$.dialog.toggle()}_computeAvatarDimensions(level){return this._isRootElement(level)?24:20}_computeAvatarFontSize(level){return this._isRootElement(level)?13:11}_computeConfirmationLabel(replies){return this.i18n("comments.deletion.dialog.message."+(replies>0?"withReplies":"withoutReplies"))}_computeDateLabel(item,option){if(item){let date=this.formatDate(item.creationDate,"relative");return"lastReplyDate"===option?(date=this.formatDate(item.lastReplyDate,"relative"),this.i18n("comments.lastReply",date)):item.modificationDate?this.i18n("comments.edited",date):date}}_computeMaxRows(){const lineHeight=parseFloat(this.getComputedStyleValue("--nuxeo-comment-line-height")),maxHeight=parseFloat(this.getComputedStyleValue("--nuxeo-comment-max-height"));return Math.round((Number.isNaN(maxHeight)?80:maxHeight)/(Number.isNaN(lineHeight)?20:lineHeight))}_computeSubLevel(level){return level+1}_computeTextLabel(level,option,placeholder){return 1===level?this.i18n(`comments.${option}.comment`,placeholder):this.i18n(`comments.${option}.reply`,placeholder)}_computeTextToDisplay(text,maxChars,truncated){let parsedText=text;return truncated&&(parsedText=text.substring(0,maxChars-1)+"…"),parsedText}_computeTruncatedFlag(showFull,text,limit){return!showFull&&"string"==typeof text&&text.length>limit}_areExtendedOptionsAvailable(author,currentUser){return currentUser&&(currentUser.properties&¤tUser.properties.username===author||currentUser.isAdministrator)}_isBlank(text){return!text||"string"!=typeof text||0===text.trim().length}_isRootElement(level){return 1===level}_isSummaryVisible(expanded,total){return!expanded&&total>0}}customElements.define(DocumentComment.is,DocumentComment)}},807:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(36),__webpack_require__(435),__webpack_require__(38),__webpack_require__(86),__webpack_require__(10),__webpack_require__(154);var _nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(87),_polymer_polymer_lib_legacy_class__WEBPACK_IMPORTED_MODULE_10__=(__webpack_require__(60),__webpack_require__(805),__webpack_require__(808),__webpack_require__(4)),_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(0),_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(88);{class DocumentCommentThread extends(Object(_polymer_polymer_lib_legacy_class__WEBPACK_IMPORTED_MODULE_10__.b)([_nuxeo_nuxeo_elements_nuxeo_notify_behavior_js__WEBPACK_IMPORTED_MODULE_6__.a,_nuxeo_format_behavior_js__WEBPACK_IMPORTED_MODULE_12__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_11__.a` + + + + + + + + + + + + + + + `}static get is(){return"nuxeo-document-comment-thread"}static get properties(){return{uid:{type:String,observer:"_refresh"},comments:{type:Array,value:()=>[]},level:{type:Number,value:1},pageSize:{type:Number,readOnly:!0,value:10},allCommentsLoaded:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},total:{type:Number,readOnly:!0,value:0}}}connectedCallback(){super.connectedCallback(),this.addEventListener("delete-comment",this._handleDeleteEvent),this.addEventListener("edit-comment",this._handleEditEvent),this.addEventListener("comments-changed",this._handleCommentsChange)}disconnectedCallback(){this.removeEventListener("delete-comment",this._handleDeleteEvent),this.removeEventListener("edit-comment",this._handleEditEvent),this.removeEventListener("comments-changed",this._handleCommentsChange),super.disconnectedCallback()}focusInput(){this.$$("#inputContainer").focus()}_checkForEnter(e){13===e.keyCode&&e.ctrlKey&&!this._isBlank(this.text)&&this._submitComment()}_clearInput(){this.text=""}_clearRequest(){this.$.commentRequest.data={},this.$.commentRequest.headers={},this.$.commentRequest.params={}}_fetchComments(loadAll){this._clearRequest(),this.$.commentRequest.params={pageSize:loadAll?0:this.pageSize,currentPageIndex:0},this.$.commentRequest.headers={"fetch-comment":"repliesSummary"},this.$.commentRequest.get().then(response=>{const olderComment=this.comments.length>0?this.comments[0]:null,newComments=response.entries;for(;newComments.length>0&&olderComment&&(newComments[0].creationDate>olderComment.creationDate||newComments[0].id===olderComment.id);)newComments.shift();response.entries.forEach(entry=>{this.unshift("comments",entry)}),this._setTotal(response.totalSize),this._setAllCommentsLoaded(!!loadAll)}).catch(error=>{if(404!==error.status)throw this.notify({message:this._computeTextLabel(this.level,"fetch.error")}),error;this.notify({message:this._computeTextLabel(this.level,"notFound")})})}_getCommentIndexById(commentId){return this.comments.findIndex(entry=>entry.id===commentId)}_handleCommentsChange(event){"comments.length"===event.detail.path&&this.dispatchEvent(new CustomEvent("number-of-replies",{composed:!0,bubbles:!0,detail:{total:this.comments.length}}))}_handleDeleteEvent(event){const index=this._getCommentIndexById(event.detail.commentId);-1!==index&&(this.splice("comments",index,1),this._setTotal(this.total-1)),event.stopPropagation()}_handleEditEvent(event){const index=this._getCommentIndexById(event.detail.commentId);-1!==index&&(this.set(`comments.${index}.modificationDate`,event.detail.modificationDate),this.set(`comments.${index}.text`,event.detail.text)),event.stopPropagation()}_loadMore(){this._fetchComments(!0)}_refresh(){this.set("comments",[]),this._fetchComments(this.allCommentsLoaded)}_submitComment(e){e&&e.preventDefault(),this._clearRequest(),this.$.commentRequest.data={"entity-type":"comment",parentId:this.uid,text:this.text.trim()},this.$.commentRequest.post().then(response=>{this._clearInput(),this.push("comments",response),this._setTotal(this.total+1)}).catch(error=>{if(404!==error.status)throw this.notify({message:this._computeTextLabel(this.level,"creation.error")}),error;this.notify({message:this._computeTextLabel(this.level,"notFound")})})}_computeMaxRows(){const lineHeight=parseFloat(this.getComputedStyleValue("--nuxeo-comment-line-height")),maxHeight=parseFloat(this.getComputedStyleValue("--nuxeo-comment-max-height"));return Math.round((Number.isNaN(maxHeight)?80:maxHeight)/(Number.isNaN(lineHeight)?20:lineHeight))}_computeTextLabel(level,option,placeholder){return 1===level?this.i18n(`comments.${option}.comment`,placeholder):this.i18n(`comments.${option}.reply`,placeholder)}_allowReplies(level){return level<=2}_isBlank(text){return!text||"string"!=typeof text||0===text.trim().length}_moreAvailable(length,total,allCommentsLoaded){return length + + +`;document.head.appendChild(template.content)},809:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(39),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),_polymer_polymer_lib_utils_resolve_url_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(56),_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_5__=(__webpack_require__(10),__webpack_require__(78)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_7__=(__webpack_require__(434),__webpack_require__(7)),_nuxeo_routing_behavior_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(141);function getAbsoluteUrl(relativeUrl){const publicPath=__webpack_require__.p;let url="";return(!publicPath||publicPath.indexOf("://")<0)&&(url+=window.location.protocol+"//"+window.location.host),url+=publicPath||"/",url+relativeUrl}{class SearchFormLayout extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_2__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_7__.a,_nuxeo_routing_behavior_js__WEBPACK_IMPORTED_MODULE_8__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_0__.a` + + `}static get is(){return"nuxeo-search-form-layout"}static get importMeta(){return{url:getAbsoluteUrl("/nuxeo-search-form-layout.js")}}static get properties(){return{provider:String,searchName:String,params:{type:Object,notify:!0},skipAggregates:{type:Boolean,notify:!0},aggregations:{type:Object,observer:"_aggregationsChanged"},model:{type:Object,value:()=>({})},hrefBase:{type:String,value:()=>_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_5__.a.get("layouts.search.hrefBase")}}}static get observers(){return["_paramsChanged(params.*)"]}get element(){return this.$.layout.element}_paramsChanged(){this.element&&(this.element.params=this.params)}_aggregationsChanged(){this.element&&(this.element.aggregations=this.aggregations)}_formHref(provider,searchName,hrefBase){if(null==provider)return"";const name=(searchName||provider).toLowerCase();return`${hrefBase||Object(_polymer_polymer_lib_utils_resolve_url_js__WEBPACK_IMPORTED_MODULE_3__.a)(this.__dataHost.importPath||this.importPath)}${name}/${["nuxeo",name,"search-form"].join("-")}.html`}_formModel(){return{provider:this.provider,params:this.params,aggregations:this.aggregations}}_formChanged(e){Object(_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_1__.a)(this,()=>{this.dispatchEvent(new CustomEvent("search-form-layout-changed",{composed:!0,bubbles:!0,detail:e.detail})),this.element.addEventListener("params-changed",evt=>{this.notifyPath(evt.detail.path||"params",evt.detail.value)}),this.skipAggregates=this.element.skipAggregates,this.element.addEventListener("skip-aggregates-changed",evt=>{this.notifyPath(evt.detail.path||"skipAggregates",evt.detail.value)})})}}customElements.define(SearchFormLayout.is,SearchFormLayout)}},81:function(module,__webpack_exports__,__webpack_require__){"use strict";const template=__webpack_require__(0).a` + + + +`;document.head.appendChild(template.content)},810:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_lib_legacy_polymer_dom_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),_polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),_polymer_polymer_lib_utils_resolve_url_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(56),_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_5__=(__webpack_require__(10),__webpack_require__(78)),_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_7__=(__webpack_require__(434),__webpack_require__(39)),_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7);function getAbsoluteUrl(relativeUrl){const publicPath=__webpack_require__.p;let url="";return(!publicPath||publicPath.indexOf("://")<0)&&(url+=window.location.protocol+"//"+window.location.host),url+=publicPath||"/",url+relativeUrl}{class SearchResultsLayout extends(Object(_polymer_polymer_lib_legacy_class_js__WEBPACK_IMPORTED_MODULE_2__.b)([_nuxeo_i18n_behavior_js__WEBPACK_IMPORTED_MODULE_8__.a],Nuxeo.Element)){static get template(){return _polymer_polymer_lib_utils_html_tag_js__WEBPACK_IMPORTED_MODULE_1__.a` + + `}static get is(){return"nuxeo-search-results-layout"}static get importMeta(){return{url:getAbsoluteUrl("/nuxeo-search-results-layout.js")}}static get properties(){return{searchName:String,nxProvider:HTMLElement,model:{type:Object,value:()=>({})},results:{type:Object,notify:!0},hrefBase:{type:String,value:()=>_nuxeo_nuxeo_elements__WEBPACK_IMPORTED_MODULE_5__.a.get("layouts.search.hrefBase")}}}get element(){return this.$.results&&this.$.results.element}fetch(){if(!this.results)return Promise.resolve();this.results.fetch()}reset(){this.results&&this.results.reset()}_resultsHref(searchName,hrefBase){if(!searchName)return"";const name=searchName.toLowerCase();return`${hrefBase||Object(_polymer_polymer_lib_utils_resolve_url_js__WEBPACK_IMPORTED_MODULE_3__.a)(this.__dataHost.importPath||this.importPath)}${name}/${["nuxeo",name,"search-results"].join("-")}.html`}_resultsModel(){return{nxProvider:this.nxProvider,name:this.searchName}}_formChanged(e){Object(_polymer_polymer_lib_utils_render_status_js__WEBPACK_IMPORTED_MODULE_7__.a)(this,()=>{this.results=e.detail.value&&this._grabResults([e.detail.value])})}_grabResults(els){if(!Array.isArray(els)||0===els.length)return;let i,el;for(i=0;i + :host { + height: 100%; + display: flex; + align-items: center; + } + :host([hidden]) { + display: none; + } + /* ELEMENTS-1214: Align this element appearance with nuxeo-selectivity */ + paper-input { + --paper-input-container: { + font-size: inherit; + margin: 12px 2px 9px 2px; + margin-top: 3px; + } + + --paper-input-container-input: { + min-height: 2em; + padding: 0; + font-size: inherit; + font-weight: 600; + } + + --paper-input-container-color: { + color: var(--nuxeo-text-default, #3a3a54); + } + + --paper-input-container-label: { + font-size: inherit; + color: #999; + font-weight: 600; + padding: 0; + } + } + + + `}static get is(){return"nuxeo-data-table-column-filter"}static get properties(){return{label:String,value:{type:String,notify:!0},hidden:Boolean}}_valueChanged(e){const{value:value}=e.detail;this._debouncer=debounce.a.debounce(this._debouncer,utils_async.d.after(250),()=>{this.value=value})}}customElements.define(DataTableColumnFilter.is,DataTableColumnFilter),Nuxeo.DataTableColumnFilter=DataTableColumnFilter}{class DataTableColumn extends Nuxeo.Element{static get template(){return html_tag.a` + + `}static get is(){return"nuxeo-data-table-column"}static get properties(){return{alignRight:{type:Boolean,value:!1},name:{type:String,value:""},filterBy:String,filterValue:String,filterExpression:String,width:{type:String,value:"100px"},flex:{type:Number,value:1},hidden:{type:Boolean,value:!1},alwaysVisible:{type:Boolean,value:!1},order:{type:Number,notify:!0},sortBy:{type:String},field:{type:String},table:Object,headerTemplate:{type:Object,readOnly:!0},template:{type:Object,readOnly:!0},overflow:{type:String,value:"hidden"}}}static get observers(){return["_alignRightChanged(table, alignRight)","_filterValueChanged(table, filterValue, filterBy, filterExpression)","_filterByChanged(table, filterBy)","_flexChanged(table, flex)","_overflowChanged(table, overflow)","_headerTemplateChanged(table, headerTemplate)","_hiddenChanged(table, hidden)","_alwaysVisibleChanged(table, alwaysVisible)","_nameChanged(table, name)","_orderChanged(table, order)","_sortByChanged(table, sortBy)","_templateChanged(table, template)","_widthChanged(table, width)"]}ready(){super.ready(),this._setTemplate(Object(polymer_dom.a)(this).querySelector("template:not([is=header])"));const customHeader=Object(polymer_dom.a)(this).querySelector("template[is=header]");customHeader?this._setHeaderTemplate(customHeader):this._setHeaderTemplate(Object(polymer_dom.a)(this.root).querySelector("#header"))}_notifyTable(table,path,value){if(table&&table.columns){const index=table.columns.indexOf(this);table.notifyPath(`columns.${index}.${path}`,value)}}_alignRightChanged(table,alignRight){this._notifyTable(table,"alignRight",alignRight)}_nameChanged(table,name){this._notifyTable(table,"name",name)}_sortByChanged(table,sortBy){this._notifyTable(table,"sortBy",sortBy)}_flexChanged(table,flex){this._notifyTable(table,"flex",flex)}_overflowChanged(table,overflow){this._notifyTable(table,"overflow",overflow)}_headerTemplateChanged(table,headerTemplate){this._notifyTable(table,"headerTemplate",headerTemplate)}_hiddenChanged(table,hidden){this._notifyTable(table,"hidden",hidden)}_alwaysVisibleChanged(table,alwaysVisible){this._notifyTable(table,"alwaysVisible",alwaysVisible)}_orderChanged(table,order){this._notifyTable(table,"order",order)}_templateChanged(table,template){this._notifyTable(table,"template",template)}_widthChanged(table,width){this._notifyTable(table,"width",width)}_filterByChanged(table,filterBy){this._notifyTable(table,"filterBy",filterBy)}_filterValueChanged(table,filterValue,filterBy,filterExpression){table&&filterBy&&void 0!==filterValue&&(this._notifyTable(table,"filterValue",filterValue),this.dispatchEvent(new CustomEvent("column-filter-changed",{composed:!0,bubbles:!0,detail:{value:filterValue,filterBy:filterBy,filterExpression:filterExpression}})))}}customElements.define(DataTableColumn.is,DataTableColumn),Nuxeo.DataTableColumn=DataTableColumn}var nuxeo_i18n_behavior=__webpack_require__(7);{class DataTableColumnSort extends(Object(legacy_class.b)([nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + +
+ + +
[[order]]
+
+ `}static get is(){return"nuxeo-data-table-column-sort"}static get properties(){return{direction:{type:String,notify:!0},path:String,order:{type:Number,computed:"_order(path, sortOrder, sortOrder.length)"},sortOrder:Array}}static get observers(){return["_sortOrderChanged(sortOrder.*)"]}_order(path,sortOrder,length){if(length<=1)return"";for(let i=0;i{sort.path===this.path&&(this.direction=sort.direction)})}_sort(){switch(this.direction){case"asc":this.direction="desc";break;case"desc":this.direction=null;break;default:this.direction="asc"}this.dispatchEvent(new CustomEvent("sort-direction-changed",{composed:!0,bubbles:!0,detail:{path:this.path,direction:this.direction}}))}_computeAriaLabel(){if(this.direction)return this.i18n("command.sort."+("desc"===this.direction?"descend":"ascend"))}}customElements.define(DataTableColumnSort.is,DataTableColumnSort),Nuxeo.DataTableColumnSort=DataTableColumnSort}__webpack_require__(5);var templatizer_behavior=__webpack_require__(106);window.saulis=window.saulis||{},saulis.DataTableTemplatizerBehaviorImpl={properties:{expanded:Boolean,index:Number,item:Object,selected:Boolean,table:Object,template:Object,_forwardedParentProps:{type:Object,value:{}},_instance:{type:Object,computed:"_templatize(template)"}},observers:["_expandedChanged(_instance, expanded)","_indexChanged(_instance, index)","_itemChanged(_instance, item)","_itemPathChanged(_instance, item.*)","_selectedChanged(_instance, selected)"],created(){this._instanceProps={column:!0,expanded:!0,index:!0,item:!0,selected:!0}},detached(){this.table=null,this._instance=null},_templatize(template){if(!template)return;delete template.__templatizeOwner,this.templatize(template),template._rootDataHost&&(this._getRootDataHost=function(){return template._rootDataHost});const instance=this.stamp({});return Object.keys(this._forwardedParentProps).forEach(key=>{instance[key]=this._forwardedParentProps[key]}),Object(polymer_dom.a)(this).insertBefore(instance.root,Object(polymer_dom.a)(this).firstElementChild),instance},_expandedChanged(instance,expanded){this._expanded=expanded,instance&&(instance.expanded=expanded)},_indexChanged(instance,index){instance&&(instance.index=index)},_itemChanged(instance,item){instance&&(instance.item=item)},_itemPathChanged(instance,item){this._parentProps=this._parentProps||{},instance&&instance.notifyPath(item.path,item.value)},_selectedChanged(instance,selected){this._selected=selected,instance&&(instance.selected=selected)},_forwardHostPropV2(prop,value){this._forwardedParentProps[prop]=value,this._instance&&(this._instance[prop]=value)},_notifyInstancePropV2(inst,prop,value){"expanded"===prop&&inst.item&&this._expanded!==value&&(value?this.table.expandItem(inst.item):this.table.collapseItem(inst.item)),"selected"===prop&&inst.item&&this._selected!==value&&(value?this.table.selectItem(inst.item):this.table.deselectItem(inst.item))},_forwardInstancePath(inst,path,value){0===path.indexOf("item")&&(this.table._debouncer=debounce.a.debounce(this.table._debouncer,utils_async.c,()=>{this.table.dispatchEvent(new CustomEvent("item-changed",{composed:!0,bubbles:!0,detail:{item:inst.item,path:path.substring(5),value:value}}))}))}},saulis.DataTableTemplatizerBehavior=[templatizer_behavior.a,saulis.DataTableTemplatizerBehaviorImpl];{class DataTableCell extends(Object(legacy_class.b)([saulis.DataTableTemplatizerBehavior],Nuxeo.Element)){static get template(){return html_tag.a` + + + `}static get is(){return"nuxeo-data-table-cell"}static get properties(){return{alignRight:Boolean,column:Object,flex:Number,header:Boolean,hidden:Boolean,order:Number,template:Object,width:String,overflow:String,beforeBind:{type:Object,value:()=>function(data,cell){}}}}static get observers(){return["_beforeBind(beforeBind, column.*, index, item.*, expanded, selected)","_beforeBindHeader(beforeBind, column.*)","_alignRightChanged(alignRight)","_columnChanged(_instance, column)","_columnPathChanged(_instance, column.*)","_flexChanged(flex)","_hiddenChanged(hidden)","_orderChanged(order)","_widthChanged(width)","_overflowChanged(overflow)"]}ready(){super.ready(),this.header?this.setAttribute("scope","col"):this.setAttribute("role","cell")}_alignRightChanged(alignRight){this.style.flexDirection=alignRight?"row-reverse":"row"}_beforeBind(beforeBind,column,index,item,expanded,selected){beforeBind({column:column.base,index:index,item:item.base,expanded:expanded,selected:selected},this)}_beforeBindHeader(beforeBind,column){if(this.header){beforeBind({column:column.base},this)}}_hiddenChanged(hidden){this.toggleAttribute("hidden",hidden)}_orderChanged(order){this.style.order=order}_flexChanged(flex){this.style.flexGrow=flex}_overflowChanged(overflow){this.style.overflowX="auto"===overflow?"auto":"hidden"}_widthChanged(width){this.style.flexBasis=width}_columnChanged(instance,column){instance&&(instance.column=column)}_columnPathChanged(instance,column){instance&&utils_async.c.run(()=>{this._parentProps=this._parentProps||{},instance.notifyPath(column.path,column.value)})}}customElements.define(DataTableCell.is,DataTableCell),Nuxeo.DataTableCell=DataTableCell}{class DataTableRow extends Nuxeo.Element{static get template(){return html_tag.a` + + +
+ + + +
+
+ +
+
+ +
+ `}static get is(){return"nuxeo-data-table-row"}static get properties(){return{beforeBind:Object,expanded:{type:Boolean,reflectToAttribute:!0},index:Number,item:Object,selected:{type:Boolean,reflectToAttribute:!0,value:!1},_static:{type:Object,value:{id:0}}}}static get observers(){return["_beforeBind(beforeBind, index, item.*, selected, expanded)"]}connectedCallback(){super.connectedCallback();const{host:host}=Object(polymer_dom.a)(this).getOwnerRoot();if(host&&host instanceof Nuxeo.DataTable){const id=this._static.id++,item=this.parentElement;item._rowId||(this._contentElement=document.createElement("slot"),this._contentElement.setAttribute("name","item"+id),Object(polymer_dom.a)(item).appendChild(this._contentElement),item._rowId=id,Object(polymer_dom.a)(host).appendChild(this),this.slot="item"+id,this._ownerShadyRoot=void 0)}this.setAttribute("tabindex",0),this.setAttribute("role","row")}_beforeBind(beforeBind,index,item,selected,expanded){if(!beforeBind)return;beforeBind({index:index,item:item.base,expanded:expanded,selected:selected},this)}}customElements.define(DataTableRow.is,DataTableRow),Nuxeo.DataTableRow=DataTableRow}{class DataTableRowDetail extends(Object(legacy_class.b)([saulis.DataTableTemplatizerBehavior],Nuxeo.Element)){static get is(){return"nuxeo-data-table-row-detail"}static get properties(){return{beforeBind:Object}}static get observers(){return["_beforeBind(beforeBind, item.*, index, selected, expanded)"]}static get template(){return html_tag.a` + + + `}_beforeBind(beforeBind,item,index,selected,expanded){beforeBind({index:index,item:item.base,expanded:expanded,selected:selected},this)}}customElements.define(DataTableRowDetail.is,DataTableRowDetail),Nuxeo.DataTableRowDetail=DataTableRowDetail}__webpack_require__(799);{class DataTableCheckbox extends(Object(legacy_class.b)([nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + + + + `}static get is(){return"nuxeo-data-table-checkbox"}static get properties(){return{checked:{type:Boolean,reflectToAttribute:!0,value:!1},disabled:{type:Boolean,reflectToAttribute:!0,value:!1}}}ready(){super.ready(),this.header?this.setAttribute("role","cell"):this.setAttribute("scope","col")}}customElements.define(DataTableCheckbox.is,DataTableCheckbox),Nuxeo.DataTableCheckbox=DataTableCheckbox}__webpack_require__(220),__webpack_require__(81);{class DataTableSettings extends(Object(legacy_class.b)([nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + + + + +

[[i18n('tableSettings.columnSettings')]]

+ +
+
+
+ + + +
+
+
+
+
+
+
+ [[i18n('tableSettings.columnSettings.reset')]] +
+ [[i18n('tableSettings.columnSettings.done')]] +
+
+ + + + `}static get is(){return"nuxeo-data-table-settings"}static get properties(){return{columns:{type:Array,notify:!0}}}static get observers(){return["_columnDisplayChanged(columns.*)"]}toggleColsSettingsPopup(){this.$$("#columnsSettingsPopup").toggle()}_columnDisplayChanged(change){change.path.endsWith("hidden")&&this.dispatchEvent(new CustomEvent("settings-changed",{composed:!0,bubbles:!0}))}_resetSettings(){this.columns.forEach((column,idx)=>{this.set(`columns.${idx}.hidden`,column.hiddenBack)})}_onSettingsClosed(){this.columns.every(column=>column.hidden)&&this._resetSettings()}canChangeVisibility(column){return!column.alwaysVisible}}customElements.define(DataTableSettings.is,DataTableSettings),Nuxeo.DataTableSettings=DataTableSettings}const default_styles_template=html_tag.a` + + + +`;document.head.appendChild(default_styles_template.content);__webpack_require__(192);const data_table_icons_template=html_tag.a` + + + + + + + +`;document.head.appendChild(data_table_icons_template.content);__webpack_require__(60);{class DataTableRowActions extends(Object(legacy_class.b)([saulis.DataTableTemplatizerBehavior,nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + +
+ + + + + + +
+ `}static get is(){return"nuxeo-data-table-row-actions"}static get properties(){return{beforeBind:Object,size:Number,editable:Boolean,orderable:Boolean}}static get observers(){return["_beforeBind(beforeBind, item.*, index, size)"]}_beforeBind(beforeBind,item,index,size){if(!beforeBind)return;beforeBind({index:index,item:item.base,size:size},this)}_editEntry(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("edit-entry",{composed:!0,bubbles:!0,detail:{item:this.item,index:this.index}}))}_deleteEntry(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("delete-entry",{composed:!0,bubbles:!0,detail:{item:this.item,index:this.index}}))}moveUp(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("move-upward",{composed:!0,bubbles:!0,detail:{item:this.item,index:this.index}}))}moveDown(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("move-downward",{composed:!0,bubbles:!0,detail:{item:this.item,index:this.index}}))}isUpVisible(index){return this.orderable&&index>0}isDownVisible(index){return this.orderable&&index + #container { + margin: 24px; + } + + + +
+ +
+ `}static get is(){return"nuxeo-data-table-form"}static get properties(){return{item:{type:Object,notify:!0,observer:"_itemChanged"},slot:{value:"form",type:String,reflectToAttribute:!0,readonly:!0},index:Number}}ready(){super.ready();const template=this.queryEffectiveChildren("template");this._instanceProps={item:!0},this.templatize(template),this.instance=this.stamp({item:this.item}),this.instance.dispatchEvent=function(){},Object(polymer_dom.a)(this.$.container).appendChild(this.instance.root)}validateItem(){return this.$.editForm.validate()}_itemChanged(){this.instance&&(this.instance.item=this.item,this.instance.i18n=this.i18n)}_notifyInstancePropV2(inst,prop,value){this.notifyPath(prop,value)}}customElements.define(DataTableForm.is,DataTableForm),Nuxeo.DataTableForm=DataTableForm}var nuxeo_page_provider_display_behavior=__webpack_require__(170),nuxeo_draggable_list_behavior=__webpack_require__(228);{class DataTable extends(Object(legacy_class.b)([iron_resizable_behavior.a,iron_form_element_behavior.a,iron_validatable_behavior.a,nuxeo_page_provider_display_behavior.a,nuxeo_draggable_list_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + +
+ + + + + + + + + + + + + + + + + + + + +
+ + + + +

[[i18n('command.add')]]

+ + + +
+ [[i18n('command.cancel')]] + [[i18n('command.ok')]] +
+
+ `}static get is(){return"nuxeo-data-table"}static get properties(){return{beforeCellBind:Object,beforeDetailsBind:Object,beforeRowBind:Object,detailsEnabled:{type:Boolean,value:!1},columns:{type:Array,notify:!0,value:()=>[],observer:"_columnsChanged"},_expandedItems:{type:Array,value:()=>[]},_this:{type:Object,value(){return this}},label:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},settingsEnabled:{type:Boolean,reflectToAttribute:!0,value:!1},multiSelection:{type:Boolean,value:!0},editable:{type:Boolean,value:!1},orderable:{type:Boolean,value:!1},paginable:{type:Boolean,value:!1}}}_isChecked(selectAllActive,_excludedItems){return selectAllActive&&0===_excludedItems.length}static get observers(){return["_alignHeaderRow(items.length)"]}constructor(){super(),this.handlesSorting=!0,this.handlesSelectAll=!0,this._observer=Object(polymer_dom.a)(this).observeNodes(info=>{const hasColumns=function(node){return node.nodeType===Node.ELEMENT_NODE&&node instanceof Nuxeo.DataTableColumn};if((info.addedNodes.filter(hasColumns).length>0||info.removedNodes.filter(hasColumns).length>0)&&(this.set("columns",this.$.columns.assignedNodes().filter(hasColumns)),this._backupColumnsState(),this.notifyResize()),info.addedNodes.filter((function(node){return node.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===node.tagName&&node.hasAttribute("is")&&"row-detail"===node.getAttribute("is")})).length>0){this.set("rowDetail",this.getContentChildren('[select="template[is=row-detail]"]')[0]);const parent=Object(polymer_dom.a)(this.rowDetail).parentNode;this.rowDetail._rootDataHost=parent.dataHost?parent.dataHost._rootDataHost||parent.dataHost:parent}})}ready(){super.ready(),this.addEventListener("iron-resize",this._resizeCellContainers),this.addEventListener("item-changed",this._itemChanged),this.addEventListener("scroll",this._onHorizontalScroll),this.addEventListener("edit-entry",this._editEntry),this.addEventListener("delete-entry",this._deleteEntry),this.addEventListener("move-upward",this._moveItemUpward),this.addEventListener("move-downward",this._moveItemDownward),this.$.list._selectionHandler=function(e){const model=this.modelForElement(e.target);model&&this.toggleSelectionForItem(model[this.as])};this.shadowRoot.querySelector("#form").addEventListener("slotchange",()=>{this.getContentChildren("#form")[0].disabled=!0}),this.setAttribute("role","table"),this.setAttribute("aria-multiselectable",this.multiSelection)}_computeActionsStyle(){return this.editable&&this.orderable?"flex: 0 0 172px;":this.editable||this.orderable?"flex: 0 0 92px;":"display: none;"}_computeSelectAllVisibility(){return this.selectionEnabled?this.selectAllEnabled&&this.multiSelection?"":"visibility: hidden;":"display: none;"}_alignHeaderRow(){Object(render_status.a)(this,()=>{this.$.list.scrollHeight>=this.$.list.clientHeight?this.$.header.style.paddingRight=this.$.list.offsetWidth-this.$.list.clientWidth+"px":this.$.header.style.paddingRight="0"})}_itemChanged(e){if(this.items){let{index:index}=e.target;if(void 0===index&&(index=this.items.indexOf(e.detail.item)),index>=0){let path="items."+index;e.detail.path&&(path+="."+e.detail.path),this.set(path,e.detail.value)}}}_backupColumnsState(){this.columns.forEach(col=>{col.hiddenBack=col.hidden})}_bind(item,index){return void 0!==index?{item:item,index:index}:{column:item}}_isEven(index){return index%2==0}_columnsChanged(columns,oldColumns){oldColumns&&oldColumns.forEach(column=>{this.unlisten(column,"filter-value-changed")}),columns&&columns.forEach(column=>{column.table=this,this.listen(column,"filter-value-changed","_onColumnFilterChanged")})}_resizeCellContainers(){this.$.container.style.width="",utils_async.c.run(()=>{this.$.container.style.width=Math.min(this.scrollWidth,this.clientWidth+this.scrollLeft)+"px",this.$.header.style.paddingRight=this.$.list.offsetWidth-this.$.list.clientWidth+"px"})}_onHorizontalScroll(){this.isDebouncerActive("scrolling")||(this.$.container.style.width=this.scrollWidth+"px",this._debouncer=debounce.a.debounce(this._debouncer,utils_async.d.after(1e3),()=>{this.$.container.style.width=Math.min(this.scrollWidth,this.clientWidth+this.scrollLeft)+"px"}))}_updateSizeForItem(event){if(event.model.get("item")){const itemSet=[];for(let i=0;i-1}_isFocusable(target){return target.contains(Object(polymer_dom.a)(document.activeElement).node)||target instanceof Nuxeo.DataTableCheckbox||"A"===target.tagName}_onRowClick(ev){if(!this._isFocusable(Object(polymer_dom.a)(ev).localTarget)){const fireEvent=function(eventName,item,defaultAction){const e=new CustomEvent(eventName,{cancelable:!0,composed:!0,bubbles:!0,detail:{item:item}});this.dispatchEvent(e),e.defaultPrevented||defaultAction.call(this,item)}.bind(this);this.rowDetail&&this.detailsEnabled?this._isExpanded(ev.model.item,this._expandedItems)?fireEvent("collapsing-item",ev.model.item,this.collapseItem):fireEvent("expanding-item",ev.model.item,this.expandItem):this.dispatchEvent(new CustomEvent("row-clicked",{composed:!0,bubbles:!0,detail:{item:ev.model.item,index:ev.model.index}}))}}get settings(){const tableSettings={columns:{}};return this.columns&&this.columns.forEach((column,idx)=>{tableSettings.columns[column.field?column.field:"col-"+idx]={hidden:column.hidden}}),tableSettings}set settings(settings){settings&&this.columns&&settings.columns&&this.columns.forEach((function(column,idx){this.set(`columns.${idx}.hidden`,settings.columns[column.field?column.field:"col-"+idx].hidden)}),this)}_onCheckBoxTap(e){if(this.selectionEnabled){this.selectOnTap&&this.$.list.toggleSelectionForIndex(e.model.index);(e.target||e.srcElement).dispatchEvent(new CustomEvent("selected",{composed:!0,bubbles:!0,detail:{index:e.model.index,shiftKey:e.shiftKey}})),this._updateFlags()}}_onCheckBoxKeydown(e){13!==e.keyCode&&32!==e.keyCode||this._onCheckBoxTap(e)}_editEntry(e){e.stopPropagation(),this._toggleEditDialog(e.detail.index)}_validateEntry(){const dtform=this.getContentChildren("#form")[0];if(dtform.validateItem()){const item=this._deepCopy(dtform.item);dtform.index>-1?this.set("items."+dtform.index,item):this.push("items",item),this.__renderDebouncer=debounce.a.debounce(this.__renderDebouncer,utils_async.d.after(10),()=>{this.notifyResize(),this.$.dialog.close()})}}_deepCopy(obj){let cache=[];const result=JSON.parse(JSON.stringify(obj,(key,value)=>{if("object"==typeof value&&null!==value){if(-1!==cache.indexOf(value))return;cache.push(value)}return value}));return cache=null,result}_toggleEditDialog(itemIndex){const dtform=this.getContentChildren("#form")[0];void 0!==itemIndex?(dtform.index=itemIndex,dtform.item=this._deepCopy(this.items[itemIndex])):(dtform.index=-1,this.items.length>1&&"object"!=typeof this.items[0]||1===this.columns.length?dtform.item="":dtform.item={}),this.$.dialog.toggle()}_deleteEntry(e){e.stopPropagation(),this.splice("items",e.detail.index,1),this.notifyResize()}_createEntry(){this.items||(this.items=[]),this.notifyResize(),this._toggleEditDialog()}_moveItemUpward(e){if(e.stopPropagation(),e.detail.index>0){const item=this.items[e.detail.index];this.splice("items",e.detail.index,1),this.splice("items",e.detail.index-1,0,item),this.notifyResize()}}_moveItemDownward(e){if(e.stopPropagation(),this.items.length-1>e.detail.index){const item=this.items[e.detail.index];this.splice("items",e.detail.index,1),this.splice("items",e.detail.index+1,0,item),this.notifyResize()}}_patchOverlay(e){e.target.withBackdrop&&e.target.parentNode.insertBefore(e.target.backdropElement,e.target)}fetch(){if(this._hasPageProvider()){if(!this.paginable)return this._fetchRange(0,this.nxProvider.pageSize,!0);{const result=this._fetchPage(this.nxProvider.page,this.nxProvider.pageSize);if(result)return result.then(()=>{this.nxProvider.page+=1,this.$.scrollThreshold.clearTriggers(),this.$.list.notifyResize()});this.$.scrollThreshold.clearTriggers(),this.$.list.notifyResize()}}}_threshold(){this.paginable&&this.fetch()}_scroll(){this.paginable||this._scrollChanged()}_sort(e){this.paginable&&(this.nxProvider.page=1),this._sortDirectionChanged(e)}_getValidity(){return!this.required||this.items&&this.items.length>0}draggableFilter(el){const row=el.closest("nuxeo-data-table-row");return row&&row.selected}_formDialogOpenedChanged(e){const form=this.getContentChildren("#form")[0];form&&(form.disabled=!e.detail.value)}}customElements.define(DataTable.is,DataTable),Nuxeo.DataTable=DataTable}},816:function(module,__webpack_exports__,__webpack_require__){"use strict";var html_tag=__webpack_require__(0),legacy_class=(__webpack_require__(10),__webpack_require__(64),__webpack_require__(432),__webpack_require__(38),__webpack_require__(86),__webpack_require__(305),__webpack_require__(36),__webpack_require__(4)),nuxeo_i18n_behavior=__webpack_require__(7);const AggregationBehavior={properties:{data:{type:Object},value:{type:Array,value:[],notify:!0},buckets:{type:Object,computed:"_computeBuckets(data)"},_isEmpty:{type:Boolean,value:!0},sortByLabel:Boolean,labelFormatter:{type:Function,value(){return this._computeLabel.bind(this)}}},observers:["_observeData(data)"],_observeData(){this.data&&this.data.extendedBuckets?this._isEmpty=0===this.data.extendedBuckets.length:this._isEmpty=!0},_computeBuckets(data){if(data){const buckets=data.extendedBuckets,selectedBuckets=data.selection;return buckets.forEach(item=>{item.checked=selectedBuckets.indexOf(item.key)>=0,item.label=this.labelFormatter(item)}),this.sortByLabel&&buckets.sort((a,b)=>a.labelb.label?1:0),buckets}},_computeValues(){const values=[];this.buckets.forEach(item=>{item.checked&&values.push(item.key)}),this.value=values},_computeLabel(item){let i18nKey;if(item.fetchedKey){const entry=item.fetchedKey;return"directoryEntry"===entry["entity-type"]?this.labelForDirectoryEntry(entry):"user"===entry["entity-type"]?this.labelForUserEntry(entry):"document"===entry["entity-type"]?entry.properties["dc:title"]||this.i18n("aggregation.format.document.field.unknown","dc:title"):(i18nKey=this.i18n("label.ui.aggregate."+item.key),i18nKey==="label.ui.aggregate."+item.key?item.key:i18nKey)}return i18nKey=this.i18n("label.ui.aggregate."+item.key),i18nKey==="label.ui.aggregate."+item.key?item.key:i18nKey},labelForDirectoryEntry(entry){let lang=window.nuxeo.I18n.language||"en";lang.indexOf("-")>-1&&([lang]=lang.split("-"));const labels=[];for(;entry;)entry.properties["label_"+lang]?labels.push(entry.properties["label_"+lang]):entry.properties.label?labels.push(entry.properties.label):entry.properties.label_en?labels.push(entry.properties.label_en):labels.push(entry.properties.id),entry=entry.properties.parent;return labels.reverse().join("/")},labelForUserEntry:entry=>void 0===entry.properties?entry.id:entry.properties.firstName&&entry.properties.firstName.length>0&&entry.properties.lastName&&entry.properties.lastName.length>0?`${entry.properties.firstName} ${entry.properties.lastName}`:entry.properties.username};{class CheckboxAggregation extends(Object(legacy_class.b)([nuxeo_i18n_behavior.a,AggregationBehavior],Nuxeo.Element)){static get template(){return html_tag.a` + + + + + + + + + + `}static get is(){return"nuxeo-checkbox-aggregation"}static get properties(){return{collapsible:{type:Boolean,value:!1,reflectToAttribute:!0},label:{type:String,value:""},opened:{type:Boolean,value:!1,reflectToAttribute:!0},visibleItems:{type:Number,value:8},_showAll:{type:Boolean,value:!1,readOnly:!0},_visibleBuckets:{type:Array,computed:"_computeVisibleBuckets(buckets, visibleItems, _showAll)"}}}ready(){super.ready(),this.setAttribute("tabindex",0)}_computeVisibleBuckets(buckets,visibleItems,_showAll){return buckets&&0!==buckets.length?_showAll?buckets:buckets.slice(0,visibleItems):[]}_toggle(){this.opened=!this.opened}_toggleIcon(opened){return"hardware:keyboard-arrow-"+(opened?"up":"down")}_toggleShow(){this._set_showAll(!this._showAll)}_computeShowMoreLabel(){return this.i18n(this._showAll?"checkboxAggregation.showLess":"checkboxAggregation.showAll")}_hideShowMoreButton(){return this.buckets&&this.buckets.length<=this.visibleItems}}customElements.define("nuxeo-checkbox-aggregation",CheckboxAggregation)}},817:function(module,__webpack_exports__,__webpack_require__){"use strict";var html_tag=__webpack_require__(0),legacy_class=__webpack_require__(4),iron_form_element_behavior=(__webpack_require__(10),__webpack_require__(96),__webpack_require__(804),__webpack_require__(1713),__webpack_require__(86),__webpack_require__(5),__webpack_require__(65)),iron_validatable_behavior=__webpack_require__(41);const DirectoryWidgetBehavior=[__webpack_require__(7).a,iron_form_element_behavior.a,iron_validatable_behavior.a,{properties:{directoryName:{type:String},dbl10n:{type:Boolean,value:!1},label:String,canSelectParent:Boolean,readonly:{type:Boolean,value:!1},idFunction:{type:Function,value(){return this._idFunction.bind(this)}},errorMessage:String,format:{type:Function,value(){return this._formatter.bind(this)}},_entries:Array},observers:["_fetchEntries(directoryName)"],_fetchEntries(){this.directoryName&&this.async(()=>{this.$.op.params={directoryName:this.directoryName,dbl10n:this.dbl10n,canSelectParent:this.canSelectParent,localize:!0,lang:window.nuxeo.I18n.language?window.nuxeo.I18n.language.split("-")[0]:"en"},this.$.op.execute().then(resp=>{this._entries=[],resp.forEach(entry=>{this._populate(entry)}),this.dispatchEvent(new CustomEvent("directory-entries-loaded",{composed:!0,bubbles:!0}))})})},_formatter:entry=>entry.absoluteLabel||entry.displayLabel,_idFunction:item=>item.id||item.computedId||item.uid,_populate(entry){!this.canSelectParent&&entry.children||(entry.checked=this._isChecked(entry),this._entries.push(entry)),entry.children&&entry.children.forEach(child=>{this._populate(child)})}}];{class DirectoryRadioGroup extends(Object(legacy_class.b)([DirectoryWidgetBehavior],Nuxeo.Element)){static get template(){return html_tag.a` + + + + + + + + + + + + + + `}static get is(){return"nuxeo-directory-radio-group"}static get properties(){return{selectedItem:{type:Object,notify:!0},value:{type:String,notify:!0,observer:"_updateSelected"},_selected:String}}_updateItem(e){e.detail&&e.detail.value&&(this.set("selectedItem",this._entries[e.detail.value.dataIndex]),this.set("value",this.idFunction(this.selectedItem)))}_updateSelected(){this.value&&this.value.length>0&&this.value!==this._selected&&(this._selected=this.value)}_getValidity(){return!this.required||!!this.value}_isChecked(entry){const value=this.value?this.value:this.selectedItem;return!(!value||this.idFunction(value)!==this.idFunction(entry))&&(this._selected=this.idFunction(entry),!0)}}customElements.define(DirectoryRadioGroup.is,DirectoryRadioGroup),Nuxeo.DirectoryRadioGroup=DirectoryRadioGroup}},818:function(module,__webpack_exports__,__webpack_require__){"use strict";var html_tag=__webpack_require__(0),legacy_class=__webpack_require__(4),nuxeo_i18n_behavior=__webpack_require__(7),nuxeo_notify_behavior=(__webpack_require__(10),__webpack_require__(64),__webpack_require__(305),__webpack_require__(659),__webpack_require__(87));__webpack_require__(809),__webpack_require__(810);{class ResultsView extends(Object(legacy_class.b)([nuxeo_notify_behavior.a,nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + + + + + + + + `}static get is(){return"nuxeo-results-view"}static get properties(){return{provider:{type:String},pageSize:{type:Number,value:40},params:{type:Object,observer:"_paramsChanged",value:{}},enrichers:{type:String,value:"thumbnail, permissions, highlight"},headers:{type:Object,value:{"fetch-document":"properties","translate-directoryEntry":"label"}},schemas:{type:String},loading:{type:Boolean,reflectToAttribute:!0,value:!1},searchName:String,aggregations:{type:Object,observer:"_aggregationsChanged",notify:!0},quickFilters:{type:Array,notify:!0},visible:{type:Boolean,value:!1},auto:{type:Boolean,value:!1},showFilters:{type:Boolean,value:!1},opened:{type:Boolean,value:!1},searchForm:{type:Object,value:null,observer:"_searchFormChanged"},skipAggregates:Boolean,hrefBase:String,_params:Object,_paramsCount:Number,_nxProvider:HTMLElement,_hideCounter:{type:String,computed:"_computeHideCounter(opened, _params.*)"}}}static get observers(){return["_visibilityOrAutoChanged(visible, auto)"]}ready(){super.ready(),this._nxProvider||(this._nxProvider=this.$.provider)}get form(){const form=this.$$("#form");return form&&form.element}get results(){return this.$$("#results")}toggleExpand(){this.$$("#collapse").toggle()}_visibilityOrAutoChanged(){this.visible&&this.auto&&this._search()}_expandIcon(opened){return"hardware:keyboard-arrow-"+(opened?"down":"right")}_countParams(params){return Object.keys(params).filter(p=>params[p]&&(!Array.isArray(params[p])||params[p].length>0)).length}_getFilterCount(){return this._params?this._countParams(this._params)-this._paramsCount-("highlight"in this._params?1:0):0}_computeHideCounter(opened){const count=this._getFilterCount();return opened||0===count?"hidden":""}_paramsChanged(){this.params?(this._params=JSON.parse("string"==typeof this.params?this.params:JSON.stringify(this.params)),this._paramsCount=this._countParams(this._params)):(this._params={},this._paramsCount=0)}_search(){this.results&&(this.results.reset(),this.results.fetch())}_aggregationsChanged(){this.form&&(this.form.aggregations=this.aggregations)}_onError(e){this.notify(e.detail.error),e.stopPropagation()}_clear(){this.form&&void 0!==this.form.clear&&"function"==typeof this.form.clear&&this.form.clear(),this._paramsChanged(),this.auto||(this.aggregations={}),!this.auto&&this.visible&&this._search()}_formChanged(e){this._clear();const form=e.detail.value;form.addEventListener("params-changed",evt=>{(evt.detail.path||"value"in evt.detail)&&(this.notifyPath(evt.detail.path?"_params."+evt.detail.path.split(".")[1]:"_params",evt.detail.value),this.visible&&this.auto&&this._search())}),this.skipAggregates=form.skipAggregates,form.addEventListener("skip-aggregates-changed",evt=>{this.notifyPath("skipAggregates",evt.detail.value)}),form.addEventListener("trigger-search",this._search.bind(this)),this._search()}_resultsChanged(e){const{results:results}=this;this.searchForm&&results&&(this.searchForm.results=results.results),this.dispatchEvent(new CustomEvent("results-changed",{composed:!0,bubbles:!0,detail:e.detail}))}_searchFormChanged(searchForm){if(searchForm){this._nxProvider=searchForm.nxProvider,this.provider=this._nxProvider.provider,this.searchName=searchForm.searchName;const{results:results}=this;results&&(searchForm.results=results.results)}}_navigateFromSearch(e){this.searchForm&&this.searchForm.displayQueue(e.detail.index)}}customElements.define(ResultsView.is,ResultsView)}__webpack_require__(140),__webpack_require__(123),__webpack_require__(47);{class DocumentPicker extends(Object(legacy_class.b)([nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + +
+ +
+
+ +
+
+ + [[i18n('command.cancel')]] + + + [[i18n('command.select')]] + +
+
+ `}static get is(){return"nuxeo-document-picker"}static get properties(){return{enrichers:String,hrefBase:String,pageSize:Number,provider:String,schemas:String,searchName:String,_aggregations:{type:Object,readOnly:!0},_params:{type:Object,readOnly:!0},_quickFilters:{type:Object,readOnly:!0}}}disconnectedCallback(){super.disconnectedCallback(),this._listenedResults&&this._boundUpdateFn&&this._listenedResults.removeEventListener("selected-items-changed",this._boundUpdateFn)}open(){this.$.resultsView&&this.$.resultsView._clear(),this._updateSelectButton(),this.$.dialog.open()}close(){this.$.dialog.close()}get _selectedItems(){return this.$.resultsView&&this.$.resultsView.results&&this.$.resultsView.results.results&&this.$.resultsView.results.results.selectedItems}_updateSelectButton(){const selectedItems=this._selectedItems;this.$.selectButton.disabled=!(selectedItems&&selectedItems.length)}_onSelect(){const selectedItems=this._selectedItems;selectedItems&&(this.dispatchEvent(new CustomEvent("picked",{composed:!0,bubbles:!0,detail:{selectedItems:selectedItems}})),this.close())}_onNavigate(e){this.$.resultsView.results.results.selectItems([e.detail.item])}_onResultsChanged(e){e.detail.value&&(this._listenedResults&&this._boundUpdateFn&&this._listenedResults.removeEventListener("selected-items-changed",this._boundUpdateFn),this._listenedResults=e.detail.value,this._boundUpdateFn=this._updateSelectButton.bind(this),this._listenedResults.addEventListener("selected-items-changed",this._boundUpdateFn))}}customElements.define(DocumentPicker.is,DocumentPicker)}},819:function(module,__webpack_exports__,__webpack_require__){"use strict";var html_tag=__webpack_require__(0),legacy_class=__webpack_require__(4),iron_form_element_behavior=__webpack_require__(65),iron_validatable_behavior=__webpack_require__(41),nuxeo_selectivity=(__webpack_require__(10),__webpack_require__(1700),__webpack_require__(160)),nuxeo_i18n_behavior=(__webpack_require__(36),__webpack_require__(7));__webpack_require__(74),__webpack_require__(803);{class UserGroupFormatter extends(Object(legacy_class.b)([nuxeo_i18n_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + +
+ + + + + + + + +
+
[[entity.displayLabel]]
+
+ [[_computeInfo(entity)]] +
+
+
+ `}static get is(){return"nuxeo-user-group-formatter"}static get properties(){return{entity:{type:Object}}}_isUser(){return"USER_TYPE"===this.entity.type}_isGroup(){return"GROUP_TYPE"===this.entity.type}_computeInfo(){return this._isUser()?`${this.entity.email} - ${this.entity.id}`:`${this.i18n("label.group")} - ${this.entity.id}`}}customElements.define(UserGroupFormatter.is,UserGroupFormatter)}{class UserSuggestion extends(Object(legacy_class.b)([iron_form_element_behavior.a,iron_validatable_behavior.a],Nuxeo.Element)){static get template(){return html_tag.a` + + + + + `}static get is(){return"nuxeo-user-suggestion"}static get properties(){return{searchType:{type:String,value:"USER_GROUP_TYPE"},groupRestriction:{type:String},label:String,operation:{type:String,value:"UserGroup.Suggestion"},params:Object,value:{type:String,notify:!0},multiple:{type:Boolean,value:!1},stayOpenOnSelect:{type:Boolean,value:!1},readonly:{type:Boolean,value:!1},minChars:{type:Number,value:3},frequency:Number,placeholder:String,errorMessage:String,selectedItems:{type:Array,notify:!0},selectedItem:{type:Object,notify:!0},selectionFormatter:{type:Function,value(){return this._selectionFormatter.bind(this)}},resultFormatter:{type:Function,value(){return this._resultFormatter.bind(this)}},resolveEntry:{type:Function,value(){return this._resolveEntry.bind(this)}},prefixed:Boolean,idFunction:{type:Function,value(){return this._idFunction.bind(this)}},queryResultsFilter:Function}}_getValidity(){return this.$.s2._getValidity()}_computeParams(){return Object.assign({},{searchType:this.searchType,groupRestriction:this.groupRestriction},this.params)}_selectionFormatter(item){let content;return item&&(content="user"===item["entity-type"]&&item.properties&&item.properties.firstName&&item.properties.lastName?`${item.properties.firstName} ${item.properties.lastName}`:"group"===item["entity-type"]?item.grouplabel?item.grouplabel:item.groupname:item.displayLabel?item.displayLabel:item.id?item.id:item),`${Object(nuxeo_selectivity.a)(content)}`}_resultFormatter(item){return!item.type||"USER_TYPE"!==item.type&&"GROUP_TYPE"!==item.type?Object(nuxeo_selectivity.a)(item.displayLabel||item.title):``}_resolveEntry(item){return item&&item["entity-type"]?item:this.prefixed?{id:item,displayLabel:item,prefixed_id:item}:{id:item,displayLabel:item}}_idFunction(item){return this.prefixed?item.prefixed_id?item.prefixed_id:`${item["entity-type"]}:${item.id}`:item.id}}customElements.define(UserSuggestion.is,UserSuggestion),Nuxeo.UserSuggestion=UserSuggestion}},820:function(module){module.exports=JSON.parse('{"schema_version":"1.0.0","elements":[{"description":"An element for viewing images.\\n\\nExample:\\n\\n \\n ","summary":"","path":"viewers/nuxeo-image-viewer.js","properties":[{"name":"src","type":"string | null | undefined","description":"The URL of an image.","privacy":"public","sourceRange":{"start":{"line":53,"column":8},"end":{"line":55,"column":9}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"controls","type":"boolean | null | undefined","description":"If true, controls for the user to interact with are displayed.","privacy":"public","sourceRange":{"start":{"line":60,"column":8},"end":{"line":63,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"zoomOnWheel","type":"boolean | null | undefined","description":"If true, allows to zoom the image by wheeling mouse.","privacy":"public","sourceRange":{"start":{"line":68,"column":8},"end":{"line":71,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"responsive","type":"boolean | null | undefined","description":"If true, the element exhibits responsive resize behavior.","privacy":"public","sourceRange":{"start":{"line":76,"column":8},"end":{"line":79,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"alt","type":"string | null | undefined","description":"A short text alternative for the image.","privacy":"public","sourceRange":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"_fitToRealSize","type":"boolean | null | undefined","description":"If false, the element will show the image in order to fit the viewer.\\nIf true, the element will show the image in real size.","privacy":"protected","sourceRange":{"start":{"line":92,"column":8},"end":{"line":95,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"}],"methods":[{"name":"ready","description":"","privacy":"protected","sourceRange":{"start":{"line":197,"column":4},"end":{"line":200,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_init","description":"","privacy":"protected","sourceRange":{"start":{"line":202,"column":4},"end":{"line":223,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_click","description":"","privacy":"protected","sourceRange":{"start":{"line":225,"column":4},"end":{"line":249,"column":5}},"metadata":{},"params":[{"name":"event"}],"return":{"type":"void"}},{"name":"_computeFitAction","description":"","privacy":"protected","sourceRange":{"start":{"line":251,"column":4},"end":{"line":253,"column":5}},"metadata":{},"params":[{"name":"fitToRealSize"}]},{"name":"_getFitIcon","description":"","privacy":"protected","sourceRange":{"start":{"line":255,"column":4},"end":{"line":257,"column":5}},"metadata":{},"params":[{"name":"fitToRealSize"}]},{"name":"_getOriginalZoomRatio","description":"","privacy":"protected","sourceRange":{"start":{"line":259,"column":4},"end":{"line":264,"column":5}},"metadata":{},"params":[]},{"name":"_resize","description":"","privacy":"protected","sourceRange":{"start":{"line":266,"column":4},"end":{"line":272,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_verifyZoomRatio","description":"","privacy":"protected","sourceRange":{"start":{"line":274,"column":4},"end":{"line":282,"column":5}},"metadata":{},"params":[{"name":"data"}],"return":{"type":"void"}},{"name":"_isCanvasVisible","description":"","privacy":"protected","sourceRange":{"start":{"line":284,"column":4},"end":{"line":287,"column":5}},"metadata":{},"params":[]},{"name":"_isToolbarVisible","description":"","privacy":"protected","sourceRange":{"start":{"line":289,"column":4},"end":{"line":291,"column":5}},"metadata":{},"params":[{"name":"controls"},{"name":"src"},{"name":"el"}]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-image-viewer/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":43,"column":2},"end":{"line":292,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.ImageViewer","attributes":[{"name":"src","description":"The URL of an image.","sourceRange":{"start":{"line":53,"column":8},"end":{"line":55,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"controls","description":"If true, controls for the user to interact with are displayed.","sourceRange":{"start":{"line":60,"column":8},"end":{"line":63,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"zoom-on-wheel","description":"If true, allows to zoom the image by wheeling mouse.","sourceRange":{"start":{"line":68,"column":8},"end":{"line":71,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"responsive","description":"If true, the element exhibits responsive resize behavior.","sourceRange":{"start":{"line":76,"column":8},"end":{"line":79,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"alt","description":"A short text alternative for the image.","sourceRange":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"metadata":{},"type":"string | null | undefined"}],"events":[],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-image-viewer","mixins":["Polymer.IronResizableBehavior"]},{"description":"An element for viewing PDF files.\\n\\nExample:\\n\\n \\n\\n### Styling\\n\\nThe following custom properties and mixins are available for styling:\\n\\nCustom property | Description | Default\\n----------------|-------------|----------\\n`--nuxeo-pdf-viewer-layout` | Mixin applied to the viewer | `{}`\\n`--nuxeo-pdf-viewer-iframe` | Mixin applied to the iframe enclosing pdfjs | `{}`","summary":"","path":"viewers/nuxeo-pdf-viewer.js","properties":[{"name":"src","type":"string | null | undefined","description":"The path to the pdf file to display.","privacy":"public","sourceRange":{"start":{"line":72,"column":8},"end":{"line":74,"column":9}},"metadata":{"polymer":{"attributeType":"String"}}}],"methods":[{"name":"_path","description":"","privacy":"protected","sourceRange":{"start":{"line":82,"column":4},"end":{"line":87,"column":5}},"metadata":{},"params":[{"name":"file"}]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-pdf-viewer/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":41,"column":2},"end":{"line":88,"column":3}},"privacy":"public","superclass":"Nuxeo.Element","name":"Nuxeo.PDFViewer","attributes":[{"name":"src","description":"The path to the pdf file to display.","sourceRange":{"start":{"line":72,"column":8},"end":{"line":74,"column":9}},"metadata":{},"type":"string | null | undefined"}],"events":[],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-pdf-viewer"},{"description":"An element for viewing videos.\\n\\nExample:\\n\\n ","summary":"","path":"viewers/nuxeo-video-viewer.js","properties":[{"name":"preload","type":"string | null | undefined","description":"The `preload` attribute specifies if/how the video should be loaded.","privacy":"public","sourceRange":{"start":{"line":130,"column":8},"end":{"line":133,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"auto\\""},{"name":"controls","type":"boolean | null | undefined","description":"If true, controls for the user to interact with are displayed.","privacy":"public","sourceRange":{"start":{"line":138,"column":8},"end":{"line":141,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"poster","type":"string | null | undefined","description":"The `poster` attribute specifies an image shown while downloading.","privacy":"public","sourceRange":{"start":{"line":146,"column":8},"end":{"line":146,"column":22}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"sources","type":"Object | null | undefined","description":"The `sources` to be displayed.","privacy":"public","sourceRange":{"start":{"line":151,"column":8},"end":{"line":151,"column":23}},"metadata":{"polymer":{"attributeType":"Object"}}},{"name":"storyboard","type":"Array | null | undefined","description":"The storyboard (array of thumbnails) for video navigation. If null or empty, the storyboard is not shown.","privacy":"public","sourceRange":{"start":{"line":156,"column":8},"end":{"line":159,"column":9}},"metadata":{"polymer":{"attributeType":"Array"}},"defaultValue":"[]"}],"methods":[{"name":"play","description":"","privacy":"public","sourceRange":{"start":{"line":163,"column":4},"end":{"line":165,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"stop","description":"","privacy":"public","sourceRange":{"start":{"line":167,"column":4},"end":{"line":170,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"pause","description":"","privacy":"public","sourceRange":{"start":{"line":172,"column":4},"end":{"line":174,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"isPaused","description":"","privacy":"public","sourceRange":{"start":{"line":176,"column":4},"end":{"line":178,"column":5}},"metadata":{},"params":[]},{"name":"_hasStoryboard","description":"","privacy":"protected","sourceRange":{"start":{"line":180,"column":4},"end":{"line":188,"column":5}},"metadata":{},"params":[]},{"name":"_jumpTo","description":"","privacy":"protected","sourceRange":{"start":{"line":190,"column":4},"end":{"line":192,"column":5}},"metadata":{},"params":[{"name":"e"}],"return":{"type":"void"}},{"name":"_getThumbnailUrl","description":"","privacy":"protected","sourceRange":{"start":{"line":194,"column":4},"end":{"line":196,"column":5}},"metadata":{},"params":[{"name":"thumbnail"}]},{"name":"_getSourceUrl","description":"","privacy":"protected","sourceRange":{"start":{"line":198,"column":4},"end":{"line":200,"column":5}},"metadata":{},"params":[{"name":"source"}]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-video-viewer/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":34,"column":2},"end":{"line":201,"column":3}},"privacy":"public","superclass":"Nuxeo.Element","name":"Nuxeo.VideoViewer","attributes":[{"name":"preload","description":"The `preload` attribute specifies if/how the video should be loaded.","sourceRange":{"start":{"line":130,"column":8},"end":{"line":133,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"controls","description":"If true, controls for the user to interact with are displayed.","sourceRange":{"start":{"line":138,"column":8},"end":{"line":141,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"poster","description":"The `poster` attribute specifies an image shown while downloading.","sourceRange":{"start":{"line":146,"column":8},"end":{"line":146,"column":22}},"metadata":{},"type":"string | null | undefined"},{"name":"sources","description":"The `sources` to be displayed.","sourceRange":{"start":{"line":151,"column":8},"end":{"line":151,"column":23}},"metadata":{},"type":"Object | null | undefined"},{"name":"storyboard","description":"The storyboard (array of thumbnails) for video navigation. If null or empty, the storyboard is not shown.","sourceRange":{"start":{"line":156,"column":8},"end":{"line":159,"column":9}},"metadata":{},"type":"Array | null | undefined"}],"events":[],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-video-viewer"},{"description":"An element for generic input in forms","summary":"","path":"widgets/nuxeo-input.js","properties":[{"name":"label","type":"string | null | undefined","description":"Label.","privacy":"public","sourceRange":{"start":{"line":103,"column":8},"end":{"line":103,"column":21}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"type","type":"string | null | undefined","description":"Type.","privacy":"public","sourceRange":{"start":{"line":108,"column":8},"end":{"line":108,"column":20}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"name","type":"string | null | undefined","description":"Name.","privacy":"public","sourceRange":{"start":{"line":113,"column":8},"end":{"line":113,"column":20}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"value","type":"string | null | undefined","description":"Value.","privacy":"public","sourceRange":{"start":{"line":118,"column":8},"end":{"line":121,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"String"}}},{"name":"placeholder","type":"string | null | undefined","description":"Placeholder.","privacy":"public","sourceRange":{"start":{"line":126,"column":8},"end":{"line":126,"column":27}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"errorMessage","type":"string | null | undefined","description":"Error message to show when `invalid` is true.","privacy":"public","sourceRange":{"start":{"line":131,"column":8},"end":{"line":131,"column":28}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"autofocus","type":"boolean | null | undefined","description":"Autofocus.","privacy":"public","sourceRange":{"start":{"line":136,"column":8},"end":{"line":140,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"readonly","type":"boolean | null | undefined","description":"Read only.","privacy":"public","sourceRange":{"start":{"line":145,"column":8},"end":{"line":149,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"disabled","type":"boolean | null | undefined","description":"Disabled.","privacy":"public","sourceRange":{"start":{"line":154,"column":8},"end":{"line":158,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"required","type":"boolean | null | undefined","description":"Required.","privacy":"public","sourceRange":{"start":{"line":163,"column":8},"end":{"line":167,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"min","type":"string | null | undefined","description":"The minimum (numeric or date-time) input value.","privacy":"public","sourceRange":{"start":{"line":172,"column":8},"end":{"line":172,"column":19}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"max","type":"string | null | undefined","description":"The maximum (numeric or date-time) input value.","privacy":"public","sourceRange":{"start":{"line":177,"column":8},"end":{"line":177,"column":19}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"step","type":"number | null | undefined","description":"The increment value.","privacy":"public","sourceRange":{"start":{"line":182,"column":8},"end":{"line":182,"column":20}},"metadata":{"polymer":{"attributeType":"Number"}}},{"name":"minlength","type":"number | null | undefined","description":"The minimum length of the input value.","privacy":"public","sourceRange":{"start":{"line":187,"column":8},"end":{"line":187,"column":25}},"metadata":{"polymer":{"attributeType":"Number"}}},{"name":"maxlength","type":"number | null | undefined","description":"The maximum length of the input value.","privacy":"public","sourceRange":{"start":{"line":192,"column":8},"end":{"line":192,"column":25}},"metadata":{"polymer":{"attributeType":"Number"}}},{"name":"pattern","type":"string | null | undefined","description":"A pattern to validate.","privacy":"public","sourceRange":{"start":{"line":197,"column":8},"end":{"line":197,"column":23}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"validator","type":"string | null | undefined","description":"The name of the custom validator","privacy":"public","sourceRange":{"start":{"line":202,"column":8},"end":{"line":202,"column":25}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"autoValidate","type":"boolean | null | undefined","description":"Set to true to auto-validate the input value when it changes.","privacy":"public","sourceRange":{"start":{"line":207,"column":8},"end":{"line":210,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"}],"methods":[{"name":"focus","description":"","privacy":"public","sourceRange":{"start":{"line":214,"column":4},"end":{"line":216,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_getValidity","description":"Override method from Polymer.IronValidatableBehavior.","privacy":"protected","sourceRange":{"start":{"line":219,"column":4},"end":{"line":221,"column":5}},"metadata":{},"params":[]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-input/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":33,"column":2},"end":{"line":222,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.Input","attributes":[{"name":"label","description":"Label.","sourceRange":{"start":{"line":103,"column":8},"end":{"line":103,"column":21}},"metadata":{},"type":"string | null | undefined"},{"name":"type","description":"Type.","sourceRange":{"start":{"line":108,"column":8},"end":{"line":108,"column":20}},"metadata":{},"type":"string | null | undefined"},{"name":"name","description":"Name.","sourceRange":{"start":{"line":113,"column":8},"end":{"line":113,"column":20}},"metadata":{},"type":"string | null | undefined"},{"name":"value","description":"Value.","sourceRange":{"start":{"line":118,"column":8},"end":{"line":121,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"placeholder","description":"Placeholder.","sourceRange":{"start":{"line":126,"column":8},"end":{"line":126,"column":27}},"metadata":{},"type":"string | null | undefined"},{"name":"error-message","description":"Error message to show when `invalid` is true.","sourceRange":{"start":{"line":131,"column":8},"end":{"line":131,"column":28}},"metadata":{},"type":"string | null | undefined"},{"name":"autofocus","description":"Autofocus.","sourceRange":{"start":{"line":136,"column":8},"end":{"line":140,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"readonly","description":"Read only.","sourceRange":{"start":{"line":145,"column":8},"end":{"line":149,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"disabled","description":"Disabled.","sourceRange":{"start":{"line":154,"column":8},"end":{"line":158,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"required","description":"Required.","sourceRange":{"start":{"line":163,"column":8},"end":{"line":167,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"min","description":"The minimum (numeric or date-time) input value.","sourceRange":{"start":{"line":172,"column":8},"end":{"line":172,"column":19}},"metadata":{},"type":"string | null | undefined"},{"name":"max","description":"The maximum (numeric or date-time) input value.","sourceRange":{"start":{"line":177,"column":8},"end":{"line":177,"column":19}},"metadata":{},"type":"string | null | undefined"},{"name":"step","description":"The increment value.","sourceRange":{"start":{"line":182,"column":8},"end":{"line":182,"column":20}},"metadata":{},"type":"number | null | undefined"},{"name":"minlength","description":"The minimum length of the input value.","sourceRange":{"start":{"line":187,"column":8},"end":{"line":187,"column":25}},"metadata":{},"type":"number | null | undefined"},{"name":"maxlength","description":"The maximum length of the input value.","sourceRange":{"start":{"line":192,"column":8},"end":{"line":192,"column":25}},"metadata":{},"type":"number | null | undefined"},{"name":"pattern","description":"A pattern to validate.","sourceRange":{"start":{"line":197,"column":8},"end":{"line":197,"column":23}},"metadata":{},"type":"string | null | undefined"},{"name":"validator","description":"The name of the custom validator","sourceRange":{"start":{"line":202,"column":8},"end":{"line":202,"column":25}},"metadata":{},"type":"string | null | undefined"},{"name":"auto-validate","description":"Set to true to auto-validate the input value when it changes.","sourceRange":{"start":{"line":207,"column":8},"end":{"line":210,"column":9}},"metadata":{},"type":"boolean | null | undefined"}],"events":[{"type":"CustomEvent","name":"value-changed","description":"Fired when the `value` property changes.","metadata":{}}],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-input","mixins":["Polymer.IronFormElementBehavior","Polymer.IronValidatableBehavior"]},{"description":"An element wrapping selectivity.js and relying on an operation for suggestions\\n\\n ","summary":"","path":"widgets/nuxeo-selectivity.js","properties":[{"name":"label","type":"string | null | undefined","description":"Label.","privacy":"public","sourceRange":{"start":{"line":6595,"column":8},"end":{"line":6595,"column":21}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"value","type":"?","description":"Selected value(s).","privacy":"public","sourceRange":{"start":{"line":6600,"column":8},"end":{"line":6603,"column":9}},"metadata":{"polymer":{"notify":true,"observer":"\\"_valueChanged\\""}}},{"name":"multiple","type":"boolean | null | undefined","description":"Set to `true` to allow multiple selection.","privacy":"public","sourceRange":{"start":{"line":6608,"column":8},"end":{"line":6611,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"stayOpenOnSelect","type":"boolean | null | undefined","description":"If true, the dropdown stays open after a selection is made.","privacy":"public","sourceRange":{"start":{"line":6616,"column":8},"end":{"line":6619,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"readonly","type":"boolean | null | undefined","description":"Set to `true` for read only mode.","privacy":"public","sourceRange":{"start":{"line":6624,"column":8},"end":{"line":6628,"column":9}},"metadata":{"polymer":{"observer":"\\"_readonlyChanged\\"","attributeType":"Boolean"}},"defaultValue":"false"},{"name":"minChars","type":"number | null | undefined","description":"Minimum number of chars to trigger the suggestions.","privacy":"public","sourceRange":{"start":{"line":6633,"column":8},"end":{"line":6636,"column":9}},"metadata":{"polymer":{"attributeType":"Number"}},"defaultValue":"3"},{"name":"frequency","type":"number | null | undefined","description":"Time in ms used to debounce requests.","privacy":"public","sourceRange":{"start":{"line":6641,"column":8},"end":{"line":6644,"column":9}},"metadata":{"polymer":{"attributeType":"Number"}},"defaultValue":"300"},{"name":"placeholder","type":"string | null | undefined","description":"Placeholder.","privacy":"public","sourceRange":{"start":{"line":6649,"column":8},"end":{"line":6653,"column":9}},"metadata":{"polymer":{"observer":"\\"_placeholderChanged\\"","attributeType":"String"}},"defaultValue":"\\" \\""},{"name":"separator","type":"string | null | undefined","description":"Separator to use with multiple selection.","privacy":"public","sourceRange":{"start":{"line":6658,"column":8},"end":{"line":6661,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\",\\""},{"name":"tagging","type":"boolean | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":6663,"column":8},"end":{"line":6666,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"idFunction","type":"Function | null | undefined","description":"Function used to get the id from the choice object.","privacy":"public","sourceRange":{"start":{"line":6671,"column":8},"end":{"line":6676,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"selectionFormatter","type":"Function | null | undefined","description":"Formatter for selected entries.","privacy":"public","sourceRange":{"start":{"line":6681,"column":8},"end":{"line":6686,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"resultFormatter","type":"Function | null | undefined","description":"Formatter for suggested entries.","privacy":"public","sourceRange":{"start":{"line":6691,"column":8},"end":{"line":6696,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"newEntryFormatter","type":"Function | null | undefined","description":"Formatter for new entries.","privacy":"public","sourceRange":{"start":{"line":6701,"column":8},"end":{"line":6706,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"resolveEntry","type":"Function | null | undefined","description":"Function that transforms the entries added using the value property into object","privacy":"public","sourceRange":{"start":{"line":6712,"column":8},"end":{"line":6717,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"addedEntryHandler","type":"Function | null | undefined","description":"Function called when an entry is selected.","privacy":"public","sourceRange":{"start":{"line":6722,"column":8},"end":{"line":6724,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"removedEntryHandler","type":"Function | null | undefined","description":"Function called when an entry is unselected.","privacy":"public","sourceRange":{"start":{"line":6729,"column":8},"end":{"line":6731,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"initSelection","type":"Function | null | undefined","description":"Formatter for initial selection.","privacy":"public","sourceRange":{"start":{"line":6736,"column":8},"end":{"line":6741,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"maximumSelectionSize","type":"number | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":6743,"column":8},"end":{"line":6746,"column":9}},"metadata":{"polymer":{"attributeType":"Number"}},"defaultValue":"-1"},{"name":"data","type":"Array | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":6748,"column":8},"end":{"line":6751,"column":9}},"metadata":{"polymer":{"observer":"\\"_dataChanged\\"","attributeType":"Array"}}},{"name":"selectedItems","type":"Array | null | undefined","description":"Selected items.","privacy":"public","sourceRange":{"start":{"line":6756,"column":8},"end":{"line":6760,"column":9}},"metadata":{"polymer":{"notify":true,"observer":"\\"_valueChanged\\"","attributeType":"Array"}}},{"name":"selectedItem","type":"Object | null | undefined","description":"Selected item.","privacy":"public","sourceRange":{"start":{"line":6765,"column":8},"end":{"line":6769,"column":9}},"metadata":{"polymer":{"notify":true,"observer":"\\"_valueChanged\\"","attributeType":"Object"}}},{"name":"operation","type":"string | null | undefined","description":"Operation to call for suggestions.","privacy":"public","sourceRange":{"start":{"line":6774,"column":8},"end":{"line":6774,"column":25}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"params","type":"Object | null | undefined","description":"Parameters to use in the operation call (will include `searchTerm`).","privacy":"public","sourceRange":{"start":{"line":6779,"column":8},"end":{"line":6781,"column":9}},"metadata":{"polymer":{"attributeType":"Object"}}},{"name":"queryResultsFilter","type":"Function | null | undefined","description":"Results filtering function (optional).","privacy":"public","sourceRange":{"start":{"line":6786,"column":8},"end":{"line":6786,"column":36}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"errorMessage","type":"string | null | undefined","description":"Error message to show when `invalid` is true.","privacy":"public","sourceRange":{"start":{"line":6791,"column":8},"end":{"line":6791,"column":28}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"enrichers","type":"string | null | undefined","description":"The `content enricher` of the operation.","privacy":"public","sourceRange":{"start":{"line":6796,"column":8},"end":{"line":6799,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"\\""},{"name":"headers","type":"Object | null | undefined","description":"The headers of the request.","privacy":"public","sourceRange":{"start":{"line":6804,"column":8},"end":{"line":6807,"column":9}},"metadata":{"polymer":{"attributeType":"Object"}},"defaultValue":"null"}],"methods":[{"name":"connectedCallback","description":"","privacy":"public","sourceRange":{"start":{"line":7121,"column":4},"end":{"line":7266,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"disconnectedCallback","description":"","privacy":"public","sourceRange":{"start":{"line":7268,"column":4},"end":{"line":7276,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_updateDropdownPosition","description":"","privacy":"protected","sourceRange":{"start":{"line":7278,"column":4},"end":{"line":7282,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"escapeHTML","description":"","privacy":"public","sourceRange":{"start":{"line":7284,"column":4},"end":{"line":7286,"column":5}},"metadata":{},"params":[{"name":"args","rest":true}]},{"name":"_getValidity","description":"","privacy":"protected","sourceRange":{"start":{"line":7288,"column":4},"end":{"line":7293,"column":5}},"metadata":{},"params":[]},{"name":"_initSelection","description":"","privacy":"protected","sourceRange":{"start":{"line":7295,"column":4},"end":{"line":7300,"column":5}},"metadata":{},"params":[{"name":"value"},{"name":"callback"}]},{"name":"_resolveEntry","description":"","privacy":"protected","sourceRange":{"start":{"line":7302,"column":4},"end":{"line":7312,"column":5}},"metadata":{},"params":[{"name":"entry"}]},{"name":"_updateSelection","description":"","privacy":"protected","sourceRange":{"start":{"line":7314,"column":4},"end":{"line":7339,"column":5}},"metadata":{},"params":[{"name":"e"}],"return":{"type":"void"}},{"name":"_valueChanged","description":"","privacy":"protected","sourceRange":{"start":{"line":7341,"column":4},"end":{"line":7353,"column":5}},"metadata":{},"params":[{"name":"newValue"}],"return":{"type":"void"}},{"name":"_dataChanged","description":"","privacy":"protected","sourceRange":{"start":{"line":7355,"column":4},"end":{"line":7365,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_placeholderChanged","description":"","privacy":"protected","sourceRange":{"start":{"line":7367,"column":4},"end":{"line":7378,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_readonlyChanged","description":"","privacy":"protected","sourceRange":{"start":{"line":7380,"column":4},"end":{"line":7387,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_idFunction","description":"","privacy":"protected","sourceRange":{"start":{"line":7389,"column":4},"end":{"line":7392,"column":5}},"metadata":{},"params":[{"name":"item"}]},{"name":"_newEntryFormatter","description":"","privacy":"protected","sourceRange":{"start":{"line":7394,"column":4},"end":{"line":7396,"column":5}},"metadata":{},"params":[{"name":"term"}]},{"name":"_selectionFormatter","description":"","privacy":"protected","sourceRange":{"start":{"line":7398,"column":4},"end":{"line":7400,"column":5}},"metadata":{},"params":[{"name":"item"}]},{"name":"_resultFormatter","description":"","privacy":"protected","sourceRange":{"start":{"line":7402,"column":4},"end":{"line":7404,"column":5}},"metadata":{},"params":[{"name":"item"}]},{"name":"_wrap","description":"","privacy":"protected","sourceRange":{"start":{"line":7406,"column":4},"end":{"line":7422,"column":5}},"metadata":{},"params":[{"name":"value"}]},{"name":"_triggerQueryCallback","description":"","privacy":"protected","sourceRange":{"start":{"line":7424,"column":4},"end":{"line":7437,"column":5}},"metadata":{},"params":[{"name":"query"},{"name":"results"}],"return":{"type":"void"}},{"name":"_query","description":"Implements abstract Nuxeo.Select2 methods","privacy":"protected","sourceRange":{"start":{"line":7440,"column":4},"end":{"line":7454,"column":5}},"metadata":{},"params":[{"name":"query"}]},{"name":"_getScrollParent","description":"","privacy":"protected","sourceRange":{"start":{"line":7456,"column":4},"end":{"line":7483,"column":5}},"metadata":{},"params":[]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-selectivity/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":6583,"column":2},"end":{"line":7484,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.SelectivityElement","attributes":[{"name":"label","description":"Label.","sourceRange":{"start":{"line":6595,"column":8},"end":{"line":6595,"column":21}},"metadata":{},"type":"string | null | undefined"},{"name":"value","description":"Selected value(s).","sourceRange":{"start":{"line":6600,"column":8},"end":{"line":6603,"column":9}},"metadata":{}},{"name":"multiple","description":"Set to `true` to allow multiple selection.","sourceRange":{"start":{"line":6608,"column":8},"end":{"line":6611,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"stay-open-on-select","description":"If true, the dropdown stays open after a selection is made.","sourceRange":{"start":{"line":6616,"column":8},"end":{"line":6619,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"readonly","description":"Set to `true` for read only mode.","sourceRange":{"start":{"line":6624,"column":8},"end":{"line":6628,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"min-chars","description":"Minimum number of chars to trigger the suggestions.","sourceRange":{"start":{"line":6633,"column":8},"end":{"line":6636,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"frequency","description":"Time in ms used to debounce requests.","sourceRange":{"start":{"line":6641,"column":8},"end":{"line":6644,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"placeholder","description":"Placeholder.","sourceRange":{"start":{"line":6649,"column":8},"end":{"line":6653,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"separator","description":"Separator to use with multiple selection.","sourceRange":{"start":{"line":6658,"column":8},"end":{"line":6661,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"tagging","description":"","sourceRange":{"start":{"line":6663,"column":8},"end":{"line":6666,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"id-function","description":"Function used to get the id from the choice object.","sourceRange":{"start":{"line":6671,"column":8},"end":{"line":6676,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"selection-formatter","description":"Formatter for selected entries.","sourceRange":{"start":{"line":6681,"column":8},"end":{"line":6686,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"result-formatter","description":"Formatter for suggested entries.","sourceRange":{"start":{"line":6691,"column":8},"end":{"line":6696,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"new-entry-formatter","description":"Formatter for new entries.","sourceRange":{"start":{"line":6701,"column":8},"end":{"line":6706,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"resolve-entry","description":"Function that transforms the entries added using the value property into object","sourceRange":{"start":{"line":6712,"column":8},"end":{"line":6717,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"added-entry-handler","description":"Function called when an entry is selected.","sourceRange":{"start":{"line":6722,"column":8},"end":{"line":6724,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"removed-entry-handler","description":"Function called when an entry is unselected.","sourceRange":{"start":{"line":6729,"column":8},"end":{"line":6731,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"init-selection","description":"Formatter for initial selection.","sourceRange":{"start":{"line":6736,"column":8},"end":{"line":6741,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"maximum-selection-size","description":"","sourceRange":{"start":{"line":6743,"column":8},"end":{"line":6746,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"data","description":"","sourceRange":{"start":{"line":6748,"column":8},"end":{"line":6751,"column":9}},"metadata":{},"type":"Array | null | undefined"},{"name":"selected-items","description":"Selected items.","sourceRange":{"start":{"line":6756,"column":8},"end":{"line":6760,"column":9}},"metadata":{},"type":"Array | null | undefined"},{"name":"selected-item","description":"Selected item.","sourceRange":{"start":{"line":6765,"column":8},"end":{"line":6769,"column":9}},"metadata":{},"type":"Object | null | undefined"},{"name":"operation","description":"Operation to call for suggestions.","sourceRange":{"start":{"line":6774,"column":8},"end":{"line":6774,"column":25}},"metadata":{},"type":"string | null | undefined"},{"name":"params","description":"Parameters to use in the operation call (will include `searchTerm`).","sourceRange":{"start":{"line":6779,"column":8},"end":{"line":6781,"column":9}},"metadata":{},"type":"Object | null | undefined"},{"name":"query-results-filter","description":"Results filtering function (optional).","sourceRange":{"start":{"line":6786,"column":8},"end":{"line":6786,"column":36}},"metadata":{},"type":"Function | null | undefined"},{"name":"error-message","description":"Error message to show when `invalid` is true.","sourceRange":{"start":{"line":6791,"column":8},"end":{"line":6791,"column":28}},"metadata":{},"type":"string | null | undefined"},{"name":"enrichers","description":"The `content enricher` of the operation.","sourceRange":{"start":{"line":6796,"column":8},"end":{"line":6799,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"headers","description":"The headers of the request.","sourceRange":{"start":{"line":6804,"column":8},"end":{"line":6807,"column":9}},"metadata":{},"type":"Object | null | undefined"}],"events":[{"type":"CustomEvent","name":"value-changed","description":"Fired when the `value` property changes.","metadata":{}},{"type":"CustomEvent","name":"selected-items-changed","description":"Fired when the `selectedItems` property changes.","metadata":{}},{"type":"CustomEvent","name":"selected-item-changed","description":"Fired when the `selectedItem` property changes.","metadata":{}}],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-selectivity","mixins":["Polymer.IronFormElementBehavior","Polymer.IronValidatableBehavior"]},{"description":"An element for showing a user\'s avatar if available, its initials with background otherwise.\\n\\nExample:\\n\\n ","summary":"","path":"widgets/nuxeo-user-avatar.js","properties":[{"name":"user","type":"Object | null | undefined","description":"User entity or a string","privacy":"public","sourceRange":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"metadata":{"polymer":{"attributeType":"Object"}}},{"name":"fetchAvatar","type":"boolean | null | undefined","description":"Fetch avatar from profile if not already loaded.","privacy":"public","sourceRange":{"start":{"line":90,"column":8},"end":{"line":93,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"height","type":"number | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":94,"column":8},"end":{"line":98,"column":9}},"metadata":{"polymer":{"observer":"\\"__obsHeight\\"","attributeType":"Number"}},"defaultValue":"48"},{"name":"width","type":"number | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":99,"column":8},"end":{"line":103,"column":9}},"metadata":{"polymer":{"observer":"\\"__obsWidth\\"","attributeType":"Number"}},"defaultValue":"48"},{"name":"textColor","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":104,"column":8},"end":{"line":108,"column":9}},"metadata":{"polymer":{"observer":"\\"__obsTextColor\\"","attributeType":"String"}},"defaultValue":"\\"#FFFFFF\\""},{"name":"fontSize","type":"number | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":109,"column":8},"end":{"line":113,"column":9}},"metadata":{"polymer":{"observer":"\\"__obsFontSize\\"","attributeType":"Number"}},"defaultValue":"20"},{"name":"fontWeight","type":"number | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":114,"column":8},"end":{"line":118,"column":9}},"metadata":{"polymer":{"observer":"\\"__obsFontWeight\\"","attributeType":"Number"}},"defaultValue":"400"},{"name":"borderRadius","type":"number | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":119,"column":8},"end":{"line":123,"column":9}},"metadata":{"polymer":{"observer":"\\"__obsBorderRadius\\"","attributeType":"Number"}},"defaultValue":"0"},{"name":"boxShadow","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":124,"column":8},"end":{"line":128,"column":9}},"metadata":{"polymer":{"observer":"\\"__obsBoxShadow\\"","attributeType":"String"}},"defaultValue":"\\"0px 0px 0px 0px rgba(33,33,33,0.75)\\""},{"name":"textShadow","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":129,"column":8},"end":{"line":133,"column":9}},"metadata":{"polymer":{"observer":"\\"__obsTextShadow\\"","attributeType":"String"}},"defaultValue":"\\"0px 0px 0px rgba(33,33,33,0.75)\\""},{"name":"_output","type":"string | null | undefined","description":"","privacy":"protected","sourceRange":{"start":{"line":134,"column":8},"end":{"line":136,"column":9}},"metadata":{"polymer":{"attributeType":"String"}}}],"methods":[{"name":"_username","description":"","privacy":"protected","sourceRange":{"start":{"line":144,"column":4},"end":{"line":146,"column":5}},"metadata":{},"params":[{"name":"user"}]},{"name":"_isEntity","description":"","privacy":"protected","sourceRange":{"start":{"line":148,"column":4},"end":{"line":155,"column":5}},"metadata":{},"params":[{"name":"user"}]},{"name":"_id","description":"","privacy":"protected","sourceRange":{"start":{"line":157,"column":4},"end":{"line":162,"column":5}},"metadata":{},"params":[{"name":"user"}]},{"name":"_name","description":"","privacy":"protected","sourceRange":{"start":{"line":164,"column":4},"end":{"line":171,"column":5}},"metadata":{},"params":[{"name":"user"}]},{"name":"_email","description":"","privacy":"protected","sourceRange":{"start":{"line":173,"column":4},"end":{"line":179,"column":5}},"metadata":{},"params":[{"name":"user"}]},{"name":"__obsHeight","description":"","privacy":"private","sourceRange":{"start":{"line":181,"column":4},"end":{"line":183,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"__obsWidth","description":"","privacy":"private","sourceRange":{"start":{"line":185,"column":4},"end":{"line":187,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"__obsTextColor","description":"","privacy":"private","sourceRange":{"start":{"line":189,"column":4},"end":{"line":191,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"__obsFontSize","description":"","privacy":"private","sourceRange":{"start":{"line":193,"column":4},"end":{"line":195,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"__obsFontWeight","description":"","privacy":"private","sourceRange":{"start":{"line":197,"column":4},"end":{"line":199,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"__obsBorderRadius","description":"","privacy":"private","sourceRange":{"start":{"line":201,"column":4},"end":{"line":206,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"__obsBoxShadow","description":"","privacy":"private","sourceRange":{"start":{"line":208,"column":4},"end":{"line":212,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"__obsTextShadow","description":"","privacy":"private","sourceRange":{"start":{"line":214,"column":4},"end":{"line":218,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"__generateHue","description":"","privacy":"private","sourceRange":{"start":{"line":220,"column":4},"end":{"line":228,"column":5}},"metadata":{},"params":[]},{"name":"__makeAvatar","description":"","privacy":"private","sourceRange":{"start":{"line":230,"column":4},"end":{"line":313,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-user-avatar/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":34,"column":2},"end":{"line":314,"column":3}},"privacy":"public","superclass":"Nuxeo.Element","name":"Nuxeo.UserAvatar","attributes":[{"name":"user","description":"User entity or a string","sourceRange":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"metadata":{},"type":"Object | null | undefined"},{"name":"fetch-avatar","description":"Fetch avatar from profile if not already loaded.","sourceRange":{"start":{"line":90,"column":8},"end":{"line":93,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"height","description":"","sourceRange":{"start":{"line":94,"column":8},"end":{"line":98,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"width","description":"","sourceRange":{"start":{"line":99,"column":8},"end":{"line":103,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"text-color","description":"","sourceRange":{"start":{"line":104,"column":8},"end":{"line":108,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"font-size","description":"","sourceRange":{"start":{"line":109,"column":8},"end":{"line":113,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"font-weight","description":"","sourceRange":{"start":{"line":114,"column":8},"end":{"line":118,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"border-radius","description":"","sourceRange":{"start":{"line":119,"column":8},"end":{"line":123,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"box-shadow","description":"","sourceRange":{"start":{"line":124,"column":8},"end":{"line":128,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"text-shadow","description":"","sourceRange":{"start":{"line":129,"column":8},"end":{"line":133,"column":9}},"metadata":{},"type":"string | null | undefined"}],"events":[],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-user-avatar"},{"description":"","summary":"","path":"widgets/nuxeo-user-group-formatter.js","properties":[{"name":"entity","type":"Object | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":81,"column":8},"end":{"line":83,"column":9}},"metadata":{"polymer":{"attributeType":"Object"}}}],"methods":[{"name":"_isUser","description":"","privacy":"protected","sourceRange":{"start":{"line":87,"column":4},"end":{"line":89,"column":5}},"metadata":{},"params":[]},{"name":"_isGroup","description":"","privacy":"protected","sourceRange":{"start":{"line":91,"column":4},"end":{"line":93,"column":5}},"metadata":{},"params":[]},{"name":"_computeInfo","description":"","privacy":"protected","sourceRange":{"start":{"line":95,"column":4},"end":{"line":100,"column":5}},"metadata":{},"params":[]}],"staticMethods":[],"demos":[],"metadata":{},"sourceRange":{"start":{"line":26,"column":2},"end":{"line":101,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"UserGroupFormatter","attributes":[{"name":"entity","description":"","sourceRange":{"start":{"line":81,"column":8},"end":{"line":83,"column":9}},"metadata":{},"type":"Object | null | undefined"}],"events":[],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-user-group-formatter"},{"description":"`nuxeo-user-suggestion` allows selecting one or more users.\\n\\n ","summary":"","path":"widgets/nuxeo-user-suggestion.js","properties":[{"name":"searchType","type":"string | null | undefined","description":"USER_TYPE or GROUP_TYPE or USER_GROUP_TYPE","privacy":"public","sourceRange":{"start":{"line":87,"column":8},"end":{"line":90,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"USER_GROUP_TYPE\\""},{"name":"groupRestriction","type":"string | null | undefined","description":"Group ID to narrow the user suggestions.","privacy":"public","sourceRange":{"start":{"line":95,"column":8},"end":{"line":97,"column":9}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"label","type":"string | null | undefined","description":"Label.","privacy":"public","sourceRange":{"start":{"line":102,"column":8},"end":{"line":102,"column":21}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"operation","type":"string | null | undefined","description":"Operation to call for suggestions.","privacy":"public","sourceRange":{"start":{"line":107,"column":8},"end":{"line":110,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"UserGroup.Suggestion\\""},{"name":"params","type":"Object | null | undefined","description":"Parameters for the operation.","privacy":"public","sourceRange":{"start":{"line":115,"column":8},"end":{"line":115,"column":22}},"metadata":{"polymer":{"attributeType":"Object"}}},{"name":"value","type":"string | null | undefined","description":"Selected value(s).","privacy":"public","sourceRange":{"start":{"line":120,"column":8},"end":{"line":123,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"String"}}},{"name":"multiple","type":"boolean | null | undefined","description":"Set to `true` to allow multiple selection.","privacy":"public","sourceRange":{"start":{"line":128,"column":8},"end":{"line":131,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"stayOpenOnSelect","type":"boolean | null | undefined","description":"If true, the dropdown stays open after a selection is made.","privacy":"public","sourceRange":{"start":{"line":136,"column":8},"end":{"line":139,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"readonly","type":"boolean | null | undefined","description":"Set to `true` for read only mode.","privacy":"public","sourceRange":{"start":{"line":144,"column":8},"end":{"line":147,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"minChars","type":"number | null | undefined","description":"Minimum number of chars to trigger the suggestions.","privacy":"public","sourceRange":{"start":{"line":152,"column":8},"end":{"line":155,"column":9}},"metadata":{"polymer":{"attributeType":"Number"}},"defaultValue":"3"},{"name":"frequency","type":"number | null | undefined","description":"Time in ms used to debounce requests.","privacy":"public","sourceRange":{"start":{"line":160,"column":8},"end":{"line":160,"column":25}},"metadata":{"polymer":{"attributeType":"Number"}}},{"name":"placeholder","type":"string | null | undefined","description":"Placeholder.","privacy":"public","sourceRange":{"start":{"line":165,"column":8},"end":{"line":165,"column":27}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"errorMessage","type":"string | null | undefined","description":"Error message to show when `invalid` is true.","privacy":"public","sourceRange":{"start":{"line":170,"column":8},"end":{"line":170,"column":28}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"selectedItems","type":"Array | null | undefined","description":"Selected items.","privacy":"public","sourceRange":{"start":{"line":175,"column":8},"end":{"line":178,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"Array"}}},{"name":"selectedItem","type":"Object | null | undefined","description":"Selected item.","privacy":"public","sourceRange":{"start":{"line":183,"column":8},"end":{"line":186,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"Object"}}},{"name":"selectionFormatter","type":"Function | null | undefined","description":"Formatter for a selected entry.","privacy":"public","sourceRange":{"start":{"line":191,"column":8},"end":{"line":196,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"resultFormatter","type":"Function | null | undefined","description":"Formatter for suggested entries.","privacy":"public","sourceRange":{"start":{"line":201,"column":8},"end":{"line":206,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"resolveEntry","type":"Function | null | undefined","description":"Function that transforms entries added to the element using the `value` property into objects.","privacy":"public","sourceRange":{"start":{"line":211,"column":8},"end":{"line":216,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"prefixed","type":"boolean | null | undefined","description":"Set to true to submit ids prefixed with \\"user:\\" or \\"group:\\".","privacy":"public","sourceRange":{"start":{"line":221,"column":8},"end":{"line":221,"column":25}},"metadata":{"polymer":{"attributeType":"Boolean"}}},{"name":"idFunction","type":"Function | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":223,"column":8},"end":{"line":228,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"queryResultsFilter","type":"Function | null | undefined","description":"Results filtering function (optional).","privacy":"public","sourceRange":{"start":{"line":233,"column":8},"end":{"line":233,"column":36}},"metadata":{"polymer":{"attributeType":"Function"}}}],"methods":[{"name":"_getValidity","description":"Override method from Polymer.IronValidatableBehavior.","privacy":"protected","sourceRange":{"start":{"line":238,"column":4},"end":{"line":240,"column":5}},"metadata":{},"params":[]},{"name":"_computeParams","description":"","privacy":"protected","sourceRange":{"start":{"line":242,"column":4},"end":{"line":251,"column":5}},"metadata":{},"params":[]},{"name":"_selectionFormatter","description":"","privacy":"protected","sourceRange":{"start":{"line":253,"column":4},"end":{"line":272,"column":5}},"metadata":{},"params":[{"name":"item"}]},{"name":"_resultFormatter","description":"","privacy":"protected","sourceRange":{"start":{"line":274,"column":4},"end":{"line":280,"column":5}},"metadata":{},"params":[{"name":"item"}]},{"name":"_resolveEntry","description":"","privacy":"protected","sourceRange":{"start":{"line":282,"column":4},"end":{"line":287,"column":5}},"metadata":{},"params":[{"name":"item"}]},{"name":"_idFunction","description":"","privacy":"protected","sourceRange":{"start":{"line":289,"column":4},"end":{"line":294,"column":5}},"metadata":{},"params":[{"name":"item"}]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-user-suggestion/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":40,"column":2},"end":{"line":295,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.UserSuggestion","attributes":[{"name":"search-type","description":"USER_TYPE or GROUP_TYPE or USER_GROUP_TYPE","sourceRange":{"start":{"line":87,"column":8},"end":{"line":90,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"group-restriction","description":"Group ID to narrow the user suggestions.","sourceRange":{"start":{"line":95,"column":8},"end":{"line":97,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"label","description":"Label.","sourceRange":{"start":{"line":102,"column":8},"end":{"line":102,"column":21}},"metadata":{},"type":"string | null | undefined"},{"name":"operation","description":"Operation to call for suggestions.","sourceRange":{"start":{"line":107,"column":8},"end":{"line":110,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"params","description":"Parameters for the operation.","sourceRange":{"start":{"line":115,"column":8},"end":{"line":115,"column":22}},"metadata":{},"type":"Object | null | undefined"},{"name":"value","description":"Selected value(s).","sourceRange":{"start":{"line":120,"column":8},"end":{"line":123,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"multiple","description":"Set to `true` to allow multiple selection.","sourceRange":{"start":{"line":128,"column":8},"end":{"line":131,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"stay-open-on-select","description":"If true, the dropdown stays open after a selection is made.","sourceRange":{"start":{"line":136,"column":8},"end":{"line":139,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"readonly","description":"Set to `true` for read only mode.","sourceRange":{"start":{"line":144,"column":8},"end":{"line":147,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"min-chars","description":"Minimum number of chars to trigger the suggestions.","sourceRange":{"start":{"line":152,"column":8},"end":{"line":155,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"frequency","description":"Time in ms used to debounce requests.","sourceRange":{"start":{"line":160,"column":8},"end":{"line":160,"column":25}},"metadata":{},"type":"number | null | undefined"},{"name":"placeholder","description":"Placeholder.","sourceRange":{"start":{"line":165,"column":8},"end":{"line":165,"column":27}},"metadata":{},"type":"string | null | undefined"},{"name":"error-message","description":"Error message to show when `invalid` is true.","sourceRange":{"start":{"line":170,"column":8},"end":{"line":170,"column":28}},"metadata":{},"type":"string | null | undefined"},{"name":"selected-items","description":"Selected items.","sourceRange":{"start":{"line":175,"column":8},"end":{"line":178,"column":9}},"metadata":{},"type":"Array | null | undefined"},{"name":"selected-item","description":"Selected item.","sourceRange":{"start":{"line":183,"column":8},"end":{"line":186,"column":9}},"metadata":{},"type":"Object | null | undefined"},{"name":"selection-formatter","description":"Formatter for a selected entry.","sourceRange":{"start":{"line":191,"column":8},"end":{"line":196,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"result-formatter","description":"Formatter for suggested entries.","sourceRange":{"start":{"line":201,"column":8},"end":{"line":206,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"resolve-entry","description":"Function that transforms entries added to the element using the `value` property into objects.","sourceRange":{"start":{"line":211,"column":8},"end":{"line":216,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"prefixed","description":"Set to true to submit ids prefixed with \\"user:\\" or \\"group:\\".","sourceRange":{"start":{"line":221,"column":8},"end":{"line":221,"column":25}},"metadata":{},"type":"boolean | null | undefined"},{"name":"id-function","description":"","sourceRange":{"start":{"line":223,"column":8},"end":{"line":228,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"query-results-filter","description":"Results filtering function (optional).","sourceRange":{"start":{"line":233,"column":8},"end":{"line":233,"column":36}},"metadata":{},"type":"Function | null | undefined"}],"events":[{"type":"CustomEvent","name":"value-changed","description":"Fired when the `value` property changes.","metadata":{}},{"type":"CustomEvent","name":"selected-items-changed","description":"Fired when the `selectedItems` property changes.","metadata":{}},{"type":"CustomEvent","name":"selected-item-changed","description":"Fired when the `selectedItem` property changes.","metadata":{}}],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-user-suggestion","mixins":["Polymer.IronFormElementBehavior","Polymer.IronValidatableBehavior"]},{"description":"Used by `nuxeo-user-group-management`","summary":"","path":"nuxeo-user-group-management/nuxeo-create-group.js","properties":[{"name":"groupName","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":169,"column":8},"end":{"line":172,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"String"}}},{"name":"groupLabel","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":174,"column":8},"end":{"line":177,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"String"}}},{"name":"selectedUser","type":"Object | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":179,"column":8},"end":{"line":182,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"Object"}}},{"name":"selectedUsers","type":"Array | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":184,"column":8},"end":{"line":188,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"Array"}},"defaultValue":"[]"},{"name":"resultsFilter","type":"Function | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":190,"column":8},"end":{"line":195,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"resultFormatter","type":"Function | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":197,"column":8},"end":{"line":199,"column":9}},"metadata":{"polymer":{"attributeType":"Function"}}},{"name":"errors","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":201,"column":8},"end":{"line":204,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"\\""},{"name":"_createAnother","type":"boolean | null | undefined","description":"If true, allows to create a new group immediately after the current one is created","privacy":"protected","sourceRange":{"start":{"line":209,"column":8},"end":{"line":212,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"}],"methods":[{"name":"ready","description":"","privacy":"protected","sourceRange":{"start":{"line":220,"column":4},"end":{"line":226,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_goHome","description":"","privacy":"protected","sourceRange":{"start":{"line":228,"column":4},"end":{"line":235,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_observeSelectedUser","description":"","privacy":"protected","sourceRange":{"start":{"line":237,"column":4},"end":{"line":242,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_remove","description":"","privacy":"protected","sourceRange":{"start":{"line":244,"column":4},"end":{"line":248,"column":5}},"metadata":{},"params":[{"name":"e"}],"return":{"type":"void"}},{"name":"_submitAnother","description":"Submits the form with `_createAnother` option set to true.","privacy":"protected","sourceRange":{"start":{"line":253,"column":4},"end":{"line":256,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_submit","description":"Submits the form.","privacy":"protected","sourceRange":{"start":{"line":261,"column":4},"end":{"line":264,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_create","description":"Creates a new group if the form was successfully submitted.","privacy":"protected","sourceRange":{"start":{"line":269,"column":4},"end":{"line":289,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_cancel","description":"","privacy":"protected","sourceRange":{"start":{"line":291,"column":4},"end":{"line":294,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_resetFields","description":"","privacy":"protected","sourceRange":{"start":{"line":296,"column":4},"end":{"line":301,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_computeData","description":"","privacy":"protected","sourceRange":{"start":{"line":303,"column":4},"end":{"line":315,"column":5}},"metadata":{},"params":[]},{"name":"_resultsFilter","description":"","privacy":"protected","sourceRange":{"start":{"line":317,"column":4},"end":{"line":324,"column":5}},"metadata":{},"params":[{"name":"entry"}]},{"name":"_hasErrors","description":"","privacy":"protected","sourceRange":{"start":{"line":326,"column":4},"end":{"line":328,"column":5}},"metadata":{},"params":[]}],"staticMethods":[],"demos":[],"metadata":{},"sourceRange":{"start":{"line":38,"column":2},"end":{"line":329,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.CreateGroup","attributes":[{"name":"group-name","description":"","sourceRange":{"start":{"line":169,"column":8},"end":{"line":172,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"group-label","description":"","sourceRange":{"start":{"line":174,"column":8},"end":{"line":177,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"selected-user","description":"","sourceRange":{"start":{"line":179,"column":8},"end":{"line":182,"column":9}},"metadata":{},"type":"Object | null | undefined"},{"name":"selected-users","description":"","sourceRange":{"start":{"line":184,"column":8},"end":{"line":188,"column":9}},"metadata":{},"type":"Array | null | undefined"},{"name":"results-filter","description":"","sourceRange":{"start":{"line":190,"column":8},"end":{"line":195,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"result-formatter","description":"","sourceRange":{"start":{"line":197,"column":8},"end":{"line":199,"column":9}},"metadata":{},"type":"Function | null | undefined"},{"name":"errors","description":"","sourceRange":{"start":{"line":201,"column":8},"end":{"line":204,"column":9}},"metadata":{},"type":"string | null | undefined"}],"events":[{"type":"CustomEvent","name":"group-name-changed","description":"Fired when the `groupName` property changes.","metadata":{}},{"type":"CustomEvent","name":"group-label-changed","description":"Fired when the `groupLabel` property changes.","metadata":{}},{"type":"CustomEvent","name":"selected-user-changed","description":"Fired when the `selectedUser` property changes.","metadata":{}},{"type":"CustomEvent","name":"selected-users-changed","description":"Fired when the `selectedUsers` property changes.","metadata":{}}],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-create-group","mixins":["Nuxeo.I18nBehavior"]},{"description":"An element to display errors.\\n\\nExample:\\n\\n ","summary":"","path":"nuxeo-error.js","properties":[{"name":"code","type":"string | null | undefined","description":"The error code. Description will rely on a label with key \'error.\'.","privacy":"public","sourceRange":{"start":{"line":101,"column":8},"end":{"line":104,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"\\""},{"name":"message","type":"string | null | undefined","description":"Error message to display.","privacy":"public","sourceRange":{"start":{"line":109,"column":8},"end":{"line":112,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"\\""},{"name":"url","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":114,"column":8},"end":{"line":117,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"\\""},{"name":"hidden","type":"boolean | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":119,"column":8},"end":{"line":123,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"}],"methods":[{"name":"show","description":"","privacy":"public","sourceRange":{"start":{"line":127,"column":4},"end":{"line":134,"column":5}},"metadata":{},"params":[{"name":"code"},{"name":"url"},{"name":"message"}],"return":{"type":"void"}},{"name":"hide","description":"","privacy":"public","sourceRange":{"start":{"line":136,"column":4},"end":{"line":138,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_label","description":"","privacy":"protected","sourceRange":{"start":{"line":140,"column":4},"end":{"line":142,"column":5}},"metadata":{},"params":[]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-error/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":34,"column":2},"end":{"line":143,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.Error","attributes":[{"name":"code","description":"The error code. Description will rely on a label with key \'error.\'.","sourceRange":{"start":{"line":101,"column":8},"end":{"line":104,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"message","description":"Error message to display.","sourceRange":{"start":{"line":109,"column":8},"end":{"line":112,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"url","description":"","sourceRange":{"start":{"line":114,"column":8},"end":{"line":117,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"hidden","description":"","sourceRange":{"start":{"line":119,"column":8},"end":{"line":123,"column":9}},"metadata":{},"type":"boolean | null | undefined"}],"events":[],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-error","mixins":["Nuxeo.I18nBehavior"]},{"description":"An element to import and stamp layout elements.\\n\\nExample:\\n\\n ","summary":"","path":"nuxeo-layout.js","properties":[{"name":"href","type":"string | null | undefined","description":"The href of the element to import.\\nThe name of the element is inferred from the filename.","privacy":"public","sourceRange":{"start":{"line":55,"column":8},"end":{"line":58,"column":9}},"metadata":{"polymer":{"observer":"\\"_stamp\\"","attributeType":"String"}}},{"name":"model","type":"Object | null | undefined","description":"Model object with properties to set on the instantiated element.","privacy":"public","sourceRange":{"start":{"line":63,"column":8},"end":{"line":66,"column":9}},"metadata":{"polymer":{"attributeType":"Object"}},"defaultValue":"{}"},{"name":"error","type":"string | null | undefined","description":"Error message to display if layout is not found.","privacy":"public","sourceRange":{"start":{"line":71,"column":8},"end":{"line":74,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"Failed to find layout\\""},{"name":"element","type":"Object | null | undefined","description":"The stamped element.","privacy":"public","sourceRange":{"start":{"line":79,"column":8},"end":{"line":83,"column":9}},"metadata":{"polymer":{"notify":true,"readOnly":true,"attributeType":"Object"}}}],"methods":[{"name":"_getBoundElements","description":"","privacy":"protected","sourceRange":{"start":{"line":91,"column":4},"end":{"line":116,"column":5}},"metadata":{},"params":[{"name":"property"}]},{"name":"validate","description":"Trigger the layout validation if it exists.","privacy":"public","sourceRange":{"start":{"line":119,"column":4},"end":{"line":136,"column":5}},"metadata":{},"params":[]},{"name":"_getValidatableElements","description":"","privacy":"protected","sourceRange":{"start":{"line":138,"column":4},"end":{"line":152,"column":5}},"metadata":{},"params":[{"name":"parent"}]},{"name":"_isVisible","description":"","privacy":"protected","sourceRange":{"start":{"line":154,"column":4},"end":{"line":162,"column":5}},"metadata":{},"params":[{"name":"node"}]},{"name":"_stamp","description":"","privacy":"protected","sourceRange":{"start":{"line":164,"column":4},"end":{"line":200,"column":5}},"metadata":{},"params":[{"name":"href"}],"return":{"type":"void"}},{"name":"_update","description":"setup data binding","privacy":"protected","sourceRange":{"start":{"line":203,"column":4},"end":{"line":210,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}}],"staticMethods":[],"demos":[],"metadata":{},"sourceRange":{"start":{"line":37,"column":2},"end":{"line":211,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.Layout","attributes":[{"name":"href","description":"The href of the element to import.\\nThe name of the element is inferred from the filename.","sourceRange":{"start":{"line":55,"column":8},"end":{"line":58,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"model","description":"Model object with properties to set on the instantiated element.","sourceRange":{"start":{"line":63,"column":8},"end":{"line":66,"column":9}},"metadata":{},"type":"Object | null | undefined"},{"name":"error","description":"Error message to display if layout is not found.","sourceRange":{"start":{"line":71,"column":8},"end":{"line":74,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"element","description":"The stamped element.","sourceRange":{"start":{"line":79,"column":8},"end":{"line":83,"column":9}},"metadata":{},"type":"Object | null | undefined"}],"events":[{"type":"CustomEvent","name":"element-changed","description":"Fired when the `element` property changes.","metadata":{}}],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-layout","mixins":["Polymer.IronResizableBehavior"]},{"description":"Used by `nuxeo-user-management` and `nuxeo-create-user","summary":"","path":"nuxeo-user-group-management/nuxeo-edit-password.js","properties":[{"name":"password","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":76,"column":8},"end":{"line":79,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"String"}}},{"name":"_confirmationPassword","type":"string | null | undefined","description":"","privacy":"protected","sourceRange":{"start":{"line":80,"column":8},"end":{"line":82,"column":9}},"metadata":{"polymer":{"attributeType":"String"}}}],"methods":[{"name":"_computeErrorMessage","description":"","privacy":"protected","sourceRange":{"start":{"line":86,"column":4},"end":{"line":91,"column":5}},"metadata":{},"params":[{"name":"password"}]},{"name":"_getValidity","description":"","privacy":"protected","sourceRange":{"start":{"line":93,"column":4},"end":{"line":95,"column":5}},"metadata":{},"params":[]},{"name":"resetFields","description":"","privacy":"public","sourceRange":{"start":{"line":97,"column":4},"end":{"line":100,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}}],"staticMethods":[],"demos":[],"metadata":{},"sourceRange":{"start":{"line":34,"column":2},"end":{"line":101,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.EditPassword","attributes":[{"name":"password","description":"","sourceRange":{"start":{"line":76,"column":8},"end":{"line":79,"column":9}},"metadata":{},"type":"string | null | undefined"}],"events":[{"type":"CustomEvent","name":"password-changed","description":"Fired when the `password` property changes.","metadata":{}}],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-edit-password","mixins":["Polymer.IronFormElementBehavior","Polymer.IronValidatableBehavior","Nuxeo.FormatBehavior"]},{"description":"Used by `nuxeo-user-group-management`","summary":"","path":"nuxeo-user-group-management/nuxeo-create-user.js","properties":[{"name":"user","type":"Object | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":130,"column":8},"end":{"line":133,"column":9}},"metadata":{"polymer":{"attributeType":"Object"}},"defaultValue":"{}"},{"name":"usePassword","type":"boolean | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":135,"column":8},"end":{"line":138,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"errors","type":"string | null | undefined","description":"","privacy":"public","sourceRange":{"start":{"line":140,"column":8},"end":{"line":143,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"\\""},{"name":"_createAnother","type":"boolean | null | undefined","description":"If true, allows to create a new user immediately after the current one is created","privacy":"protected","sourceRange":{"start":{"line":148,"column":8},"end":{"line":151,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"_currentUser","type":"Object | null | undefined","description":"","privacy":"protected","sourceRange":{"start":{"line":153,"column":8},"end":{"line":155,"column":9}},"metadata":{"polymer":{"attributeType":"Object"}}}],"methods":[{"name":"ready","description":"","privacy":"protected","sourceRange":{"start":{"line":163,"column":4},"end":{"line":169,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_goHome","description":"","privacy":"protected","sourceRange":{"start":{"line":171,"column":4},"end":{"line":178,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_submitAnother","description":"Submits the form with `_createAnother` option set to true.","privacy":"protected","sourceRange":{"start":{"line":183,"column":4},"end":{"line":186,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_submit","description":"Submits the form.","privacy":"protected","sourceRange":{"start":{"line":191,"column":4},"end":{"line":194,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_create","description":"Creates a new user if the form was successfully submitted.","privacy":"protected","sourceRange":{"start":{"line":199,"column":4},"end":{"line":231,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_doCreate","description":"","privacy":"protected","sourceRange":{"start":{"line":233,"column":4},"end":{"line":262,"column":5}},"metadata":{},"params":[{"name":"user"}]},{"name":"_cancel","description":"","privacy":"protected","sourceRange":{"start":{"line":264,"column":4},"end":{"line":267,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_resetFields","description":"","privacy":"protected","sourceRange":{"start":{"line":269,"column":4},"end":{"line":276,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_hasErrors","description":"","privacy":"protected","sourceRange":{"start":{"line":278,"column":4},"end":{"line":280,"column":5}},"metadata":{},"params":[]},{"name":"_isAdministrator","description":"","privacy":"protected","sourceRange":{"start":{"line":282,"column":4},"end":{"line":284,"column":5}},"metadata":{},"params":[{"name":"user"}]},{"name":"_layoutHref","description":"","privacy":"protected","sourceRange":{"start":{"line":286,"column":4},"end":{"line":288,"column":5}},"metadata":{},"params":[{"name":"layout"}]},{"name":"_layoutModel","description":"","privacy":"protected","sourceRange":{"start":{"line":290,"column":4},"end":{"line":295,"column":5}},"metadata":{},"params":[]},{"name":"_layoutElementChanged","description":"","privacy":"protected","sourceRange":{"start":{"line":297,"column":4},"end":{"line":301,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}}],"staticMethods":[],"demos":[],"metadata":{},"sourceRange":{"start":{"line":41,"column":2},"end":{"line":302,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.CreateUser","attributes":[{"name":"user","description":"","sourceRange":{"start":{"line":130,"column":8},"end":{"line":133,"column":9}},"metadata":{},"type":"Object | null | undefined"},{"name":"use-password","description":"","sourceRange":{"start":{"line":135,"column":8},"end":{"line":138,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"errors","description":"","sourceRange":{"start":{"line":140,"column":8},"end":{"line":143,"column":9}},"metadata":{},"type":"string | null | undefined"}],"events":[],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-create-user","mixins":["Nuxeo.I18nBehavior"]},{"description":"An element for selecting options.\\n\\nExample:\\n\\n ","summary":"","path":"widgets/nuxeo-select.js","properties":[{"name":"label","type":"string | null | undefined","description":"Label.","privacy":"public","sourceRange":{"start":{"line":166,"column":8},"end":{"line":169,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"null"},{"name":"placeholder","type":"string | null | undefined","description":"Placeholder.","privacy":"public","sourceRange":{"start":{"line":174,"column":8},"end":{"line":177,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\" \\""},{"name":"errorMessage","type":"string | null | undefined","description":"Error message.","privacy":"public","sourceRange":{"start":{"line":182,"column":8},"end":{"line":184,"column":9}},"metadata":{"polymer":{"attributeType":"String"}}},{"name":"options","type":"Array | null | undefined","description":"Options array to show.","privacy":"public","sourceRange":{"start":{"line":189,"column":8},"end":{"line":192,"column":9}},"metadata":{"polymer":{"attributeType":"Array"}},"defaultValue":"null"},{"name":"selected","type":"string | null | undefined","description":"Gets or sets the selected option.","privacy":"public","sourceRange":{"start":{"line":197,"column":8},"end":{"line":200,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"String"}}},{"name":"attrForSelected","type":"string | null | undefined","description":"Attribute value or property of an element for `selected` instead of the default `option` value.","privacy":"public","sourceRange":{"start":{"line":205,"column":8},"end":{"line":208,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"null"},{"name":"horizontalAlign","type":"string | null | undefined","description":"The orientation against which to align the menu dropdown\\nhorizontally relative to the dropdown trigger.","privacy":"public","sourceRange":{"start":{"line":214,"column":8},"end":{"line":217,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"left\\""},{"name":"verticalAlign","type":"string | null | undefined","description":"The orientation against which to align the menu dropdown\\nvertically relative to the dropdown trigger.","privacy":"public","sourceRange":{"start":{"line":223,"column":8},"end":{"line":226,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"\\"top\\""},{"name":"dynamicAlign","type":"boolean | null | undefined","description":"Dynamically align dropdown menu.","privacy":"public","sourceRange":{"start":{"line":231,"column":8},"end":{"line":233,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}}},{"name":"readonly","type":"boolean | null | undefined","description":"Read only.","privacy":"public","sourceRange":{"start":{"line":238,"column":8},"end":{"line":242,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"disabled","type":"boolean | null | undefined","description":"Disabled.","privacy":"public","sourceRange":{"start":{"line":247,"column":8},"end":{"line":251,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"required","type":"boolean | null | undefined","description":"Required.","privacy":"public","sourceRange":{"start":{"line":256,"column":8},"end":{"line":260,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"}],"methods":[{"name":"connectedCallback","description":"","privacy":"public","sourceRange":{"start":{"line":264,"column":4},"end":{"line":270,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"disconnectedCallback","description":"","privacy":"public","sourceRange":{"start":{"line":272,"column":4},"end":{"line":275,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"close","description":"","privacy":"public","sourceRange":{"start":{"line":277,"column":4},"end":{"line":279,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_resize","description":"","privacy":"protected","sourceRange":{"start":{"line":281,"column":4},"end":{"line":289,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_id","description":"","privacy":"protected","sourceRange":{"start":{"line":291,"column":4},"end":{"line":297,"column":5}},"metadata":{},"params":[{"name":"item"}]},{"name":"_label","description":"","privacy":"protected","sourceRange":{"start":{"line":299,"column":4},"end":{"line":301,"column":5}},"metadata":{},"params":[{"name":"item"}]},{"name":"_computeAttrForSelected","description":"","privacy":"protected","sourceRange":{"start":{"line":303,"column":4},"end":{"line":305,"column":5}},"metadata":{},"params":[{"name":"attrForSelected"},{"name":"options"}]},{"name":"_getValidity","description":"Override method from Polymer.IronValidatableBehavior.","privacy":"protected","sourceRange":{"start":{"line":308,"column":4},"end":{"line":310,"column":5}},"metadata":{},"params":[]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-select/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":41,"column":2},"end":{"line":311,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.Select","attributes":[{"name":"label","description":"Label.","sourceRange":{"start":{"line":166,"column":8},"end":{"line":169,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"placeholder","description":"Placeholder.","sourceRange":{"start":{"line":174,"column":8},"end":{"line":177,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"error-message","description":"Error message.","sourceRange":{"start":{"line":182,"column":8},"end":{"line":184,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"options","description":"Options array to show.","sourceRange":{"start":{"line":189,"column":8},"end":{"line":192,"column":9}},"metadata":{},"type":"Array | null | undefined"},{"name":"selected","description":"Gets or sets the selected option.","sourceRange":{"start":{"line":197,"column":8},"end":{"line":200,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"attr-for-selected","description":"Attribute value or property of an element for `selected` instead of the default `option` value.","sourceRange":{"start":{"line":205,"column":8},"end":{"line":208,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"horizontal-align","description":"The orientation against which to align the menu dropdown\\nhorizontally relative to the dropdown trigger.","sourceRange":{"start":{"line":214,"column":8},"end":{"line":217,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"vertical-align","description":"The orientation against which to align the menu dropdown\\nvertically relative to the dropdown trigger.","sourceRange":{"start":{"line":223,"column":8},"end":{"line":226,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"dynamic-align","description":"Dynamically align dropdown menu.","sourceRange":{"start":{"line":231,"column":8},"end":{"line":233,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"readonly","description":"Read only.","sourceRange":{"start":{"line":238,"column":8},"end":{"line":242,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"disabled","description":"Disabled.","sourceRange":{"start":{"line":247,"column":8},"end":{"line":251,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"required","description":"Required.","sourceRange":{"start":{"line":256,"column":8},"end":{"line":260,"column":9}},"metadata":{},"type":"boolean | null | undefined"}],"events":[{"type":"CustomEvent","name":"selected-changed","description":"Fired when the `selected` property changes.","metadata":{}}],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-select","mixins":["Polymer.IronResizableBehavior","Polymer.IronValidatableBehavior"]},{"description":"An element to handle pagination.\\n\\nExample:\\n\\n \\n ","summary":"","path":"nuxeo-pagination-controls.js","properties":[{"name":"page","type":"number | null | undefined","description":"The current page.","privacy":"public","sourceRange":{"start":{"line":149,"column":8},"end":{"line":153,"column":9}},"metadata":{"polymer":{"notify":true,"attributeType":"Number"}},"defaultValue":"1"},{"name":"numberOfPages","type":"number | null | undefined","description":"The current number of pages.","privacy":"public","sourceRange":{"start":{"line":158,"column":8},"end":{"line":158,"column":29}},"metadata":{"polymer":{"attributeType":"Number"}}}],"methods":[{"name":"_previous","description":"","privacy":"protected","sourceRange":{"start":{"line":162,"column":4},"end":{"line":164,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_next","description":"","privacy":"protected","sourceRange":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_first","description":"","privacy":"protected","sourceRange":{"start":{"line":170,"column":4},"end":{"line":172,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_last","description":"","privacy":"protected","sourceRange":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_isFirst","description":"","privacy":"protected","sourceRange":{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},"metadata":{},"params":[{"name":"page"}]},{"name":"_isLast","description":"","privacy":"protected","sourceRange":{"start":{"line":182,"column":4},"end":{"line":184,"column":5}},"metadata":{},"params":[{"name":"page"}]},{"name":"_computePageOptions","description":"","privacy":"protected","sourceRange":{"start":{"line":186,"column":4},"end":{"line":188,"column":5}},"metadata":{},"params":[{"name":"numberOfPages"}]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-pagination-controls/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":39,"column":2},"end":{"line":189,"column":3}},"privacy":"public","superclass":"Nuxeo.Element","name":"Nuxeo.PaginationControls","attributes":[{"name":"page","description":"The current page.","sourceRange":{"start":{"line":149,"column":8},"end":{"line":153,"column":9}},"metadata":{},"type":"number | null | undefined"},{"name":"number-of-pages","description":"The current number of pages.","sourceRange":{"start":{"line":158,"column":8},"end":{"line":158,"column":29}},"metadata":{},"type":"number | null | undefined"}],"events":[{"type":"CustomEvent","name":"page-changed","description":"Fired when the `page` property changes.","metadata":{}}],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-pagination-controls"},{"description":"An element for a generic card\\n\\nExample:\\n\\n content\\n\\n### Styling\\n\\nThe following custom properties and mixins are available for styling:\\n\\nCustom property | Description | Default\\n-----------------------|------------------|----------\\n`--nuxeo-card` | Mixin applied to the card | `{}`","summary":"","path":"widgets/nuxeo-card.js","properties":[{"name":"icon","type":"string | null | undefined","description":"Heading icon","privacy":"public","sourceRange":{"start":{"line":142,"column":8},"end":{"line":145,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"null"},{"name":"heading","type":"string | null | undefined","description":"Heading of the card","privacy":"public","sourceRange":{"start":{"line":150,"column":8},"end":{"line":153,"column":9}},"metadata":{"polymer":{"attributeType":"String"}},"defaultValue":"null"},{"name":"collapsible","type":"boolean | null | undefined","description":"If the card is collapsible","privacy":"public","sourceRange":{"start":{"line":158,"column":8},"end":{"line":162,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"},{"name":"opened","type":"boolean | null | undefined","description":"If is a collapsible card, if it is opened or not","privacy":"public","sourceRange":{"start":{"line":167,"column":8},"end":{"line":171,"column":9}},"metadata":{"polymer":{"attributeType":"Boolean"}},"defaultValue":"false"}],"methods":[{"name":"_hasHeading","description":"","privacy":"protected","sourceRange":{"start":{"line":175,"column":4},"end":{"line":177,"column":5}},"metadata":{},"params":[{"name":"icon"},{"name":"heading"},{"name":"collapsible"}]},{"name":"_opened","description":"","privacy":"protected","sourceRange":{"start":{"line":179,"column":4},"end":{"line":181,"column":5}},"metadata":{},"params":[{"name":"opened"},{"name":"collapsible"}]},{"name":"_toggle","description":"","privacy":"protected","sourceRange":{"start":{"line":183,"column":4},"end":{"line":193,"column":5}},"metadata":{},"params":[],"return":{"type":"void"}},{"name":"_toggleIcon","description":"","privacy":"protected","sourceRange":{"start":{"line":195,"column":4},"end":{"line":197,"column":5}},"metadata":{},"params":[{"name":"opened"}]}],"staticMethods":[],"demos":[{"url":"demo/nuxeo-card/index.html","description":""}],"metadata":{},"sourceRange":{"start":{"line":49,"column":2},"end":{"line":198,"column":3}},"privacy":"public","superclass":"HTMLElement","name":"Nuxeo.Card","attributes":[{"name":"icon","description":"Heading icon","sourceRange":{"start":{"line":142,"column":8},"end":{"line":145,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"heading","description":"Heading of the card","sourceRange":{"start":{"line":150,"column":8},"end":{"line":153,"column":9}},"metadata":{},"type":"string | null | undefined"},{"name":"collapsible","description":"If the card is collapsible","sourceRange":{"start":{"line":158,"column":8},"end":{"line":162,"column":9}},"metadata":{},"type":"boolean | null | undefined"},{"name":"opened","description":"If is a collapsible card, if it is opened or not","sourceRange":{"start":{"line":167,"column":8},"end":{"line":171,"column":9}},"metadata":{},"type":"boolean | null | undefined"}],"events":[],"styling":{"cssVariables":[],"selectors":[]},"slots":[],"tagname":"nuxeo-card","mixins":["Polymer.IronResizableBehavior"]},{"description":"A dialog element.\\n\\nIf a `