@esri/solutions-components 1.0.0-next.20250617 → 1.0.0-next.20250618.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{MDVV5SFY.js → 22DEUWIT.js} +2 -2
- package/dist/cdn/{OMM3CGWL.js → 27IJK3XU.js} +2 -2
- package/dist/cdn/{FU37TCTJ.js → 27XA7D5R.js} +2 -2
- package/dist/cdn/{JMAXO5DC.js → 2B2GYFSL.js} +1 -1
- package/dist/cdn/{YOYLE2Y7.js → 2DHUGRRB.js} +2 -2
- package/dist/cdn/{663C7SFX.js → 2ILROAQZ.js} +2 -2
- package/dist/cdn/{XV7QZVVT.js → 2KPY6FAI.js} +2 -2
- package/dist/cdn/{KRXUWGCU.js → 2N2KO565.js} +2 -2
- package/dist/cdn/{SNW2FGGO.js → 2NGHUOMA.js} +2 -2
- package/dist/cdn/{QM4ZDGZ6.js → 2QMR4VJO.js} +2 -2
- package/dist/cdn/{APOYUTRC.js → 2QW5BNYG.js} +2 -2
- package/dist/cdn/{KGMRYUMK.js → 2RLX463P.js} +2 -2
- package/dist/cdn/{PXQEVSLR.js → 2U4CAZGB.js} +2 -2
- package/dist/cdn/{K6EYSWK3.js → 2XC7LXEB.js} +2 -2
- package/dist/cdn/{56ISVXIJ.js → 2YTLZMHD.js} +2 -2
- package/dist/cdn/{IOXJ3A2P.js → 34VGLVS5.js} +2 -2
- package/dist/cdn/{4M2BSB7U.js → 37DEXVCR.js} +1 -1
- package/dist/cdn/{X2LIRIPY.js → 37S6NBZ3.js} +2 -2
- package/dist/cdn/{MUM6BOFC.js → 3AOBWOCE.js} +2 -2
- package/dist/cdn/{UCGYV5X2.js → 3BKKIYBV.js} +2 -2
- package/dist/cdn/{FUH66FCX.js → 3NQ4XAFD.js} +3 -3
- package/dist/cdn/{H3HHGV2X.js → 3QUOD6OE.js} +2 -2
- package/dist/cdn/{RYXSMF2R.js → 3TNVVFNO.js} +2 -2
- package/dist/cdn/{W2JRAIBN.js → 3TPEYV7S.js} +2 -2
- package/dist/cdn/{E4BZSDPW.js → 42CLIUFU.js} +2 -2
- package/dist/cdn/{ET4NBO5I.js → 453KXUYO.js} +2 -2
- package/dist/cdn/{VXAH3SBE.js → 4CDWPSJT.js} +2 -2
- package/dist/cdn/{Z5XAYA6T.js → 4D5AWIAL.js} +2 -2
- package/dist/cdn/{7PDVOTF3.js → 4DEGIQWI.js} +2 -2
- package/dist/cdn/{5A4UHYB4.js → 4EGTPR4P.js} +2 -2
- package/dist/cdn/{6GUN3P64.js → 4FYXKV37.js} +2 -2
- package/dist/cdn/{4ZSGJARJ.js → 4QMPHBZG.js} +2 -2
- package/dist/cdn/{5QD2WYHE.js → 4QZAEPJT.js} +2 -2
- package/dist/cdn/{T33ZZ5EE.js → 4SJARCJN.js} +2 -2
- package/dist/cdn/{NU6XPDWP.js → 4SP7X7DP.js} +2 -2
- package/dist/cdn/{AN2RKGOC.js → 542RTT6E.js} +2 -2
- package/dist/cdn/{26ZUUXBG.js → 5AAP2PXG.js} +1 -1
- package/dist/cdn/{SQFSRSP3.js → 5FLJ3R4Z.js} +2 -2
- package/dist/cdn/{HFIXE6U7.js → 5IBICH3B.js} +2 -2
- package/dist/cdn/{KN2RLNLK.js → 5P7J37EO.js} +2 -2
- package/dist/cdn/{WL25ONRI.js → 5Q3XETDO.js} +1 -1
- package/dist/cdn/{3D65T4GL.js → 5RB5A7EC.js} +2 -2
- package/dist/cdn/{TWHS2V27.js → 5RSJCEFW.js} +2 -2
- package/dist/cdn/{YFAJKSIJ.js → 5SEG6ZB4.js} +1 -1
- package/dist/cdn/{U3ZLFYFE.js → 5SQBN4JE.js} +2 -2
- package/dist/cdn/{7HGVPHDS.js → 5TTH6ZFB.js} +2 -2
- package/dist/cdn/{5XHVWCO6.js → 67AB4WK2.js} +1 -1
- package/dist/cdn/{PXA7JSQN.js → 6DLP7EAR.js} +2 -2
- package/dist/cdn/{HT6YSQA2.js → 6DTUA3D5.js} +2 -2
- package/dist/cdn/{ZEM4BHGM.js → 6EBE7D3T.js} +2 -2
- package/dist/cdn/{VVQR44OF.js → 6GCHXKQA.js} +2 -2
- package/dist/cdn/{4VT2OWZP.js → 6HDVZ6WN.js} +2 -2
- package/dist/cdn/{3I5AXQ7L.js → 6HHQ2JHH.js} +2 -2
- package/dist/cdn/{FLWFUOYJ.js → 6HWGPY7I.js} +1 -1
- package/dist/cdn/{GE6MW6X7.js → 6HYKI6RA.js} +2 -2
- package/dist/cdn/{XS2LVLSG.js → 6UOPWVSQ.js} +2 -2
- package/dist/cdn/{KLMBCZZV.js → 6WUBV4EA.js} +2 -2
- package/dist/cdn/{T4CKSGEI.js → 6XUFEP6O.js} +2 -2
- package/dist/cdn/{5Y5FK43G.js → 73H7XOOM.js} +1 -1
- package/dist/cdn/{GTR72B5F.js → 73IH4MCM.js} +2 -2
- package/dist/cdn/{GCNPYYYC.js → 74IMQNIQ.js} +2 -2
- package/dist/cdn/{YAHBTL66.js → 7LYZPZHS.js} +1 -1
- package/dist/cdn/{ZLNEIIRS.js → 7TPKHYZN.js} +1 -1
- package/dist/cdn/{GG4SX5PP.js → 7U6QJOKE.js} +2 -2
- package/dist/cdn/{7NHKBJT7.js → A4CHRBGU.js} +2 -2
- package/dist/cdn/{E332CUZ6.js → A4LFNBYA.js} +2 -2
- package/dist/cdn/{X3AE5WWK.js → A54BEPSN.js} +2 -2
- package/dist/cdn/{3T76VDUN.js → ABSAMC2G.js} +2 -2
- package/dist/cdn/{NYMSLH3X.js → ANHMYCUR.js} +1 -1
- package/dist/cdn/{SSOLG3Y2.js → B7H3UB3X.js} +2 -2
- package/dist/cdn/{DRXKNSYY.js → BBAQTD4M.js} +2 -2
- package/dist/cdn/{3I463GKJ.js → BGLXMZEH.js} +2 -2
- package/dist/cdn/{BWVCIRSV.js → BHJ37YW3.js} +2 -2
- package/dist/cdn/{X2SAYFTJ.js → BHMGYZRR.js} +2 -2
- package/dist/cdn/{YC3SGSKF.js → BKVCY3ER.js} +2 -2
- package/dist/cdn/{BC4GIYFT.js → BMITAUIB.js} +2 -2
- package/dist/cdn/{U5SM65RP.js → BT2SQ524.js} +2 -2
- package/dist/cdn/{KPXDUVQE.js → BU5B4DZ4.js} +2 -2
- package/dist/cdn/{VVSCYCWZ.js → CDYS4E5S.js} +2 -2
- package/dist/cdn/{YXTRE2YJ.js → CMLCPPNQ.js} +1 -1
- package/dist/cdn/{M5SMNJVJ.js → CNNZEBLF.js} +1 -1
- package/dist/cdn/{QPIMZ33P.js → CU2OKRTG.js} +2 -2
- package/dist/cdn/D66XSD5Y.js +4 -0
- package/dist/cdn/{TYBAUCOP.js → DAFU7J4K.js} +1 -1
- package/dist/cdn/{C2UHPVJ7.js → DFWM7SK2.js} +2 -2
- package/dist/cdn/{L3UTUT76.js → DILHH7QS.js} +2 -2
- package/dist/cdn/{FB7RQWEB.js → DLPQ7KWA.js} +2 -2
- package/dist/cdn/{Q7AKL3XU.js → DR7UWBT2.js} +2 -2
- package/dist/cdn/{ZUGIMBLM.js → DSPEQAWS.js} +2 -2
- package/dist/cdn/{LOADKJYI.js → DTZRURFU.js} +2 -2
- package/dist/cdn/{D4PB3INZ.js → DUAH255O.js} +2 -2
- package/dist/cdn/{UHIXSJW2.js → DUMHFQTN.js} +2 -2
- package/dist/cdn/{5KG3QK35.js → DVMZWZNK.js} +1 -1
- package/dist/cdn/{ZTDTHNVK.js → DVTD3RRP.js} +2 -2
- package/dist/cdn/{EGNJUJ3S.js → DVUDZVYK.js} +2 -2
- package/dist/cdn/{7DC5NLKU.js → DXF42425.js} +4 -4
- package/dist/cdn/{XOF7OPE4.js → DYZGFY5X.js} +2 -2
- package/dist/cdn/{J6BMZHED.js → E5ZOUWWV.js} +2 -2
- package/dist/cdn/{ZEHDGNFH.js → E7KWO47I.js} +3 -3
- package/dist/cdn/{SBK24IH4.js → EBEY5UUD.js} +2 -2
- package/dist/cdn/{W2J4GUF6.js → EGKSG7TA.js} +2 -2
- package/dist/cdn/{JN7BZX67.js → EINFPK4N.js} +2 -2
- package/dist/cdn/{TZ6NWBWT.js → EJLW4JV3.js} +2 -2
- package/dist/cdn/{AIOSZAZF.js → ELHBUZR2.js} +2 -2
- package/dist/cdn/{ODWDWNPS.js → ENVYZICY.js} +2 -2
- package/dist/cdn/{JSGJKBAR.js → EPI3ZTID.js} +2 -2
- package/dist/cdn/{D4Y3AUY2.js → EWZOYKQ3.js} +1 -1
- package/dist/cdn/{23SLJ7VB.js → EY52J72L.js} +1 -1
- package/dist/cdn/{RZW76EPS.js → EY6GQSJA.js} +2 -2
- package/dist/cdn/{2KQPNSYF.js → EY6WF4OC.js} +2 -2
- package/dist/cdn/{X3MUBCUO.js → EY7Y6MEK.js} +2 -2
- package/dist/cdn/{CJWPNHT5.js → F4RH4VWK.js} +1 -1
- package/dist/cdn/{YPO7QQSX.js → F5P6EE5Q.js} +2 -2
- package/dist/cdn/{KQJONR6F.js → F7KUGTUU.js} +2 -2
- package/dist/cdn/{NRHTETGA.js → FC4KGDP5.js} +2 -2
- package/dist/cdn/{QWSSQKLR.js → FDSGJDEW.js} +2 -2
- package/dist/cdn/{XX5VK7YW.js → FG544GQQ.js} +2 -2
- package/dist/cdn/{AZ5LBZCX.js → FTZ55E57.js} +2 -2
- package/dist/cdn/{ECULEWGH.js → FX4AQK2Q.js} +2 -2
- package/dist/cdn/{JAPFIMJD.js → G5SYJQGV.js} +1 -1
- package/dist/cdn/{XC5FDQDM.js → G63RAOIA.js} +2 -2
- package/dist/cdn/{XPYF6XIL.js → G6YNF253.js} +2 -2
- package/dist/cdn/{GQX5XJTO.js → G74J63ZD.js} +1 -1
- package/dist/cdn/{ECSBAOVQ.js → GHZQTMSB.js} +2 -2
- package/dist/cdn/{UHQRI5PF.js → GOFTF4EY.js} +2 -2
- package/dist/cdn/{MDUMP6WF.js → GV2TYF3E.js} +2 -2
- package/dist/cdn/{RZQ3XTXE.js → H22IKHML.js} +2 -2
- package/dist/cdn/{FK572HEF.js → H4L5UITT.js} +2 -2
- package/dist/cdn/{ZMFMZN4O.js → H6FKM52H.js} +2 -2
- package/dist/cdn/{7X4XXKUK.js → HA35S6IO.js} +2 -2
- package/dist/cdn/{FDD2C7HC.js → HD6GEVSM.js} +2 -2
- package/dist/cdn/{CHD7DYO7.js → HF665LFM.js} +2 -2
- package/dist/cdn/{RADAXSM4.js → HJ4Y6HPF.js} +2 -2
- package/dist/cdn/{WWTBSPVE.js → HJNANARE.js} +1 -1
- package/dist/cdn/{E3TL2DBA.js → HNUIQ7IZ.js} +1 -1
- package/dist/cdn/{NIV6YU2O.js → HTCAIHM5.js} +2 -2
- package/dist/cdn/{6H5FB6VZ.js → HWI6PJH6.js} +2 -2
- package/dist/cdn/{4WDFKQEA.js → IB3ETAZV.js} +1 -1
- package/dist/cdn/{4C5TKB2E.js → IMEGNZXQ.js} +1 -1
- package/dist/cdn/IQO7KVU5.js +4 -0
- package/dist/cdn/{M2C5ICZU.js → IT4KHWLP.js} +2 -2
- package/dist/cdn/{ZQKLLV2Y.js → IXSWEW6F.js} +1 -1
- package/dist/cdn/{CKXRT6SG.js → JW27PEBE.js} +2 -2
- package/dist/cdn/{KDEENWCA.js → K3SFQS3G.js} +2 -2
- package/dist/cdn/{ST2OLLSL.js → KPBIM4OX.js} +2 -2
- package/dist/cdn/{ORJL7PD3.js → KPHYMONP.js} +2 -2
- package/dist/cdn/{KHZGUMKZ.js → KYK2XITJ.js} +2 -2
- package/dist/cdn/{2AH2EXXK.js → L4EB6CDR.js} +1 -1
- package/dist/cdn/{MXVBG7NG.js → LALLH4DA.js} +2 -2
- package/dist/cdn/{4SMFTIY3.js → LGZSANLR.js} +2 -2
- package/dist/cdn/{EY7XWBLO.js → LJV2QPIV.js} +2 -2
- package/dist/cdn/{YWSZQENR.js → LLZMMGKZ.js} +2 -2
- package/dist/cdn/{OXCS5WE7.js → LN6K3MM3.js} +2 -2
- package/dist/cdn/{JODAN55H.js → LTVJKXTE.js} +2 -2
- package/dist/cdn/{66U7ORWN.js → M5HIWWVR.js} +1 -1
- package/dist/cdn/{X3AKU22A.js → M62LQBTE.js} +1 -1
- package/dist/cdn/{CS57BYGF.js → M6ZT4KAQ.js} +2 -2
- package/dist/cdn/{WV5PNDYS.js → M74EDYJB.js} +2 -2
- package/dist/cdn/{IYSPFCXD.js → MG7NQAZZ.js} +2 -2
- package/dist/cdn/MHE3733S.js +4 -0
- package/dist/cdn/{YP66ITI3.js → MM3ENMYR.js} +2 -2
- package/dist/cdn/{P3F24FWE.js → MQLPRI7Y.js} +2 -2
- package/dist/cdn/{2PGNVSWS.js → MSH2N77W.js} +2 -2
- package/dist/cdn/{YQHOGUAB.js → MVACBSIQ.js} +2 -2
- package/dist/cdn/{62EGHAKX.js → MVYMHCMR.js} +2 -2
- package/dist/cdn/{KH4WDPKH.js → MY6L5L57.js} +2 -2
- package/dist/cdn/{XXXT6FMN.js → MZHBGZQK.js} +2 -2
- package/dist/cdn/{FP4BJITS.js → N2NWQNTT.js} +2 -2
- package/dist/cdn/{7RZJV7XT.js → N3YGWBR3.js} +2 -2
- package/dist/cdn/{SEOLYYSL.js → NBEXVLVJ.js} +1 -1
- package/dist/cdn/{FPYQ7DSX.js → NGOEQEFU.js} +2 -2
- package/dist/cdn/{VUQCDDWE.js → NK74ETZE.js} +2 -2
- package/dist/cdn/{YYVGZLUY.js → NKVQEPKT.js} +2 -2
- package/dist/cdn/{KOEYYEBE.js → NYP2DH6E.js} +2 -2
- package/dist/cdn/{ZHVU6T4C.js → O26ML2SO.js} +2 -2
- package/dist/cdn/{QEF6IQG7.js → O2UMUEEH.js} +1 -1
- package/dist/cdn/O6DP3IP7.js +4 -0
- package/dist/cdn/{YTJ7HTKE.js → O7DFUJAV.js} +2 -2
- package/dist/cdn/{C3XUGR74.js → OBL44JYU.js} +2 -2
- package/dist/cdn/{G27WERLL.js → OH63VQJ5.js} +2 -2
- package/dist/cdn/{ZLEV5BXG.js → OK74DXXN.js} +2 -2
- package/dist/cdn/{WTE6KQ7N.js → OOR7B2NO.js} +2 -2
- package/dist/cdn/{4JWOEC2M.js → OOT5WQ62.js} +2 -2
- package/dist/cdn/{Y7STMNJM.js → OYEUCIJC.js} +2 -2
- package/dist/cdn/{LMTJNGRW.js → OYK55OPW.js} +2 -2
- package/dist/cdn/{WSCYT5CC.js → P64CKY6D.js} +2 -2
- package/dist/cdn/{A6HCD5ST.js → PDM6CH37.js} +1 -1
- package/dist/cdn/{2LNASR4M.js → PFOB7ASU.js} +2 -2
- package/dist/cdn/{AGVGDK74.js → PHYMHJGH.js} +2 -2
- package/dist/cdn/{CTYIRMIE.js → PIRSNAXE.js} +2 -2
- package/dist/cdn/{XXETI3KO.js → PSKK6R7V.js} +2 -2
- package/dist/cdn/{6GBOMWNM.js → PVFJ6K6W.js} +2 -2
- package/dist/cdn/{EQ7WODGK.js → PVWZATYG.js} +1 -1
- package/dist/cdn/{MNGRHV3C.js → Q364SBXU.js} +2 -2
- package/dist/cdn/{RPTQP67O.js → Q3ZAVJA2.js} +2 -2
- package/dist/cdn/{7NE5MFIJ.js → Q7AF5GSO.js} +2 -2
- package/dist/cdn/{MIMZVJUI.js → QBIIXF4H.js} +2 -2
- package/dist/cdn/{XMVLG6HD.js → QHKMVJ5X.js} +2 -2
- package/dist/cdn/{TDHBGUGG.js → QUJW5EU5.js} +2 -2
- package/dist/cdn/{66VX5BMO.js → R3KDQDD7.js} +2 -2
- package/dist/cdn/{3TMPTQB4.js → RCBT5CJJ.js} +2 -2
- package/dist/cdn/{XFCORTAZ.js → RFU2GA77.js} +2 -2
- package/dist/cdn/{4UKO7OSP.js → RJBIVLYE.js} +2 -2
- package/dist/cdn/RYNALENB.js +4 -0
- package/dist/cdn/{NEQT7BAW.js → S6M65JNG.js} +2 -2
- package/dist/cdn/{ZKLL3OJA.js → S777APZD.js} +2 -2
- package/dist/cdn/{6WBKKEZS.js → SEKMKSIL.js} +2 -2
- package/dist/cdn/{3QX3UFD6.js → SHHFJEV3.js} +2 -2
- package/dist/cdn/{45NO45YW.js → SO62B7Z3.js} +2 -2
- package/dist/cdn/{5I7W3EVF.js → SOMI2AAW.js} +1 -1
- package/dist/cdn/{72CGZFMP.js → SQ5LN6VW.js} +1 -1
- package/dist/cdn/{VFIEMUU3.js → SRQQ7EAN.js} +2 -2
- package/dist/cdn/{RGQ4OULC.js → SRYMJYQK.js} +2 -2
- package/dist/cdn/SSAXEWTS.js +4 -0
- package/dist/cdn/{CXS4F2DV.js → SVBFKGLB.js} +2 -2
- package/dist/cdn/{SAICGJDS.js → SWEIKA4N.js} +2 -2
- package/dist/cdn/{OFFLTW5Q.js → T4MFZ5DG.js} +2 -2
- package/dist/cdn/{GG4JQ4LZ.js → T5DYODQ7.js} +2 -2
- package/dist/cdn/TBIDLSGQ.js +18 -0
- package/dist/cdn/{CFQ56QUP.js → TF5CJGN3.js} +2 -2
- package/dist/cdn/{GBNODDNY.js → TG4PTBAJ.js} +2 -2
- package/dist/cdn/{M25C7SPS.js → TIRLXBT3.js} +2 -2
- package/dist/cdn/{RCH6FSOO.js → TJY3W6ZV.js} +2 -2
- package/dist/cdn/{DBS3O4G2.js → TK4CSKXO.js} +2 -2
- package/dist/cdn/{5YOTYSSB.js → TQAYE35S.js} +2 -2
- package/dist/cdn/{34WNAKCW.js → U4PHRGHK.js} +2 -2
- package/dist/cdn/{MMJSWPYV.js → UK7MIIEG.js} +2 -2
- package/dist/cdn/{MIMUA7CO.js → UN6UPWDA.js} +2 -2
- package/dist/cdn/{JEVZQVK6.js → US6OVDOV.js} +2 -2
- package/dist/cdn/{Y7TBVJF7.js → US7BWYVK.js} +2 -2
- package/dist/cdn/{66WN3RYD.js → USL7FSTL.js} +2 -2
- package/dist/cdn/{Z766ANKV.js → UTBNZS5I.js} +2 -2
- package/dist/cdn/{7ZWOBQSP.js → V44FLEND.js} +1 -1
- package/dist/cdn/{CWUG3WIL.js → VADJYPUJ.js} +1 -1
- package/dist/cdn/{SRPLV7IE.js → VQQ5DFPD.js} +2 -2
- package/dist/cdn/{QK3KOLNR.js → VTDUS325.js} +2 -2
- package/dist/cdn/{45FDLCNN.js → VUHOWKOE.js} +2 -2
- package/dist/cdn/{JVRMDOQX.js → VVAMHZYI.js} +2 -2
- package/dist/cdn/{O44HTFM7.js → VXTFPJBV.js} +2 -2
- package/dist/cdn/{XWNBGTCT.js → VZXN74EN.js} +2 -2
- package/dist/cdn/{XBDIYDRM.js → W5XHOYDJ.js} +2 -2
- package/dist/cdn/WAYFDZQA.js +4 -0
- package/dist/cdn/{NOZF3HXH.js → WEEW5J3L.js} +1 -1
- package/dist/cdn/{K5ABIFBZ.js → WF2RAOLM.js} +1 -1
- package/dist/cdn/WF74JSAD.js +4 -0
- package/dist/cdn/{FR2M6XQY.js → WFR3PXSW.js} +2 -2
- package/dist/cdn/{E2QXOBX4.js → WK34FXLR.js} +2 -2
- package/dist/cdn/{ZALM4GKT.js → WTF2NDZG.js} +2 -2
- package/dist/cdn/{GXDC6HF3.js → WTSSBTYD.js} +2 -2
- package/dist/cdn/{RPNHGSB7.js → WUJLNKKN.js} +2 -2
- package/dist/cdn/{JKUWGRYW.js → WWZ7BEPS.js} +2 -2
- package/dist/cdn/{VGF62Y4X.js → WXIC5V6X.js} +1 -1
- package/dist/cdn/{IJXW2QHI.js → XAIVE56G.js} +2 -2
- package/dist/cdn/{QBLUXYG3.js → XASQJVGW.js} +2 -2
- package/dist/cdn/{U2REM5I2.js → XQAPI6JH.js} +2 -2
- package/dist/cdn/{RH2ILZKZ.js → XRNX4VET.js} +2 -2
- package/dist/cdn/{NZ4G3J4W.js → XUCC6Q63.js} +2 -2
- package/dist/cdn/XUGJHSZI.js +18 -0
- package/dist/cdn/{Y4FKX3ME.js → XUSEEFTR.js} +2 -2
- package/dist/cdn/{G74NUZJA.js → XV3E5CCZ.js} +1 -1
- package/dist/cdn/{QRUZMTIP.js → XYGC3GAD.js} +1 -1
- package/dist/cdn/{DPWQI5EE.js → Y4ADZQLA.js} +2 -2
- package/dist/cdn/{IZXMY3D6.js → Y5OV27ST.js} +2 -2
- package/dist/cdn/{JR4ZB7ZF.js → Y7NXM543.js} +2 -2
- package/dist/cdn/{VGR6QIVC.js → Y7OVAK3H.js} +2 -2
- package/dist/cdn/{3STPIIWZ.js → YALUQDOM.js} +2 -2
- package/dist/cdn/{4KBOUR7Q.js → YCZJL2J6.js} +2 -2
- package/dist/cdn/{QLJVM7OF.js → YDJEUHQO.js} +2 -2
- package/dist/cdn/{QN47TVOF.js → YDLCJOSG.js} +2 -2
- package/dist/cdn/{PZ7BAHDM.js → YEEVLAKF.js} +2 -2
- package/dist/cdn/{XETQL72A.js → YFONVRE2.js} +2 -2
- package/dist/cdn/{ONEL4IUL.js → YKVL7P5B.js} +1 -1
- package/dist/cdn/{QON63AM4.js → YQDVAXQW.js} +2 -2
- package/dist/cdn/{E7KHHNTK.js → YWQZU6B6.js} +1 -1
- package/dist/cdn/{JUGUXBAU.js → YYKCOF6W.js} +2 -2
- package/dist/cdn/{CY5FNQOJ.js → YZVOT3TE.js} +2 -2
- package/dist/cdn/{RZG4BYGD.js → ZERUSMWZ.js} +2 -2
- package/dist/cdn/{Y4JZMAHN.js → ZGFK6XAL.js} +2 -2
- package/dist/cdn/{K56FFFW5.js → ZGM2MNP7.js} +2 -2
- package/dist/cdn/{PJGGTO5X.js → ZM7CSJ7J.js} +1 -1
- package/dist/cdn/{RFZL3BPN.js → ZQFZG7LI.js} +2 -2
- package/dist/cdn/{UWFNWLHE.js → ZV2CLEQX.js} +2 -2
- package/dist/cdn/{YTZNBIKI.js → ZVP43N4V.js} +2 -2
- package/dist/cdn/{O3PFSVNL.js → ZYETE37K.js} +2 -2
- package/dist/cdn/assets/consent-manager/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/layer-table/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/map-card/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +8 -7
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +61 -49
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +12 -12
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +52 -48
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +1 -1
- package/dist/cdn/5AMRUYMU.js +0 -4
- package/dist/cdn/HPN5RP5D.js +0 -4
- package/dist/cdn/LCPJZHPD.js +0 -18
- package/dist/cdn/LSSHDVVX.js +0 -4
- package/dist/cdn/SJYYUO6H.js +0 -4
- package/dist/cdn/WLIQRMY7.js +0 -18
- package/dist/cdn/WYML4KIE.js +0 -4
- package/dist/cdn/XI2AVQC6.js +0 -4
- package/dist/cdn/XKPIYHWA.js +0 -4
- package/dist/cdn/YIKZB4ZA.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{l as g}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{l as g}from"./Y4ADZQLA.js";import{c as i,d as f}from"./5SEG6ZB4.js";import{a}from"./ZM7CSJ7J.js";import{b as s}from"./K3SFQS3G.js";import{c as m,j as l,k as c,l as d,w as p}from"./SHHFJEV3.js";function P(t,e){return f(g(t),e,4)}function M(t,e){let r=t.filter(n=>!n.startsWith(`${i}|`));return r.push([i,e].join("|")),r}async function S(t,e){if(!t.slug)return[];let n={filter:`typekeywords:"${t.slug.startsWith(`${i}|`)?t.slug:[i,t.slug].join("|")}"`};e.authentication?n.authentication=e.authentication:e.portal&&(n.portal=e.portal),t.exclude&&(n.q=`NOT id:${t.exclude}`);try{return(await p(n)).results}catch(o){throw o}}function I(t,e,r=0){let n=r?[t.slug,r].join("-"):t.slug;return S({slug:n,exclude:t.existingId},e).then(o=>o.length?I(t,e,r+1):n).catch(o=>{throw Error(`Error in getUniqueSlug ${o}`)})}function U(t){let e=a(t.item);return e.text=JSON.stringify(t.data),e}function u(t){return t.params=Object.assign(Object.assign({},t.params),b(t.item)),t}function b(t){let e=JSON.parse(JSON.stringify(t));return e.data&&(typeof Blob<"u"&&t.data instanceof Blob||t.data.constructor.name==="ReadStream"?e.file=t.data:e.text=t.data,delete e.data),e}function x(...t){return l(u(t[0]))}function h(...t){return m(u(t[0]))}function y(t,e){return Promise.all([c(t,e),d(t,e)]).then(r=>({item:r[0],data:r[1]}))}async function D(t,e){let r=a(t.item);r.data=a(t.data),r.extent&&typeof r.extent!="string"&&(r.extent=s(r.extent));let n=await x(Object.assign({item:r},e));return y(n.id,e)}function Y(t,e){let r=a(t.item);r.data=a(t.data),r.extent&&typeof r.extent!="string"&&(r.extent=s(r.extent)),j(r)&&(e.params=Object.assign(Object.assign({},e.params),{clearEmptyFields:!0}));let n=Object.assign({item:r},e);return h(n).then(()=>r.data?y(r.id,e):c(r.id,e).then(o=>({item:o})))}function j(t){return["description","snippet","tags","categories","licenseInfo"].some(e=>{var r;return t[e]===""||((r=t[e])===null||r===void 0?void 0:r.length)===0})}export{U as a,x as b,h as c,P as d,M as e,I as f,y as g,D as h,Y as i};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as e}from"./SRQQ7EAN.js";var o={condition:{scope:"/properties/_metric/properties/type",schema:{const:"static"}},effect:e.SHOW},c={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"string"}}}}}},effect:e.SHOW},p={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"number"}}}}}},effect:e.SHOW},s={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"date"}}}}}},effect:e.SHOW},r={condition:{scope:"/properties/_metric/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},i={condition:{scope:"/properties/_metric/properties/shareable",schema:{const:!0}},effect:e.SHOW};export{o as a,c as b,p as c,s as d,r as e};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import"./ANHMYCUR.js";import{b as A}from"./DXF42425.js";import"./FC4KGDP5.js";import"./WTSSBTYD.js";import"./PVWZATYG.js";import"./DYZGFY5X.js";import"./Y4ADZQLA.js";import"./PVFJ6K6W.js";import"./5Q3XETDO.js";import"./5SEG6ZB4.js";import"./DAFU7J4K.js";import"./YDJEUHQO.js";import"./BBAQTD4M.js";import"./G5SYJQGV.js";import"./ZM7CSJ7J.js";import"./V44FLEND.js";import"./K3SFQS3G.js";import"./SHHFJEV3.js";import"./PDM6CH37.js";import"./IB3ETAZV.js";import"./37DEXVCR.js";import"./YWQZU6B6.js";import{a as C}from"./RCBT5CJJ.js";import"./DUAH255O.js";import{c as F,d as O,j as y}from"./SWEIKA4N.js";import{j as b}from"./EWZOYKQ3.js";import{c as S}from"./HNUIQ7IZ.js";import{a as u,b as g}from"./O7DFUJAV.js";import{b as x}from"./IMEGNZXQ.js";import{a as E}from"./2ILROAQZ.js";import{D as T,c as w,d as o,f as c,n as p,p as I,y as v,z as f}from"./SOMI2AAW.js";import"./O2UMUEEH.js";var H=w`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,4 +15,4 @@ import"./YAHBTL66.js";import{b as H}from"./7DC5NLKU.js";import"./NRHTETGA.js";im
|
|
15
15
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
16
|
* See the License for the specific language governing permissions and
|
17
17
|
* limitations under the License.
|
18
|
-
*/:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{color:var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}}`,w=class extends T{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=S({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._enabledLayerIds=[],this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=p(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._shareNode=p(),this._toolbar=p(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this._searchNode=p(),this.featureSelectionChange=_(),this.toggleFilter=_(),this.showDelete=_(),this.relatedRecordToggled=_(),this.editMultipleFeatures=_(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),A(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=$}static{this.shadowRootOptions=v}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._enabledLayerIds=this.mapInfo?.layerOptions?.layers.map(e=>e.id)||[],this._table&&(this._resetColumnTemplates(),this._sortTable())}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,n=this.mapView.allLayerViews.toArray(),h;n.some(async r=>r.layer.title===l?.title&&r.layer.type==="feature"?(h=r,this.mapView&&await m([i],h,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initModules(),await this._initToolInfos()}render(){let e=this._fetchingData?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",n=this._canShowFullTextSearch();return this._validateActiveActions(),o`<div><calcite-scrim class=${f(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&o`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${n&&o`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${h=>void this._searchTextChanged(h)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??c} type=search ${u(this._searchNode)}></calcite-input></div>`||""}<calcite-loader class=${f(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${f(e)} ${u(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:o`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}async _initModules(){let[e,t,i,s]=await E(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return o`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??c}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table;return o`<div class="display-flex" slot=${e??c}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return o`<div class=${"height-51-px width-full display-flex"} slot=${e??c} ${u(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return o`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??c} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading,t.toolTip)),e),[])}_validateEnabledActions(){let e=this._getSelectedIds().length,t=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(i=>{i&&t.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?e<2||e>b:e<1,i.toolTip=i.icon==="pencil"?e>b?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._getSelectedIds().length>0,t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable,i=this.featureSelectionMode==="multiple"&&this._layer?.capabilities?.operations.supportsUpdate,s=this._getSelectedIds().length<2||this._getSelectedIds().length>b,a=!this.mapHidden&&!t,l=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),n=this._featuresEmpty(),h=this.featureSelectionMode==="single",r=this.enableCSV;if(this._relatedFeatureTable){let g=await this._queryRelatedFeatures();r=g&&Object.keys(g).length>0}let d=[];l&&d.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1,toolTip:this._translations.filters}),a&&d.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e,toolTip:this._translations.zoom}),i&&d.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this._getSelectedIds()),disabled:s,toolTip:this._translations.editMultiple}),this._deleteEnabled&&d.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0,toolTip:this._translations.delete}),d.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e,toolTip:this._translations.clearSelection}),this._relatedFeatureTable||d.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e,toolTip:this._showOnlySelected?this._translations.showAll:this._translations.showSelected}),!h&&!this._relatedFeatureTable&&d.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:n,toolTip:this._translations.selectAll}),!h&&!this._relatedFeatureTable&&d.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:n,toolTip:this._translations.switchSelected}),d.push({active:!1,icon:"refresh",indicator:!1,func:()=>void this._refresh(),label:this._translations.refresh,disabled:!1,toolTip:this._translations.refresh}),r&&d.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:n,toolTip:this._translations.exportCSV}),this._toolInfos=[...d]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,n,h){let r=this._layer===void 0?!0:l;return o`<calcite-action .active=${e} appearance=solid .disabled=${r} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${n} @click=${a} text text-enabled><div class="display-flex"><span class="label-override padding-start-1-4">${s}</span></div></calcite-action>${this._getToolTip("auto",`layer-table-${t}`,h)}`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&o`<div id=${this._getId(e)??c}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${u(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return o`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return o`<div class="display-flex" id=${this._getId(e)??c}>${o`<calcite-action appearance=solid .disabled=${a} .id=${`layer-table-${e}`} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><span class="label-override padding-start-1-4 danger-label-color">${t}</span></calcite-action>`}${this._getToolTip("bottom",`layer-table-${e}`,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,relatedRecordsEnabled:!0,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:this.hasAttachmentsEnabled(this._layer),visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i})),this.reactiveUtils?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let a={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(a)}let s=i.layer;if(this._checkEditEnabled(s),i.editingEnabled=this._editEnabled&&this.enableInlineEdit,i.attachmentsEnabled=this.hasAttachmentsEnabled(s),i.relatedRecordsEnabled=!0,this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let a=i.layer.popupTemplate?.fieldInfos||i.layer.fields,l=this._getColumnTemplates(i.layer.id,a);this._relatedFeatureTable.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:l})}i.highlightIds.on("change",a=>{this._handleOnChange(a)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0;let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:i}}}=e;return t&&i}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._getSelectedIds().length>0?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos||this._layer.fields,t=this._getColumnTemplates(this._layer.id,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos||this._layer.fields,t=this._getColumnTemplates(this._layer.id,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(this._layer),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._table.attachmentsEnabled=this.hasAttachmentsEnabled(this._layer),this._table.relatedRecordsEnabled=!0,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await F(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(e){this._editEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),n=this._table?.highlightIds.indexOf(l);n&&n<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.rowHighlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let n=await this._queryRelatedFeatures(),h=[];n&&n[l]?.features&&(n[l].features.forEach(r=>{r.attributes&&h.push(r.attributes[e.objectIdField])}),i=h.length>0?h:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,n)=>{if(!n.hidden){let h=n?.name||n?.fieldName;h&&l.push(h.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await H(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(n=>n.id===l.id)),a=this.RelationshipQuery&&new this.RelationshipQuery({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let e=this._getSelectedLayer(this.selectedRelatedIds);e&&this.relatedRecordToggled.emit(e);let t=this._getSelectedIds();this.featureSelectionChange.emit(t)}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _clearSearchText(){if(this._searchNode.value){this._searchNode.value.value="";let e={target:{value:""}};await this._searchTextChanged(e)}}async _zoom(){this._layer&&this.mapView&&await m(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0,await this._clearSearchText();let i=this.mapView&&await C(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await O(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t){let i;this.mapInfo?.layerOptions?.layers.some(h=>h.id===e?(i=h,!0):!1);let s=this._layer?.attributeTableTemplate?.elements,a=[];s?.length>0&&this.honorMapFieldSettings&&(a=s.map(h=>h.fieldName));let l=i?.fields&&i?.fieldOrder?i.fieldOrder.filter(h=>i?.fields&&i.fields.indexOf(h)>-1):a.length>0?a:void 0,n;return t&&(n=t.reduce((h,r)=>{let d="fieldName"in r?r.fieldName:r.name,g="label"in r?r.label:r.alias,y={type:"field",fieldName:d,label:g,menuConfig:this._getMenuConfig(d||"")};return i&&i.fields&&i?.fields?.length>0?i.fields.indexOf(d||"")>-1&&h.push(y):a.length>0?a.indexOf(d)>-1&&h.push(y):h.push(y),h},[])),n?l?n?.sort(this._sortFields.bind(this,l)):n:[]}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};x("layer-table",w);export{w as LayerTable};
|
18
|
+
*/:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{color:var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}}`,m=class extends v{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=E({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._enabledLayerIds=[],this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=u(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._shareNode=u(),this._toolbar=u(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this._searchNode=u(),this.featureSelectionChange=p(),this.toggleFilter=p(),this.showDelete=p(),this.relatedRecordToggled=p(),this.editMultipleFeatures=p(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),C(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=H}static{this.shadowRootOptions=I}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._enabledLayerIds=this.mapInfo?.layerOptions?.layers.map(e=>e.id)||[],this._table&&(this._resetColumnTemplates(),this._sortTable())}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,h=this.mapView.allLayerViews.toArray(),r;h.some(async n=>n.layer.title===l?.title&&n.layer.type==="feature"?(r=n,this.mapView&&await y([i],r,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initModules(),await this._initToolInfos()}render(){let e=this._fetchingData?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",h=this._canShowFullTextSearch();return this._validateActiveActions(),o`<div><calcite-scrim class=${f(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&o`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${h&&o`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${r=>void this._searchTextChanged(r)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??c} type=search ${g(this._searchNode)}></calcite-input></div>`||""}<calcite-loader class=${f(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${f(e)} ${g(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:o`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}async _initModules(){let[e,t,i,s]=await x(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return o`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??c}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table;return o`<div class="display-flex" slot=${e??c}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return o`<div class=${"height-51-px width-full display-flex"} slot=${e??c} ${g(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return o`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??c} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading,t.toolTip)),e),[])}_validateEnabledActions(){let e=this._getSelectedIds().length,t=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(i=>{i&&t.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?e<2||e>b:e<1,i.toolTip=i.icon==="pencil"?e>b?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._getSelectedIds().length>0,t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable,i=this.featureSelectionMode==="multiple"&&this._layer?.capabilities?.operations.supportsUpdate,s=this._getSelectedIds().length<2||this._getSelectedIds().length>b,a=!this.mapHidden&&!t,l=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),h=this._featuresEmpty(),r=this.featureSelectionMode==="single",n=this.enableCSV;if(this._relatedFeatureTable){let _=await this._queryRelatedFeatures();n=_&&Object.keys(_).length>0}let d=[];l&&d.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1,toolTip:this._translations.filters}),a&&d.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e,toolTip:this._translations.zoom}),i&&d.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this._getSelectedIds()),disabled:s,toolTip:this._translations.editMultiple}),this._deleteEnabled&&d.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0,toolTip:this._translations.delete}),d.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e,toolTip:this._translations.clearSelection}),this._relatedFeatureTable||d.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e,toolTip:this._showOnlySelected?this._translations.showAll:this._translations.showSelected}),!r&&!this._relatedFeatureTable&&d.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:h,toolTip:this._translations.selectAll}),!r&&!this._relatedFeatureTable&&d.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:h,toolTip:this._translations.switchSelected}),d.push({active:!1,icon:"refresh",indicator:!1,func:()=>void this._refresh(),label:this._translations.refresh,disabled:!1,toolTip:this._translations.refresh}),n&&d.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:h,toolTip:this._translations.exportCSV}),this._toolInfos=[...d]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,h,r){let n=this._layer===void 0?!0:l;return o`<calcite-action .active=${e} appearance=solid .disabled=${n} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${h} @click=${a} text text-enabled><div class="display-flex"><span class="label-override padding-start-1-4">${s}</span></div></calcite-action>${this._getToolTip("auto",`layer-table-${t}`,r)}`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&o`<div id=${this._getId(e)??c}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${g(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return o`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return o`<div class="display-flex" id=${this._getId(e)??c}>${o`<calcite-action appearance=solid .disabled=${a} .id=${`layer-table-${e}`} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><span class="label-override padding-start-1-4 danger-label-color">${t}</span></calcite-action>`}${this._getToolTip("bottom",`layer-table-${e}`,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,relatedRecordsEnabled:!0,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:this.hasAttachmentsEnabled(this._layer),visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i})),this.reactiveUtils?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let a={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(a)}let s=i.layer;if(this._checkEditEnabled(s),i.editingEnabled=this._editEnabled&&this.enableInlineEdit,i.attachmentsEnabled=this.hasAttachmentsEnabled(s),i.relatedRecordsEnabled=!0,this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let a=i.layer.popupTemplate?.fieldInfos,l=this._getColumnTemplates(i.layer.id,i.layer.fields,a);this._relatedFeatureTable.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:l})}i.highlightIds.on("change",a=>{this._handleOnChange(a)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0;let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:i}}}=e;return t&&i}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._getSelectedIds().length>0?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(this._layer),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._table.attachmentsEnabled=this.hasAttachmentsEnabled(this._layer),this._table.relatedRecordsEnabled=!0,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await S(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(e){this._editEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),h=this._table?.highlightIds.indexOf(l);h&&h<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.rowHighlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let h=await this._queryRelatedFeatures(),r=[];h&&h[l]?.features&&(h[l].features.forEach(n=>{n.attributes&&r.push(n.attributes[e.objectIdField])}),i=r.length>0?r:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,h)=>{if(!h.hidden){let r=h?.name||h?.fieldName;r&&l.push(r.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await A(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(h=>h.id===l.id)),a=this.RelationshipQuery&&new this.RelationshipQuery({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let e=this._getSelectedLayer(this.selectedRelatedIds);e&&this.relatedRecordToggled.emit(e);let t=this._getSelectedIds();this.featureSelectionChange.emit(t)}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _clearSearchText(){if(this._searchNode.value){this._searchNode.value.value="";let e={target:{value:""}};await this._searchTextChanged(e)}}async _zoom(){this._layer&&this.mapView&&await y(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0,await this._clearSearchText();let i=this.mapView&&await O(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await F(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t,i){let s;this.mapInfo?.layerOptions?.layers.some(n=>n.id===e?(s=n,!0):!1);let a=this._layer?.attributeTableTemplate?.elements,l=[];a?.length>0&&this.honorMapFieldSettings&&(l=a.map(n=>n.fieldName));let h=s?.fields&&s?.fieldOrder?s.fieldOrder.filter(n=>s?.fields&&s.fields.indexOf(n)>-1):l.length>0?l:void 0,r;return t&&(r=t.reduce((n,d)=>{let _={type:"field",fieldName:d.name,label:this.getFieldLabel(d,i),menuConfig:this._getMenuConfig(d.name)};return s&&s.fields&&s?.fields?.length>0?s.fields.indexOf(d.name)>-1&&n.push(_):l.length>0?l.indexOf(d.name)>-1&&n.push(_):n.push(_),n},[])),r?h?r?.sort(this._sortFields.bind(this,h)):r:[]}getFieldLabel(e,t){let i=e.alias?e.alias:e.name;return t?.some(s=>s.fieldName===e.name?(i=s.label,!0):!1),i||e.name}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};T("layer-table",m);export{m as LayerTable};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as l}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as l}from"./MVYMHCMR.js";import"./YDJEUHQO.js";import"./IB3ETAZV.js";import"./37DEXVCR.js";import{a as o}from"./SRQQ7EAN.js";import"./VADJYPUJ.js";import"./EGKSG7TA.js";import"./XV3E5CCZ.js";import"./MZHBGZQK.js";import"./TJY3W6ZV.js";import"./F7KUGTUU.js";import"./HJ4Y6HPF.js";import"./PSKK6R7V.js";import"./WK34FXLR.js";import"./27IJK3XU.js";import"./4FYXKV37.js";import"./M62LQBTE.js";import"./2XC7LXEB.js";import"./WF2RAOLM.js";import"./FX4AQK2Q.js";import"./BT2SQ524.js";import"./BMITAUIB.js";import"./L4EB6CDR.js";import"./YFONVRE2.js";import"./YZVOT3TE.js";import"./G74J63ZD.js";import"./F4RH4VWK.js";import"./O2UMUEEH.js";function p(e){return["myContent","organization"].map(t=>l("selectContent.facets",t,"item",{user:e,collectionNames:["site"]}))}var u=(e,i,t)=>({type:"Layout",elements:[{labelKey:"selectContent.title",scope:"/properties/entityId",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:p(t.currentUser),facets:[{label:"{{selectContent.facets.sharing:translate}}",key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}]}},{type:"Section",labelKey:"callToAction.title",rule:n,options:{helperText:{labelKey:"callToAction.helperText"}},elements:[{scope:"/properties/callToActionText",type:"Control",options:{type:"textarea",rows:4}},{labelKey:"callToAction.alignment",scope:"/properties/callToActionAlign",type:"Control",options:{control:"hub-field-input-alignment"}}]},{type:"Section",labelKey:"followButton.title",options:{helperText:{labelKey:"followButton.helperText"}},rule:n,elements:[{labelKey:"followButton.buttonText",scope:"/properties/buttonText",type:"Control",options:{control:"hub-field-input-input"}},{labelKey:"followButton.unfollowButtonText",scope:"/properties/unfollowButtonText",type:"Control",options:{control:"hub-field-input-input"}},{labelKey:"followButton.alignment",scope:"/properties/buttonAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"followButton.buttonStyle",scope:"/properties/buttonStyle",type:"Control",options:{control:"hub-field-input-select",labels:["{{followButton.solid:translate}}","{{followButton.outline:translate}}"]}}]}]}),n={effect:o.HIDE,condition:{scope:"/properties/entityId",schema:{const:[]}}};export{u as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{b as t,c as e}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{b as t,c as e}from"./XV3E5CCZ.js";var r=["hub:channel:create","hub:channel:edit"],p={type:"object",properties:{name:{type:"string"},blockWords:{type:"string",format:"blockWords"},publicConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{anonymous:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead],default:t},id:{type:"string"}}},authenticated:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},orgConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[e.channelOwner],default:e.channelOwner},id:{type:"string"}}}}}}}},groupConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite,e.channelManage],default:t},id:{type:"string"}}}}}}}},userConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{user:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},allowAsAnonymous:{type:"boolean",default:!1}},required:["name"]};export{r as a,p as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as l}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as l}from"./5TTH6ZFB.js";import"./TIRLXBT3.js";import"./DAFU7J4K.js";import"./XYGC3GAD.js";import"./YDJEUHQO.js";import"./37DEXVCR.js";import{a as t}from"./SRQQ7EAN.js";import"./VADJYPUJ.js";import"./EGKSG7TA.js";import"./XV3E5CCZ.js";import"./MZHBGZQK.js";import"./TJY3W6ZV.js";import"./F7KUGTUU.js";import"./HJ4Y6HPF.js";import"./PSKK6R7V.js";import"./WK34FXLR.js";import"./27IJK3XU.js";import"./4FYXKV37.js";import"./M62LQBTE.js";import"./2XC7LXEB.js";import"./WF2RAOLM.js";import"./FX4AQK2Q.js";import"./BT2SQ524.js";import"./BMITAUIB.js";import"./L4EB6CDR.js";import"./YFONVRE2.js";import"./YZVOT3TE.js";import"./G74J63ZD.js";import"./F4RH4VWK.js";import"./O2UMUEEH.js";var n=async(e,s,r)=>{let o=s;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:t.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:t.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.createFollowers.any:translate}}`],disabled:[!1,!1,o.isSharedUpdate]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.createFollowers.admins:translate}}`]}}]}]}]}},p=async(e,s,r)=>Object.assign({},l("hubFollowersGroup",r));export{p as buildDefaults,n as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as P}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as P}from"./EY52J72L.js";import{N as F,O as y,P as v,Q as R,R as w,S as T,c as n,m as g,n as m,o as d,p as I,r as S,v as b}from"./FC4KGDP5.js";import{b as o,h as _}from"./EWZOYKQ3.js";var u={solutionItemId:"",defaultWkid:void 0,solutionData:{metadata:{},templates:[]},templateEdits:{},featureServices:[],spatialReferenceInfo:{enabled:!1,services:{}}},f=class{constructor(){this._hasChanges=!1,this._store=P({...u})}static get Store(){return this._instance||(this._instance=new this)}getItemInfo(a){let e=this._store.get("solutionData").templates,t;return e.some(s=>a==s.itemId?(t=s,!0):!1),t||void 0}getStoreInfo(a){return this._store.get(a)}async loadSolution(a,e){this._authentication=e;let t=await S(a,e);if(t){let s=m(t,"params.wkid.default","");await this._prepareSolutionItemsForEditing(a,t.templates,e);let r=this._getFeatureServices(t.templates),i=this._getSpatialReferenceInfo(r,s);this._store.set("solutionItemId",a),this._store.set("defaultWkid",s),this._store.set("solutionData",t),this._store.set("featureServices",r),this._store.set("spatialReferenceInfo",i)}this._flagStoreHasChanges(!1)}replaceItemThumbnail(a){a.resourceFilePaths.forEach(e=>{e.type===n.Thumbnail&&(e.updateType===o.None?e.updateType=o.Remove:(e.updateType===o.Add||e.updateType===o.Update)&&(e.updateType=o.Obsolete))}),a.resourceFilePaths=a.resourceFilePaths.filter(e=>e.updateType!=o.Obsolete),a.resourceFilePaths.push({blob:a.thumbnail,filename:a.thumbnail.name,type:n.Thumbnail,updateType:o.Add}),this.setItemInfo(a)}async saveSolution(){let a=this._store.get("solutionItemId"),e=this._store.get("solutionData"),t=this._store.get("spatialReferenceInfo"),s=this._store.get("featureServices");if(await this._prepareSolutionItemsForStorage(a,e.templates,this._authentication),this._updateFSSpatialReferenceInfoInTemplates(s,e.templates),t.enabled){let r={label:"Spatial Reference",valueType:"spatialReference",attributes:{required:!0}};t.default&&(r.default=t.default),d(e,"params.wkid",r)}else d(e,"params.wkid",{});await b({id:a,text:e},this._authentication)}setItemInfo(a){let e=this._store.get("solutionData");e.templates.some(t=>a.itemId==t.itemId?(t=a,this._store.set("solutionData",e),this._flagStoreHasChanges(!0),!0):!1)}setStoreInfo(a,e){this._store.set(a,e),this._flagStoreHasChanges(!0)}_testAccess(a,e,t,s){switch(a){case"_emptyTheStore":this._emptyTheStore();break;case"_getFeatureServices":return this._getFeatureServices(e);case"_getItemsSharedWithThisGroup":return this._getItemsSharedWithThisGroup(e,t);case"_getResourceFilePaths":return this._getResourceFilePaths(e,t,s);case"_getResourceStorageName":return this._getResourceStorageName(e,t);case"_getSpatialReferenceInfo":return this._getSpatialReferenceInfo(e,t);case"_prepareSolutionItemsForEditing":return this._prepareSolutionItemsForEditing(e,t,s);case"_prepareSolutionItemsForStorage":return this._prepareSolutionItemsForStorage(e,t,s);case"_splitFilename":return this._splitFilename(e);case"_updateFSSpatialReferenceInfoInTemplates":return this._updateFSSpatialReferenceInfoInTemplates(e,t)}return null}_emptyTheStore(){this._store.set("solutionItemId",u.solutionItemId),this._store.set("defaultWkid",u.defaultWkid),this._store.set("solutionData",u.solutionData),this._store.set("templateEdits",u.templateEdits),this._store.set("featureServices",u.featureServices),this._store.set("spatialReferenceInfo",u.spatialReferenceInfo)}_flagStoreHasChanges(a){window.dispatchEvent(new CustomEvent("solutionStoreHasChanges",{detail:a,bubbles:!0,cancelable:!1,composed:!0})),this._hasChanges=a}_getCustomizableFeatureServices(a){return a.reduce((e,t)=>(t.type==="Feature Service"&&(t?.item?.typeKeywords||[]).indexOf("View Service")<0&&e.push(t),e),[])}_getFeatureServices(a){return this._getCustomizableFeatureServices(a).map(e=>{let t=e.item.title||e.item.name,s=g(e,"properties.service.spatialReference.wkid");return{id:e.itemId,name:t,enabled:s.toString().startsWith(_),wkid:s}})}_getItemsSharedWithThisGroup(a,e){return e.reduce((t,s)=>(s.itemId!==a.itemId&&s.type!=="Group"&&t.push({id:s.itemId,title:s.item.name||s.item.title,isShared:(s.groups||[]).indexOf(a.itemId)>-1,shareItem:(s.groups||[]).indexOf(a.itemId)>-1,type:s.type,typeKeywords:s.item.typeKeywords}),t),[])}_getResourceFilePaths(a,e,t){return y(t,a,e.resources,1).map(s=>(s.updateType=o.None,s))}_getResourceStorageName(a,e){let t=a;switch(e.type){case n.Data:t=`${t}_info_data`;break;case n.Info:t=`${t}_info`;break;case n.Metadata:t=`${t}_info_metadata`;break;case n.Resource:break;case n.Thumbnail:t=`${t}_info_thumbnail`;break}let s=e.filename;e.type==n.Data&&s&&!v(s)&&(s=s+".zip",t+="z");let r=e.folder?e.folder+"/"+s:s;return t+"/"+r}_getSpatialReferenceInfo(a,e){let t={};a.forEach(r=>{t[r.name]=r.enabled});let s={enabled:!1,services:t};return e&&(s.default=e),s}async _prepareSolutionItemsForEditing(a,e,t){let s=[];e.forEach(i=>{i.resourceFilePaths=this._getResourceFilePaths(a,i,t.portal),s.push(i.resourceFilePaths.length>0?R(t,i.resourceFilePaths):Promise.resolve()),i.groupDetails=i.type==="Group"?this._getItemsSharedWithThisGroup(i,e):[]});let r=await Promise.all(s);return e.forEach((i,l)=>{i.thumbnail=r[l]?r[l]:void 0}),Promise.resolve()}async _prepareSolutionItemsForStorage(a,e,t){let s=[],r=[];return e.forEach(i=>{i.resourceFilePaths.forEach(async l=>{let p=this._getResourceStorageName(i.itemId,l);switch(l.updateType){case o.Add:let{prefix:k,suffix:E}=this._splitFilename(p);i.resources.push(p),s.push({itemId:i.itemId,file:l.blob,folder:k,filename:E});break;case o.Update:r.push(new Promise(async h=>{try{await T(a,p,l.blob,t)}catch(c){console.log("Unable to update "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break;case o.Remove:r.push(new Promise(async h=>{try{await w(a,p,t),i.resources=i.resources.filter(c=>c!==p)}catch(c){console.log("Unable to remove "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break}return Promise.resolve()}),delete i.thumbnail,delete i.groupDetails}),Promise.all(r).then(async()=>(s.length>0&&await F(s,a,t),Promise.resolve()))}_updateFSSpatialReferenceInfoInTemplates(a,e){let t=this._getCustomizableFeatureServices(e);t.forEach(s=>{let r=a.find(i=>i.id===s.itemId);if(r){let i=m(s,"properties.service.spatialReference",{});i.wkid=r.wkid,r.enabled&&i.latestWkid&&delete i.latestWkid,I(s,"properties.service.spatialReference",i)}}),e.forEach(s=>{let r=t.find(i=>i.itemId===s.itemId);if(r){s.properties.service.spatialReference={...r.properties.service.spatialReference};let i=Number.parseInt(s.properties.service.spatialReference.wkid);Number.isNaN(i)||(s.properties.service.spatialReference.wkid=i)}})}_splitFilename(a){let e=a.split("/");return{prefix:e.length>1?e.slice(0,e.length-1).join("/"):void 0,suffix:e[e.length-1]}}},O=f.Store;export{O as a};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as r}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as r}from"./2ILROAQZ.js";import{B as l,D as c,c as o,d as t,p as a,y as s}from"./SOMI2AAW.js";import"./O2UMUEEH.js";var p=o`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import"./7LYZPZHS.js";import e from"./A4CHRBGU.js";import{a as S,b as o,c as x,d as C,e as d}from"./M5HIWWVR.js";import{a as _,b as v,c as w}from"./IXSWEW6F.js";import"./FC4KGDP5.js";import"./WTSSBTYD.js";import"./PVWZATYG.js";import"./DYZGFY5X.js";import"./Y4ADZQLA.js";import"./PVFJ6K6W.js";import"./5Q3XETDO.js";import"./5SEG6ZB4.js";import"./DAFU7J4K.js";import"./YDJEUHQO.js";import"./BBAQTD4M.js";import"./G5SYJQGV.js";import"./ZM7CSJ7J.js";import"./V44FLEND.js";import"./K3SFQS3G.js";import"./SHHFJEV3.js";import{g as b}from"./PDM6CH37.js";import"./IB3ETAZV.js";import"./37DEXVCR.js";import{a as g,b as m}from"./O7DFUJAV.js";import{a as y}from"./2ILROAQZ.js";import{A as a,B as c,D as f,c as h,d as i,n,w as l,y as u}from"./SOMI2AAW.js";import"./O2UMUEEH.js";export default $arcgis.t(([k])=>{var P=h`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as v}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as v}from"./M6ZT4KAQ.js";import"./DXF42425.js";import"./FC4KGDP5.js";import"./WTSSBTYD.js";import"./PVWZATYG.js";import"./DYZGFY5X.js";import"./Y4ADZQLA.js";import"./PVFJ6K6W.js";import"./5Q3XETDO.js";import"./5SEG6ZB4.js";import"./DAFU7J4K.js";import"./YDJEUHQO.js";import"./BBAQTD4M.js";import"./G5SYJQGV.js";import"./ZM7CSJ7J.js";import"./V44FLEND.js";import"./K3SFQS3G.js";import"./SHHFJEV3.js";import"./PDM6CH37.js";import"./IB3ETAZV.js";import"./37DEXVCR.js";import"./YWQZU6B6.js";import"./HNUIQ7IZ.js";import{b}from"./IMEGNZXQ.js";import{a as m}from"./2ILROAQZ.js";import{A as f,D as w,c as p,d as s,f as u,n as o,p as _,y as g,z as i}from"./SOMI2AAW.js";import"./O2UMUEEH.js";var E=p`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
4
|
var e=(a=>(a.GRID="GRID",a.HORIZONTAL="HORIZONTAL",a.VERTICAL="VERTICAL",a))(e||{}),o=(a=>(a[a.Add=0]="Add",a[a.Update=1]="Update",a[a.Remove=2]="Remove",a[a.None=3]="None",a[a.Obsolete=4]="Obsolete",a))(o||{}),t=(a=>(a[a.LIST=0]="LIST",a[a.SELECT=1]="SELECT",a[a.EXPORT=2]="EXPORT",a[a.REFINE=3]="REFINE",a))(t||{}),i=(a=>(a.ADD="ADD",a.REMOVE="REMOVE",a))(i||{}),E=(a=>(a.SEARCH="SEARCH",a.SELECT="SELECT",a.SKETCH="SKETCH",a.REFINE="REFINE",a))(E||{}),n=(a=>(a.CSV="CSV",a.PDF="PDF",a))(n||{}),r=(a=>(a.SKETCH="SKETCH",a.REFINE="REFINE",a))(r||{}),I="{{params.wkid||",N="}}",S=500,l=(a=>(a.AEC="Architecture, Engineering, and Construction (AEC)",a.AIRPORTPORTRAIL="Airports, Ports, and Rails",a.BUSINESS="Business",a.CONSERVATION="Conservation",a.DEFENSE="Defense",a.FACILITIES="Facilities",a.PIPELINE="Pipeline",a.PUBLICSAFETY="Public Safety",a.RENEWABLES="Renewables",a.STATEANDLOCALGOVERNMENT="State and Local Government",a.TELECOMMUNICATIONS="Telecommunications",a.UTILITIES="Utilities",a))(l||{}),A=(a=>(a.AIRPORT="Airports",a.AGRICULTURE="Agriculture",a.ASSESSMENTANDTAXATION="Assessment and Taxation",a.DISTRICTENERGY="District Energy",a.ELECTIONS="Elections",a.ELECTRIC="Electric",a.EMERGENCYMANAGEMENT="Emergency Management",a.ENVIRONMENTANDNATURALRESOURCES="Environment and Natural Resources",a.FIRESERVICE="Fire Service",a.FISHANDWILDLIFE="Fish and Wildlife",a.GAS="Gas",a.HEALTHANDHUMANSERVICES="Health and Human Services",a.LAWENFORCEMENT="Law Enforcement",a.NATURALRESOURCES="Natural Resources",a.PARKS="Parks",a.PLANNINGANDDEVELOPMENT="Planning and Development",a.PROTECTEDAREAS="Protected Areas",a.PUBLICWORKS="Public Works",a.SEWER="Sewer",a.STORMWATER="Stormwater",a.TELECOMMUNICATIONS="Telecommunications",a.TRANSPORTATION="Transportation",a.WATER="Water Distribution",a))(A||{}),T=(a=>(a.OWNER="My solutions",a.ORGANIZATION="My organization's solutions",a))(T||{}),R=(a=>(a.HUBPREMIUM="solutions:hubPremium",a.NOTEBOOK="solutions:notebook",a.TRACKING="solutions:locationtracking:tracking",a.TRACKINGADMIN="solutions:locationtracking:admin",a.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",a.VELOCITY="solutions:velocity",a.WORKFLOW="solutions:workflowManager",a))(R||{}),u=(a=>(a.VELOCITYBIGDATA="portal:publisher:publishBigDataAnalytics",a.VELOCITYFEEDS="portal:publisher:publishFeeds",a.VELOCITYREALTIME="portal:publisher:publishRealTimeAnalytics",a))(u||{}),s='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',c="(typekeywords:Solution,Template)",p="(typekeywords:Solution,Display Only)",C="portal:user:addExternalMembersToGroup",O="portal:user:createItem",L="portal:user:createGroup",D="portal:publisher:publishBigDataAnalytics",d="portal:publisher:publishFeatures",m="portal:publisher:publishFeeds",b="portal:publisher:publishServerGPServices",P="portal:publisher:publishRealTimeAnalytics",M="portal:user:shareToGroup",F="solutions:hubPremium",h="solutions:notebook",y="solutions:locationtracking:admin:tracking",g="solutions:locationtracking:tracking",k="solutions:locationtracking:admin",G="solutions:velocity",U="solutions:workflowManager";export{e as a,o as b,t as c,i as d,E as e,n as f,r as g,I as h,N as i,S as j,l as k,A as l,T as m,R as n,u as o,s as p,c as q,p as r,C as s,O as t,L as u,D as v,d as w,m as x,b as y,P as z,M as A,F as B,h as C,y as D,g as E,k as F,G,U as H};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
4
|
var y={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},we="app",Re=Object.defineProperty,xe=(e,t)=>{for(var o in t)Re(e,o,{get:t[o],enumerable:!0})},Se="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml",_e=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},q=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),X="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{};w.HTMLElement;var N={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},ke=e=>Promise.resolve(e),j=!1,G=[],ie=[],Ee=(e,t)=>o=>{e.push(o),j||(j=!0,t&&N.$flags$&4?K(D):N.raf(D))},J=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){I(o)}e.length=0},D=()=>{J(G),J(ie),(j=G.length>0)&&N.raf(D)},K=e=>ke().then(e),Ce=Ee(ie,!0),Le=e=>e!=null&&e!==void 0,$e=e=>(e=typeof e,e==="object"||e==="function"),Ae=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe={};xe(Oe,{err:()=>ce,map:()=>Fe,ok:()=>U,unwrap:()=>Me,unwrapErr:()=>Pe});var U=e=>({isOk:!0,isErr:!1,value:e}),ce=e=>({isOk:!1,isErr:!0,value:e});function Fe(e,t){if(e.isOk){let o=t(e.value);return o instanceof Promise?o.then(n=>U(n)):U(o)}if(e.isErr){let o=e.value;return ce(o)}throw"should never get here"}var Me=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},de=e=>{let t=ee(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&fe(t,e.tagName).forEach(n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(De(n,Q(n),!1).length?n.hidden=!0:n.hidden=!1)});let o=0;for(o=0;o<t.length;o++){let n=t[o];n.nodeType===1&&ee(n,"childNodes").length&&de(n)}},je=e=>{let t=[];for(let o=0;o<e.length;o++){let n=e[o]["s-nr"]||void 0;n&&n.isConnected&&t.push(n)}return t};function fe(e,t,o){let n=0,s=[],l;for(;n<e.length;n++)l=e[n],l["s-sr"]&&(!t||l["s-hn"]===t)&&o===void 0&&s.push(l),s=[...s,...fe(l.childNodes,t,o)];return s}var De=(e,t,o=!0)=>{let n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)Q(s)===t&&(o||!s["s-sr"])&&n.push(s);return n},Z=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Q=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ue(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;let t=o=>function(n){let s=[],l=this["s-sn"];n?.flatten&&console.error(`
|
5
5
|
Flattening is not supported for Stencil non-shadow slots.
|
6
6
|
You can use \`.childNodes\` to nested slot fallback content.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as k}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as k}from"./WFR3PXSW.js";import"./EY52J72L.js";import{g as s}from"./EWZOYKQ3.js";import{a as g,b as m}from"./O7DFUJAV.js";import{b as y}from"./IMEGNZXQ.js";import{a as w}from"./2ILROAQZ.js";import{D as p,c,d as l,n as a,p as d,y as n,z as o}from"./SOMI2AAW.js";import"./O2UMUEEH.js";var _=c`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as n,e as c,f as d}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as n,e as c,f as d}from"./CU2OKRTG.js";import{a as r}from"./TIRLXBT3.js";import"./DAFU7J4K.js";import"./XYGC3GAD.js";import"./YDJEUHQO.js";import"./BBAQTD4M.js";import"./G5SYJQGV.js";import"./ZM7CSJ7J.js";import"./V44FLEND.js";import"./SHHFJEV3.js";import"./PDM6CH37.js";import"./37DEXVCR.js";import{a as o,b as i}from"./SRQQ7EAN.js";import"./VADJYPUJ.js";import"./EGKSG7TA.js";import"./XV3E5CCZ.js";import"./MZHBGZQK.js";import"./TJY3W6ZV.js";import"./F7KUGTUU.js";import"./HJ4Y6HPF.js";import"./PSKK6R7V.js";import"./WK34FXLR.js";import"./27IJK3XU.js";import"./4FYXKV37.js";import"./M62LQBTE.js";import"./2XC7LXEB.js";import"./WF2RAOLM.js";import"./FX4AQK2Q.js";import"./BT2SQ524.js";import"./BMITAUIB.js";import"./L4EB6CDR.js";import"./YFONVRE2.js";import"./YZVOT3TE.js";import"./G74J63ZD.js";import"./F4RH4VWK.js";import"./O2UMUEEH.js";function u(e,t){let l=[];if(p(t)){let s=f(e);l.push(s)}let a=m(e,t);return l.push(a),{type:"Section",labelKey:`${e}.sections.downloads.label`,options:{},elements:l}}function p(e){return n(e)}function f(e){return{labelKey:`${e}.fields.serverExtractCapability.label`,scope:"/properties/serverExtractCapability",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.serverExtractCapability.exportDataSetting.label:translate}}`,`{{${e}.fields.serverExtractCapability.defaultDownloadsSystem.label:translate}}`],descriptions:[`{{${e}.fields.serverExtractCapability.exportDataSetting.description:translate}}`,`{{${e}.fields.serverExtractCapability.defaultDownloadsSystem.description:translate}}`],layout:"vertical",messages:[{type:i.custom,display:"notice",kind:"warning",icon:"exclamation-mark-triangle",titleKey:`${e}.fields.serverExtractCapability.noFormatConfigurationNotice.title`,labelKey:`${e}.fields.serverExtractCapability.noFormatConfigurationNotice.body`,allowShowBeforeInteract:!0,conditions:[{scope:"/properties/serverExtractCapability",schema:{const:!1}}]}]}}}function m(e,t){let l={labelKey:`${e}.fields.downloadFormats.label`,scope:"/properties/downloadFormats",type:"Control",options:{control:"hub-field-input-list",helperText:{labelKey:`${e}.fields.downloadFormats.helperText`},allowReorder:!0,allowHide:!0},rules:[]};return p(t)?l.rules.push({effect:o.DISABLE,conditions:[{scope:"/properties/serverExtractCapability",schema:{const:!1}}]}):y(t)&&(l.rules.push({effect:o.DISABLE,conditions:[!0]}),l.options.messages=[{type:i.custom,display:"notice",kind:"warning",icon:"exclamation-mark-triangle",titleKey:`${e}.fields.downloadFormats.downloadsUnavailableNotice.title`,labelKey:`${e}.fields.downloadFormats.downloadsUnavailableNotice.body`,allowShowBeforeInteract:!0,alwaysShow:!0}]),l}function y(e){return!c(e)}var v=async(e,t,l)=>{let a={type:"Layout",elements:[]};if(r("hub:content:workspace:settings:schedule",l,t).access){let s=[{type:"Control",scope:"/properties/schedule",labelKey:`${e}.sections.schedule.helperText`,options:{type:"Control",control:"hub-field-input-scheduler",labelKey:"fieldHeader",format:"select",inputs:[{type:"automatic"},{type:"daily"},{type:"weekly"},{type:"monthly"},{type:"yearly"},{type:"manual",helperActionIcon:"information-f",helperActionText:`{{${e}.fields.schedule.manual.helperActionText:translate}}`}]},rules:[{effect:o.DISABLE,conditions:[t.access!=="public"]}]},{type:"Notice",options:{notice:{configuration:{id:"schedule-unavailable-notice",noticeType:"notice",closable:!1,kind:"warning",icon:"exclamation-mark-triangle",scale:"m"},title:`{{${e}.fields.schedule.unavailableNotice.title:translate}}`,message:`{{${e}.fields.schedule.unavailableNotice.body:translate}}`,autoShow:!0}},rules:[{effect:o.SHOW,conditions:[t.access!=="public"]}]},{type:"Control",scope:"/properties/_forceUpdate",options:{control:"hub-field-input-tile-select",type:"checkbox",labels:[`{{${e}.fields.schedule.forceUpdateButton.label:translate}}`],descriptions:[`{{${e}.fields.schedule.forceUpdateButton.description:translate}}`]},rules:[{effect:o.SHOW,conditions:[t.access==="public"]}]}];a.elements.push({type:"Section",labelKey:`${e}.sections.schedule.label`,elements:s})}if(d(t)){let s=u(e,t);a.elements.push(s)}return a};export{v as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as e,b as i,c as l,d as s,e as t}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as e,b as i,c as l,d as s,e as t}from"./E5ZOUWWV.js";import{a as r}from"./SRQQ7EAN.js";import"./VADJYPUJ.js";import"./EGKSG7TA.js";import"./XV3E5CCZ.js";import"./MZHBGZQK.js";import"./TJY3W6ZV.js";import"./F7KUGTUU.js";import"./HJ4Y6HPF.js";import"./PSKK6R7V.js";import"./WK34FXLR.js";import"./27IJK3XU.js";import"./4FYXKV37.js";import"./M62LQBTE.js";import"./2XC7LXEB.js";import"./WF2RAOLM.js";import"./FX4AQK2Q.js";import"./BT2SQ524.js";import"./BMITAUIB.js";import"./L4EB6CDR.js";import"./YFONVRE2.js";import"./YZVOT3TE.js";import"./G74J63ZD.js";import"./F4RH4VWK.js";import"./O2UMUEEH.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
4
|
var t={type:"string",minLength:1,maxLength:250,format:"entityTitleValidator"},e={type:"string",minLength:1,maxLength:250,format:"siteEntityTitleValidator"},p={type:"string",maxLength:2048},r={type:"string",enum:["public","org","private"],default:"private"},o={type:"array",items:{type:"string"}},s={type:"array",items:{type:"string"},maxItems:20},n={type:"boolean",enum:[!0,!1],default:!0},i={type:"array",maxItems:4,items:{type:"string"}},a={type:"object",default:{type:"none"},properties:{type:{type:"string",enum:["none","org","custom"],default:"none"},name:{type:"string"}}},y={type:"object",properties:{baseViewItemId:{type:"array",items:{type:"string"},maxItems:1}}},E={type:"object",properties:{base64:{type:"string"},format:{type:"string"},fileName:{type:"string"},blob:{type:"object",properties:{type:{type:"string"},size:{type:"number"}}},url:{type:"string"}}},g={type:"object",properties:{title:{type:"string"},description:{type:"string"},canCollapse:{type:"boolean"},stages:{type:"array",items:{type:"object",properties:{title:{type:"string"},timeframe:{type:"string"},stageDescription:{type:"string"},status:{type:"string"},link:{type:"object",properties:{href:{type:"string"},title:{type:"string"}}}}}}}},c={type:"object",properties:{consentNotice:{type:"object",properties:{allowPrivacyConfig:{type:"boolean",default:!1},blocking:{type:"boolean",default:!1},disclaimer:{type:"array",items:[{type:"object",properties:{text:{type:"string"},lang:{type:"string"},default:{type:"boolean"}}}]},policyURL:{type:"string",pattern:"^(https?:\\/\\/)?([\\da-z.-]+)\\.([a-z.]{2,6})([\\/\\w.-]*)*\\/?$|^$"}}}}},l={type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$"};export{t as a,e as b,p as c,r as d,o as e,s as f,n as g,i as h,a as i,y as j,E as k,g as l,c as m,l as n};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as l}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as l}from"./CNNZEBLF.js";import{b as t,c as u}from"./XV3E5CCZ.js";import"./O2UMUEEH.js";var m=o=>{let i=o.find(({collaborationType:n})=>n===l.anonymous),e=o.find(({collaborationType:n})=>n===l.authenticated);return[{key:"public",roles:{anonymous:{value:i?.permission||t,id:i?.id},authenticated:{value:e?.permission||t,id:e?.id}}}]},c=o=>{let i=o.reduce((e,n)=>[l.group,l.groupAdmin].includes(n.collaborationType)&&n.permission!==u.channelOwner?Object.assign(Object.assign({},e),{[n.collaborationId]:Object.assign(Object.assign({},e[n.collaborationId]),{[n.collaborationType]:n})}):e,{});return Object.entries(i).reduce((e,[n,{group:r,["group-admin"]:s}])=>[...e,{key:n,entityId:n,entityType:"group",roles:{member:{value:r?.permission||t,id:r?.id},admin:{value:s?.permission||t,id:s?.id}}}],[])},v=(o,i)=>{let e=o.reduce((r,s)=>[l.org,l.orgAdmin].includes(s.collaborationType)?Object.assign(Object.assign({},r),{[s.collaborationId]:Object.assign(Object.assign({},r[s.collaborationId]),{[s.collaborationType]:s})}):r,{}),n=Object.entries(e).reduce((r,[s,{org:a,["org-admin"]:d}])=>[...r,{key:s,entityId:s,entityType:"organization",roles:{member:{value:a?.permission||t,id:a?.id},admin:{value:d?.permission||t,id:d?.id}}}],[]);return n.length||n.push({key:i,entityId:i,entityType:"organization",roles:{member:{value:t,id:void 0},admin:{value:u.channelOwner,id:void 0}}}),n},b=o=>o.reduce((i,e)=>e.collaborationType===l.user?[...i,{key:e.collaborationId,entityId:e.collaborationId,entityType:"user",roles:{user:{value:e.permission,id:e.id}}}]:i,[]);function p(o,i){return{id:o.id,name:o.name,blockWords:o.blockWords.join(","),allowAsAnonymous:o.allowAsAnonymous,publicConfigs:m(o.permissions),orgConfigs:v(o.permissions,i.currentUser.orgId),groupConfigs:c(o.permissions),userConfigs:b(o.permissions)}}export{p as transformEntityToEditor};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250618.1 */
|
4
|
+
import{a as e}from"./YZVOT3TE.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s as b};
|