@esri/solutions-components 5.1.0 → 5.1.2
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/{NXX22DHX.js → 3CSSTWYC.js} +1 -1
- package/dist/cdn/{BT6SXXE2.js → 3DNEBMT3.js} +1 -1
- package/dist/cdn/{4SORDX5Z.js → 3FIRDPVD.js} +1 -1
- package/dist/cdn/{5UW2NTSN.js → 3KYCZII7.js} +1 -1
- package/dist/cdn/{MIV34H66.js → 3NI2BJYO.js} +1 -1
- package/dist/cdn/{G2H3X6NS.js → 3W7ANZME.js} +1 -1
- package/dist/cdn/{CVXDL2AT.js → 4MAH5ULJ.js} +1 -1
- package/dist/cdn/{SWY74BKB.js → 4RH7N22O.js} +1 -1
- package/dist/cdn/{RCWYHGZ5.js → 5F6WBFDO.js} +1 -1
- package/dist/cdn/{TWN7DOAU.js → 5FW45CM6.js} +1 -1
- package/dist/cdn/{5FWKODDH.js → 5IO4VX4R.js} +1 -1
- package/dist/cdn/{463CZQF6.js → 5Q64VY2E.js} +1 -1
- package/dist/cdn/{TWJ6DAY5.js → 65I4AUS4.js} +1 -1
- package/dist/cdn/{54A4C4RG.js → 65OXHGCN.js} +1 -1
- package/dist/cdn/{LGWAEUZM.js → 6F6YFDOY.js} +1 -1
- package/dist/cdn/{KTW6BSEC.js → 6KBY56R4.js} +1 -1
- package/dist/cdn/{6HZBPFHA.js → 6L6JOGWD.js} +1 -1
- package/dist/cdn/{MDWJ6JLF.js → 6OKLCUSH.js} +1 -1
- package/dist/cdn/{LV5KMTCD.js → 6RQBPR56.js} +1 -1
- package/dist/cdn/{Y6JJY3IC.js → 74Z5A6E2.js} +1 -1
- package/dist/cdn/{JHOJZDXC.js → 7AHZBLTM.js} +1 -1
- package/dist/cdn/{KSIYOSLP.js → 7EJXZVSX.js} +1 -1
- package/dist/cdn/{BOFA5RH7.js → 7NQYBMRX.js} +1 -1
- package/dist/cdn/{HIB4BVGK.js → 7XPOQHB4.js} +1 -1
- package/dist/cdn/A4KEZALJ.js +2 -0
- package/dist/cdn/{OYRMCWNZ.js → AS7PVOU3.js} +1 -1
- package/dist/cdn/{TZHRYPII.js → B7CVHLVL.js} +1 -1
- package/dist/cdn/{LO35PCP7.js → BFFHQBDI.js} +1 -1
- package/dist/cdn/{MKSUYITL.js → BKIKLE4Z.js} +1 -1
- package/dist/cdn/{WNVC3PSY.js → BWNEUQZZ.js} +1 -1
- package/dist/cdn/{KFRHOPZY.js → BZWJ3KFS.js} +129 -129
- package/dist/cdn/{SEG43OPO.js → C2GWD5VP.js} +1 -1
- package/dist/cdn/{KRP5SGSU.js → C3SIGIJC.js} +1 -1
- package/dist/cdn/CC7JGR5Q.js +2 -0
- package/dist/cdn/{KDDHPA54.js → CKPQTIAF.js} +1 -1
- package/dist/cdn/{VUXNHQGR.js → CRTJERAB.js} +1 -1
- package/dist/cdn/{5X43GK3C.js → CVKCFLNY.js} +1 -1
- package/dist/cdn/{VPXGD2H4.js → CVNW2AU2.js} +1 -1
- package/dist/cdn/{X3YRR4BO.js → CXTHIJOC.js} +65 -73
- package/dist/cdn/{RLYEATAS.js → DE7GSGUB.js} +1 -1
- package/dist/cdn/{YUI2MSOK.js → DEVAXAP7.js} +1 -1
- package/dist/cdn/{2TEBTKD4.js → DF2U7HIU.js} +1 -1
- package/dist/cdn/{7P57UVVG.js → DLV7AZZ6.js} +1 -1
- package/dist/cdn/DQJ36YEL.js +2 -0
- package/dist/cdn/{ZHCAZ2TH.js → DXI5HEQM.js} +1 -1
- package/dist/cdn/E3O6DPAL.js +2 -0
- package/dist/cdn/{X257ACPD.js → E5YZOOW3.js} +1 -1
- package/dist/cdn/{I4QWYULN.js → EBDDUQNC.js} +1 -1
- package/dist/cdn/{47FRMYZ4.js → ECUD4NU6.js} +1 -1
- package/dist/cdn/{EUI2Y6R4.js → EHIUCEAX.js} +1 -1
- package/dist/cdn/{AIM7NSD3.js → EJRV6YWD.js} +1 -1
- package/dist/cdn/EX4K4RKP.js +2 -0
- package/dist/cdn/{M6AOD7GG.js → FDNEF4QD.js} +1 -1
- package/dist/cdn/{Y2MAVMNV.js → FSFVH74N.js} +1 -1
- package/dist/cdn/{XYKQ6M25.js → GHVPHEOH.js} +1 -1
- package/dist/cdn/GPIIJWNM.js +2 -0
- package/dist/cdn/{BHLMO6KY.js → GRVDJVOF.js} +1 -1
- package/dist/cdn/{2AWUR4ZA.js → GSI62QHB.js} +1 -1
- package/dist/cdn/{O4DB2EXV.js → GSLDFLWZ.js} +1 -1
- package/dist/cdn/{3A3CPQX4.js → GWIC6C6P.js} +1 -1
- package/dist/cdn/{2R7Y2ZVX.js → GZZMHIFA.js} +1 -1
- package/dist/cdn/{G4V4JPFI.js → HOSSEVH5.js} +1 -1
- package/dist/cdn/{6WNKGSHD.js → HQFL3NGM.js} +1 -1
- package/dist/cdn/{IXRFWVBT.js → IGY23J7D.js} +1 -1
- package/dist/cdn/{FQTDRS3G.js → INFZEU32.js} +1 -1
- package/dist/cdn/{56DNSWXG.js → IVMHEGLY.js} +1 -1
- package/dist/cdn/{SGQEHPTT.js → J7DTCWOP.js} +1 -1
- package/dist/cdn/{F4MS4NQL.js → JB5XLSNA.js} +1 -1
- package/dist/cdn/{IAEFPE3L.js → JF2ASXUT.js} +1 -1
- package/dist/cdn/{6GBSXKKJ.js → KB7CXY4N.js} +1 -1
- package/dist/cdn/{5IDPOFIN.js → KLZWOBGK.js} +1 -1
- package/dist/cdn/{UIZL3C3H.js → KMY4AVEA.js} +1 -1
- package/dist/cdn/{XQ7SXIHI.js → KPEPW4QL.js} +1 -1
- package/dist/cdn/{3JCHYXHA.js → KPKJ2OVD.js} +1 -1
- package/dist/cdn/{SJLSYFK3.js → L6XSVTY3.js} +1 -1
- package/dist/cdn/LCDURBN6.js +3 -0
- package/dist/cdn/{D22STVK5.js → LFIP5DV3.js} +1 -1
- package/dist/cdn/{5N4KGIIY.js → LK6WQCXQ.js} +1 -1
- package/dist/cdn/{XKFX43FE.js → LKVPVQIC.js} +1 -1
- package/dist/cdn/{GUSPFJUQ.js → LQFA6HOT.js} +1 -1
- package/dist/cdn/{UCYR537P.js → LRGW6G5E.js} +1 -1
- package/dist/cdn/{ZZZPISEE.js → LSDYUCCZ.js} +1 -1
- package/dist/cdn/{H4LZV33O.js → LSMP2ZCO.js} +1 -1
- package/dist/cdn/{376KPQCJ.js → LXJI7FYN.js} +1 -1
- package/dist/cdn/{NX7HKBFH.js → MHMM4RFR.js} +1 -1
- package/dist/cdn/{2RL6H5TB.js → MVSQRD5M.js} +1 -1
- package/dist/cdn/{PIAGRMMB.js → MVXK7UGO.js} +47 -47
- package/dist/cdn/MXPZF4RB.js +2 -0
- package/dist/cdn/{HOCCKT72.js → MZ5XI2CY.js} +1 -1
- package/dist/cdn/{3BG6WS6Q.js → NIUKLQOT.js} +1 -1
- package/dist/cdn/{BI3I22IR.js → NJSQ3NUT.js} +3 -3
- package/dist/cdn/{SXEL7KTE.js → NVNB4L52.js} +1 -1
- package/dist/cdn/{CLHUIZMU.js → NWOPIQFN.js} +1 -1
- package/dist/cdn/{5LSNDSHW.js → O6HS2AMH.js} +1 -1
- package/dist/cdn/{HM2QALUN.js → O6IGMQN7.js} +1 -1
- package/dist/cdn/{RRWG2OJP.js → OPWMEQVM.js} +1 -1
- package/dist/cdn/{FSF3T3OT.js → OVAQRVFG.js} +1 -1
- package/dist/cdn/{PM4EFNB2.js → P2FSR5OV.js} +1 -1
- package/dist/cdn/{BIX5DRQP.js → PQVA7SKB.js} +1 -1
- package/dist/cdn/{4CSMWYIO.js → PSM4UX7K.js} +1 -1
- package/dist/cdn/{SXTON3QW.js → Q5N7I65T.js} +1 -1
- package/dist/cdn/{BWWX52HV.js → Q6CXYCV6.js} +1 -1
- package/dist/cdn/{PLQEDCUG.js → QMQAQSIA.js} +1 -1
- package/dist/cdn/{GFBJLNEH.js → QODVIACF.js} +1 -1
- package/dist/cdn/{FFZ2XVRE.js → QTCXH2O3.js} +1 -1
- package/dist/cdn/{FYJMHXWV.js → QVD3AXIP.js} +1 -1
- package/dist/cdn/{6FY64JKN.js → RAL6IXW5.js} +1 -1
- package/dist/cdn/{NNY2YF2L.js → RJLEYL7O.js} +1 -1
- package/dist/cdn/{7QKF26VG.js → RNNEZRGA.js} +1 -1
- package/dist/cdn/{77753TPX.js → RPL5Q7IL.js} +1 -1
- package/dist/cdn/{4PDT6TEX.js → RQVXDCWL.js} +1 -1
- package/dist/cdn/{GSR2GEY7.js → SD3DV4KO.js} +1 -1
- package/dist/cdn/SQEPSAKG.js +2 -0
- package/dist/cdn/{V5UJ5VTY.js → T7O4WZGU.js} +1 -1
- package/dist/cdn/{7O4E4IAA.js → UDWEFNJE.js} +1 -1
- package/dist/cdn/{AZKNC2SR.js → UILBHLN7.js} +1 -1
- package/dist/cdn/{BXSBR2GT.js → V24CDHGH.js} +1 -1
- package/dist/cdn/{DIBK4RSG.js → VSRNGZ43.js} +1 -1
- package/dist/cdn/{R27S3IDW.js → WNYAZ4ME.js} +1 -1
- package/dist/cdn/{PUYJYHQM.js → WRMREY3V.js} +1 -1
- package/dist/cdn/{EWS72RFR.js → WVCL5OUK.js} +1 -1
- package/dist/cdn/{VKHBBAXO.js → XA6ZDTKA.js} +1 -1
- package/dist/cdn/{37P3IMFV.js → XIUYVZYL.js} +1 -1
- package/dist/cdn/{ARFBMFQW.js → XXRBPKMI.js} +1 -1
- package/dist/cdn/{INLWMPGE.js → XYAVR2MM.js} +1 -1
- package/dist/cdn/{743J2ZUC.js → Y2KRCLNN.js} +1 -1
- package/dist/cdn/{4RCC4KA2.js → Y7Z6LFBH.js} +1 -1
- package/dist/cdn/{GMAAQEP7.js → YBJ6AHAG.js} +1 -1
- package/dist/cdn/{QEUKNYOL.js → YHF3Q7QB.js} +1 -1
- package/dist/cdn/{HKFXHTYU.js → YVNBCXBJ.js} +1 -1
- package/dist/cdn/{Q4UI3ZGH.js → Z6CZ7GFZ.js} +1 -1
- package/dist/cdn/ZB5UCRCG.js +2 -0
- package/dist/cdn/{SSCE4O7V.js → ZHVO477V.js} +1 -1
- package/dist/cdn/{A6ZTIX3P.js → ZSATEDPE.js} +1 -1
- package/dist/cdn/{NIYY6XUQ.js → ZXGNDW3R.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/converter.js +88 -88
- package/dist/chunks/interfaces.js +19 -19
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/solution-builder-assistant.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +374 -358
- package/dist/components/create-feature/customElement.js +23 -18
- package/dist/components/create-related-feature/customElement.js +8 -6
- package/dist/components/crowdsource-manager/customElement.d.ts +0 -6
- package/dist/components/crowdsource-manager/customElement.js +14 -11
- package/dist/components/layer-table/customElement.js +3 -3
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/solutions-components_commit.txt +6 -6
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/interfaces.d.ts +1 -0
- package/package.json +5 -7
- package/dist/cdn/E3F63VW4.js +0 -2
- package/dist/cdn/F7XCLL7U.js +0 -3
- package/dist/cdn/FSHV53TK.js +0 -2
- package/dist/cdn/HIPZRG2Q.js +0 -2
- package/dist/cdn/IXPNZCW6.js +0 -2
- package/dist/cdn/J3SDL3LR.js +0 -2
- package/dist/cdn/JO6WZKYF.js +0 -2
- package/dist/cdn/KR2PPIBX.js +0 -2
- package/dist/cdn/OGH565H7.js +0 -3
- package/dist/cdn/QH343537.js +0 -56
- package/dist/cdn/QPHNKFC6.js +0 -2
- package/dist/cdn/S4GBMN37.js +0 -2
- package/dist/cdn/UUKV62PY.js +0 -109
- package/dist/cdn/ZPEVEBJD.js +0 -121
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as u}from"./VVZAS55G.js";import{a as m}from"./
|
|
2
|
+
import{a as u}from"./VVZAS55G.js";import{a as m}from"./65I4AUS4.js";import{b as d}from"./MXPZF4RB.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{H as p,J as a,g as c,h as r,i as e,q as h}from"./T3EPRHTT.js";import"./EXBEKVP5.js";function f(){return new u({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0)}function g(i){window?.localStorage.setItem(i,"false")}function b(i){return!!window?.localStorage?.getItem(i)}function _(i){window?.localStorage?.removeItem(i)}var x=r`:host{--instant-apps-splash-content-max-height: 100%;--instant-apps-splash-back-content-display: flex;display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:var(--instant-apps-splash-back-content-display);align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom: 0}:host .instant-apps-splash__content{max-height:var(--instant-apps-splash-content-max-height)}:host .instant-apps-splash__confirmation-tooltip{display:inline-block;max-width:200px;word-wrap:break-word}:host .instant-apps-splash__required{display:inline-block;margin-inline-start:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}:host .instant-apps-splash__footer{width:100%;display:flex;justify-content:space-between}:host .instant-apps-splash__button-container{display:flex}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:var(--calcite-spacing-sm)}@media(max-width:816px){:host .instant-apps-splash__footer{justify-content:flex-start;flex-direction:column}:host .instant-apps-splash__back-content{margin-bottom:var(--calcite-spacing-sm)}:host .instant-apps-splash__back-content span{display:flex;align-items:center}:host .instant-apps-splash__button-container{width:100%;gap:var(--calcite-spacing-sm);justify-content:space-between}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:0}:host .instant-apps-splash__button-container>*{flex:1 1 0;min-width:0}}`,n={back:"instant-apps-splash__back-content",confirmationTooltip:"instant-apps-splash__confirmation-tooltip",requiredText:"instant-apps-splash__required",footer:"instant-apps-splash__footer",buttonContainer:"instant-apps-splash__button-container"},l=class extends p{constructor(){super(...arguments),this._messages=m({name:"instant-apps-splash"}),this._sanitizer=f(),this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.closeBehavior="permanent-dismissal",this.confirmationText="",this.isConfirmed=!1,this.splashClose=h()}static{this.properties={localStorageKey:1,titleText:1,content:1,primaryButtonText:1,open:5,closeButtonDisabled:5,outsideCloseDisabled:5,secondaryButton:5,secondaryButtonText:1,secondaryButtonIcon:1,secondaryButtonCallback:0,closeBehavior:1,confirmationText:1,isConfirmed:32}}static{this.styles=x}load(){let t;if(this.closeBehavior==="confirmation"||this.closeBehavior==="dismissal")t=!0;else{let{localStorageKey:s}=this;s?t=this.open&&!b(s):t=this.open}this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}willUpdate(t){t.has("content")&&this.sanitizeContent()}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}close(){this.open=!1,this.splashClose.emit()}getCheckboxText(){return this.closeBehavior==="confirmation"?this.confirmationText?this.confirmationText:`${this._messages.confirmationText}`:this._messages?.dontShowThisAgain}handleDontShowThisAgain(t){if(this.closeBehavior==="confirmation"){let s=t.target,{checked:o}=s;c(()=>{this.isConfirmed=o})}else if(this.closeBehavior==="permanent-dismissal"){let{localStorageKey:s}=this;if(!s)return;let o=t.target,{checked:y}=o;y?g(s):_(s)}}render(){return e`<calcite-dialog .open=${this.open} .focusTrapOptions=${{allowOutsideClick:!0}} modal .heading=${this.titleText} aria-describedby=description @calciteDialogClose=${this.close} top-layer-disabled .closeDisabled=${this.closeBehavior==="confirmation"||this.closeButtonDisabled} .outsideCloseDisabled=${this.closeBehavior==="confirmation"||this.outsideCloseDisabled} .escapeDisabled=${this.closeBehavior==="confirmation"}><div id=description .innerHTML=${this.content??""}></div><slot name=custom-action></slot><div class=${a(n.footer)} slot=footer>${this.localStorageKey&&this.closeBehavior==="permanent-dismissal"||this.closeBehavior==="confirmation"?this.renderCheckbox():null}<div class=${a(n.buttonContainer)}>${this.secondaryButton?this.renderSecondaryButton():null}${this.renderPrimaryButton()}</div>${this.closeBehavior==="confirmation"&&!this.isConfirmed&&e`<calcite-tooltip reference-element=primary-button overlay-positioning=fixed placement=top><span class=${a(n.confirmationTooltip)}>${this._messages?.confirmationTooltip}</span></calcite-tooltip>`||""}</div></calcite-dialog>`}renderCheckbox(){let{localStorageKey:t}=this,s=this.closeBehavior!=="confirmation"&&t&&b(t)?!0:null;return e`<div class=${a(n.back)}><calcite-label layout=inline><calcite-checkbox @calciteCheckboxChange=${this.handleDontShowThisAgain} .checked=${s??void 0}></calcite-checkbox><span>${this.getCheckboxText()}<span class=${a(n.requiredText)}>${this.closeBehavior==="confirmation"&&`(${this._messages?.required})`||""}</span></span></calcite-label></div>`}renderPrimaryButton(){let{primaryButtonText:t}=this;return e`<calcite-button id=primary-button @click=${this.close} slot=footer-end .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${t||this._messages?.enter}</calcite-button>`}renderSecondaryButton(){return e`<calcite-button @click=${this.secondaryButtonCallback} slot=footer-end .iconStart=${this.secondaryButtonIcon} appearance=outline .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${this.secondaryButtonText}</calcite-button>`}};d("instant-apps-splash",l);export{l as InstantAppsSplash};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./NIUKLQOT.js";import d from"./LOSU3FPH.js";import c from"./EHIUCEAX.js";import b from"./DQJ36YEL.js";import a from"./TK5EXRZL.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./CGQALCTZ.js";import"./VSRNGZ43.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./ZB5UCRCG.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,,,a])=>{return a},a,b,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as u}from"./
|
|
2
|
+
import{a as u}from"./65I4AUS4.js";import{b as d}from"./MXPZF4RB.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{H as c,L as o,h as a,i as t,q as r}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([p,m,{on:w}])=>{var T=a`:host{--default-width: auto;--width: var(--default-width);--padding: 10px;--border-style: 1px solid var(--calcite-color-border-1);--calcite-button-height: 48px;--calcite-icon-color: var(--calcite-color-text-3);display:block;width:var(--width);background:var(--background-color, var(--calcite-color-foreground-1));color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);padding:var(--padding);box-sizing:border-box;>*{border:var(--border-style)}}[role=group]{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:var(--calcite-button-height)}.selection-count{display:flex;align-items:center;justify-content:space-between;padding-inline-start:var(--padding);margin-block-start:var(--padding)}`,i=class extends c{constructor(){super(),this._messages=u({name:"instant-apps-selection-toolbar",blocking:!0}),this._selectionCount=0,this.disabled=!1,this.selectionChange=r(),this.selectionManager=new p,this.selectionToolbarViewModel=new m({selectionManager:this.selectionManager})}static{this.properties={_selectionCount:16,view:0,selectionManager:0,selectionToolbarViewModel:0,selectedCount:32,sources:0,enabledTool:3,readyToSelect:39,continuousSelectionEnabled:5,selectionOperationType:1,toolbarState:32,layerViewPreferenceEnabled:5,disabled:5}}static{this.styles=T}get#e(){return this.disabled||this.selectionToolbarViewModel.state==="disabled"}get view(){return this.selectionManager.view}set view(e){this.selectionManager.view=e,this.selectionToolbarViewModel.view=e}get selectedCount(){return this._selectionCount}get sources(){return this.selectionManager.sources}set sources(e){this.selectionManager.sources=e,this.selectionToolbarViewModel.sources=e}get readyToSelect(){return!this.#e&&!!this.view&&!!this.sources?.length&&!!this.selectionManager&&!!this.selectionToolbarViewModel}get continuousSelectionEnabled(){return this.selectionToolbarViewModel.continuousSelectionEnabled}set continuousSelectionEnabled(e){this.selectionToolbarViewModel.continuousSelectionEnabled=e}get selectionOperationType(){return this.selectionToolbarViewModel.defaultOperationType}set selectionOperationType(e){this.selectionToolbarViewModel.defaultOperationType=e}get toolbarState(){return this.selectionToolbarViewModel?.state}get layerViewPreferenceEnabled(){return this.selectionToolbarViewModel.layerViewPreferenceEnabled}set layerViewPreferenceEnabled(e){this.layerViewPreferenceEnabled=e}clearSelection(){this.selectionManager.clear()}getSelectedFeatures(){return this.selectionManager.getSelectedFeatures(null,{returnGeometry:!0})}load(){this.manager.onLifecycle(()=>w(()=>this.selectionManager,"selection-change",e=>{this._selectionCount=this.selectionManager.count,this.selectionChange.emit(e)}))}willUpdate(e){e.has("enabledTool")&&this.readyToSelect&&(this.enabledTool?this.selectionToolbarViewModel.activateTool(this.enabledTool):this.selectionToolbarViewModel.cancel())}_getSelectButtonClickEventHandler(e){return()=>{this.enabledTool===e?this.enabledTool=null:this.enabledTool=e}}_renderSelectionButton(e,l,h){let s=this.enabledTool===e,b={pressed:s},g=this._getSelectButtonClickEventHandler(e),n=`${e}-action`;return t`<calcite-action id=${n??o} .aria=${b} .active=${s} alignment=center .text=${l} @click=${g} .disabled=${this.disabled}><calcite-icon .icon=${h}></calcite-icon></calcite-action><calcite-tooltip .referenceElement=${n}><span>${l}</span></calcite-tooltip>`}_renderSelectionCount(){if(this._selectionCount>0){let e=this._selectionCount===1?this._messages.labels.singleFeatureSelected:this._messages.labels.multipleFeaturesSelected.replace("{number}",String(this._selectionCount));return t`<div class="selection-count"><span>${e}</span><calcite-button appearance=transparent .label=${this._messages.labels.deselectFeatures} @click=${this.clearSelection}><calcite-icon icon=x></calcite-icon></calcite-button></div>`}return null}render(){return t`<div role=group aria-label=${this._messages.labels.groupLabel??o}>${this._renderSelectionButton("point",this._messages.labels.selectCursor,"cursor")}${this._renderSelectionButton("rectangle",this._messages.labels.selectMarquee,"cursor-marquee")}${this._renderSelectionButton("lasso",this._messages.labels.selectLasso,"lasso-select")}</div>${this._renderSelectionCount()}`}};d("instant-apps-selection-toolbar",i);return i},"views/SelectionManager","widgets/support/SelectionToolbar/SelectionToolbarViewModel","core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./DQJ36YEL.js";import a from"./TK5EXRZL.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./CGQALCTZ.js";import"./VSRNGZ43.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./ZB5UCRCG.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{h:o}])=>{return o},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
var p=[{name:"blue",fill:[0,121,193],outline:[0,94,149]},{name:"red",fill:[222,41,0],outline:[171,60,22]},{name:"orange",fill:[209,126,33],outline:[173,101,17]},{name:"purple",fill:[144,129,188],outline:[116,97,168]},{name:"green",fill:[90,147,89],outline:[51,128,51]},{name:"black",fill:[89,89,89],outline:[50,50,50]}];function c(l=0){let e=(l%p.length+p.length)%p.length,i=p[e];return{fill:[...i.fill],outline:[...i.outline]}}function g(l=0){let{fill:e,outline:i}=c(l),t=[...e,153],r=[...i,255];return{renderer:{type:"simple",symbol:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,name:"Fill",anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:12,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[0,5],[.87,4.92],[1.71,4.7],[2.5,4.33],[3.21,3.83],[3.83,3.21],[4.33,2.5],[4.7,1.71],[4.92,.87],[5,0],[4.92,-.87],[4.7,-1.71],[4.33,-2.5],[3.83,-3.21],[3.21,-3.83],[2.5,-4.33],[1.71,-4.7],[.87,-4.92],[0,-5],[-.87,-4.92],[-1.71,-4.7],[-2.5,-4.33],[-3.21,-3.83],[-3.83,-3.21],[-4.33,-2.5],[-4.7,-1.71],[-4.92,-.87],[-5,0],[-4.92,.87],[-4.7,1.71],[-4.33,2.5],[-3.83,3.21],[-3.21,3.83],[-2.5,4.33],[-1.71,4.7],[-.87,4.92],[0,5]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,name:"Outline",capStyle:"Round",joinStyle:"Round",lineStyle3D:"Strip",miterLimit:4,width:1.5,height3D:1,anchor3D:"Center",color:r},{type:"CIMSolidFill",enable:!0,name:"Fill",color:t}],angleAlignment:"Map"}}],scaleSymbolsProportionally:!0,respectFrame:!0,rotation:360},{type:"CIMVectorMarker",enable:!0,name:"WhiteOutline",colorLocked:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:15.75,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[0,5],[.87,4.92],[1.71,4.7],[2.5,4.33],[3.21,3.83],[3.83,3.21],[4.33,2.5],[4.7,1.71],[4.92,.87],[5,0],[4.92,-.87],[4.7,-1.71],[4.33,-2.5],[3.83,-3.21],[3.21,-3.83],[2.5,-4.33],[1.71,-4.7],[.87,-4.92],[0,-5],[-.87,-4.92],[-1.71,-4.7],[-2.5,-4.33],[-3.21,-3.83],[-3.83,-3.21],[-4.33,-2.5],[-4.7,-1.71],[-4.92,-.87],[-5,0],[-4.92,.87],[-4.7,1.71],[-4.33,2.5],[-3.83,3.21],[-3.21,3.83],[-2.5,4.33],[-1.71,4.7],[-.87,4.92],[0,5]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,name:"WhiteOutline",color:[255,255,255,153]}],angleAlignment:"Map"}}],scaleSymbolsProportionally:!0,respectFrame:!0,rotation:360}],haloSize:.75,scaleX:1,angleAlignment:"Display",angle:360}}}}}function F(l=0){let{fill:e}=c(l);return{renderer:{type:"simple",symbol:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,name:"Fill",capStyle:"Round",joinStyle:"Miter",lineStyle3D:"Strip",miterLimit:4,width:4.5,height3D:1,anchor3D:"Center",color:[...e,255]},{type:"CIMSolidStroke",enable:!0,name:"Outline",colorLocked:!0,capStyle:"Round",joinStyle:"Miter",lineStyle3D:"Strip",miterLimit:4,width:6,height3D:1,anchor3D:"Center",color:[255,255,255,153]}]}}}}}function L(l=0){let{fill:e,outline:i}=c(l),t=[...e,153];return{renderer:{type:"simple",symbol:{type:"CIMSymbolReference",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,name:"Outline",capStyle:"Round",joinStyle:"Round",lineStyle3D:"Strip",miterLimit:4,width:1.5,height3D:1,anchor3D:"Center",color:[...i,255]},{type:"CIMSolidFill",enable:!0,name:"Fill",color:t}],angleAlignment:"Map"}}}}}var f=class l{constructor(e){this.llmFsLookup={},this.rendererColorCounters={esriGeometryPoint:0,esriGeometryPolyline:0,esriGeometryPolygon:0},this.structure=e,this.buildSolution=this.structure?.buildSolution}static{this.typeLookup={point:"esriGeometryPoint",polyline:"esriGeometryPolyline",polygon:"esriGeometryPolygon"}}static{this.simpleTypeLookup={esriGeometryPoint:"Point",esriGeometryPolyline:"Polyline",esriGeometryPolygon:"Polygon"}}static{this.drawingToolLookup={esriGeometryPoint:"esriFeatureEditToolPoint",esriGeometryPolyline:"esriFeatureEditToolLine",esriGeometryPolygon:"esriFeatureEditToolPolygon",Table:"esriFeatureEditToolNone"}}static{this.fieldTypeToEsri={string:"esriFieldTypeString",integer:"esriFieldTypeInteger",double:"esriFieldTypeDouble",date:"esriFieldTypeDate",guid:"esriFieldTypeGUID",globalid:"esriFieldTypeGlobalID",oid:"esriFieldTypeOID"}}static{this.fieldTypeToSimple=Object.fromEntries(Object.entries(l.fieldTypeToEsri).map(([e,i])=>[i,e]))}dumpToLlmTemplate(){let e=this.structure?.buildSolution?.solution,i=Object.entries(e?.strings||{}).map(([o,n])=>({key:o,value:n.value,description:n.description})),t={title:e?.title,description:e?.description,tags:e?.tags,strings:i},r=this.structure?.buildSolution?.items,s=Object.entries(r||{}).map(([o,n])=>({id:o,title:n.title,description:n.description,type:n.type})),a=null;for(let[o,n]of Object.entries(r||{})){if(n.type!=="Feature Layer (hosted)")continue;let d=[];for(let y of n.service?.layers||[]){let u=this.getFields(y),m={id:y.id,type:"",typeMutable:!0,name:y.name,customFields:[],requiredFields:u,systemFields:[]};y.geometryType&&(m.type=l.simpleTypeLookup[y.geometryType]||"",m.typeMutable=!1),d.push(m)}for(let y of n.service?.tables||[]){let u=this.getFields(y);d.push({id:y.id,type:"Table",typeMutable:!1,name:y.name,customFields:[],requiredFields:u,systemFields:[]})}a={itemId:o,addLayers:n.addLayers,layers:d};break}return{solution:t,items:s,featureLayer:a??{itemId:"",addLayers:!1,layers:[]}}}getFields(e){let i=[];for(let t of e.fields||[])i.push({name:t.name,type:l.fieldTypeToSimple[t.type]||t.type,alias:t.alias,description:l.getFieldDescription(t.description),choiceList:l.getFieldDomain(t.domain),length:t.length});return i}static getFieldDescription(e){if(e)try{return JSON.parse(e).value||e}catch{return e}}static getFieldDomain(e){if(e)return e.codedValues?.map(i=>i.code)}applyLlmTemplate(e){let i=this.buildSolution.solution;if(this.resetRendererColorCounters(),this.llmFsLookup={},e.featureLayer?.itemId){this.llmFsLookup[e.featureLayer.itemId]={};for(let o of e.featureLayer.layers)this.llmFsLookup[e.featureLayer.itemId][o.id]=o}for(let[o,n]of Object.entries(this.buildSolution.items))n.type==="Feature Layer (hosted, view)"&&(this.llmFsLookup[o]={...this.llmFsLookup[n.source]});i.title=e.solution.title,i.description=e.solution.description,i.tags=e.solution.tags;let t=i.strings;for(let o of e.solution.strings)t[o.key]&&(t[o.key].value=o.value);this.addLayerAndRequiredFieldStrings(e,t);let r={},s=new Set,a=this.buildSolution.items;for(let o of e.items){let n=a[o.id];if(n)if(n.title=o.title,n.description=o.description,n.type==="Web Map")this.applyWebMap(n);else if(n.type==="Feature Layer (hosted)"){this.applyFeatureService(n,o.id,!1);let d=S(n);n.data=d,r[o.id]=d}else n.type==="Feature Layer (hosted, view)"&&(this.applyFeatureService(n,o.id,!0),s.add(o.id))}for(let o of s){let n=a[o];n.data=r[n.source]}return this.structure}addLayerAndRequiredFieldStrings(e,i){for(let t of e.featureLayer?.layers||[]){i[`layer${t.id}`]={value:t.name,description:`Name for layer '${t.id}'`};for(let r of t.requiredFields||[])i[r.name]={value:r.alias||r.name,description:`Alias for required field '${r.name}'`}}}applyWebMap(e){if(!e.layerSources)return;for(let t of[...e.layers||[],...e.tables||[]]){let[r,s]=this.extractIdAndLayerId(t.url),a=this.llmFsLookup[r]?.[s];a&&(t.title=a.name)}if(!(e.layers?.length===0&&e.tables?.length===0))return;let i=crypto.randomUUID().replace(/-/gu,"").substring(0,10);for(let t of e.layerSources){let r=this.llmFsLookup[t];if(r)for(let[s,a]of Object.entries(r)){let o=Number(s),n=a.type.toLowerCase()==="table",d={id:`${i}-layer-${o}`,title:a.name,url:`{{${t}.layer${o}.url}}`,itemId:`{{${t}.layer${o}.itemId}}`};n?e.tables.unshift(d):(d.layerType="ArcGISFeatureLayer",e.layers.unshift(d))}}}extractIdAndLayerId(e){let i=e.replace(/[{}]/gu,"").split("."),t=i[0],r=Number.parseInt(i[1].replace("layer",""));return[t,r]}applyFeatureService(e,i,t=!1){let r=e.source||i,s=this.llmFsLookup[r];for(let o of[...e.service.layers,...e.service.tables])this.applyLayer(o,s,t);e.addLayers&&!t&&this.addNewLayers(e,s);let a=e.service.layers?.length===0&&e.service.tables?.length===0;t&&a&&this.addNewViewLayers(e,i,s)}addNewLayers(e,i){for(let[t,r]of Object.entries(i)){let s={id:Number(t)};this.applyLayer(s,i),r.type.toLowerCase()==="table"?e.service.tables.push(s):e.service.layers.push(s)}}addNewViewLayers(e,i,t){let r=e.source;for(let[s,a]of Object.entries(t)){let o=Number(s),n=a.type.toLowerCase()==="table",d={adminLayerInfo:{geometryField:n?null:{name:"Shape"},viewLayerDefinition:{sourceServiceName:`{{${r}.name}}`,sourceLayerId:o,sourceLayerFields:"*"}},id:o,name:a.name,extent:`{{${i}.solutionExtent}}`,maxRecordCount:2e3};n?e.service.tables.push(d):e.service.layers.push(d)}}applyLayer(e,i,t=!1){let r=i[e.id];if(!r||(e.name=r.name,e.description=r.description||"",t))return;let s=l.typeLookup[r.type.toLowerCase()]||r.type;s.toLowerCase()==="table"?e.type=s:e.geometryType=s,e.editFieldsInfo=this.editFieldsInfo(),e.globalIdField="globalid",e.objectIdField="objectid",e.uniqueIdField={name:"objectid",isSystemMaintained:!0},e.hasAttachments=!0,this.updateRelationships(e,i),this.updateFields(e,r),this.updateTemplates(e),this.updateDrawingInfo(e)}updateRelationships(e,i){let t=e.relationships||[];for(let r of t){let s=i[r.relatedTableId];s&&(r.name=s.name)}}updateFields(e,i){let t=[],r=[[!1,i.customFields],[!0,i.requiredFields],[!0,i.systemFields]];for(let[s,a]of r)if(Array.isArray(a))for(let o of a){let n={name:o.name,alias:o.alias,type:l.fieldTypeToEsri[o.type]||o.type,description:JSON.stringify({value:o.description,fieldValueType:""},null,0),domain:this.createDomain(o.choiceList,o.name),required:s};o.type?.toLowerCase()==="string"&&(n.length=o.length??256),(o.type==="oid"||o.type==="globalid")&&(n.editable=!1,n.nullable=!1),t.push(n)}e.fields=t}updateTemplates(e){let i=l.drawingToolLookup[e.geometryType||e.type];e.templates??=[{name:e.name,description:"",prototype:{attributes:{}}}];for(let t of e.templates)t.drawingTool=i}updateDrawingInfo(e){if(e.geometryType==="esriGeometryPoint")e.drawingInfo=g(this.nextRendererColorIndex(e.geometryType));else if(e.geometryType==="esriGeometryPolyline")e.drawingInfo=F(this.nextRendererColorIndex(e.geometryType));else if(e.geometryType==="esriGeometryPolygon")e.drawingInfo=L(this.nextRendererColorIndex(e.geometryType));else return}nextRendererColorIndex(e){let i=this.rendererColorCounters[e];return i===void 0?0:(this.rendererColorCounters[e]=i+1,i)}resetRendererColorCounters(){this.rendererColorCounters={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:4}}createDomain(e,i){return e?{type:"codedValue",name:`${i}_${crypto.randomUUID().replace(/-/gu,"")}`,codedValues:e.map(t=>({name:t,code:t}))}:null}editFieldsInfo(){return{creationDateField:"created_date",creatorField:"created_user",editDateField:"last_edited_date",editorField:"last_edited_user"}}};function S(l){let e=l.service,i={layers:[],tables:[]};for(let t of e.layers||[])i.layers.push({id:t.id,formInfo:h(t),popupInfo:b(t),layerDefinition:t.drawingInfo});for(let t of e.tables||[])i.tables.push({id:t.id,formInfo:h(t),popupInfo:b(t)});return i}function h(l){let e=[];e.push({label:"{{params.buildSolution.solution.strings.attachments.value||Attachments}}",type:"attachment",allowUserRename:!0,attachmentKeyword:"general",displayFilename:!1,editableExpression:"expr/system/true",filenameExpression:'StandardizeFilename(`${$formElement.attachmentKeyword}_${Text(Now(), "YMMDDHHmmss")}`)',inputType:{type:"attachment",attachmentAssociationType:"any",inputTypes:[{type:"audio",inputMethod:"any"},{type:"document"},{type:"image",inputMethod:"any"},{type:"video",inputMethod:"any"}]},useOriginalFilename:!0});for(let t of l.fields)t.required||e.push({label:t.alias,type:"field",editableExpression:"expr/system/true",fieldName:t.name,inputType:I(t.type,t.domain,t.length)});let i=l.relationships||[];for(let t of i)e.push({description:"",label:t.name,type:"relationship",displayCount:3,displayType:"list",editableExpression:"expr/system/true",orderByFields:[{field:"created_date",order:"asc"}],relationshipId:t.id});return{formElements:e,expressionInfos:[{expression:"false",name:"expr/system/false",returnType:"boolean",title:"False"},{expression:"true",name:"expr/system/true",returnType:"boolean",title:"True"}],title:l.name}}function b(l){let e=[],i=[];for(let r of l.fields)r.required||i.push({fieldName:r.name,isEditable:!0,label:r.alias,visible:!0});e.push({type:"fields",description:"",fieldInfos:i});let t=l.relationships||[];if(t.length&&l.type!=="Table")for(let r of t)e.push({type:"relationship",description:"",displayCount:3,displayType:"list",orderByFields:[{field:"created_date",order:"asc"}],relationshipId:r.id});return e.push({type:"attachments",description:"",displayType:"auto",title:""}),{popupElements:e,showLastEditInfo:!1,title:l.name}}function I(l,e,i){return l==="esriFieldTypeString"&&!e&&i&&i>256?{type:"text-area",maxLength:i}:l==="esriFieldTypeString"&&!e?{type:"text-box",maxLength:i||256,minLength:0}:l==="esriFieldTypeString"&&e?{type:"combo-box",showNoValueOption:!1}:["esriFieldTypeInteger","esriFieldTypeDouble"].includes(l)?{type:"text-box",minLength:0}:l==="esriFieldTypeDate"?{type:"datetime-picker",includeTime:!0}:{type:"text-box",maxLength:i||256,minLength:0}}export{f as a};
|
|
2
|
+
var p=[{name:"blue",fill:[0,121,193],outline:[0,94,149]},{name:"red",fill:[222,41,0],outline:[171,60,22]},{name:"orange",fill:[209,126,33],outline:[173,101,17]},{name:"purple",fill:[144,129,188],outline:[116,97,168]},{name:"green",fill:[90,147,89],outline:[51,128,51]},{name:"black",fill:[89,89,89],outline:[50,50,50]}];function c(l=0){let e=(l%p.length+p.length)%p.length,i=p[e];return{fill:[...i.fill],outline:[...i.outline]}}function g(l=0){let{fill:e,outline:i}=c(l),t=[...e,153],o=[...i,255];return{renderer:{type:"simple",symbol:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,name:"Fill",anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:12,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[0,5],[.87,4.92],[1.71,4.7],[2.5,4.33],[3.21,3.83],[3.83,3.21],[4.33,2.5],[4.7,1.71],[4.92,.87],[5,0],[4.92,-.87],[4.7,-1.71],[4.33,-2.5],[3.83,-3.21],[3.21,-3.83],[2.5,-4.33],[1.71,-4.7],[.87,-4.92],[0,-5],[-.87,-4.92],[-1.71,-4.7],[-2.5,-4.33],[-3.21,-3.83],[-3.83,-3.21],[-4.33,-2.5],[-4.7,-1.71],[-4.92,-.87],[-5,0],[-4.92,.87],[-4.7,1.71],[-4.33,2.5],[-3.83,3.21],[-3.21,3.83],[-2.5,4.33],[-1.71,4.7],[-.87,4.92],[0,5]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,name:"Outline",capStyle:"Round",joinStyle:"Round",lineStyle3D:"Strip",miterLimit:4,width:1.5,height3D:1,anchor3D:"Center",color:o},{type:"CIMSolidFill",enable:!0,name:"Fill",color:t}],angleAlignment:"Map"}}],scaleSymbolsProportionally:!0,respectFrame:!0,rotation:360},{type:"CIMVectorMarker",enable:!0,name:"WhiteOutline",colorLocked:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:15.75,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[0,5],[.87,4.92],[1.71,4.7],[2.5,4.33],[3.21,3.83],[3.83,3.21],[4.33,2.5],[4.7,1.71],[4.92,.87],[5,0],[4.92,-.87],[4.7,-1.71],[4.33,-2.5],[3.83,-3.21],[3.21,-3.83],[2.5,-4.33],[1.71,-4.7],[.87,-4.92],[0,-5],[-.87,-4.92],[-1.71,-4.7],[-2.5,-4.33],[-3.21,-3.83],[-3.83,-3.21],[-4.33,-2.5],[-4.7,-1.71],[-4.92,-.87],[-5,0],[-4.92,.87],[-4.7,1.71],[-4.33,2.5],[-3.83,3.21],[-3.21,3.83],[-2.5,4.33],[-1.71,4.7],[-.87,4.92],[0,5]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,name:"WhiteOutline",color:[255,255,255,153]}],angleAlignment:"Map"}}],scaleSymbolsProportionally:!0,respectFrame:!0,rotation:360}],haloSize:.75,scaleX:1,angleAlignment:"Display",angle:360}}}}}function F(l=0){let{fill:e}=c(l);return{renderer:{type:"simple",symbol:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,name:"Fill",capStyle:"Round",joinStyle:"Miter",lineStyle3D:"Strip",miterLimit:4,width:4.5,height3D:1,anchor3D:"Center",color:[...e,255]},{type:"CIMSolidStroke",enable:!0,name:"Outline",colorLocked:!0,capStyle:"Round",joinStyle:"Miter",lineStyle3D:"Strip",miterLimit:4,width:6,height3D:1,anchor3D:"Center",color:[255,255,255,153]}]}}}}}function L(l=0){let{fill:e,outline:i}=c(l),t=[...e,153];return{renderer:{type:"simple",symbol:{type:"CIMSymbolReference",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,name:"Outline",capStyle:"Round",joinStyle:"Round",lineStyle3D:"Strip",miterLimit:4,width:1.5,height3D:1,anchor3D:"Center",color:[...i,255]},{type:"CIMSolidFill",enable:!0,name:"Fill",color:t}],angleAlignment:"Map"}}}}}var f=class l{constructor(e){this.llmFsLookup={},this.rendererColorCounters={esriGeometryPoint:0,esriGeometryPolyline:0,esriGeometryPolygon:0},this.structure=e,this.buildSolution=this.structure?.buildSolution}static{this.typeLookup={point:"esriGeometryPoint",polyline:"esriGeometryPolyline",polygon:"esriGeometryPolygon"}}static{this.simpleTypeLookup={esriGeometryPoint:"Point",esriGeometryPolyline:"Polyline",esriGeometryPolygon:"Polygon"}}static{this.drawingToolLookup={esriGeometryPoint:"esriFeatureEditToolPoint",esriGeometryPolyline:"esriFeatureEditToolLine",esriGeometryPolygon:"esriFeatureEditToolPolygon",Table:"esriFeatureEditToolNone"}}static{this.fieldTypeToEsri={string:"esriFieldTypeString",integer:"esriFieldTypeInteger",double:"esriFieldTypeDouble",date:"esriFieldTypeDate",guid:"esriFieldTypeGUID",globalid:"esriFieldTypeGlobalID",oid:"esriFieldTypeOID"}}static{this.fieldTypeToSimple=Object.fromEntries(Object.entries(l.fieldTypeToEsri).map(([e,i])=>[i,e]))}dumpToLlmTemplate(){let e=this.structure?.buildSolution?.solution,i=Object.entries(e?.strings||{}).map(([r,n])=>({key:r,value:n.value,description:n.description})),t={title:e?.title,description:e?.description,tags:e?.tags,strings:i},o=this.structure?.buildSolution?.items,s=Object.entries(o||{}).map(([r,n])=>({id:r,title:n.title,description:n.description,type:n.type})),a=null;for(let[r,n]of Object.entries(o||{})){if(n.type!=="Feature Layer (hosted)")continue;let d=[];for(let y of n.service?.layers||[]){let u=this.getFields(y),m={id:y.id,type:"",typeMutable:!0,name:y.name,customFields:[],requiredFields:u,systemFields:[]};y.geometryType&&(m.type=l.simpleTypeLookup[y.geometryType]||"",m.typeMutable=!1),d.push(m)}for(let y of n.service?.tables||[]){let u=this.getFields(y);d.push({id:y.id,type:"Table",typeMutable:!1,name:y.name,customFields:[],requiredFields:u,systemFields:[]})}a={itemId:r,addLayers:n.addLayers,layers:d};break}return{solution:t,items:s,featureLayer:a??{itemId:"",addLayers:!1,layers:[]}}}getFields(e){let i=[];for(let t of e.fields||[])i.push({name:t.name,type:l.fieldTypeToSimple[t.type]||t.type,alias:t.alias,description:l.getFieldDescription(t.description),choiceList:l.getFieldDomain(t.domain),length:t.length});return i}static getFieldDescription(e){if(e)try{return JSON.parse(e).value||e}catch{return e}}static getFieldDomain(e){if(e)return e.codedValues?.map(i=>i.code)}applyLlmTemplate(e){let i=this.buildSolution.solution;if(this.resetRendererColorCounters(),this.llmFsLookup={},e.featureLayer?.itemId){this.llmFsLookup[e.featureLayer.itemId]={};for(let r of e.featureLayer.layers)this.llmFsLookup[e.featureLayer.itemId][r.id]=r}for(let[r,n]of Object.entries(this.buildSolution.items))n.type==="Feature Layer (hosted, view)"&&(this.llmFsLookup[r]={...this.llmFsLookup[n.source]});i.title=e.solution.title,i.description=e.solution.description,i.tags=e.solution.tags;let t=i.strings;for(let r of e.solution.strings)t[r.key]&&(t[r.key].value=r.value);this.addLayerAndRequiredFieldStrings(e,t);let o={},s=new Set,a=this.buildSolution.items;for(let r of e.items){let n=a[r.id];if(n)if(n.title=r.title,n.description=r.description,n.type==="Web Map")this.applyWebMap(n);else if(n.type==="Feature Layer (hosted)"){this.applyFeatureService(n,r.id,!1);let d=S(n);n.data=d,o[r.id]=d}else n.type==="Feature Layer (hosted, view)"&&(this.applyFeatureService(n,r.id,!0),s.add(r.id))}for(let r of s){let n=a[r];n.data=o[n.source]}return this.structure}addLayerAndRequiredFieldStrings(e,i){for(let t of e.featureLayer?.layers||[]){i[`layer${t.id}`]={value:t.name,description:`Name for layer '${t.id}'`};for(let o of t.requiredFields||[])i[o.name]={value:o.alias||o.name,description:`Alias for required field '${o.name}'`}}}applyWebMap(e){if(!e.layerSources)return;for(let t of[...e.layers||[],...e.tables||[]]){let[o,s]=this.extractIdAndLayerId(t.url),a=this.llmFsLookup[o]?.[s];a&&(t.title=a.name)}if(!(e.layers?.length===0&&e.tables?.length===0))return;let i=crypto.randomUUID().replace(/-/gu,"").substring(0,10);for(let t of e.layerSources){let o=this.llmFsLookup[t];if(o)for(let[s,a]of Object.entries(o)){let r=Number(s),n=a.type.toLowerCase()==="table",d={id:`${i}-layer-${r}`,title:a.name,url:`{{${t}.layer${r}.url}}`,itemId:`{{${t}.layer${r}.itemId}}`};n?e.tables.unshift(d):(d.layerType="ArcGISFeatureLayer",e.layers.unshift(d))}}}extractIdAndLayerId(e){let i=e.replace(/[{}]/gu,"").split("."),t=i[0],o=Number.parseInt(i[1].replace("layer",""));return[t,o]}applyFeatureService(e,i,t=!1){let o=e.source||i,s=this.llmFsLookup[o];for(let r of[...e.service.layers,...e.service.tables])this.applyLayer(r,s,t);e.addLayers&&!t&&this.addNewLayers(e,s);let a=e.service.layers?.length===0&&e.service.tables?.length===0;t&&a&&this.addNewViewLayers(e,i,s)}addNewLayers(e,i){for(let[t,o]of Object.entries(i)){let s={id:Number(t)};this.applyLayer(s,i),o.type.toLowerCase()==="table"?e.service.tables.push(s):e.service.layers.push(s)}}addNewViewLayers(e,i,t){let o=e.source;for(let[s,a]of Object.entries(t)){let r=Number(s),n=a.type.toLowerCase()==="table",d={adminLayerInfo:{geometryField:n?null:{name:"Shape"},viewLayerDefinition:{sourceServiceName:`{{${o}.name}}`,sourceLayerId:r,sourceLayerFields:"*"}},id:r,name:a.name,extent:`{{${i}.solutionExtent}}`,maxRecordCount:2e3};n?e.service.tables.push(d):e.service.layers.push(d)}}applyLayer(e,i,t=!1){let o=i[e.id];if(!o||(e.name=o.name,e.description=o.description||"",t))return;let s=l.typeLookup[o.type.toLowerCase()]||o.type;s.toLowerCase()==="table"?e.type=s:e.geometryType=s,e.editFieldsInfo=this.editFieldsInfo(),e.globalIdField="globalid",e.objectIdField="objectid",e.uniqueIdField={name:"objectid",isSystemMaintained:!0},e.hasAttachments=!0,this.updateRelationships(e,i),this.updateFields(e,o),this.updateTemplates(e),this.updateDrawingInfo(e)}updateRelationships(e,i){let t=e.relationships||[];for(let o of t){let s=i[o.relatedTableId];s&&(o.name=s.name)}}updateFields(e,i){let t=[],o=[[!1,i.customFields],[!0,i.requiredFields],[!0,i.systemFields]];for(let[s,a]of o)if(Array.isArray(a))for(let r of a){let n=r.type?.toLowerCase()??"",d={name:r.name,alias:r.alias,type:l.fieldTypeToEsri[n]||n||r.type,description:JSON.stringify({value:r.description,fieldValueType:""},null,0),domain:this.createDomain(r.choiceList,r.name),required:s};n==="string"&&(d.length=r.length??256),(n==="oid"||n==="globalid")&&(d.editable=!1,d.nullable=!1),t.push(d)}e.fields=t}updateTemplates(e){let i=l.drawingToolLookup[e.geometryType||e.type];e.templates??=[{name:e.name,description:"",prototype:{attributes:{}}}];for(let t of e.templates)t.drawingTool=i}updateDrawingInfo(e){if(e.geometryType==="esriGeometryPoint")e.drawingInfo=g(this.nextRendererColorIndex(e.geometryType));else if(e.geometryType==="esriGeometryPolyline")e.drawingInfo=F(this.nextRendererColorIndex(e.geometryType));else if(e.geometryType==="esriGeometryPolygon")e.drawingInfo=L(this.nextRendererColorIndex(e.geometryType));else return}nextRendererColorIndex(e){let i=this.rendererColorCounters[e];return i===void 0?0:(this.rendererColorCounters[e]=i+1,i)}resetRendererColorCounters(){this.rendererColorCounters={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:4}}createDomain(e,i){return e?{type:"codedValue",name:`${i}_${crypto.randomUUID().replace(/-/gu,"")}`,codedValues:e.map(t=>({name:t,code:t}))}:null}editFieldsInfo(){return{creationDateField:"created_date",creatorField:"created_user",editDateField:"last_edited_date",editorField:"last_edited_user"}}};function S(l){let e=l.service,i={layers:[],tables:[]};for(let t of e.layers||[])i.layers.push({id:t.id,formInfo:h(t),popupInfo:b(t),layerDefinition:t.drawingInfo});for(let t of e.tables||[])i.tables.push({id:t.id,formInfo:h(t),popupInfo:b(t)});return i}function h(l){let e=[];e.push({label:"{{params.buildSolution.solution.strings.attachments.value||Attachments}}",type:"attachment",allowUserRename:!0,attachmentKeyword:"general",displayFilename:!1,editableExpression:"expr/system/true",filenameExpression:'StandardizeFilename(`${$formElement.attachmentKeyword}_${Text(Now(), "YMMDDHHmmss")}`)',inputType:{type:"attachment",attachmentAssociationType:"any",inputTypes:[{type:"audio",inputMethod:"any"},{type:"document"},{type:"image",inputMethod:"any"},{type:"video",inputMethod:"any"}]},useOriginalFilename:!0});for(let t of l.fields)t.required||e.push({label:t.alias,type:"field",editableExpression:"expr/system/true",fieldName:t.name,inputType:I(t.type,t.domain,t.length)});let i=l.relationships||[];for(let t of i)e.push({description:"",label:t.name,type:"relationship",displayCount:3,displayType:"list",editableExpression:"expr/system/true",orderByFields:[{field:"created_date",order:"asc"}],relationshipId:t.id});return{formElements:e,expressionInfos:[{expression:"false",name:"expr/system/false",returnType:"boolean",title:"False"},{expression:"true",name:"expr/system/true",returnType:"boolean",title:"True"}],title:l.name}}function b(l){let e=[],i=[];for(let o of l.fields)o.required||i.push({fieldName:o.name,isEditable:!0,label:o.alias,visible:!0});e.push({type:"fields",description:"",fieldInfos:i});let t=l.relationships||[];if(t.length&&l.type!=="Table")for(let o of t)e.push({type:"relationship",description:"",displayCount:3,displayType:"list",orderByFields:[{field:"created_date",order:"asc"}],relationshipId:o.id});return e.push({type:"attachments",description:"",displayType:"auto",title:""}),{popupElements:e,showLastEditInfo:!1,title:l.name}}function I(l,e,i){return l==="esriFieldTypeString"&&!e&&i&&i>256?{type:"text-area",maxLength:i}:l==="esriFieldTypeString"&&!e?{type:"text-box",maxLength:i||256,minLength:0}:l==="esriFieldTypeString"&&e?{type:"combo-box",showNoValueOption:!1}:["esriFieldTypeInteger","esriFieldTypeDouble"].includes(l)?{type:"text-box",minLength:0}:l==="esriFieldTypeDate"?{type:"datetime-picker",includeTime:!0}:{type:"text-box",maxLength:i||256,minLength:0}}export{f as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as o}from"./
|
|
2
|
+
import{b as o}from"./MXPZF4RB.js";import{F as r,G as l,H as i,h as s,i as e}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var h=s`:host{display:block}calcite-input-message{margin-bottom:var(--calcite-space-lg)}`,a=class extends i{constructor(){super(...arguments),this.#e=r(),this.disabled=!1,this.showErrorMessage=!1}static{this.properties={selectedValue:3,disabled:7,labels:0,showErrorMessage:5}}static{this.styles=h}#e;get _radioButtonData(){return[{label:this.labels.selectFeature,value:"select-feature"},{label:this.labels.drawGraphic,value:"draw-graphic"},{label:this.labels.searchLocation,value:"search-location"}]}async setFocus(){await this.#e?.value?.setFocus({focusVisible:!0})}_renderErrorMessage(){return this.showErrorMessage?e`<calcite-input-message icon=exclamation-mark-triangle status=invalid><span>${this.labels.errorMessage}</span></calcite-input-message>`:null}render(){let c=this.labels.title,u=this.labels.groupName;return e`<calcite-label>${c}</calcite-label><calcite-radio-button-group .name=${u} .disabled=${this.disabled} layout=vertical ${l(this.#e)}>${this._radioButtonData.map(({label:n,value:t})=>e`<calcite-radio-button .value=${t} .labelText=${n} .checked=${this.selectedValue===t}></calcite-radio-button>`)}</calcite-radio-button-group>${this._renderErrorMessage()}`}};o("instant-apps-buffer-input-radiogroup",a);export{a as InstantAppsBufferInputRadiogroup};
|