@agentic-ui-experience/ui-arcgis 0.0.1-beta.4 → 0.0.1-beta.5
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/README.md +65 -2
- package/dist/ArcGISMapGraphicsController.d.ts +44 -0
- package/dist/ArcGISMapGraphicsController.js +1 -0
- package/dist/ArcGISMapView.d.ts +17 -2
- package/dist/ArcGISMapView.js +1 -1
- package/dist/api.d.ts +549 -0
- package/dist/api.js +1 -1
- package/dist/catalog.d.ts +324 -0
- package/dist/catalog.js +1 -1
- package/dist/controller/api.d.ts +30 -30
- package/dist/controller/api.js +1 -1
- package/dist/controller/createArcGISMapController.js +1 -1
- package/dist/controller/featureFilter.d.ts +8 -8
- package/dist/controller/featureFilter.js +1 -1
- package/dist/controller/featureFilterExpression.js +1 -1
- package/dist/controller/featureFilterRuntime.js +1 -1
- package/dist/controller/featureQuery.d.ts +4 -4
- package/dist/controller/featureQuery.js +1 -1
- package/dist/controller/featureQueryExpression.js +1 -1
- package/dist/controller/featureQueryRuntime.js +1 -1
- package/dist/controller/useArcGISMapController.js +1 -1
- package/dist/graphics.d.ts +38 -0
- package/dist/graphics.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/prompt.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5acca8=_0xbf13;(function(_0x515ca9,_0x28390e){const _0x292a5c=_0xbf13,_0x46c1ea=_0x515ca9();while(!![]){try{const _0x5d1840=parseInt(_0x292a5c(0xf1))/0x1*(-parseInt(_0x292a5c(0xd5))/0x2)+parseInt(_0x292a5c(0xe0))/0x3*(-parseInt(_0x292a5c(0xf3))/0x4)+-parseInt(_0x292a5c(0x105))/0x5*(-parseInt(_0x292a5c(0xd9))/0x6)+-parseInt(_0x292a5c(0xf6))/0x7+-parseInt(_0x292a5c(0xfa))/0x8*(-parseInt(_0x292a5c(0xea))/0x9)+parseInt(_0x292a5c(0xd1))/0xa*(-parseInt(_0x292a5c(0x103))/0xb)+parseInt(_0x292a5c(0xf0))/0xc;if(_0x5d1840===_0x28390e)break;else _0x46c1ea['push'](_0x46c1ea['shift']());}catch(_0x45a754){_0x46c1ea['push'](_0x46c1ea['shift']());}}}(_0x2bd0,0xa7947));import{ArcGISFeatureQueryRequestSchema}from'./featureQuery.js';function _0x2bd0(){const _0x481537=['num','6818184pnLAyt','queryFailed','query-failed','string','aborted','code','21561384tzyKRe','106jqqBgG','flatMap','68zodAMS','signal','data','2069389HgKvLU','unsupported-layer','predicates','message','8yrgayS','object','isArray','field-not-found','fieldName','map','groupByFields','safeParse','isSafeInteger','11IEABVK','outputName','13270NiyXKI','attributes','resolveLayer','queryFeatureCount','metadataFailed','layer-not-found','Feature\x20layer\x20metadata\x20could\x20not\x20be\x20loaded.','orderBy','invalidPredicate','isReady','count','getTimeZone','queryFeatureLayer','Feature\x20query\x20failed.','success','6100890sVWOkN','get','unknown','feature','16498EEPxPF','type','features','\x20was\x20not\x20found.','300XxLXNk','statisticType','fieldsIndex','mode','number','has','stale','38919PEcKBE','Feature\x20query\x20predicate\x20is\x20invalid.','Feature\x20query\x20returned\x20an\x20invalid\x20feature\x20collection.','invalid-predicate','Map\x20controller\x20is\x20no\x20longer\x20active.','name','integer','slice','fields'];_0x2bd0=function(){return _0x481537;};return _0x2bd0();}function _0xbf13(_0x144f3d,_0x273926){_0x144f3d=_0x144f3d-0xc7;const _0x2bd058=_0x2bd0();let _0xbf136a=_0x2bd058[_0x144f3d];return _0xbf136a;}import{compileFeatureQueryProperties}from'./featureQueryExpression.js';const MESSAGES={'cancelled':'Feature\x20query\x20was\x20cancelled.','stale':_0x5acca8(0xe4),'notReady':'ArcGIS\x20map\x20view\x20is\x20not\x20ready.','invalidRequest':'Feature\x20query\x20request\x20is\x20invalid.','fieldNotFound':'Feature\x20query\x20references\x20an\x20unavailable\x20field.','invalidPredicate':_0x5acca8(0xe1),'metadataFailed':_0x5acca8(0xc8),'queryFailed':_0x5acca8(0xcf)};function queryFailure(_0x423308,_0x5af6d9,_0x39e09a){const _0x46d84e=_0x5acca8;return{'ok':![],'operation':_0x46d84e(0xce),'layerId':_0x423308,'code':_0x5af6d9,'message':_0x39e09a};}function unavailableLayerMessage(_0x5879d){const _0x433d22=_0x5acca8;return'Layer\x20'+_0x5879d+_0x433d22(0xd8);}function unsupportedLayerMessage(_0x488b7b){return'Layer\x20'+_0x488b7b+'\x20does\x20not\x20support\x20feature\x20queries.';}function requestedFieldNames(_0x2fd781){const _0x1aa25a=_0x5acca8;return[..._0x2fd781[_0x1aa25a(0xf8)]['map'](({fieldName:_0x7936a7})=>_0x7936a7),..._0x2fd781['outFields'],..._0x2fd781[_0x1aa25a(0x100)],..._0x2fd781['statistics'][_0x1aa25a(0xf2)](({fieldName:_0x398b97})=>_0x398b97===null?[]:[_0x398b97]),..._0x2fd781[_0x1aa25a(0xc9)]['map'](({fieldName:_0x2f0171})=>_0x2f0171)];}function resultColumns(_0x213dcc,_0x11afe4){const _0x55c528=_0x5acca8,_0x32f2d3=new Map(_0x11afe4['map'](_0x43cf34=>[_0x43cf34[_0x55c528(0xe5)],_0x43cf34]));if(_0x213dcc['mode']===_0x55c528(0xd7))return _0x213dcc['outFields']['map'](_0xb25ccb=>{const _0x494b5d=_0x55c528,_0x15ec95=_0x32f2d3[_0x494b5d(0xd2)](_0xb25ccb);return{'name':_0xb25ccb,'alias':_0x15ec95['alias'],'type':_0x15ec95[_0x494b5d(0xd6)]};});if(_0x213dcc[_0x55c528(0xdc)]===_0x55c528(0xcc))return[];return[..._0x213dcc[_0x55c528(0x100)][_0x55c528(0xff)](_0xee311b=>{const _0x4eb618=_0x55c528,_0x3f7409=_0x32f2d3['get'](_0xee311b);return{'name':_0xee311b,'alias':_0x3f7409['alias'],'type':_0x3f7409[_0x4eb618(0xd6)]};}),..._0x213dcc['statistics'][_0x55c528(0xff)](_0x58aff8=>({'name':_0x58aff8[_0x55c528(0x104)],'alias':_0x58aff8[_0x55c528(0x104)],'type':_0x58aff8[_0x55c528(0xda)]===_0x55c528(0xcc)?_0x55c528(0xe6):_0x32f2d3['get'](_0x58aff8[_0x55c528(0xfe)])['type']}))];}function projectValue(_0x14f568){const _0xf95031=_0x5acca8;if(_0x14f568===void 0x0)return null;if(_0x14f568 instanceof Date)return _0x14f568['toISOString']();if(_0x14f568===null||typeof _0x14f568===_0xf95031(0xed)||typeof _0x14f568==='boolean')return _0x14f568;if(typeof _0x14f568===_0xf95031(0xdd)&&Number['isFinite'](_0x14f568))return _0x14f568;throw new TypeError('Feature\x20query\x20returned\x20an\x20unsupported\x20attribute\x20value.');}function projectRows(_0x15d751,_0x2fd745,_0x26799b){const _0x60d04d=_0x5acca8;if(!Array[_0x60d04d(0xfc)](_0x15d751))throw new TypeError(_0x60d04d(0xe2));const _0x15a693=_0x15d751[_0x60d04d(0xe7)](0x0,_0x26799b)['map'](_0x34c76f=>{const _0x2fe60a=_0x60d04d;if(typeof _0x34c76f!==_0x2fe60a(0xfb)||_0x34c76f===null||!(_0x2fe60a(0x106)in _0x34c76f)||typeof _0x34c76f['attributes']!=='object'||_0x34c76f['attributes']===null||Array[_0x2fe60a(0xfc)](_0x34c76f[_0x2fe60a(0x106)]))throw new TypeError('Feature\x20query\x20returned\x20invalid\x20attributes.');const _0x46e0b1=_0x34c76f['attributes'];return Object['fromEntries'](_0x2fd745[_0x2fe60a(0xff)](({name:_0x4f8224})=>[_0x4f8224,projectValue(_0x46e0b1[_0x4f8224])]));});return{'rows':_0x15a693,'extra':_0x15d751['length']>_0x26799b};}function createFeatureQueryRuntime(_0x4da561){let _0x3c6754=![],_0x120fe7=0x0;function _0x5e7c6c(_0xa8df16,_0x175638){const _0x134727=_0xbf13;if(_0x3c6754||_0x4da561['isDisposed']()||_0xa8df16!==_0x120fe7)return{'code':'stale-controller','message':MESSAGES[_0x134727(0xdf)]};if(_0x175638?.[_0x134727(0xee)])return{'code':'cancelled','message':MESSAGES['cancelled']};if(!_0x4da561[_0x134727(0xcb)]())return{'code':'map-not-ready','message':MESSAGES['notReady']};return void 0x0;}const _0x4ef8bd=async(_0x504ea6,_0x147570)=>{const _0x12f9bd=_0xbf13,_0x594776=typeof _0x504ea6?.['layerId']===_0x12f9bd(0xed)&&_0x504ea6['layerId']['length']>0x0?_0x504ea6['layerId']:_0x12f9bd(0xd3),_0x3b8afc=ArcGISFeatureQueryRequestSchema[_0x12f9bd(0x101)](_0x504ea6);if(!_0x3b8afc[_0x12f9bd(0xd0)])return queryFailure(_0x594776,'invalid-predicate',MESSAGES['invalidRequest']);const {layerId:_0x2c9df5}=_0x3b8afc[_0x12f9bd(0xf5)],_0x5f3164=_0x120fe7;let _0x4bc97a=_0x5e7c6c(_0x5f3164,_0x147570?.[_0x12f9bd(0xf4)]);if(_0x4bc97a)return queryFailure(_0x2c9df5,_0x4bc97a['code'],_0x4bc97a['message']);const _0x1ea6a6=_0x4da561[_0x12f9bd(0x107)](_0x2c9df5);if(!_0x1ea6a6)return queryFailure(_0x2c9df5,_0x12f9bd(0xc7),unavailableLayerMessage(_0x2c9df5));if(_0x1ea6a6['type']!==_0x12f9bd(0xd4))return queryFailure(_0x2c9df5,_0x12f9bd(0xf7),unsupportedLayerMessage(_0x2c9df5));try{await _0x1ea6a6['load']({'signal':_0x147570?.[_0x12f9bd(0xf4)]});}catch{return _0x4bc97a=_0x5e7c6c(_0x5f3164,_0x147570?.[_0x12f9bd(0xf4)]),queryFailure(_0x2c9df5,_0x4bc97a?.['code']??_0x12f9bd(0xec),_0x4bc97a?.[_0x12f9bd(0xf9)]??MESSAGES[_0x12f9bd(0x109)]);}_0x4bc97a=_0x5e7c6c(_0x5f3164,_0x147570?.['signal']);if(_0x4bc97a)return queryFailure(_0x2c9df5,_0x4bc97a[_0x12f9bd(0xef)],_0x4bc97a['message']);let _0x49cf07;try{_0x49cf07=_0x1ea6a6[_0x12f9bd(0xe8)]['map'](_0xaace9f=>({'name':_0xaace9f[_0x12f9bd(0xe5)],'alias':_0xaace9f['alias']??'','type':_0xaace9f['type'],'timeZone':_0x1ea6a6[_0x12f9bd(0xdb)][_0x12f9bd(0xcd)](_0xaace9f)??null}));}catch{return queryFailure(_0x2c9df5,'query-failed',MESSAGES[_0x12f9bd(0x109)]);}const _0x10b235=new Set(_0x49cf07[_0x12f9bd(0xff)](({name:_0x413647})=>_0x413647));if(requestedFieldNames(_0x3b8afc['data'])['some'](_0x2a6f92=>!_0x10b235[_0x12f9bd(0xde)](_0x2a6f92)))return queryFailure(_0x2c9df5,_0x12f9bd(0xfd),MESSAGES['fieldNotFound']);let _0x29c607;try{_0x29c607=compileFeatureQueryProperties(_0x3b8afc[_0x12f9bd(0xf5)],_0x49cf07);}catch{return queryFailure(_0x2c9df5,_0x12f9bd(0xe3),MESSAGES[_0x12f9bd(0xca)]);}_0x4bc97a=_0x5e7c6c(_0x5f3164,_0x147570?.[_0x12f9bd(0xf4)]);if(_0x4bc97a)return queryFailure(_0x2c9df5,_0x4bc97a[_0x12f9bd(0xef)],_0x4bc97a[_0x12f9bd(0xf9)]);if(_0x3b8afc['data'][_0x12f9bd(0xdc)]==='count'){let _0x3c9724;try{const _0x19a73e={..._0x29c607};Reflect['deleteProperty'](_0x19a73e,_0x12f9bd(0xe9)),_0x3c9724=await _0x1ea6a6[_0x12f9bd(0x108)](_0x19a73e,{'signal':_0x147570?.[_0x12f9bd(0xf4)]});}catch{return _0x4bc97a=_0x5e7c6c(_0x5f3164,_0x147570?.[_0x12f9bd(0xf4)]),queryFailure(_0x2c9df5,_0x4bc97a?.[_0x12f9bd(0xef)]??_0x12f9bd(0xec),_0x4bc97a?.[_0x12f9bd(0xf9)]??MESSAGES[_0x12f9bd(0xeb)]);}_0x4bc97a=_0x5e7c6c(_0x5f3164,_0x147570?.[_0x12f9bd(0xf4)]);if(_0x4bc97a)return queryFailure(_0x2c9df5,_0x4bc97a['code'],_0x4bc97a['message']);if(!Number[_0x12f9bd(0x102)](_0x3c9724)||_0x3c9724<0x0)return queryFailure(_0x2c9df5,_0x12f9bd(0xec),MESSAGES[_0x12f9bd(0xeb)]);return{'ok':!![],'operation':'queryFeatureLayer','layer':{'id':_0x1ea6a6['id'],'title':_0x1ea6a6['title']??''},'mode':_0x12f9bd(0xcc),'columns':[],'rows':[],'count':_0x3c9724,'truncated':![]};}let _0x48da76;try{_0x48da76=await _0x1ea6a6['queryFeatures'](_0x29c607,{'signal':_0x147570?.['signal']});}catch{return _0x4bc97a=_0x5e7c6c(_0x5f3164,_0x147570?.['signal']),queryFailure(_0x2c9df5,_0x4bc97a?.['code']??'query-failed',_0x4bc97a?.['message']??MESSAGES[_0x12f9bd(0xeb)]);}_0x4bc97a=_0x5e7c6c(_0x5f3164,_0x147570?.[_0x12f9bd(0xf4)]);if(_0x4bc97a)return queryFailure(_0x2c9df5,_0x4bc97a['code'],_0x4bc97a['message']);try{const _0x462eb3=resultColumns(_0x3b8afc[_0x12f9bd(0xf5)],_0x49cf07),{rows:_0x39a353,extra:_0x475b38}=projectRows(_0x48da76['features'],_0x462eb3,_0x3b8afc['data']['resultLimit']);return{'ok':!![],'operation':'queryFeatureLayer','layer':{'id':_0x1ea6a6['id'],'title':_0x1ea6a6['title']??''},'mode':_0x3b8afc[_0x12f9bd(0xf5)]['mode'],'columns':_0x462eb3,'rows':_0x39a353,'count':null,'truncated':_0x48da76['exceededTransferLimit']===!![]||_0x475b38};}catch{return queryFailure(_0x2c9df5,_0x12f9bd(0xec),MESSAGES[_0x12f9bd(0xeb)]);}};return{'queryFeatureLayer':_0x4ef8bd,'dispose'(){if(_0x3c6754)return;_0x3c6754=!![],_0x120fe7+=0x1;}};}export{createFeatureQueryRuntime};
|
|
1
|
+
const _0x1e0a3e=_0x2e1f;function _0x50e3(){const _0x17062e=['511376HkxBqB','fields','message','field-not-found','3226995TibROJ','fieldNotFound','name','1448vStyyW','slice','outFields','features','safeParse','getTimeZone','toISOString','1435TZsRqZ','Layer\x20','invalid-predicate','success','2996544WKCVqv','deleteProperty','feature','aborted','isDisposed','some','stale','5984163HlcJdb','string','get','cancelled','mode','code','invalidPredicate','invalidRequest','fromEntries','boolean','resolveLayer','map','Map\x20controller\x20is\x20no\x20longer\x20active.','signal','\x20does\x20not\x20support\x20feature\x20queries.','attributes','flatMap','queryFailed','groupByFields','isSafeInteger','count','title','has','isArray','predicates','layerId','6kRiWYp','queryFeatures','map-not-ready','fieldsIndex','Feature\x20query\x20returned\x20an\x20invalid\x20feature\x20collection.','type','notReady','Feature\x20query\x20request\x20is\x20invalid.','3340170EAhXWV','1162844mzDMCK','query-failed','\x20was\x20not\x20found.','stale-controller','Feature\x20layer\x20metadata\x20could\x20not\x20be\x20loaded.','unsupported-layer','data','unknown'];_0x50e3=function(){return _0x17062e;};return _0x50e3();}(function(_0x3f64ec,_0x5e4351){const _0xc3063c=_0x2e1f,_0x21bf36=_0x3f64ec();while(!![]){try{const _0x481a16=-parseInt(_0xc3063c(0x1ef))/0x1+parseInt(_0xc3063c(0x201))/0x2+-parseInt(_0xc3063c(0x1e6))/0x3+-parseInt(_0xc3063c(0x1e7))/0x4+-parseInt(_0xc3063c(0x1f3))/0x5*(-parseInt(_0xc3063c(0x222))/0x6)+parseInt(_0xc3063c(0x1fd))/0x7*(-parseInt(_0xc3063c(0x1f6))/0x8)+parseInt(_0xc3063c(0x208))/0x9;if(_0x481a16===_0x5e4351)break;else _0x21bf36['push'](_0x21bf36['shift']());}catch(_0x29055f){_0x21bf36['push'](_0x21bf36['shift']());}}}(_0x50e3,0xd0fbc));import{ArcGISFeatureQueryRequestSchema}from'./featureQuery.js';import{compileFeatureQueryProperties}from'./featureQueryExpression.js';const MESSAGES={'cancelled':'Feature\x20query\x20was\x20cancelled.','stale':_0x1e0a3e(0x214),'notReady':'ArcGIS\x20map\x20view\x20is\x20not\x20ready.','invalidRequest':_0x1e0a3e(0x1e5),'fieldNotFound':'Feature\x20query\x20references\x20an\x20unavailable\x20field.','invalidPredicate':'Feature\x20query\x20predicate\x20is\x20invalid.','metadataFailed':_0x1e0a3e(0x1eb),'queryFailed':'Feature\x20query\x20failed.'};function queryFailure(_0x759c9e,_0xf65c23,_0x4e42fa){return{'ok':![],'operation':'queryFeatureLayer','layerId':_0x759c9e,'code':_0xf65c23,'message':_0x4e42fa};}function unavailableLayerMessage(_0x4e66de){const _0x113f6a=_0x1e0a3e;return _0x113f6a(0x1fe)+_0x4e66de+_0x113f6a(0x1e9);}function unsupportedLayerMessage(_0x9efb1f){const _0x28ba17=_0x1e0a3e;return _0x28ba17(0x1fe)+_0x9efb1f+_0x28ba17(0x216);}function requestedFieldNames(_0x32b237){const _0x1a1eb0=_0x1e0a3e;return[..._0x32b237[_0x1a1eb0(0x220)][_0x1a1eb0(0x213)](({fieldName:_0x506492})=>_0x506492),..._0x32b237[_0x1a1eb0(0x1f8)],..._0x32b237[_0x1a1eb0(0x21a)],..._0x32b237['statistics'][_0x1a1eb0(0x218)](({fieldName:_0x47e413})=>_0x47e413===null?[]:[_0x47e413]),..._0x32b237['orderBy']['map'](({fieldName:_0x4a9e67})=>_0x4a9e67)];}function resultColumns(_0x5832d1,_0x13ddf1){const _0x260d1b=_0x1e0a3e,_0x180c29=new Map(_0x13ddf1['map'](_0x538253=>[_0x538253[_0x260d1b(0x1f5)],_0x538253]));if(_0x5832d1[_0x260d1b(0x20c)]==='features')return _0x5832d1[_0x260d1b(0x1f8)]['map'](_0x300a40=>{const _0x1eef95=_0x260d1b,_0x17f299=_0x180c29[_0x1eef95(0x20a)](_0x300a40);return{'name':_0x300a40,'alias':_0x17f299['alias'],'type':_0x17f299[_0x1eef95(0x1e3)]};});if(_0x5832d1[_0x260d1b(0x20c)]===_0x260d1b(0x21c))return[];return[..._0x5832d1['groupByFields']['map'](_0x43ac93=>{const _0x4e1c88=_0x260d1b,_0x3fba67=_0x180c29[_0x4e1c88(0x20a)](_0x43ac93);return{'name':_0x43ac93,'alias':_0x3fba67['alias'],'type':_0x3fba67[_0x4e1c88(0x1e3)]};}),..._0x5832d1['statistics']['map'](_0x153bf4=>({'name':_0x153bf4['outputName'],'alias':_0x153bf4['outputName'],'type':_0x153bf4['statisticType']===_0x260d1b(0x21c)?'integer':_0x180c29[_0x260d1b(0x20a)](_0x153bf4['fieldName'])['type']}))];}function projectValue(_0x33f092){const _0x1b2784=_0x1e0a3e;if(_0x33f092===void 0x0)return null;if(_0x33f092 instanceof Date)return _0x33f092[_0x1b2784(0x1fc)]();if(_0x33f092===null||typeof _0x33f092===_0x1b2784(0x209)||typeof _0x33f092===_0x1b2784(0x211))return _0x33f092;if(typeof _0x33f092==='number'&&Number['isFinite'](_0x33f092))return _0x33f092;throw new TypeError('Feature\x20query\x20returned\x20an\x20unsupported\x20attribute\x20value.');}function _0x2e1f(_0x48b2f2,_0x3d7618){_0x48b2f2=_0x48b2f2-0x1e3;const _0x50e3f2=_0x50e3();let _0x2e1f18=_0x50e3f2[_0x48b2f2];return _0x2e1f18;}function projectRows(_0x865510,_0x7e9294,_0x174e15){const _0x3b20e6=_0x1e0a3e;if(!Array[_0x3b20e6(0x21f)](_0x865510))throw new TypeError(_0x3b20e6(0x226));const _0x443ffe=_0x865510[_0x3b20e6(0x1f7)](0x0,_0x174e15)['map'](_0x3e36e0=>{const _0x258766=_0x3b20e6;if(typeof _0x3e36e0!=='object'||_0x3e36e0===null||!(_0x258766(0x217)in _0x3e36e0)||typeof _0x3e36e0['attributes']!=='object'||_0x3e36e0[_0x258766(0x217)]===null||Array[_0x258766(0x21f)](_0x3e36e0[_0x258766(0x217)]))throw new TypeError('Feature\x20query\x20returned\x20invalid\x20attributes.');const _0x1222a8=_0x3e36e0[_0x258766(0x217)];return Object[_0x258766(0x210)](_0x7e9294['map'](({name:_0x537e91})=>[_0x537e91,projectValue(_0x1222a8[_0x537e91])]));});return{'rows':_0x443ffe,'extra':_0x865510['length']>_0x174e15};}function createFeatureQueryRuntime(_0x46b3e9){let _0x2d35d0=![],_0x5eff00=0x0;function _0x25e669(_0xcc142d,_0x30b7dd){const _0x1bfd6a=_0x2e1f;if(_0x2d35d0||_0x46b3e9[_0x1bfd6a(0x205)]()||_0xcc142d!==_0x5eff00)return{'code':_0x1bfd6a(0x1ea),'message':MESSAGES[_0x1bfd6a(0x207)]};if(_0x30b7dd?.[_0x1bfd6a(0x204)])return{'code':_0x1bfd6a(0x20b),'message':MESSAGES['cancelled']};if(!_0x46b3e9['isReady']())return{'code':_0x1bfd6a(0x224),'message':MESSAGES[_0x1bfd6a(0x1e4)]};return void 0x0;}const _0x4d372f=async(_0x1b72fc,_0x24939e)=>{const _0x440eec=_0x2e1f,_0x5c3616=typeof _0x1b72fc?.[_0x440eec(0x221)]===_0x440eec(0x209)&&_0x1b72fc['layerId']['length']>0x0?_0x1b72fc['layerId']:_0x440eec(0x1ee),_0x3765b8=ArcGISFeatureQueryRequestSchema[_0x440eec(0x1fa)](_0x1b72fc);if(!_0x3765b8[_0x440eec(0x200)])return queryFailure(_0x5c3616,_0x440eec(0x1ff),MESSAGES[_0x440eec(0x20f)]);const {layerId:_0x32c377}=_0x3765b8[_0x440eec(0x1ed)],_0xcd88e8=_0x5eff00;let _0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8[_0x440eec(0x20d)],_0x5d79d8['message']);const _0x5763f7=_0x46b3e9[_0x440eec(0x212)](_0x32c377);if(!_0x5763f7)return queryFailure(_0x32c377,'layer-not-found',unavailableLayerMessage(_0x32c377));if(_0x5763f7['type']!==_0x440eec(0x203))return queryFailure(_0x32c377,_0x440eec(0x1ec),unsupportedLayerMessage(_0x32c377));try{await _0x5763f7['load']({'signal':_0x24939e?.['signal']});}catch{return _0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.['signal']),queryFailure(_0x32c377,_0x5d79d8?.['code']??_0x440eec(0x1e8),_0x5d79d8?.[_0x440eec(0x1f1)]??MESSAGES['metadataFailed']);}_0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8[_0x440eec(0x20d)],_0x5d79d8['message']);let _0x3c33f0;try{_0x3c33f0=_0x5763f7[_0x440eec(0x1f0)]['map'](_0x1dbe94=>({'name':_0x1dbe94[_0x440eec(0x1f5)],'alias':_0x1dbe94['alias']??'','type':_0x1dbe94[_0x440eec(0x1e3)],'timeZone':_0x5763f7[_0x440eec(0x225)][_0x440eec(0x1fb)](_0x1dbe94)??null}));}catch{return queryFailure(_0x32c377,'query-failed',MESSAGES['metadataFailed']);}const _0x27cc75=new Set(_0x3c33f0['map'](({name:_0x4199f3})=>_0x4199f3));if(requestedFieldNames(_0x3765b8['data'])[_0x440eec(0x206)](_0x498aad=>!_0x27cc75[_0x440eec(0x21e)](_0x498aad)))return queryFailure(_0x32c377,_0x440eec(0x1f2),MESSAGES[_0x440eec(0x1f4)]);let _0x3ff698;try{_0x3ff698=compileFeatureQueryProperties(_0x3765b8[_0x440eec(0x1ed)],_0x3c33f0);}catch{return queryFailure(_0x32c377,_0x440eec(0x1ff),MESSAGES[_0x440eec(0x20e)]);}_0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.['signal']);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8['code'],_0x5d79d8[_0x440eec(0x1f1)]);if(_0x3765b8['data']['mode']===_0x440eec(0x21c)){let _0xea2c97;try{const _0x2d8649={..._0x3ff698};Reflect[_0x440eec(0x202)](_0x2d8649,'num'),_0xea2c97=await _0x5763f7['queryFeatureCount'](_0x2d8649,{'signal':_0x24939e?.['signal']});}catch{return _0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]),queryFailure(_0x32c377,_0x5d79d8?.['code']??_0x440eec(0x1e8),_0x5d79d8?.[_0x440eec(0x1f1)]??MESSAGES[_0x440eec(0x219)]);}_0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8['code'],_0x5d79d8['message']);if(!Number[_0x440eec(0x21b)](_0xea2c97)||_0xea2c97<0x0)return queryFailure(_0x32c377,'query-failed',MESSAGES['queryFailed']);return{'ok':!![],'operation':'queryFeatureLayer','layer':{'id':_0x5763f7['id'],'title':_0x5763f7['title']??''},'mode':'count','columns':[],'rows':[],'count':_0xea2c97,'truncated':![]};}let _0x46d8f6;try{_0x46d8f6=await _0x5763f7[_0x440eec(0x223)](_0x3ff698,{'signal':_0x24939e?.[_0x440eec(0x215)]});}catch{return _0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]),queryFailure(_0x32c377,_0x5d79d8?.[_0x440eec(0x20d)]??_0x440eec(0x1e8),_0x5d79d8?.[_0x440eec(0x1f1)]??MESSAGES['queryFailed']);}_0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.['signal']);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8[_0x440eec(0x20d)],_0x5d79d8['message']);try{const _0x3d4767=resultColumns(_0x3765b8['data'],_0x3c33f0),{rows:_0x36ab0b,extra:_0x324cd6}=projectRows(_0x46d8f6[_0x440eec(0x1f9)],_0x3d4767,_0x3765b8[_0x440eec(0x1ed)]['resultLimit']);return{'ok':!![],'operation':'queryFeatureLayer','layer':{'id':_0x5763f7['id'],'title':_0x5763f7[_0x440eec(0x21d)]??''},'mode':_0x3765b8[_0x440eec(0x1ed)]['mode'],'columns':_0x3d4767,'rows':_0x36ab0b,'count':null,'truncated':_0x46d8f6['exceededTransferLimit']===!![]||_0x324cd6};}catch{return queryFailure(_0x32c377,'query-failed',MESSAGES['queryFailed']);}};return{'queryFeatureLayer':_0x4d372f,'dispose'(){if(_0x2d35d0)return;_0x2d35d0=!![],_0x5eff00+=0x1;}};}export{createFeatureQueryRuntime};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5ecb51=_0x2e09;(function(_0x3428cc,_0x1c04d4){const _0x2c5692=_0x2e09,_0x17a17e=_0x3428cc();while(!![]){try{const _0x568e5a=parseInt(_0x2c5692(0x1cf))/0x1*(parseInt(_0x2c5692(0x1ce))/0x2)+-parseInt(_0x2c5692(0x1c0))/0x3*(parseInt(_0x2c5692(0x1c6))/0x4)+parseInt(_0x2c5692(0x1c4))/0x5+parseInt(_0x2c5692(0x1c7))/0x6+parseInt(_0x2c5692(0x1c5))/0x7*(parseInt(_0x2c5692(0x1c8))/0x8)+parseInt(_0x2c5692(0x1cd))/0x9*(-parseInt(_0x2c5692(0x1cc))/0xa)+-parseInt(_0x2c5692(0x1bf))/0xb*(parseInt(_0x2c5692(0x1cb))/0xc);if(_0x568e5a===_0x1c04d4)break;else _0x17a17e['push'](_0x17a17e['shift']());}catch(_0x161678){_0x17a17e['push'](_0x17a17e['shift']());}}}(_0x3002,0x55edd));import _0x4e10e9 from'react';import{createArcGISMapController}from'./createArcGISMapController.js';const loadingState={'status':_0x5ecb51(0x1c1),'controller':null,'error':null};function normalizeError(_0x508891){return _0x508891 instanceof Error?_0x508891:new Error(String(_0x508891));}function useArcGISMapControllerWithFactory(_0x161608,_0x1ed299){const _0x15dae0=_0x5ecb51,[_0x3a0c40,_0x14bf7c]=_0x4e10e9['useState'](loadingState);return _0x4e10e9[_0x15dae0(0x1ca)](()=>{const _0x402a21=_0x15dae0,_0x591ee9=_0x161608[_0x402a21(0x1c2)];let _0x6e923c=![],_0x3d2257=null;return _0x14bf7c(loadingState),_0x591ee9&&void _0x1ed299(_0x591ee9)['then'](_0x44e61f=>{const _0x455cb5=_0x402a21;if(_0x6e923c){_0x44e61f[_0x455cb5(0x1c9)]();return;}_0x3d2257=_0x44e61f,_0x14bf7c({'status':_0x455cb5(0x1d0),'controller':_0x44e61f['controller'],'error':null});},_0x2c2190=>{const _0x5c362f=_0x402a21;!_0x6e923c&&_0x14bf7c({'status':_0x5c362f(0x1c3),'controller':null,'error':normalizeError(_0x2c2190)});}),()=>{const _0x520825=_0x402a21;_0x6e923c=!![],_0x3d2257?.[_0x520825(0x1c9)]();};},[_0x1ed299,_0x161608]),_0x3a0c40;}function useArcGISMapController(_0xa87ae4){return useArcGISMapControllerWithFactory(_0xa87ae4,createArcGISMapController);}function _0x3002(){const _0x7bd321=['6DjhNNH','loading','current','error','2778170ulRhNd','49EtZdWW','590608SBcJaO','993528yDwSvA','635224qVxDzu','dispose','useEffect','12sGpusT','11070PnHkVs','3609IpMQwf','2WOiWfD','143591hHzkBt','ready','3624038YjgxdV'];_0x3002=function(){return _0x7bd321;};return _0x3002();}function _0x2e09(_0x29a277,_0x4702ee){_0x29a277=_0x29a277-0x1bf;const _0x300233=_0x3002();let _0x2e09a9=_0x300233[_0x29a277];return _0x2e09a9;}export{useArcGISMapController,useArcGISMapControllerWithFactory};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { NormalizedArcGISMapGraphic } from "./api.js";
|
|
2
|
+
export declare const ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION = 1.2;
|
|
3
|
+
export declare const ARCGIS_GRAPHICS_FIT_MAX_ZOOM = 14;
|
|
4
|
+
type WGS84SpatialReference = {
|
|
5
|
+
readonly wkid: 4326;
|
|
6
|
+
};
|
|
7
|
+
export type ArcGISGraphicProperties = {
|
|
8
|
+
geometry: Record<string, unknown>;
|
|
9
|
+
symbol: Record<string, unknown>;
|
|
10
|
+
};
|
|
11
|
+
export type ArcGISGraphicsFitTarget = {
|
|
12
|
+
kind: "point";
|
|
13
|
+
target: {
|
|
14
|
+
type: "point";
|
|
15
|
+
longitude: number;
|
|
16
|
+
latitude: number;
|
|
17
|
+
spatialReference: WGS84SpatialReference;
|
|
18
|
+
};
|
|
19
|
+
zoom: typeof ARCGIS_GRAPHICS_FIT_MAX_ZOOM;
|
|
20
|
+
} | {
|
|
21
|
+
kind: "extent";
|
|
22
|
+
target: {
|
|
23
|
+
type: "extent";
|
|
24
|
+
xmin: number;
|
|
25
|
+
ymin: number;
|
|
26
|
+
xmax: number;
|
|
27
|
+
ymax: number;
|
|
28
|
+
spatialReference: WGS84SpatialReference;
|
|
29
|
+
};
|
|
30
|
+
center: {
|
|
31
|
+
longitude: number;
|
|
32
|
+
latitude: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare function createArcGISGraphicProperties(graphic: NormalizedArcGISMapGraphic): ArcGISGraphicProperties;
|
|
36
|
+
export declare function getArcGISMapGraphicsKey(graphics: readonly NormalizedArcGISMapGraphic[]): string;
|
|
37
|
+
export declare function getArcGISGraphicsFitTarget(graphics: readonly NormalizedArcGISMapGraphic[]): ArcGISGraphicsFitTarget | null;
|
|
38
|
+
export {};
|
package/dist/graphics.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x59a253=_0xf01a;(function(_0x21dcb6,_0x21d69c){const _0x1f03d7=_0xf01a,_0xdef74c=_0x21dcb6();while(!![]){try{const _0x1692be=parseInt(_0x1f03d7(0x98))/0x1*(-parseInt(_0x1f03d7(0x9e))/0x2)+-parseInt(_0x1f03d7(0x9d))/0x3*(-parseInt(_0x1f03d7(0x94))/0x4)+-parseInt(_0x1f03d7(0x87))/0x5+parseInt(_0x1f03d7(0x86))/0x6*(parseInt(_0x1f03d7(0x8b))/0x7)+parseInt(_0x1f03d7(0x85))/0x8+parseInt(_0x1f03d7(0x96))/0x9+-parseInt(_0x1f03d7(0x9c))/0xa;if(_0x1692be===_0x21d69c)break;else _0xdef74c['push'](_0xdef74c['shift']());}catch(_0x52db72){_0xdef74c['push'](_0xdef74c['shift']());}}}(_0x2e07,0xa62ad));const ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION=1.2,ARCGIS_GRAPHICS_FIT_MAX_ZOOM=0xe;function createWGS84(){return{'wkid':0x10e6};}const STYLE_COLORS={'primary':{'hex':'#2563eb','rgb':[0x25,0x63,0xeb]},'success':{'hex':_0x59a253(0x9a),'rgb':[0x16,0xa3,0x4a]},'warning':{'hex':_0x59a253(0x88),'rgb':[0xd9,0x77,0x6]},'danger':{'hex':'#dc2626','rgb':[0xdc,0x26,0x26]},'neutral':{'hex':_0x59a253(0x84),'rgb':[0x64,0x74,0x8b]}};function _0x2e07(){const _0x4c3e9b=['latitude','1422772nIxrAr','max','7188543KYfiLa','coordinates','42XDstSy','rgb','#16a34a','length','20345760cHeqHD','9eeYQDk','6176tQMjxO','stringify','polyline','#64748b','10377216rLEyud','6cEUzpa','3213530MIhIfx','#d97706','geometry','hex','2272487ERNcwE','point','map','simple-fill','type','longitude','style','flatMap'];_0x2e07=function(){return _0x4c3e9b;};return _0x2e07();}function toPair(_0x4ddba6){const _0x444305=_0x59a253;return[_0x4ddba6[_0x444305(0x90)],_0x4ddba6['latitude']];}function closeRing(_0x206d86){const _0x55ca0e=_0x206d86['map'](toPair),_0x59f853=_0x55ca0e[0x0],_0x33fa1f=_0x55ca0e[_0x55ca0e['length']-0x1];return _0x59f853[0x0]===_0x33fa1f[0x0]&&_0x59f853[0x1]===_0x33fa1f[0x1]?_0x55ca0e:[..._0x55ca0e,[..._0x59f853]];}function createSymbol(_0x39f681,_0x52670d){const _0x396301=_0x59a253,_0x5945ce=STYLE_COLORS[_0x52670d];if(_0x39f681===_0x396301(0x8c))return{'type':'simple-marker','style':'circle','color':_0x5945ce[_0x396301(0x8a)],'size':0xa,'outline':{'color':'#ffffff','width':1.5}};if(_0x39f681==='polyline')return{'type':'simple-line','color':_0x5945ce[_0x396301(0x8a)],'width':0x3};return{'type':_0x396301(0x8e),'color':[..._0x5945ce[_0x396301(0x99)],0.2],'outline':{'color':_0x5945ce[_0x396301(0x8a)],'width':0x2}};}function createArcGISGraphicProperties(_0x3dcc1b){const _0x212e99=_0x59a253,{geometry:_0x20aef4}=_0x3dcc1b,_0x4c42b3=_0x20aef4['type']===_0x212e99(0x8c)?{'type':_0x212e99(0x8c),'longitude':_0x20aef4['coordinates'][_0x212e99(0x90)],'latitude':_0x20aef4[_0x212e99(0x97)][_0x212e99(0x93)],'spatialReference':createWGS84()}:_0x20aef4[_0x212e99(0x8f)]===_0x212e99(0x83)?{'type':_0x212e99(0x83),'paths':[_0x20aef4[_0x212e99(0x97)][_0x212e99(0x8d)](toPair)],'spatialReference':createWGS84()}:{'type':'polygon','rings':[closeRing(_0x20aef4[_0x212e99(0x97)])],'spatialReference':createWGS84()};return{'geometry':_0x4c42b3,'symbol':createSymbol(_0x20aef4['type'],_0x3dcc1b[_0x212e99(0x91)])};}function getArcGISMapGraphicsKey(_0x247e55){const _0x2f5cac=_0x59a253;return JSON[_0x2f5cac(0x9f)](_0x247e55);}function getPositions(_0x37149c){const _0x40e03b=_0x59a253;return _0x37149c[_0x40e03b(0x89)][_0x40e03b(0x8f)]===_0x40e03b(0x8c)?[_0x37149c[_0x40e03b(0x89)][_0x40e03b(0x97)]]:_0x37149c['geometry'][_0x40e03b(0x97)];}function _0xf01a(_0x52e638,_0x5dabe3){_0x52e638=_0x52e638-0x83;const _0x2e0738=_0x2e07();let _0xf01af7=_0x2e0738[_0x52e638];return _0xf01af7;}function getArcGISGraphicsFitTarget(_0x35c356){const _0x4649cd=_0x59a253,_0x339416=_0x35c356[_0x4649cd(0x92)](_0x528345=>[...getPositions(_0x528345)]);if(_0x339416[_0x4649cd(0x9b)]===0x0)return null;const _0x1edc76=_0x339416[_0x4649cd(0x8d)](({longitude:_0x117076})=>_0x117076),_0x3c5d7e=_0x339416['map'](({latitude:_0x2bebc5})=>_0x2bebc5),_0xc6c88f=Math['min'](..._0x1edc76),_0x1e58d6=Math[_0x4649cd(0x95)](..._0x1edc76),_0x427f55=Math['min'](..._0x3c5d7e),_0x25b145=Math[_0x4649cd(0x95)](..._0x3c5d7e);if(_0xc6c88f===_0x1e58d6&&_0x427f55===_0x25b145)return{'kind':'point','target':{'type':_0x4649cd(0x8c),'longitude':_0xc6c88f,'latitude':_0x427f55,'spatialReference':createWGS84()},'zoom':ARCGIS_GRAPHICS_FIT_MAX_ZOOM};const _0x189f4c={'longitude':(_0xc6c88f+_0x1e58d6)/0x2,'latitude':(_0x427f55+_0x25b145)/0x2},_0x32dd5f=(_0x1e58d6-_0xc6c88f)*ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION/0x2,_0x23e0fa=(_0x25b145-_0x427f55)*ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION/0x2;return{'kind':'extent','target':{'type':'extent','xmin':_0x189f4c['longitude']-_0x32dd5f,'ymin':_0x189f4c['latitude']-_0x23e0fa,'xmax':_0x189f4c[_0x4649cd(0x90)]+_0x32dd5f,'ymax':_0x189f4c[_0x4649cd(0x93)]+_0x23e0fa,'spatialReference':createWGS84()},'center':_0x189f4c};}export{ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION,ARCGIS_GRAPHICS_FIT_MAX_ZOOM,createArcGISGraphicProperties,getArcGISGraphicsFitTarget,getArcGISMapGraphicsKey};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./api.js";
|
|
2
2
|
export { ArcGISMapView, ArcGISMapViewContent } from "./ArcGISMapView.js";
|
|
3
3
|
export * from "./catalog.js";
|
|
4
|
+
export { ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION, ARCGIS_GRAPHICS_FIT_MAX_ZOOM } from "./graphics.js";
|
|
4
5
|
export * from "./controller/api.js";
|
|
5
6
|
export * from "./controller/featureFilter.js";
|
|
6
7
|
export * from "./controller/featureQuery.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x46bb09,_0x45169b){var _0x2099c4=_0x305b,_0x580d45=_0x46bb09();while(!![]){try{var _0x1c2274=-parseInt(_0x2099c4(0xb0))/0x1*(-parseInt(_0x2099c4(0xb2))/0x2)+parseInt(_0x2099c4(0xaf))/0x3+-parseInt(_0x2099c4(0xae))/0x4*(parseInt(_0x2099c4(0xb6))/0x5)+parseInt(_0x2099c4(0xb1))/0x6+-parseInt(_0x2099c4(0xb5))/0x7*(-parseInt(_0x2099c4(0xad))/0x8)+parseInt(_0x2099c4(0xac))/0x9+parseInt(_0x2099c4(0xb4))/0xa*(-parseInt(_0x2099c4(0xb3))/0xb);if(_0x1c2274===_0x45169b)break;else _0x580d45['push'](_0x580d45['shift']());}catch(_0x38411a){_0x580d45['push'](_0x580d45['shift']());}}}(_0x30ca,0xd19b0));import{ArcGISBasemaps,ArcGISMapGraphicStyles,ArcGISMapViewApi,ArcGISMapViewPropsSchema,defaultArcGISBasemap,defaultArcGISMapControls,normalizeArcGISMapViewProps}from'./api.js';function _0x30ca(){var _0x4d1975=['30rScmYJ','12173679kIKRET','8FWeiPU','999140LECiWk','2308248BCmBGy','801779pPXheH','3376200NMestT','2FQCAfS','9453026Fxysiq','20lgGPxr','4126220ngqISK'];_0x30ca=function(){return _0x4d1975;};return _0x30ca();}import{ArcGISMapView,ArcGISMapViewContent}from'./ArcGISMapView.js';function _0x305b(_0xced8e8,_0x4e18fe){_0xced8e8=_0xced8e8-0xac;var _0x30cafb=_0x30ca();var _0x305b45=_0x30cafb[_0xced8e8];return _0x305b45;}import{ARCGIS_CATALOG_ID,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog}from'./catalog.js';import{ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION,ARCGIS_GRAPHICS_FIT_MAX_ZOOM}from'./graphics.js';import{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema,ArcGISMapSnapshotSchema}from'./controller/api.js';import{ArcGISClearFeatureFilterRequestSchema,ArcGISClearFeatureFilterResultSchema,ArcGISFeatureFilterErrorCodes,ArcGISFeatureFilterOperatorSchema,ArcGISFeatureFilterOperators,ArcGISFeatureFilterRequestSchema,ArcGISFeatureLayerDescriptionResultSchema,ArcGISFeaturePredicateSchema,ArcGISSetFeatureFilterResultSchema,ArcGISValidateFeatureFilterResultSchema,isArcGISFeatureFilterFieldTypeSupported,isFeaturePredicateValueCountValid}from'./controller/featureFilter.js';import{ArcGISFeatureQueryErrorCodes,ArcGISFeatureQueryRequestSchema,ArcGISFeatureQueryResultSchema,ArcGISFeatureStatisticTypes}from'./controller/featureQuery.js';import{createArcGISMapController}from'./controller/createArcGISMapController.js';import{useArcGISMapController}from'./controller/useArcGISMapController.js';import{arcGISMapViewDescription,arcgisStyleGuide}from'./prompt.js';export{ARCGIS_CATALOG_ID,ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION,ARCGIS_GRAPHICS_FIT_MAX_ZOOM,ArcGISBasemaps,ArcGISClearFeatureFilterRequestSchema,ArcGISClearFeatureFilterResultSchema,ArcGISFeatureFilterErrorCodes,ArcGISFeatureFilterOperatorSchema,ArcGISFeatureFilterOperators,ArcGISFeatureFilterRequestSchema,ArcGISFeatureLayerDescriptionResultSchema,ArcGISFeaturePredicateSchema,ArcGISFeatureQueryErrorCodes,ArcGISFeatureQueryRequestSchema,ArcGISFeatureQueryResultSchema,ArcGISFeatureStatisticTypes,ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapGraphicStyles,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema,ArcGISMapSnapshotSchema,ArcGISMapView,ArcGISMapViewApi,ArcGISMapViewContent,ArcGISMapViewPropsSchema,ArcGISSetFeatureFilterResultSchema,ArcGISValidateFeatureFilterResultSchema,arcGISMapViewDescription,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog,arcgisStyleGuide,createArcGISMapController,defaultArcGISBasemap,defaultArcGISMapControls,isArcGISFeatureFilterFieldTypeSupported,isFeaturePredicateValueCountValid,normalizeArcGISMapViewProps,useArcGISMapController};
|
package/dist/prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37a2e7=_0x56ad;(function(_0x2c5f21,_0x4c3244){const _0x2e27fc=_0x56ad,_0x537863=_0x2c5f21();while(!![]){try{const _0x2d6072=-parseInt(_0x2e27fc(0x1b0))/0x1+parseInt(_0x2e27fc(0x1b9))/0x2*(-parseInt(_0x2e27fc(0x1bb))/0x3)+-parseInt(_0x2e27fc(0x1b5))/0x4+parseInt(_0x2e27fc(0x1b2))/0x5*(parseInt(_0x2e27fc(0x1be))/0x6)+parseInt(_0x2e27fc(0x1af))/0x7+-parseInt(_0x2e27fc(0x1c1))/0x8+parseInt(_0x2e27fc(0x1b1))/0x9;if(_0x2d6072===_0x4c3244)break;else _0x537863['push'](_0x537863['shift']());}catch(_0x4c526a){_0x537863['push'](_0x537863['shift']());}}}(_0x5998,0xe52b8));const arcGISMapViewDescription=[_0x37a2e7(0x1b6),_0x37a2e7(0x1c0),_0x37a2e7(0x1ba),'Omit\x20`basemap`\x20or\x20use\x20`basemap:\x20\x22portal/default\x22`\x20for\x20the\x20Host\x20app\x27s\x20configured\x20default\x20basemap.',_0x37a2e7(0x1b8),_0x37a2e7(0x1bf),_0x37a2e7(0x1bd),'Do\x20not\x20provide\x20layers,\x20raw\x20ArcGIS\x20Graphic\x20or\x20Symbol\x20objects,\x20attributes,\x20popups,\x20labels,\x20queries,\x20filters,\x20selections,\x20editing,\x20Actions,\x20or\x20workspace\x20commands.','Optional\x20`controls`\x20can\x20enable\x20`zoom`,\x20`legend`,\x20`layerList`,\x20and\x20`search`;\x20default\x20behavior\x20is\x20zoom\x20only.'][_0x37a2e7(0x1b7)]('\x20'),arcgisStyleGuide=[_0x37a2e7(0x1bc),'Prefer\x20webmap\x20source\x20for\x20real\x20GIS\x20content.',_0x37a2e7(0x1b4),_0x37a2e7(0x1b3),'Use\x20graphics\x20only\x20for\x20a\x20small\x20number\x20of\x20temporary\x20shapes\x20that\x20belong\x20to\x20this\x20reply.','Keep\x20public\x20positions\x20in\x20`{\x20longitude,\x20latitude\x20}`\x20object\x20form;\x20never\x20emit\x20coordinate\x20arrays\x20or\x20ArcGIS\x20SDK\x20objects.','Keep\x20title\x20and\x20description\x20short\x20enough\x20for\x20a\x20chat\x20message.']['join']('\x0a');function _0x5998(){const _0x24b445=['4034632IbgsEw','ArcGIS\x20map\x20display\x20component\x20for\x20embedding\x20a\x20compact\x20map\x20in\x20a\x20UI\x20reply.','join','Use\x20an\x20`arcgis/*`\x20basemap\x20style\x20only\x20when\x20the\x20Host\x20app\x20has\x20configured\x20authentication\x20for\x20the\x20production\x20ArcGIS\x20Basemap\x20Styles\x20service.','2mKApQt','Use\x20`source.type:\x20\x22basemap\x22`\x20with\x20`center:\x20{\x20latitude,\x20longitude\x20}`,\x20optional\x20`zoom`,\x20and\x20optional\x20enum\x20`basemap`\x20for\x20lightweight\x20location\x20context.','2616189rbgAjA','Use\x20ArcGISMapView\x20only\x20when\x20a\x20map\x20is\x20useful\x20to\x20the\x20answer.','Graphic\x20styles\x20are\x20`primary`,\x20`success`,\x20`warning`,\x20`danger`,\x20or\x20`neutral`;\x20omitted\x20style\x20defaults\x20to\x20`primary`,\x20and\x20non-empty\x20graphics\x20fit\x20automatically\x20with\x20zoom\x20capped\x20at\x2014.','150dhFobM','Use\x20optional\x20`graphics`\x20for\x20up\x20to\x2050\x20temporary\x20point,\x20single-path\x20polyline,\x20or\x20single-ring\x20polygon\x20shapes;\x20every\x20position\x20is\x20`{\x20longitude,\x20latitude\x20}`\x20in\x20WGS84.','Use\x20`source.type:\x20\x22webmap\x22`\x20with\x20`itemId`\x20for\x20saved\x20ArcGIS\x20layers,\x20symbology,\x20popups,\x20legend\x20metadata,\x20and\x20initial\x20viewpoint.','898272zTAzGy','7824159vKeYrm','886864rzZnbt','13913433OmsitH','230975UAGHrl','Prefer\x20`portal/default`\x20for\x20basemap\x20source\x20unless\x20the\x20Host\x20explicitly\x20supports\x20production\x20ArcGIS\x20Basemap\x20Styles.','Prefer\x20basemap\x20source\x20only\x20for\x20simple\x20location\x20context.'];_0x5998=function(){return _0x24b445;};return _0x5998();}function _0x56ad(_0xbe947f,_0x78bcf5){_0xbe947f=_0xbe947f-0x1af;const _0x59989f=_0x5998();let _0x56ad6f=_0x59989f[_0xbe947f];return _0x56ad6f;}export{arcGISMapViewDescription,arcgisStyleGuide};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentic-ui-experience/ui-arcgis",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"@arcgis/core": "^5.1.9",
|
|
30
30
|
"@arcgis/map-components": "^5.1.9",
|
|
31
31
|
"zod": "^3.25.76",
|
|
32
|
-
"@agentic-ui-experience/ui-core": "0.0.1-beta.
|
|
33
|
-
"@agentic-ui-experience/ui-react": "0.0.1-beta.
|
|
34
|
-
"@agentic-ui-experience/ui-runtime": "0.0.1-beta.
|
|
32
|
+
"@agentic-ui-experience/ui-core": "0.0.1-beta.5",
|
|
33
|
+
"@agentic-ui-experience/ui-react": "0.0.1-beta.5",
|
|
34
|
+
"@agentic-ui-experience/ui-runtime": "0.0.1-beta.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^18.0.0 || ^19.0.0",
|