@arcgis/core 5.2.0-next.137 → 5.2.0-next.139
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/analysis/LineOfSightAnalysisObserver.d.ts +12 -0
- package/analysis/LineOfSightAnalysisObserver.js +1 -1
- package/analysis/LineOfSightAnalysisTarget.d.ts +12 -0
- package/analysis/LineOfSightAnalysisTarget.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/sources/FeatureLayerParquet.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/featureset/support/stats.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/fieldStats.js +1 -1
- package/arcgisGlobal.d.ts +5 -1
- package/assets/components/assets/icon/blockHeightMedium16.json +1 -0
- package/assets/components/assets/icon/blockHeightMedium24.json +1 -0
- package/assets/components/assets/icon/blockHeightMedium32.json +1 -0
- package/assets/components/assets/icon/blockHeightShort16.json +1 -0
- package/assets/components/assets/icon/blockHeightShort24.json +1 -0
- package/assets/components/assets/icon/blockHeightShort32.json +1 -0
- package/assets/components/assets/icon/blockHeightTall16.json +1 -0
- package/assets/components/assets/icon/blockHeightTall24.json +1 -0
- package/assets/components/assets/icon/blockHeightTall32.json +1 -0
- package/assets/components/assets/icon/cursorCircle16.json +1 -0
- package/assets/components/assets/icon/cursorCircle24.json +1 -0
- package/assets/components/assets/icon/cursorCircle32.json +1 -0
- package/assets/components/assets/icon/dictionary16.json +1 -0
- package/assets/components/assets/icon/dictionary24.json +1 -0
- package/assets/components/assets/icon/dictionary32.json +1 -0
- package/assets/components/assets/icon/jobDependency16.json +1 -0
- package/assets/components/assets/icon/jobDependency24.json +1 -0
- package/assets/components/assets/icon/jobDependency32.json +1 -0
- package/assets/components/assets/icon/referenceChip16.json +1 -0
- package/assets/components/assets/icon/referenceChip24.json +1 -0
- package/assets/components/assets/icon/referenceChip32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{4e6f95d8c624d513849a.js → 05963f57cbe5a5249496.js} +1 -1
- package/assets/esri/core/workers/chunks/{0b8681ca4a83e97f1f71.js → 067de1910190da228291.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c0fd1c6cda44e9f40ab.js → 070684943698fa43c2b4.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc1cb4b9a02e6c78deb7.js → 076e8d2e08ff2a013736.js} +1 -1
- package/assets/esri/core/workers/chunks/{c10e040368065411506a.js → 10445313d0d57b34511b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d537c59b46cdaaf66034.js → 1188d0a136fffc009643.js} +1 -1
- package/assets/esri/core/workers/chunks/1380cec385426673f294.js +1 -0
- package/assets/esri/core/workers/chunks/{20af3f085f60c32c6c53.js → 178083d8ed7707b45ca2.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5efe3e800c6e23efcf3.js → 1819c45655c836b9a8d7.js} +1 -1
- package/assets/esri/core/workers/chunks/1b946714ca4a1a7359d4.js +2 -0
- package/assets/esri/core/workers/chunks/{d8d8b38ac8a91d9e45fc.js → 1cc744ab5eee5ee3bed8.js} +1 -1
- package/assets/esri/core/workers/chunks/{05e39b4de7f62c5b22cc.js → 20f75cc777af13fa249b.js} +1 -1
- package/assets/esri/core/workers/chunks/2671035cc08027185737.js +1 -0
- package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +2 -0
- package/assets/esri/core/workers/chunks/34570e6bbf559f18c1a5.js +1 -0
- package/assets/esri/core/workers/chunks/{60f6d5da9480dd36e877.js → 3dddae78286d05eb10fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{9efd30bbd02ec0d1031b.js → 3ec3589f6e74d7cb87cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{0bec054fca104f3bf141.js → 3f776d9fd2ab68b21fca.js} +1 -1
- package/assets/esri/core/workers/chunks/3f946c13ad97fbed867b.js +1 -0
- package/assets/esri/core/workers/chunks/402a82c77420254831bc.js +1 -0
- package/assets/esri/core/workers/chunks/{e2ebf0ea3af2e6907987.js → 406f24ec13eb30d43405.js} +1 -1
- package/assets/esri/core/workers/chunks/43fc42405167a5537039.js +1 -0
- package/assets/esri/core/workers/chunks/{ddedc414bb478b376221.js → 46b2d4addfc73f9183a4.js} +1 -1
- package/assets/esri/core/workers/chunks/498d6dfd3bb0d3490548.js +1 -0
- package/assets/esri/core/workers/chunks/{36ef86701883a20dd6f6.js → 4a640548032355e57acd.js} +1 -1
- package/assets/esri/core/workers/chunks/5566f14afb63065e438f.js +1 -0
- package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js → 590e6c70206122e4cc3c.js} +2 -2
- package/assets/esri/core/workers/chunks/{54860dd53a46cf4c47f3.js → 59295b99bdff4045a0e7.js} +1 -1
- package/assets/esri/core/workers/chunks/5aeb5e18514644fe2cf9.js +1 -0
- package/assets/esri/core/workers/chunks/{5da86409d70098fc6a10.js → 5b3cfe95314a75a735c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{a54678bfa0f1807b61cd.js → 5c855af73ee3c3e764fb.js} +1 -1
- package/assets/esri/core/workers/chunks/{a8b7e6198c2d0c37c9a0.js → 5e90c1b49f2b7e21d05a.js} +4 -4
- package/assets/esri/core/workers/chunks/{30f808cac8a34f95ea6e.js → 6079d27f4ab319fb8f0c.js} +1 -1
- package/assets/esri/core/workers/chunks/66c2a28a851130b87c04.js +1 -0
- package/assets/esri/core/workers/chunks/{dac90b3631f7f7158f68.js → 67f15538c51838201fc7.js} +1 -1
- package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js → 68d8ae42ab71d01a70a5.js} +2 -2
- package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +1 -0
- package/assets/esri/core/workers/chunks/{864e7030c4ddbfcf0114.js → 6ccf9535013fe672c93b.js} +1 -1
- package/assets/esri/core/workers/chunks/{ba7f0cf7e495d3ec2d55.js → 6e62581d933e7298d1f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{83b5dd4029e00abd80bf.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9fea72cc222a30ef2f9.js → 72399062767abdfb0bee.js} +1 -1
- package/assets/esri/core/workers/chunks/{2a7fbfd77002a24bf737.js → 747461bb6a1bc2f0a64d.js} +1 -1
- package/assets/esri/core/workers/chunks/{c333f6ed42985bb2b11f.js → 7851aef196eea5d6c94e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f0b6bd6fab5320c3082f.js → 7a05b18f655c1167ce0a.js} +1 -1
- package/assets/esri/core/workers/chunks/{04296b75d0f81fbd1bb5.js → 864194927d05ebc4cc31.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c4a13a9f0b305394a26.js → 876f7633c15f1e31078d.js} +1 -1
- package/assets/esri/core/workers/chunks/{b547b3bce729c9dac90d.js → 898359be6996fd9763b8.js} +1 -1
- package/assets/esri/core/workers/chunks/8b1c17cc52d989924313.js +1 -0
- package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +1 -0
- package/assets/esri/core/workers/chunks/8dc1c3042267618fd710.js +2 -0
- package/assets/esri/core/workers/chunks/{625f02db93d7fbf175ca.js → 9001e9a1e81bce175ddd.js} +1 -1
- package/assets/esri/core/workers/chunks/{9ffa6c8d93d3443834c6.js → 912080c90b5cc2e817cf.js} +1 -1
- package/assets/esri/core/workers/chunks/96c50a0dda0f1503ef92.js +2 -0
- package/assets/esri/core/workers/chunks/{13e4379441499599c3b5.js → 9cbde13e536676767900.js} +1 -1
- package/assets/esri/core/workers/chunks/{408db4f32850b77264ae.js → 9cd3fcb5fca6f9dbbcd8.js} +1 -1
- package/assets/esri/core/workers/chunks/a054da6cbd8ee4774a57.js +1 -0
- package/assets/esri/core/workers/chunks/{468fa166608ffc9108d9.js → a05790444115e4cf1bcc.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1f2685782b423ef87a6.js → a556dd4e9e6d35e33a2c.js} +1 -1
- package/assets/esri/core/workers/chunks/acfa03c65ba3ca6c5685.js +1 -0
- package/assets/esri/core/workers/chunks/{00d576d355599c88931e.js → bc38def1983089514e4b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0725e515f3004bdd5c56.js → ca2adcbcf44454484fd5.js} +1 -1
- package/assets/esri/core/workers/chunks/{f3507b9e831ffd7a6bf8.js → cca8bd07bcd1d267a2e8.js} +1 -1
- package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +1 -0
- package/assets/esri/core/workers/chunks/{1d6b2a64f4e40e5cc13d.js → d201fbf3ceff946d2bd6.js} +1 -1
- package/assets/esri/core/workers/chunks/{4439078780d9ba49fd26.js → d51bb11baadc741c46bc.js} +1 -1
- package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +1 -0
- package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +1 -0
- package/assets/esri/core/workers/chunks/e630f3c56c077cb2bd8e.js +1 -0
- package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +1 -0
- package/assets/esri/core/workers/chunks/{2025288bed125594ceda.js → f6e62d2d279a328cbed7.js} +1 -1
- package/assets/esri/core/workers/chunks/{47c19778fcee7154ca38.js → f8bc474434fd365ab174.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a20dc26cb9c7b2087cf.js → f95a1f878c9c1146180e.js} +1 -1
- package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/Component.glsl.js +3 -3
- package/chunks/DefaultMaterial.glsl.js +2 -2
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/FocusArea.glsl.js +8 -10
- package/chunks/GaussianSplat.glsl.js +2 -2
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GeodeticUtils.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/GeometryCleaner-CIE8Wfmb.js +1 -1
- package/chunks/LineMarker.glsl.js +35 -42
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorAffineTransform.js +1 -1
- package/chunks/OperatorClip.js +1 -1
- package/chunks/OperatorDensify.js +1 -1
- package/chunks/OperatorDistance.js +1 -1
- package/chunks/OperatorGeneralize.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorGraphicBuffer.js +1 -1
- package/chunks/OperatorIntegrate.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/OperatorSimplifyOGC.js +1 -1
- package/chunks/Path.glsl.js +2 -2
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticTree.glsl.js +2 -2
- package/chunks/RibbonLine.glsl.js +50 -56
- package/chunks/SideCalculator2D-DX0718xq.js +1 -1
- package/chunks/Terrain.glsl.js +2 -2
- package/chunks/Transformation2D.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/config.js +1 -1
- package/core/sql/AggregateFunctions.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/editing/fieldUtils.d.ts +12 -0
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorBoundary.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorConvexHull.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorLocateBetween.js +1 -1
- package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/interfaces.d.ts +15 -18
- package/kernel.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/list/LayerItemCollection.d.ts +1 -0
- package/layers/list/types.d.ts +5 -1
- package/layers/support/TimeSeriesCalculation.d.ts +1 -1
- package/layers/support/TimeSeriesCalculation.js +1 -1
- package/layers/support/dataSeriesUtils.d.ts +10 -0
- package/layers/support/timeSeriesUtils.js +17 -6
- package/legend/ActiveLayerInfo.d.ts +2 -2
- package/legend/{LegendContent.d.ts → LegendModel.d.ts} +10 -10
- package/legend/{LegendContent.js → LegendModel.js} +1 -1
- package/legend/types.d.ts +4 -4
- package/libs/lyr3d/Lyr3DModule.js +1 -1
- package/networks/UtilityNetwork.d.ts +15 -0
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +4 -4
- package/popup/FeatureContent.d.ts +24 -2
- package/popup/FeatureContent.js +1 -1
- package/popup/FeatureContentCollection.d.ts +3 -10
- package/popup/FeatureContentCollection.js +1 -1
- package/popup/actions.js +1 -1
- package/popup/support/featureUtils.js +1 -1
- package/renderers/support/RenderingInfo.js +1 -1
- package/renderers/support/renderingInfoUtils.js +1 -1
- package/renderers/visualVariables/SizeVariable.d.ts +16 -20
- package/renderers/visualVariables/support/SizeStop.d.ts +6 -2
- package/rest/networks/support/TraceLocation.js +1 -1
- package/rest/networks/support/TraceResult.d.ts +7 -0
- package/rest/networks/support/TraceResult.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
- package/smartMapping/statistics/histogramForTimeSeries.d.ts +11 -0
- package/smartMapping/statistics/histogramForTimeSeries.js +2 -0
- package/smartMapping/statistics/summaryStatisticsForTimeSeries.d.ts +11 -0
- package/smartMapping/statistics/summaryStatisticsForTimeSeries.js +2 -0
- package/smartMapping/statistics/support/timeSeriesUtils.js +24 -0
- package/smartMapping/statistics/types.d.ts +50 -0
- package/symbols/cim/CIMPlacements.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/types.d.ts +493 -8
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/ComputedAnimatedParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextParams.js +1 -1
- package/views/2d/layers/SketchLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/schema/ExceedsLimitCache.js +1 -1
- package/views/2d/layers/features/schema/TimeSchema.js +2 -0
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
- package/views/2d/types.d.ts +2 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +24 -0
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/camera/constraintUtils.js +1 -1
- package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
- package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/state/controllers/GroundNavigationController.js +1 -1
- package/views/3d/state/controllers/momentum/GroundNavigationMomentumController.js +1 -1
- package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +12 -0
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/focusArea/FocusArea.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/SelectionManager.d.ts +3 -3
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/options/bindViewToolOptions.js +1 -1
- package/views/interactive/sketch/SketchLabelOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchLabelOptions.js +1 -1
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchTooltipOptions.js +1 -1
- package/views/interactive/sketch/SketchValueOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchValueOptions.js +1 -1
- package/views/interactive/snapping/SnappingOptions.d.ts +3 -0
- package/views/interactive/snapping/SnappingOptions.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
- package/views/layers/SketchLayerView.d.ts +34 -0
- package/views/layers/SketchLayerView.js +2 -0
- package/views/layers/types.d.ts +3 -2
- package/views/selection/types.d.ts +15 -4
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +4 -0
- package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +5 -1
- package/widgets/Bookmarks/types.d.ts +2 -0
- package/widgets/Editor/EditorViewModel.d.ts +31 -30
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/components/Settings.js +1 -1
- package/widgets/Editor/types.d.ts +44 -0
- package/widgets/Editor.d.ts +30 -27
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +6 -0
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Histogram/types.d.ts +10 -2
- package/widgets/HistogramRangeSlider/types.d.ts +4 -1
- package/widgets/LayerList/LayerListViewModel.d.ts +2 -1
- package/widgets/Legend/LegendViewModel.d.ts +3 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/styles/card/CardView.d.ts +2 -0
- package/widgets/Legend/styles/classic/ClassicView.d.ts +4 -1
- package/widgets/Legend.d.ts +3 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +7 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/types.d.ts +9 -0
- package/widgets/OrientedImageryViewer.d.ts +7 -0
- package/widgets/OrientedImageryViewer.js +2 -2
- package/widgets/PanoramicVideoViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/ScaleRangeSlider/types.d.ts +9 -2
- package/widgets/Sketch/SketchViewModel.d.ts +32 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.d.ts +27 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/Slider/types.d.ts +58 -13
- package/widgets/Slider.d.ts +6 -0
- package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/SizeSlider/SizeSliderViewModel.d.ts +3 -0
- package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/types.d.ts +30 -7
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +21 -11
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
- package/widgets/support/FilterBuilder/types.d.ts +28 -0
- package/widgets/support/FilterBuilder.js +1 -1
- package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +24 -0
- package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
- package/widgets/support/FilterCondition/types.d.ts +16 -1
- package/widgets/support/FilterCondition.js +1 -1
- package/widgets/support/SnappingControls/snappingLayerListUtils.js +1 -1
- package/widgets/support/iconUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0606ab6fdfc1dfea3856.js +0 -1
- package/assets/esri/core/workers/chunks/1289204f8ca96032c17a.js +0 -1
- package/assets/esri/core/workers/chunks/12b5a645c0987a0efe54.js +0 -2
- package/assets/esri/core/workers/chunks/17b938ba49fb1e7ab8c4.js +0 -1
- package/assets/esri/core/workers/chunks/1dbb3e25e005a8220779.js +0 -2
- package/assets/esri/core/workers/chunks/37fc47373c1c8fcdfd1a.js +0 -1
- package/assets/esri/core/workers/chunks/3d6fef25af7e1a51e1bd.js +0 -1
- package/assets/esri/core/workers/chunks/537dbd3b870bbef7433e.js +0 -1
- package/assets/esri/core/workers/chunks/55ae00f33f5240a73a50.js +0 -1
- package/assets/esri/core/workers/chunks/62298dba3f6cbdc3f4ae.js +0 -1
- package/assets/esri/core/workers/chunks/703411e4a18a6a36048a.js +0 -1
- package/assets/esri/core/workers/chunks/74211d096cc3296e0968.js +0 -1
- package/assets/esri/core/workers/chunks/7926faab76a721a2e1c4.js +0 -1
- package/assets/esri/core/workers/chunks/96c3900685cfb2a8ca12.js +0 -1
- package/assets/esri/core/workers/chunks/ad28486bc6afaa346de5.js +0 -1
- package/assets/esri/core/workers/chunks/ad29c729e90b5866713c.js +0 -1
- package/assets/esri/core/workers/chunks/b72a2514aa4cc4ae7d1b.js +0 -1
- package/assets/esri/core/workers/chunks/b748faaa5ebdeba73103.js +0 -1
- package/assets/esri/core/workers/chunks/be761749f8d77fbd9df5.js +0 -1
- package/assets/esri/core/workers/chunks/d4f55e2b1ace7867a3b8.js +0 -1
- package/assets/esri/core/workers/chunks/dbfd25aa0d19aed5890c.js +0 -1
- package/assets/esri/core/workers/chunks/de28a86775235bd5d3c4.js +0 -2
- package/assets/esri/core/workers/chunks/f6cfc901267a229de7a1.js +0 -2
- package/assets/esri/core/workers/chunks/fb147097149a89e671ff.js +0 -1
- package/support/revision.js +0 -2
- /package/assets/esri/core/workers/chunks/{1dbb3e25e005a8220779.js.LICENSE.txt → 1b946714ca4a1a7359d4.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{f6cfc901267a229de7a1.js.LICENSE.txt → 2a1ec30f9ad305763f81.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js.LICENSE.txt → 590e6c70206122e4cc3c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js.LICENSE.txt → 68d8ae42ab71d01a70a5.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{de28a86775235bd5d3c4.js.LICENSE.txt → 8dc1c3042267618fd710.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{12b5a645c0987a0efe54.js.LICENSE.txt → 96c50a0dda0f1503ef92.js.LICENSE.txt} +0 -0
|
@@ -27,6 +27,12 @@ export interface LineOfSightAnalysisObserverProperties extends Partial<Pick<Line
|
|
|
27
27
|
* must be defined before the layer can be saved to a [WebScene](https://developers.arcgis.com/javascript/latest/references/core/WebScene/).
|
|
28
28
|
*/
|
|
29
29
|
position?: PointProperties | null;
|
|
30
|
+
/**
|
|
31
|
+
* Indicates that this is an observer. This property is not persisted in a [WebScene](https://developers.arcgis.com/javascript/latest/references/core/WebScene/).
|
|
32
|
+
*
|
|
33
|
+
* @since 5.2
|
|
34
|
+
*/
|
|
35
|
+
type?: "observer";
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
/**
|
|
@@ -74,5 +80,11 @@ export default class LineOfSightAnalysisObserver extends LineOfSightAnalysisObse
|
|
|
74
80
|
*/
|
|
75
81
|
get position(): Point | null | undefined;
|
|
76
82
|
set position(value: PointProperties | null | undefined);
|
|
83
|
+
/**
|
|
84
|
+
* Indicates that this is an observer. This property is not persisted in a [WebScene](https://developers.arcgis.com/javascript/latest/references/core/WebScene/).
|
|
85
|
+
*
|
|
86
|
+
* @since 5.2
|
|
87
|
+
*/
|
|
88
|
+
get type(): "observer";
|
|
77
89
|
}
|
|
78
90
|
declare const LineOfSightAnalysisObserverSuperclass: typeof Accessor & typeof ClonableMixin & typeof JSONSupportMixin
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{featureReferenceEquals as t,featureReferenceProperty as n}from"./featureReferenceUtils.js";import r from"../core/Accessor.js";import{ClonableMixin as i}from"../core/Clonable.js";import{JSONSupportMixin as a}from"../core/JSONSupport.js";import{equalsMaybe as o}from"../core/maybe.js";import{property as s,subclass as c}from"../core/accessorSupport/decorators.js";import{persistable as l}from"../core/accessorSupport/decorators/persistable.js";import u from"../geometry/Point.js";import d from"../symbols/support/ElevationInfo.js";let f=class extends a(i(r)){constructor(e){super(e),this.position=null,this.elevationInfo=null,this.feature=null}equals(e){return o(this.position,e.position)&&o(this.elevationInfo,e.elevationInfo)&&t(this.feature,e.feature)}};e([s({type:u,json:{write:{isRequired:!0}}})],f.prototype,`position`,void 0),e([s({type:d}),l()],f.prototype,`elevationInfo`,void 0),e([s(n)],f.prototype,`feature`,void 0),f=e([c(`esri.analysis.LineOfSightAnalysisObserver`)],f);const p=f;export{p as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import{featureReferenceEquals as t,featureReferenceProperty as n}from"./featureReferenceUtils.js";import r from"../core/Accessor.js";import{ClonableMixin as i}from"../core/Clonable.js";import{JSONSupportMixin as a}from"../core/JSONSupport.js";import{equalsMaybe as o}from"../core/maybe.js";import{property as s,subclass as c}from"../core/accessorSupport/decorators.js";import{persistable as l}from"../core/accessorSupport/decorators/persistable.js";import u from"../geometry/Point.js";import d from"../symbols/support/ElevationInfo.js";let f=class extends a(i(r)){constructor(e){super(e),this.type=`observer`,this.position=null,this.elevationInfo=null,this.feature=null}equals(e){return o(this.position,e.position)&&o(this.elevationInfo,e.elevationInfo)&&t(this.feature,e.feature)}};e([s({constructOnly:!0})],f.prototype,`type`,void 0),e([s({type:u,json:{write:{isRequired:!0}}})],f.prototype,`position`,void 0),e([s({type:d}),l()],f.prototype,`elevationInfo`,void 0),e([s(n)],f.prototype,`feature`,void 0),f=e([c(`esri.analysis.LineOfSightAnalysisObserver`)],f);const p=f;export{p as default};
|
|
@@ -22,6 +22,12 @@ export interface LineOfSightAnalysisTargetProperties extends Partial<Pick<LineOf
|
|
|
22
22
|
* sight analysis will synchronously calculate the intersection and the visibility.
|
|
23
23
|
*/
|
|
24
24
|
position?: PointProperties | null;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates that this is a target. This property is not persisted in a [WebScene](https://developers.arcgis.com/javascript/latest/references/core/WebScene/).
|
|
27
|
+
*
|
|
28
|
+
* @since 5.2
|
|
29
|
+
*/
|
|
30
|
+
type?: "target";
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
/**
|
|
@@ -66,5 +72,11 @@ export default class LineOfSightAnalysisTarget extends LineOfSightAnalysisTarget
|
|
|
66
72
|
*/
|
|
67
73
|
get position(): Point | null | undefined;
|
|
68
74
|
set position(value: PointProperties | null | undefined);
|
|
75
|
+
/**
|
|
76
|
+
* Indicates that this is a target. This property is not persisted in a [WebScene](https://developers.arcgis.com/javascript/latest/references/core/WebScene/).
|
|
77
|
+
*
|
|
78
|
+
* @since 5.2
|
|
79
|
+
*/
|
|
80
|
+
get type(): "target";
|
|
69
81
|
}
|
|
70
82
|
declare const LineOfSightAnalysisTargetSuperclass: typeof Clonable & typeof JSONSupportMixin
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{featureReferenceEquals as t,featureReferenceProperty as n}from"./featureReferenceUtils.js";import{Clonable as r}from"../core/Clonable.js";import{JSONSupportMixin as i}from"../core/JSONSupport.js";import{equalsMaybe as a}from"../core/maybe.js";import{property as o,subclass as s}from"../core/accessorSupport/decorators.js";import{persistable as c}from"../core/accessorSupport/decorators/persistable.js";import l from"../geometry/Point.js";import u from"../symbols/support/ElevationInfo.js";let d=class extends i(r){constructor(e){super(e),this.position=null,this.elevationInfo=null,this.feature=null}equals(e){return a(this.position,e.position)&&a(this.elevationInfo,e.elevationInfo)&&t(this.feature,e.feature)}};e([o({type:l,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),c()],d.prototype,`position`,void 0),e([o({type:u}),c()],d.prototype,`elevationInfo`,void 0),e([o(n)],d.prototype,`feature`,void 0),d=e([s(`esri.analysis.LineOfSightAnalysisTarget`)],d);export{d as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import{featureReferenceEquals as t,featureReferenceProperty as n}from"./featureReferenceUtils.js";import{Clonable as r}from"../core/Clonable.js";import{JSONSupportMixin as i}from"../core/JSONSupport.js";import{equalsMaybe as a}from"../core/maybe.js";import{property as o,subclass as s}from"../core/accessorSupport/decorators.js";import{persistable as c}from"../core/accessorSupport/decorators/persistable.js";import l from"../geometry/Point.js";import u from"../symbols/support/ElevationInfo.js";let d=class extends i(r){constructor(e){super(e),this.type=`target`,this.position=null,this.elevationInfo=null,this.feature=null}equals(e){return a(this.position,e.position)&&a(this.elevationInfo,e.elevationInfo)&&t(this.feature,e.feature)}};e([o({constructOnly:!0})],d.prototype,`type`,void 0),e([o({type:l,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),c()],d.prototype,`position`,void 0),e([o({type:u}),c()],d.prototype,`elevationInfo`,void 0),e([o(n)],d.prototype,`feature`,void 0),d=e([s(`esri.analysis.LineOfSightAnalysisTarget`)],d);export{d as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{neverAbortedSignal as e}from"../../arcadeEnvironment.js";import{StringEnum as t}from"../../enum.js";import{a5 as n}from"../../../chunks/languageUtils.js";import{SqlExpressionAdapted as r,OriginalField as i,AdaptedFeatureSet as a}from"./Adapted.js";import o from"./AttributeFilter.js";import s from"./OrderBy.js";import{FeatureSetError as c,throwIfCancelled as l}from"../support/errorsupport.js";import{FeatureSet as u,emptyFeaturesResult as d}from"../support/FeatureSet.js";import f from"../support/OrderbyClause.js";import{isSingleField as p,toWhereClause as m,predictType as h,scanForField as g,reformulateWithoutField as _}from"../support/sqlUtils.js";import v from"../support/StatsField.js";import{createMD5Hash as y,outputTypes as b}from"../../../core/MD5.js";import{aggregateFunction as x}from"../../../core/sql/AggregateFunctions.js";import
|
|
2
|
+
import{neverAbortedSignal as e}from"../../arcadeEnvironment.js";import{StringEnum as t}from"../../enum.js";import{a5 as n}from"../../../chunks/languageUtils.js";import{SqlExpressionAdapted as r,OriginalField as i,AdaptedFeatureSet as a}from"./Adapted.js";import o from"./AttributeFilter.js";import s from"./OrderBy.js";import{FeatureSetError as c,throwIfCancelled as l}from"../support/errorsupport.js";import{FeatureSet as u,emptyFeaturesResult as d}from"../support/FeatureSet.js";import f from"../support/OrderbyClause.js";import{isSingleField as p,toWhereClause as m,predictType as h,scanForField as g,reformulateWithoutField as _}from"../support/sqlUtils.js";import v from"../support/StatsField.js";import{createMD5Hash as y,outputTypes as b}from"../../../core/MD5.js";import{aggregateFunction as x}from"../../../core/sql/AggregateFunctions.js";import S from"../../../core/sql/WhereClause.js";import C from"../../../layers/support/Field.js";const w=new t([`MIN`,`MAX`,`VAR`,`STDDEV`,`COUNT`,`SUM`,`AVG`],[[`VARIANCE`,`VAR`],[`AVERAGE`,`AVG`],[`MEAN`,`AVG`],[`STDEV`,`STDDEV`]]);class T extends u{constructor(e){super(),this.declaredClass=`esri.arcade.featureset.actions.Aggregate`,this._decodedStatsFields=[],this._decodedGroupByFields=[],this._canDoSimpleGroupBy=!0,this._physicalGroupByFields=[],this.objectIdField=`ROW__ID`,this._adaptedFields=[],this._uniqueIds=1,this._maxQuery=10,this._maxProcessing=10,this._parent=e.parentfeatureset,this._config=e}isTable(){return!0}_nextUniqueName(e){for(;e[`T`+this._uniqueIds.toString()]===1;)this._uniqueIds++;let t=`T`+this._uniqueIds.toString();return e[t]=1,t}_convertToEsriFieldType(e){return e}_initialiseFeatureSet(){let e=this._parent.getFieldsIndex();this.objectIdField=`ROW__ID`,this.globalIdField=``;let t=!1,n=1;for(;t===!1;){let e=!1;for(let t of this._config.groupbyfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}if(e===!1){for(let t of this._config.statsfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}}e===!1?t=!0:(this.objectIdField=`ROW__ID`+n.toString(),n++)}for(let t of this._config.statsfields){let n=new v;n.field=t.name,n.tofieldname=t.name,n.workingexpr=t.expression instanceof S?t.expression:S.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),n.typeofstat=w.lookup(t.statistic)??`COUNT`,this._decodedStatsFields.push(n)}this._decodedGroupByFields=[];for(let t of this._config.groupbyfields){let n={name:t.name,singlefield:null,tofieldname:t.name,expression:t.expression instanceof S?t.expression:S.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),sqlType:null};this._decodedGroupByFields.push(n)}let a={};this.geometryType=this._parent.geometryType,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=``;for(let e of this._parent.fields)a[e.name.toUpperCase()]=1;this.types=null,this.subtypes=null,this.subtypeField=``,this.fields=[];let o=new v;o.field=this._nextUniqueName(a),o.tofieldname=this.objectIdField,o.workingexpr=S.create(this._parent.objectIdField,{fieldsIndex:this._parent.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),o.typeofstat=`MIN`,this._decodedStatsFields.push(o);for(let e of this._decodedGroupByFields){let t=new C;if(e.name=this._nextUniqueName(a),t.name=e.tofieldname,t.alias=t.name,p(e.expression)){let n=this._parent.getField(m(e.expression,0));if(!n)throw new c(`AggregationFieldNotFound`);e.name=n.name,e.singlefield=n.name,this._physicalGroupByFields.push(n.name),t.type=n.type,e.sqlType=n.type}else{t.type=this._convertToEsriFieldType(h(e.expression,this._parent.fields));let n=new C;n.name=e.name,n.alias=n.name,this._physicalGroupByFields.push(e.name),this._adaptedFields.push(new r(n,e.expression)),this._canDoSimpleGroupBy=!1,e.sqlType=t.type}this.fields.push(t)}if(this._adaptedFields.length>0)for(let e of this._parent.fields)this._adaptedFields.push(new i(e));for(let e of this._decodedStatsFields){let t=new C;e.field=this._nextUniqueName(a),t.name=e.tofieldname,t.alias=t.name;let n=null;if(e.workingexpr!=null&&p(e.workingexpr)){let t=m(e.workingexpr,0);if(n=this._parent.getField(t),!n)throw new c(`AggregationFieldNotFound`)}switch(e.typeofstat){case`SUM`:t.type=n==null?`double`:n.type;break;case`MIN`:case`MAX`:t.type=n==null?h(e.workingexpr,this._parent.fields)||`double`:n.type;break;case`COUNT`:t.type=`integer`;break;case`STDDEV`:case`VAR`:case`AVG`:t.type=`double`;break;default:e.typeofstat}this.fields.push(t)}}async _queryAll(){return(await this.query({abortSignal:e})).features}async query(e){if(e.spatialFilter!=null)return d;let t={ordered:!1,nowhereclause:!1};await this._ensureLoaded();let n=e.where;if(n!=null){for(let e of this._decodedStatsFields)if(g(n,e.tofieldname)===!0){t.nowhereclause=!0,n=null;break}}let r=e.orderBy;if(r!=null){t.ordered=!0;for(let e of this._decodedStatsFields)if(r.scanForField(e.tofieldname)===!0){r=null,t.ordered=!1;break}if(r!==null){for(let e of this._decodedGroupByFields)if(e.singlefield===null&&r.scanForField(e.tofieldname)===!0){r=null,t.ordered=!1;break}}}if(this._canDoSimpleGroupBy!==!1&&await this._parent.canQueryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:null,spatialFilter:null,abortSignal:e.abortSignal})){let i=await this._parent.queryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:n?this._reformulateWhereClauseWithoutGroupByFields(n):null,spatialFilter:null,orderBy:r?this._reformulateOrderClauseWithoutGroupByFields(r):null,abortSignal:e.abortSignal});return l(e.abortSignal),{...i,filterApplied:!t.nowhereclause&&i.filterApplied,ordered:t.ordered===!0&&i.ordered,features:this._fixAggregateAttributeNames(i.features)}}let i=this._adaptedFields.length>0?new a({parentfeatureset:this._parent,adaptedFields:this._adaptedFields,extraFilter:null}):this._parent;if(t.nowhereclause===!0){let t=new s({parentfeatureset:i,orderbyclause:new f(this._physicalGroupByFields.join(`,`)+`,`+this._parent.objectIdField+` ASC`)});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await t.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}let c=i;n!=null&&(c=new o({parentfeatureset:c,whereclause:this._reformulateWhereClauseWithoutGroupByFields(n)}));let u=new s({parentfeatureset:c,orderbyclause:new f(this._physicalGroupByFields.join(`,`)+`,`+this._parent.objectIdField+` ASC`)});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await u.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}async*_fixAggregateAttributeNames(e){for await(let t of e)yield t.map(e=>{let t={geometry:e.geometry,attributes:{}},n={};for(let t in e.attributes)n[t.toLowerCase()]=e.attributes[t];for(let e of this._decodedGroupByFields)t.attributes[e.tofieldname]=n[e.name.toLowerCase()];for(let e of this._decodedStatsFields)t.attributes[e.tofieldname]=n[e.field.toLowerCase()];return t})}async*_aggregateSortedFeatureGroups(e,t,r){let i=null,a=[];for await(let o of e){await n(),l(r);for(let e of o){let t=this._generateAggregateHash(e);i==null?i={features:[e],id:t}:t===i.id?i.features.push(e):(a.push(this._calculateAndAppendAggregateItem(i)),i={features:[e],id:t})}a.length>=t&&(yield a,a=[])}i!=null&&(a.push(this._calculateAndAppendAggregateItem(i)),yield a)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new c(`NeverReach`)}_reformulateWhereClauseWithoutStatsFields(e){for(let t of this._decodedStatsFields)e=_(e,t.tofieldname,m(t.workingexpr,0),this._parent.getFieldsIndex());return e}_reformulateWhereClauseWithoutGroupByFields(e){for(let t of this._decodedGroupByFields)t.tofieldname!==t.name&&(e=_(e,t.tofieldname,m(t.expression,0),this._parent.getFieldsIndex()));return e}_reformulateOrderClauseWithoutGroupByFields(e){let t=[];for(let e of this._decodedGroupByFields)e.tofieldname!==e.name&&t.push({field:e.tofieldname,newfield:e.name});return t.length>0?e.replaceFields(t):e}_calculateFieldStat(e,t,n){let r=[];for(let n of e.features)t.workingexpr===null?r.push(null):r.push(t.workingexpr.calculateValue(n));n.attributes[t.tofieldname]=S.convertValueToStorageFormat(x(t.typeofstat,[r]))}_calculateAndAppendAggregateItem(e){let t={attributes:{}};for(let n of this._decodedGroupByFields){let r=n.singlefield?e.features[0].attributes[n.singlefield]:S.convertValueToStorageFormat(n.expression.calculateValue(e.features[0]),n.sqlType);t.attributes[n.tofieldname]=r}for(let n of this._decodedStatsFields)this._calculateFieldStat(e,n,t);return t}_generateAggregateHash(e){let t=``;for(let n of this._decodedGroupByFields){let r=n.singlefield?e.attributes[n.singlefield]:n.expression.calculateValue(e);t+=r==null?`:`:`:`+r.toString()}return y(t,b.String)}async getFeatureByObjectId(){throw new c(`NotImplemented`)}}export{T as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{neverAbortedSignal as e}from"../../arcadeEnvironment.js";import{throwIfCancelled as t,FeatureSetError as n}from"../support/errorsupport.js";import{RootFeatureSet as r,emptyFeaturesResult as i,assignSpatialReferenceOnFeatures as a,getSpatialFilterRelationRestQueryParams as o}from"../support/FeatureSet.js";import{defaultMaxRecords as s}from"../support/shared.js";import{toWhereClause as c}from"../support/sqlUtils.js";import{decodeStatType as l}from"../support/stats.js";import{splitIntoChunks as u}from"../../../core/arrayUtils.js";import{sqlAnd as d}from"../../../core/sql.js";import f from"../../../rest/support/StatisticDefinition.js";const p=new FinalizationRegistry(e=>{e.abort()});class m extends r{constructor(e){super(),this.declaredClass=`esri.arcade.featureset.sources.FeatureLayerParquet`,this._outFields=null,this._returnGeometry=!0,this._ignoreDefinitionExpression=!1,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),e.outFields!=null&&(this._outFields=e.outFields),e.includeGeometry!=null&&(this._returnGeometry=e.includeGeometry)}_maxQueryRate(){return s}async loadImpl(){return this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??``,this.fields=this._layer.fields.slice(),this.hasZ=this._layer.capabilities?.data?.supportsZ===!0,this.hasM=this._layer.capabilities?.data?.supportsM===!0,this.objectIdField=this._layer.objectIdField,this._outFields!==null){if(this._outFields.length===1&&this._outFields[0]===`*`)this._outFields=null;else{let e=new Set(this._outFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:n})=>t===`oid`||e.has(n.toLowerCase())),this._outFields=this.fields.map(({name:e})=>e)}}this._databaseType=0}getDataSourceFeatureSet(){let e=new m({layer:this._layer,spatialReference:this.spatialReference??void 0,outFields:this._outFields??void 0,includeGeometry:this._returnGeometry});return e._ignoreDefinitionExpression=!0,e}_createQuery(){let e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,this._ignoreDefinitionExpression&&(e.where=null),e}isTable(){return this._layer.isTable}async _queryAll(){return(await this.query({abortSignal:e})).features}async query(e){if(await this._ensureLoaded(),this.isTable()&&e.spatialFilter!=null)return i;let t={type:`arcade`,returnGeometry:this._returnGeometry,returnZ:this.hasZ,returnM:this.hasM,outSpatialReference:(this.spatialReference??this._layer.spatialReference).toJSON(),outFields:Array.from(new Set(this._outFields??this._layer.fields.map(e=>e.name))),where:d(this._ignoreDefinitionExpression?null:this._layer.definitionExpression,e.where?c(e.where,0):null),extent:null};if(e.spatialFilter!=null)switch(e.spatialFilter.relation){case`esriSpatialRelIntersects`:case`esriSpatialRelContains`:case`esriSpatialRelOverlaps`:case`esriSpatialRelWithin`:case`esriSpatialRelTouches`:case`esriSpatialRelCrosses`:{let n=e.spatialFilter.geometry.extent;n!=null&&(t.extent=n.toJSON());break}}return{filterApplied:!0,spatialFilterApplied:!1,ordered:!1,features:await this._queryParquetStream(t,e.abortSignal)}}async _queryParquetStream(e,t){let n=new AbortController,r=await this._layer.source._queryStream(e,{signal:n.signal}),i=this._iterateParquetStream(r,n,t);return p.register(i,n,n),i}async*_iterateParquetStream(e,n,r){try{for(;;){let i=await this._layer.source._getStreamNextFeatures(e,{signal:n.signal});if(r.aborted&&(n.abort(),t(r)),i==null)break;a(i.features,i.spatialReference??this.spatialReference.toJSON()),yield i.features}}finally{p.unregister(n)}}async isEmpty(){return this._totalCount>=0?this._totalCount===0:(this._totalCount=await this._layer.queryFeatureCount(this._createQuery()),this._totalCount<=0)}async queryStat(e){await this._ensureLoaded();let t=l(e.stat);if(t===`count`)return this._queryCount(e);let r=e.field;if(r==null)throw new n(`NeverReach`);if(this._layer.capabilities?.query.supportsStatistics!==!0)return e.spatialFilter!=null||e.where!=null?{calculated:!1}:this._manualStat(e.stat,r,e.limit??s,e.abortSignal);if(t===`distinct`)return{calculated:!1};if(this.isTable()&&e.spatialFilter!=null)return{calculated:!0,result:null};let i=this._createQuery();if(i.returnGeometry=!1,i.where=d(i.where,e.where?c(e.where,0):null),e.spatialFilter!=null){let t=o(e.spatialFilter.relation);i.spatialRelationship=t.spatialRelationship,i.relationParameter=t.relationParameter,i.geometry=e.spatialFilter.geometry}let a=new f;a.statisticType=t,a.onStatisticField=c(r,0);let u=`ARCADE_STAT_RESULT`;a.outStatisticFieldName=u,i.outStatistics=[a];let p=await this._layer.source.queryFeaturesJSON(i);if(p.features.length<=0)throw new n(`InvalidStatResponse`);let m=p.features[0].attributes[u];return{calculated:!0,result:p.fields?.find(e=>e.name===u)?.type===`esriFieldTypeDate`&&m!=null?new Date(m):m}}async _queryCount(e){if(this.isTable()&&e.spatialFilter!=null)return{calculated:!0,result:0};let t=this._createQuery();if(t.where=d(t.where,e.where?c(e.where,0):null),e.spatialFilter!=null){let n=o(e.spatialFilter.relation);t.spatialRelationship=n.spatialRelationship,t.relationParameter=n.relationParameter,t.geometry=e.spatialFilter.geometry}return t.returnGeometry=!1,{calculated:!0,result:await this._layer.queryFeatureCount(t)}}async canQueryAggregate(e){return await this._ensureLoaded(),this._layer.capabilities?.query?.supportsStatistics===!0&&e.spatialFilter==null}async queryAggregate(e){await this._ensureLoaded();let n=this._createQuery();return n.where=d(n.where,e.where?c(e.where,0):null),n.orderByFields=e.orderBy?.toOrderByFields(),n.outFields=[`*`],n.outStatistics=e.statistics.map(e=>new f({onStatisticField:e.workingexpr===null?``:c(e.workingexpr,0),outStatisticFieldName:e.field,statisticType:e.toStatisticsName()})),n.groupByFieldsForStatistics=e.groupBy,n.returnGeometry=!1,{filterApplied:!0,spatialFilterApplied:!0,ordered:e.orderBy!=null,features:async function*(){let r=await this._layer.source.queryFeaturesJSON(n);t(e.abortSignal);for(let e of u(r.features,this._maxQueryRate()))a(e,r.spatialReference??this.spatialReference.toJSON()),yield e}.apply(this)}}nativeCapabilities(){return{title:this._layer.title??``,canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}async queryAttachments(){return[]}serviceUrl(){return``}relationshipMetadata(){return[]}get gdbVersion(){return``}getFeatureByObjectId(){throw new n(`NeverReach`)}async getOwningSystemUrl(){return``}async getIdentityUser(){return``}get preferredTimeZone(){return null}get dateFieldsTimeZone(){return
|
|
2
|
+
import{neverAbortedSignal as e}from"../../arcadeEnvironment.js";import{throwIfCancelled as t,FeatureSetError as n}from"../support/errorsupport.js";import{RootFeatureSet as r,emptyFeaturesResult as i,assignSpatialReferenceOnFeatures as a,getSpatialFilterRelationRestQueryParams as o}from"../support/FeatureSet.js";import{defaultMaxRecords as s}from"../support/shared.js";import{toWhereClause as c}from"../support/sqlUtils.js";import{decodeStatType as l}from"../support/stats.js";import{splitIntoChunks as u}from"../../../core/arrayUtils.js";import{sqlAnd as d}from"../../../core/sql.js";import f from"../../../rest/support/StatisticDefinition.js";const p=new FinalizationRegistry(e=>{e.abort()});class m extends r{constructor(e){super(),this.declaredClass=`esri.arcade.featureset.sources.FeatureLayerParquet`,this._outFields=null,this._returnGeometry=!0,this._ignoreDefinitionExpression=!1,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),e.outFields!=null&&(this._outFields=e.outFields),e.includeGeometry!=null&&(this._returnGeometry=e.includeGeometry)}_maxQueryRate(){return s}async loadImpl(){return this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??``,this.fields=this._layer.fields.slice(),this.hasZ=this._layer.capabilities?.data?.supportsZ===!0,this.hasM=this._layer.capabilities?.data?.supportsM===!0,this.objectIdField=this._layer.objectIdField,this._outFields!==null){if(this._outFields.length===1&&this._outFields[0]===`*`)this._outFields=null;else{let e=new Set(this._outFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:n})=>t===`oid`||e.has(n.toLowerCase())),this._outFields=this.fields.map(({name:e})=>e)}}this._databaseType=0}getDataSourceFeatureSet(){let e=new m({layer:this._layer,spatialReference:this.spatialReference??void 0,outFields:this._outFields??void 0,includeGeometry:this._returnGeometry});return e._ignoreDefinitionExpression=!0,e}_createQuery(){let e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,this._ignoreDefinitionExpression&&(e.where=null),e}isTable(){return this._layer.isTable}async _queryAll(){return(await this.query({abortSignal:e})).features}async query(e){if(await this._ensureLoaded(),this.isTable()&&e.spatialFilter!=null)return i;let t={type:`arcade`,returnGeometry:this._returnGeometry,returnZ:this.hasZ,returnM:this.hasM,outSpatialReference:(this.spatialReference??this._layer.spatialReference).toJSON(),outFields:Array.from(new Set(this._outFields??this._layer.fields.map(e=>e.name))),where:d(this._ignoreDefinitionExpression?null:this._layer.definitionExpression,e.where?c(e.where,0):null),extent:null};if(e.spatialFilter!=null)switch(e.spatialFilter.relation){case`esriSpatialRelIntersects`:case`esriSpatialRelContains`:case`esriSpatialRelOverlaps`:case`esriSpatialRelWithin`:case`esriSpatialRelTouches`:case`esriSpatialRelCrosses`:{let n=e.spatialFilter.geometry.extent;n!=null&&(t.extent=n.toJSON());break}}return{filterApplied:!0,spatialFilterApplied:!1,ordered:!1,features:await this._queryParquetStream(t,e.abortSignal)}}async _queryParquetStream(e,t){let n=new AbortController,r=await this._layer.source._queryStream(e,{signal:n.signal}),i=this._iterateParquetStream(r,n,t);return p.register(i,n,n),i}async*_iterateParquetStream(e,n,r){try{for(;;){let i=await this._layer.source._getStreamNextFeatures(e,{signal:n.signal});if(r.aborted&&(n.abort(),t(r)),i==null)break;a(i.features,i.spatialReference??this.spatialReference.toJSON()),yield i.features}}finally{p.unregister(n)}}async isEmpty(){return this._totalCount>=0?this._totalCount===0:(this._totalCount=await this._layer.queryFeatureCount(this._createQuery()),this._totalCount<=0)}async queryStat(e){await this._ensureLoaded();let t=l(e.stat);if(t===`count`)return this._queryCount(e);let r=e.field;if(r==null)throw new n(`NeverReach`);if(this._layer.capabilities?.query.supportsStatistics!==!0)return e.spatialFilter!=null||e.where!=null?{calculated:!1}:this._manualStat(e.stat,r,e.limit??s,e.abortSignal);if(t===`distinct`)return{calculated:!1};if(this.isTable()&&e.spatialFilter!=null)return{calculated:!0,result:null};let i=this._createQuery();if(i.returnGeometry=!1,i.where=d(i.where,e.where?c(e.where,0):null),e.spatialFilter!=null){let t=o(e.spatialFilter.relation);i.spatialRelationship=t.spatialRelationship,i.relationParameter=t.relationParameter,i.geometry=e.spatialFilter.geometry}let a=new f;a.statisticType=t,a.onStatisticField=c(r,0);let u=`ARCADE_STAT_RESULT`;a.outStatisticFieldName=u,i.outStatistics=[a];let p=await this._layer.source.queryFeaturesJSON(i);if(p.features.length<=0)throw new n(`InvalidStatResponse`);let m=p.features[0].attributes[u];return{calculated:!0,result:p.fields?.find(e=>e.name===u)?.type===`esriFieldTypeDate`&&m!=null?new Date(m):m}}async _queryCount(e){if(this.isTable()&&e.spatialFilter!=null)return{calculated:!0,result:0};let t=this._createQuery();if(t.where=d(t.where,e.where?c(e.where,0):null),e.spatialFilter!=null){let n=o(e.spatialFilter.relation);t.spatialRelationship=n.spatialRelationship,t.relationParameter=n.relationParameter,t.geometry=e.spatialFilter.geometry}return t.returnGeometry=!1,{calculated:!0,result:await this._layer.queryFeatureCount(t)}}async canQueryAggregate(e){return await this._ensureLoaded(),this._layer.capabilities?.query?.supportsStatistics===!0&&e.spatialFilter==null}async queryAggregate(e){await this._ensureLoaded();let n=this._createQuery();return n.where=d(n.where,e.where?c(e.where,0):null),n.orderByFields=e.orderBy?.toOrderByFields(),n.outFields=[`*`],n.outStatistics=e.statistics.map(e=>new f({onStatisticField:e.workingexpr===null?``:c(e.workingexpr,0),outStatisticFieldName:e.field,statisticType:e.toStatisticsName()})),n.groupByFieldsForStatistics=e.groupBy,n.returnGeometry=!1,{filterApplied:!0,spatialFilterApplied:!0,ordered:e.orderBy!=null,features:async function*(){let r=await this._layer.source.queryFeaturesJSON(n);t(e.abortSignal);for(let e of u(r.features,this._maxQueryRate()))a(e,r.spatialReference??this.spatialReference.toJSON()),yield e}.apply(this)}}nativeCapabilities(){return{title:this._layer.title??``,canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}async queryAttachments(){return[]}serviceUrl(){return``}relationshipMetadata(){return[]}get gdbVersion(){return``}getFeatureByObjectId(){throw new n(`NeverReach`)}async getOwningSystemUrl(){return``}async getIdentityUser(){return``}get preferredTimeZone(){return null}get dateFieldsTimeZone(){return this._layer.dateFieldsTimeZone}get datesInUnknownTimezone(){return!1}get editFieldsInfo(){return null}get timeInfo(){return null}async getFeatureSetInfo(){let e=this._layer.title&&this._layer.parent;return{layerId:null,layerName:null,itemId:null,serviceLayerUrl:null,webMapLayerId:e?this._layer.id??null:null,webMapLayerTitle:e?this._layer.title??null:null,className:null,objectClassId:null}}}export{m as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"../../../Graphic.js";import{neverAbortedSignal as t}from"../../arcadeEnvironment.js";import{getSpatialReferenceAsGxJson as n}from"../../geometry.js";import r from"./cache.js";import{throwIfCancelled as i,FeatureSetError as a}from"./errorsupport.js";import{QueryIterator as o}from"./FeatureSetIterator.js";import{layerGeometryEsriConstants as s,esriFieldToJson as c,layerGeometryEsriRestConstants as l}from"./shared.js";import{max as u,min as d,sum as f,variance as p,stdev as m,mean as h,distinct as g}from"./stats.js";import{invokeRemoteGeometryOp as _}from"../../geometry/operatorsWorkerConnection.js";import{cacheAsync as v}from"../../../core/iteratorUtils.js";import y from"../../../core/sql/WhereClause.js";import b from"../../../geometry/SpatialReference.js";import x from"../../../layers/support/FieldsIndex.js";function S(e){switch(e){case`esriSpatialRelIntersects`:return{spatialRelationship:`intersects`,relationParameter:null};case`esriSpatialRelContains`:return{spatialRelationship:`contains`,relationParameter:null};case`esriSpatialRelOverlaps`:return{spatialRelationship:`overlaps`,relationParameter:null};case`esriSpatialRelWithin`:return{spatialRelationship:`within`,relationParameter:null};case`esriSpatialRelTouches`:return{spatialRelationship:`touches`,relationParameter:null};case`esriSpatialRelCrosses`:return{spatialRelationship:`crosses`,relationParameter:null};case`esriSpatialRelEnvelopeIntersects`:return{spatialRelationship:`envelope-intersects`,relationParameter:null};default:if(e.includes(`esriSpatialRelRelation`))return{spatialRelationship:`relation`,relationParameter:e.split(`:`)[1]};throw new a(`NeverReach`)}}function C(e,t){for(let n of e)n.geometry!=null&&(n.geometry.spatialReference??=t)}const w=Object.freeze({ordered:!0,filterApplied:!0,spatialFilterApplied:!0,features:Object.freeze({next:()=>Promise.resolve({done:!0,value:void 0}),[Symbol.asyncIterator](){return this}})});class T{constructor(){this.declaredRootClass=`esri.arcade.featureset.support.FeatureSet`,this._parent=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this._loadPromise=null,this._allFeatures=null,this._fieldsIndex=null,this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType=``,this.objectIdField=``,this.globalIdField=``,this.spatialReference=null,this.hasM=!1,this.hasZ=!1}_ensureLoaded(){return this.load()}load(){return this._loadPromise===null&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return await this._parent?.load(),this._initialiseFeatureSet(),this}_initialiseFeatureSet(){this._parent===null?(this.fields=[],this.typeIdField=``,this.subtypeField=``,this.objectIdField=``,this.globalIdField=``,this.spatialReference=new b({wkid:4326}),this.geometryType=s.point):(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes)}getField(e,t){return e=e.toLowerCase(),(t||this.fields).find(t=>t.name.toLowerCase()===e)}getFieldsIndex(){return this._fieldsIndex===null&&(this._fieldsIndex=x.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return this._parent===null?Math.min(this._maxProcessing,this._maxQueryRate()):Math.min(this._maxProcessing,this._parent._maxProcessingRate())}_maxQueryRate(){return this._parent===null?this._maxQuery:Math.max(this._maxQuery,this._parent._maxQueryRate())}nativeCapabilities(){return this._parent.nativeCapabilities()}get _hasCachedFeatures(){return this._allFeatures!=null}async queryAll(e){this._allFeatures??=this._queryAll().then(e=>v(e));let n=(await this._allFeatures)();return e==null||e===t?n:(async function*(){for await(let t of n)i(e),yield t})()}async databaseType(){if(this._databaseType===7){if(r.applicationCache!==null){let e=r.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(e!==null)return e}if(this._databaseTypeProbed!==null)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),r.applicationCache!==null&&r.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw r.applicationCache!==null&&r.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){for(let e of[{dbType:2,probeSql:`(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0`},{dbType:3,probeSql:`(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0`},{dbType:1,probeSql:`(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0`}])if(await this._runDatabaseProbe(e.probeSql)===!0)return e.dbType;return 1}_cacheableFeatureSetSourceKey(){return`MUSTBESET`}async _runDatabaseProbe(e){if(this._parent!==null)return this._parent._runDatabaseProbe(e);throw new a(`NotImplemented`)}isTable(){return this._parent?.isTable()??!1}async first(t){if(this._hasCachedFeatures)return this.iterator(t).next();let n=await this.query({limit:1,abortSignal:t});for await(let t of n.features)if(t.length>0)return e.fromJSON(t[0]);return null}async isEmpty(e){return this._totalCount>=0?this._totalCount===0:await this.first(e)==null}async calculateStatistic(e,t,n,r){await this._ensureLoaded();let i=await this.queryStat({stat:e,field:t,limit:n,abortSignal:r});return i.calculated===!1&&(i=await this._manualStat(e,t,n,r)),i.result}async _manualStat(e,t,n,r){let i=null;switch(e.toLowerCase()){case`count`:{if(this._totalCount>=0)return{calculated:!0,result:this._totalCount};let e=await this.queryAll(r),t=0;for await(let n of e)t+=n.length;return this._totalCount=t,{calculated:!0,result:t}}case`distinct`:return i=await g(this,t,n,r),{calculated:!0,result:i};case`avg`:case`mean`:return i=await h(this,t,r),{calculated:!0,result:i};case`stdev`:return i=await m(this,t,r),{calculated:!0,result:i};case`variance`:return i=await p(this,t,r),{calculated:!0,result:i};case`sum`:return i=await f(this,t,r),{calculated:!0,result:i};case`min`:return i=await d(this,t,r),{calculated:!0,result:i};case`max`:return i=await u(this,t,r),{calculated:!0,result:i};default:return{calculated:!0,result:0}}}iterator(e){return new o(this,e)}async sumArea(e,t,r){let i=0;for await(let a of await this.queryAll(r))for(let r of a)r.geometry!=null&&(i+=t==null?await _(`area`,[r.geometry,n(this.spatialReference),e]):await _(`geodeticArea`,[r.geometry,n(this.spatialReference),e,t]));return i}async sumLength(e,t,r){let i=0;for await(let a of await this.queryAll(r))for(let r of a)r.geometry!=null&&(i+=t==null?await _(`length`,[r.geometry,n(this.spatialReference),e]):await _(`geodeticLength`,[r.geometry,n(this.spatialReference),e,t]));return i}async count(e){return await this.load(),this.calculateStatistic(`count`,y.create(`1`,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,e??t)}castToText(e=!1){return`object, FeatureSet`}queryAttachments(e,t,n,r,i){return this._parent.queryAttachments(e,t,n,r,i)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetadata(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetadata(){return this._parent.relationshipMetadata()}get gdbVersion(){return this._parent?this._parent.gdbVersion:``}schema(){let e=[];for(let t of this.fields)e.push(c(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:l[this.geometryType]===void 0?`esriGeometryNull`:l[this.geometryType],fields:e}}async convertToText(e,t){return e===`schema`?(await this._ensureLoaded(),JSON.stringify(this.schema())):e===`featureset`?JSON.stringify(await this.castAsJsonAsync(t)):this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return this._parent.getRootFeatureSet()}getDataSourceFeatureSet(){return this._parent===null?this:this._parent.getDataSourceFeatureSet()}castAsJson(){return{type:`FeatureSet`}}async castAsJsonAsync(e=null){await this._ensureLoaded();let t=[];for await(let n of await this.queryAll(e))for(let e of n){let n=e.attributes,r=null;if(e.geometry!=null){if(e.geometry.spatialReference){let{spatialReference:t,...n}=e.geometry;r=n}else r=e.geometry}t.push({geometry:r,attributes:n})}return{...this.schema(),features:t,spatialReference:this.spatialReference?.toJSON()??null}}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){return this.datesInUnknownTimezone?`unknown`:this.dateFieldsTimeZone||`UTC`}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}getFeatureSetInfo(){return this._parent?this._parent.getFeatureSetInfo():Promise.resolve(null)}}class E extends T{constructor(){super(...arguments),this._parent=null}getRootFeatureSet(){return this}}export{T as FeatureSet,E as RootFeatureSet,C as assignSpatialReferenceOnFeatures,w as emptyFeaturesResult,S as getSpatialFilterRelationRestQueryParams};
|
|
2
|
+
import e from"../../../Graphic.js";import{neverAbortedSignal as t}from"../../arcadeEnvironment.js";import{getSpatialReferenceAsGxJson as n}from"../../geometry.js";import r from"./cache.js";import{throwIfCancelled as i,FeatureSetError as a}from"./errorsupport.js";import{QueryIterator as o}from"./FeatureSetIterator.js";import{layerGeometryEsriConstants as s,esriFieldToJson as c,layerGeometryEsriRestConstants as l}from"./shared.js";import{isSingleField as u,predictType as d}from"./sqlUtils.js";import{calculateSqlAggregateStatistic as f,distinct as p}from"./stats.js";import{invokeRemoteGeometryOp as m}from"../../geometry/operatorsWorkerConnection.js";import{cacheAsync as h}from"../../../core/iteratorUtils.js";import g from"../../../core/sql/WhereClause.js";import _ from"../../../geometry/SpatialReference.js";import v from"../../../layers/support/FieldsIndex.js";function y(e){switch(e){case`esriSpatialRelIntersects`:return{spatialRelationship:`intersects`,relationParameter:null};case`esriSpatialRelContains`:return{spatialRelationship:`contains`,relationParameter:null};case`esriSpatialRelOverlaps`:return{spatialRelationship:`overlaps`,relationParameter:null};case`esriSpatialRelWithin`:return{spatialRelationship:`within`,relationParameter:null};case`esriSpatialRelTouches`:return{spatialRelationship:`touches`,relationParameter:null};case`esriSpatialRelCrosses`:return{spatialRelationship:`crosses`,relationParameter:null};case`esriSpatialRelEnvelopeIntersects`:return{spatialRelationship:`envelope-intersects`,relationParameter:null};default:if(e.includes(`esriSpatialRelRelation`))return{spatialRelationship:`relation`,relationParameter:e.split(`:`)[1]};throw new a(`NeverReach`)}}function b(e,t){for(let n of e)n.geometry!=null&&(n.geometry.spatialReference??=t)}const x=Object.freeze({ordered:!0,filterApplied:!0,spatialFilterApplied:!0,features:Object.freeze({next:()=>Promise.resolve({done:!0,value:void 0}),[Symbol.asyncIterator](){return this}})});class S{constructor(){this.declaredRootClass=`esri.arcade.featureset.support.FeatureSet`,this._parent=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this._loadPromise=null,this._allFeatures=null,this._fieldsIndex=null,this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType=``,this.objectIdField=``,this.globalIdField=``,this.spatialReference=null,this.hasM=!1,this.hasZ=!1}_ensureLoaded(){return this.load()}load(){return this._loadPromise===null&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return await this._parent?.load(),this._initialiseFeatureSet(),this}_initialiseFeatureSet(){this._parent===null?(this.fields=[],this.typeIdField=``,this.subtypeField=``,this.objectIdField=``,this.globalIdField=``,this.spatialReference=new _({wkid:4326}),this.geometryType=s.point):(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes)}getField(e,t){return e=e.toLowerCase(),(t||this.fields).find(t=>t.name.toLowerCase()===e)}getFieldsIndex(){return this._fieldsIndex===null&&(this._fieldsIndex=v.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return this._parent===null?Math.min(this._maxProcessing,this._maxQueryRate()):Math.min(this._maxProcessing,this._parent._maxProcessingRate())}_maxQueryRate(){return this._parent===null?this._maxQuery:Math.max(this._maxQuery,this._parent._maxQueryRate())}nativeCapabilities(){return this._parent.nativeCapabilities()}get _hasCachedFeatures(){return this._allFeatures!=null}async queryAll(e){this._allFeatures??=this._queryAll().then(e=>h(e));let n=(await this._allFeatures)();return e==null||e===t?n:(async function*(){for await(let t of n)i(e),yield t})()}async databaseType(){if(this._databaseType===7){if(r.applicationCache!==null){let e=r.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(e!==null)return e}if(this._databaseTypeProbed!==null)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),r.applicationCache!==null&&r.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw r.applicationCache!==null&&r.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){for(let e of[{dbType:2,probeSql:`(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0`},{dbType:3,probeSql:`(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0`},{dbType:1,probeSql:`(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0`}])if(await this._runDatabaseProbe(e.probeSql)===!0)return e.dbType;return 1}_cacheableFeatureSetSourceKey(){return`MUSTBESET`}async _runDatabaseProbe(e){if(this._parent!==null)return this._parent._runDatabaseProbe(e);throw new a(`NotImplemented`)}isTable(){return this._parent?.isTable()??!1}async first(t){if(this._hasCachedFeatures)return this.iterator(t).next();let n=await this.query({limit:1,abortSignal:t});for await(let t of n.features)if(t.length>0)return e.fromJSON(t[0]);return null}async isEmpty(e){return this._totalCount>=0?this._totalCount===0:await this.first(e)==null}async calculateStatistic(e,t,n,r){await this._ensureLoaded();let i=await this.queryStat({stat:e,field:t,limit:n,abortSignal:r});return i.calculated===!1&&(i=await this._manualStat(e,t,n,r)),i.result}async _manualStat(e,t,n,r){let i=null;switch(e.toLowerCase()){case`count`:{if(this._totalCount>=0)return{calculated:!0,result:this._totalCount};let e=await this.queryAll(r),t=0;for await(let n of e)t+=n.length;return this._totalCount=t,{calculated:!0,result:t}}case`distinct`:return i=await p(this,t,n,r),{calculated:!0,result:i};case`avg`:case`mean`:return i=await f(this,t,`avg`,r),t&&!u(t)&&d(t,this.fields)===`integer`?{calculated:!0,result:i==null?null:Math.trunc(i)}:{calculated:!0,result:i};case`stdev`:return i=await f(this,t,`stddev`,r),{calculated:!0,result:i};case`variance`:return i=await f(this,t,`var`,r),{calculated:!0,result:i};case`sum`:return i=await f(this,t,`sum`,r),{calculated:!0,result:i};case`min`:return i=await f(this,t,`min`,r),{calculated:!0,result:i};case`max`:return i=await f(this,t,`max`,r),{calculated:!0,result:i};default:return{calculated:!0,result:0}}}iterator(e){return new o(this,e)}async sumArea(e,t,r){let i=0;for await(let a of await this.queryAll(r))for(let r of a)r.geometry!=null&&(i+=t==null?await m(`area`,[r.geometry,n(this.spatialReference),e]):await m(`geodeticArea`,[r.geometry,n(this.spatialReference),e,t]));return i}async sumLength(e,t,r){let i=0;for await(let a of await this.queryAll(r))for(let r of a)r.geometry!=null&&(i+=t==null?await m(`length`,[r.geometry,n(this.spatialReference),e]):await m(`geodeticLength`,[r.geometry,n(this.spatialReference),e,t]));return i}async count(e){return await this.load(),this.calculateStatistic(`count`,g.create(`1`,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,e??t)}castToText(e=!1){return`object, FeatureSet`}queryAttachments(e,t,n,r,i){return this._parent.queryAttachments(e,t,n,r,i)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetadata(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetadata(){return this._parent.relationshipMetadata()}get gdbVersion(){return this._parent?this._parent.gdbVersion:``}schema(){let e=[];for(let t of this.fields)e.push(c(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:l[this.geometryType]===void 0?`esriGeometryNull`:l[this.geometryType],fields:e}}async convertToText(e,t){return e===`schema`?(await this._ensureLoaded(),JSON.stringify(this.schema())):e===`featureset`?JSON.stringify(await this.castAsJsonAsync(t)):this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return this._parent.getRootFeatureSet()}getDataSourceFeatureSet(){return this._parent===null?this:this._parent.getDataSourceFeatureSet()}castAsJson(){return{type:`FeatureSet`}}async castAsJsonAsync(e=null){await this._ensureLoaded();let t=[];for await(let n of await this.queryAll(e))for(let e of n){let n=e.attributes,r=null;if(e.geometry!=null){if(e.geometry.spatialReference){let{spatialReference:t,...n}=e.geometry;r=n}else r=e.geometry}t.push({geometry:r,attributes:n})}return{...this.schema(),features:t,spatialReference:this.spatialReference?.toJSON()??null}}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){return this.datesInUnknownTimezone?`unknown`:this.dateFieldsTimeZone||`UTC`}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}getFeatureSetInfo(){return this._parent?this._parent.getFeatureSetInfo():Promise.resolve(null)}}class C extends S{constructor(){super(...arguments),this._parent=null}getRootFeatureSet(){return this}}export{S as FeatureSet,C as RootFeatureSet,b as assignSpatialReferenceOnFeatures,x as emptyFeaturesResult,y as getSpatialFilterRelationRestQueryParams};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{ArcadeDate as e}from"../../ArcadeDate.js";import{DateOnly as t}from"../../../core/sql/DateOnly.js";import{TimeOnly as n}from"../../../core/sql/TimeOnly.js";import r from"../../../layers/support/Field.js";import{DateTime as i}from"luxon";function a(e){return r.fromJSON(e.toJSON())}function o(e){return`toJSON`in e?e.toJSON():e}function s(e){return
|
|
2
|
+
import{ArcadeDate as e}from"../../ArcadeDate.js";import{DateOnly as t}from"../../../core/sql/DateOnly.js";import{TimeOnly as n}from"../../../core/sql/TimeOnly.js";import r from"../../../layers/support/Field.js";import{DateTime as i}from"luxon";function a(e){return r.fromJSON(e.toJSON())}function o(e){return`toJSON`in e?e.toJSON():e}function s(e){return e instanceof Date}function c(e){return e instanceof i}function l(t){return t instanceof e}function u(e){return e instanceof t}function d(e){return e instanceof n}const f=1e3,p={point:`point`,polygon:`polygon`,polyline:`polyline`,multipoint:`multipoint`,extent:`extent`,esriGeometryPoint:`point`,esriGeometryPolygon:`polygon`,esriGeometryPolyline:`polyline`,esriGeometryMultipoint:`multipoint`,esriGeometryEnvelope:`extent`,envelope:`extent`},m={point:`esriGeometryPoint`,polygon:`esriGeometryPolygon`,polyline:`esriGeometryPolyline`,multipoint:`esriGeometryMultipoint`,extent:`esriGeometryEnvelope`,esriGeometryPoint:`esriGeometryPoint`,esriGeometryPolygon:`esriGeometryPolygon`,esriGeometryPolyline:`esriGeometryPolyline`,esriGeometryMultipoint:`esriGeometryMultipoint`,esriGeometryEnvelope:`esriGeometryEnvelope`,envelope:`esriGeometryEnvelope`},h={"small-integer":`esriFieldTypeSmallInteger`,integer:`esriFieldTypeInteger`,long:`esriFieldTypeLong`,single:`esriFieldTypeSingle`,double:`esriFieldTypeDouble`,string:`esriFieldTypeString`,date:`esriFieldTypeDate`,"date-only":`esriFieldTypeDateOnly`,"time-only":`esriFieldTypeTimeOnly`,"timestamp-offset":`esriFieldTypeTimestampOffset`,oid:`esriFieldTypeOID`,geometry:`esriFieldTypeGeometry`,blob:`esriFieldTypeBlob`,raster:`esriFieldTypeRaster`,guid:`esriFieldTypeGUID`,"global-id":`esriFieldTypeGlobalID`,xml:`esriFieldTypeXML`,"big-integer":`esriFieldTypeBigInteger`,esriFieldTypeSmallInteger:`esriFieldTypeSmallInteger`,esriFieldTypeInteger:`esriFieldTypeInteger`,esriFieldTypeLong:`esriFieldTypeLong`,esriFieldTypeSingle:`esriFieldTypeSingle`,esriFieldTypeDouble:`esriFieldTypeDouble`,esriFieldTypeString:`esriFieldTypeString`,esriFieldTypeDate:`esriFieldTypeDate`,esriFieldTypeDateOnly:`esriFieldTypeDateOnly`,esriFieldTypeTimeOnly:`esriFieldTypeTimeOnly`,esriFieldTypeTimestampOffset:`esriFieldTypeTimestampOffset`,esriFieldTypeOID:`esriFieldTypeOID`,esriFieldTypeGeometry:`esriFieldTypeGeometry`,esriFieldTypeBlob:`esriFieldTypeBlob`,esriFieldTypeRaster:`esriFieldTypeRaster`,esriFieldTypeGUID:`esriFieldTypeGUID`,esriFieldTypeGlobalID:`esriFieldTypeGlobalID`,esriFieldTypeXML:`esriFieldTypeXML`,esriFieldTypeBigInteger:`esriFieldTypeBigInteger`};function g(e){return e===void 0?``:(e=e.replace(/\/featureserver\/[0-9]*/i,`/FeatureServer`),e=e.replace(/\/mapserver\/[0-9]*/i,`/MapServer`),e=e.split(`?`)[0],e)}function _(e,t){t||={},typeof t==`function`&&(t={cmp:t});let n=typeof t.cycles==`boolean`&&t.cycles,r=t.cmp&&(function(e){return function(t){return function(n,r){return e({key:n,value:t[n]},{key:r,value:t[r]})}}})(t.cmp),i=[];return(function e(t){if(t?.toJSON&&typeof t.toJSON==`function`&&(t=t.toJSON()),t===void 0)return;if(typeof t==`number`)return isFinite(t)?``+t:`null`;if(typeof t!=`object`)return JSON.stringify(t);let a,o;if(Array.isArray(t)){for(o=`[`,a=0;a<t.length;a++)a&&(o+=`,`),o+=e(t[a])||`null`;return o+`]`}if(t===null)return`null`;if(i.includes(t)){if(n)return JSON.stringify(`__cycle__`);throw TypeError(`Converting circular structure to JSON`)}let s=i.push(t)-1,c=Object.keys(t).sort(r?.(t));for(o=``,a=0;a<c.length;a++){let n=c[a],r=e(t[n]);r&&(o&&(o+=`,`),o+=JSON.stringify(n)+`:`+r)}return i.splice(s,1),`{`+o+`}`})(e)}function v(e){switch(e.type){case`catalog-footprint`:case`catalog`:case`csv`:case`feature`:case`geojson`:case`knowledge-graph-sublayer`:case`oriented-imagery`:case`parquet`:case`subtype-group`:case`subtype-sublayer`:case`wfs`:return!0;default:return!1}}export{a as cloneField,f as defaultMaxRecords,o as esriFieldToJson,g as extractServiceUrl,l as isArcadeDate,u as isArcadeDateOnly,d as isArcadeTime,s as isDate,c as isLuxonDate,v as isSupportedLayer,h as layerFieldEsriConstants,p as layerGeometryEsriConstants,m as layerGeometryEsriRestConstants,_ as stableStringify};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{ArcadeDate as e}from"../../ArcadeDate.js";import{isDate as t,isLuxonDate as n,isArcadeTime as r,isArcadeDate as i,isArcadeDateOnly as a}from"./shared.js";import{SqlError as o}from"../../../core/sql/errorSupport.js";import{TimeOnly as s}from"../../../core/sql/TimeOnly.js";import c from"../../../core/sql/WhereClause.js";import{DateTime as l}from"luxon";function u(e,t){return h(e?.parseTree,t,e?.parameters)}function d(e,t,n){return h(e,t,n)}function f(e,t,n,r){let i=h(e.parseTree,0,e.parameters,t,n);return c.create(i,{fieldsIndex:r,timeZone:e.timeZone,currentUser:e.currentUser})}function p(e,t,n=`AND`){return c.create(`((`+u(e,0)+`)`+n+`(`+u(t,0)+`))`,{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function m(e){return e.delimited===!0?`"${e.column.split(`"`).join(`""`)}"`:e.column}function h(e,s,c,l=null,u=null){let d,f,p,S;switch(e.type){case`interval`:return A(h(e.value,s,c,l,u),e.qualifier,e.op);case`case-expression`:{let t=` CASE `;e.format===`simple`&&(t+=h(e.operand,s,c,l,u));for(let n=0;n<e.clauses.length;n++)t+=` WHEN `+h(e.clauses[n].operand,s,c,l,u)+` THEN `+h(e.clauses[n].value,s,c,l,u);return e.else!==null&&(t+=` ELSE `+h(e.else,s,c,l,u)),t+=` END `,t}case`parameter`:{let o=c[e.value.toLowerCase()];if(typeof o==`string`)return`'`+c[e.value.toLowerCase()].toString().replaceAll(`'`,`''`)+`'`;if(t(o)||n(o))return b(o,s);if(r(o))return y(o,s);if(i(o))return _(o,s);if(a(o))return v(o,s);if(Array.isArray(o)){let e=[];for(let c=0;c<o.length;c++)typeof o[c]==`string`?e.push(`'`+o[c].toString().replaceAll(`'`,`''`)+`'`):t(o[c])||n(o[c])?e.push(b(o[c],s)):r(o[c])?e.push(y(o[c],s)):i(o[c])?e.push(_(o[c],s)):a(o[c])?e.push(v(o[c],s)):e.push(o[c].toString());return e}return o.toString()}case`expression-list`:f=[];for(let t of e.value)f.push(h(t,s,c,l,u));return f;case`unary-expression`:return` ( NOT `+h(e.expr,s,c,l,u)+` ) `;case`binary-expression`:switch(e.operator){case`AND`:return` (`+h(e.left,s,c,l,u)+` AND `+h(e.right,s,c,l,u)+`) `;case`OR`:return` (`+h(e.left,s,c,l,u)+` OR `+h(e.right,s,c,l,u)+`) `;case`IS`:if(e.right.type!==`null`)throw new o(`UnsupportedIsRhs`);return` (`+h(e.left,s,c,l,u)+` IS NULL )`;case`ISNOT`:if(e.right.type!==`null`)throw new o(`UnsupportedIsRhs`);return` (`+h(e.left,s,c,l,u)+` IS NOT NULL )`;case`IN`:return d=[],e.right.type===`expression-list`?(d=h(e.right,s,c,l,u),` (`+h(e.left,s,c,l,u)+` IN (`+d.join(`,`)+`)) `):(S=h(e.right,s,c,l,u),Array.isArray(S)?` (`+h(e.left,s,c,l,u)+` IN (`+S.join(`,`)+`)) `:` (`+h(e.left,s,c,l,u)+` IN (`+S+`)) `);case`NOT IN`:return d=[],e.right.type===`expression-list`?(d=h(e.right,s,c,l,u),` (`+h(e.left,s,c,l,u)+` NOT IN (`+d.join(`,`)+`)) `):(S=h(e.right,s,c,l,u),Array.isArray(S)?` (`+h(e.left,s,c,l,u)+` NOT IN (`+S.join(`,`)+`)) `:` (`+h(e.left,s,c,l,u)+` NOT IN (`+S+`)) `);case`BETWEEN`:return p=h(e.right,s,c,l,u),` (`+h(e.left,s,c,l,u)+` BETWEEN `+p[0]+` AND `+p[1]+` ) `;case`NOTBETWEEN`:return p=h(e.right,s,c,l,u),` (`+h(e.left,s,c,l,u)+` NOT BETWEEN `+p[0]+` AND `+p[1]+` ) `;case`LIKE`:return e.escape===``?` (`+h(e.left,s,c,l,u)+` LIKE `+h(e.right,s,c,l,u)+`) `:` (`+h(e.left,s,c,l,u)+` LIKE `+h(e.right,s,c,l,u)+` ESCAPE '`+e.escape+`') `;case`NOT LIKE`:return e.escape===``?` (`+h(e.left,s,c,l,u)+` NOT LIKE `+h(e.right,s,c,l,u)+`) `:` (`+h(e.left,s,c,l,u)+` NOT LIKE `+h(e.right,s,c,l,u)+` ESCAPE '`+e.escape+`') `;case`<>`:case`<`:case`>`:case`>=`:case`<=`:case`=`:case`*`:case`-`:case`+`:case`/`:return` (`+h(e.left,s,c,l,u)+` `+e.operator+` `+h(e.right,s,c,l,u)+`) `;case`||`:return` (`+h(e.left,s,c,l,u)+` `+(s===2?`+`:e.operator)+` `+h(e.right,s,c,l,u)+`) `}throw new o(`UnsupportedOperator`,{operator:e.operator});case`null`:return`null`;case`boolean`:return e.value===!0?`1`:`0`;case`string`:return`'`+e.value.toString().replaceAll(`'`,`''`)+`'`;case`timestamp`:return`timestamp '${e.value}'`;case`date`:return`date '${e.value}'`;case`time`:return`time '${e.value}'`;case`number`:return e.value.toString();case`current-time`:return x(e.mode,s);case`current-user`:return`CURRENT_USER`;case`column-reference`:return l&&l.toLowerCase()===e.column.toLowerCase()?`(`+u+`)`:m(e);case`data-type`:return e.value;case`function`:{let t=h(e.args,s,c,l,u);return g(e.name,t,s)}}throw new o(`UnsupportedSyntax`,{node:e.type})}function g(e,t,n){switch(e.toLowerCase().trim()){case`cos`:case`sin`:case`tan`:case`cosh`:case`tanh`:case`sinh`:case`acos`:case`asin`:case`atan`:case`floor`:case`log10`:case`log`:case`abs`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case`ceiling`:case`ceil`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:`ceiling`});switch(n){case 0:case 1:return`CEILING(`+t[0]+`)`;default:return`CEILING(`+t[0]+`)`}case`mod`:case`power`:case`nullif`:if(t.length!==2)throw new o(`InvalidFunctionParameters`,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case`round`:if(t.length===2)return`ROUND(`+t[0]+`,`+t[1]+`)`;if(t.length===1)return`ROUND(`+t[0]+`)`;throw new o(`InvalidFunctionParameters`,{function:`round`});case`truncate`:if(t.length<1||t.length>2)throw new o(`InvalidFunctionParameters`,{function:`truncate`});switch(n){case 2:return`ROUND(`+t[0]+(t.length===1?`0`:`,`+t[1])+`,1)`;default:return`TRUNCATE(`+t[0]+(t.length===1?`)`:`,`+t[1]+`)`)}case`char_length`:case`len`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:`char_length`});switch(n){case 2:return`LEN(`+t[0]+`)`;case 3:return`LENGTH(`+t[0]+`)`;default:return`CHAR_LENGTH(`+t[0]+`)`}case`coalesce`:case`concat`:{if(t.length<1)throw new o(`InvalidFunctionParameters`,{function:e.toLowerCase()});let n=e.toUpperCase().trim()+`(`;for(let e=0;e<t.length;e++)e!==0&&(n+=`,`),n+=t[e];return n+=`)`,n}case`lower`:case`lcase`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:`lower`});return`LOWER(`+t[0]+`)`;case`upper`:case`ucase`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:`upper`});return`UPPER(`+t[0]+`)`;case`substring`:{let e=``;switch(n){case 3:return e=`SUBSTR(`+t[0]+`,`+t[1],t.length===3&&(e+=`,`+t[2]),e+=`)`,e;case 2:return e=t.length===3?`SUBSTRING(`+t[0]+`,`+t[1]+`,`+t[2]+`)`:`SUBSTRING(`+t[0]+`, `+t[1]+`, LEN(`+t[0]+`) - `+t[1]+`)`,e;default:return e=`SUBSTRING(`+t[0]+` FROM `+t[1],t.length===3&&(e+=` FOR `+t[2]),e+=`)`,e}}case`extract`:return`EXTRACT(`+t[0].replaceAll(`'`,``)+` FROM `+t[1]+`)`;case`cast`:{let e=``;switch(n){case 3:switch(t[1].type){case`date`:e=`DATE`;break;case`float`:e=`DOUBLE`;break;case`integer`:e=`INTEGER`;break;case`real`:e=`REAL`;break;case`smallint`:e=`SMALLINT`;break;case`timestamp`:e=`TIMESTAMP`;break;case`varchar`:e=`VARCHAR(`+t[1].size.toString()+`)`}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case`date`:e=`DATE`;break;case`float`:e=`DOUBLE PRECISION`;break;case`integer`:e=`INT`;break;case`real`:e=`REAL`;break;case`smallint`:e=`SMALLINT`;break;case`timestamp`:e=`TIMESTAMP`;break;case`varchar`:e=`VARCHAR(`+t[1].size.toString()+`)`}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case`date`:e=`DATE`;break;case`float`:e=`FLOAT`;break;case`integer`:e=`INT`;break;case`real`:e=`REAL`;break;case`smallint`:e=`SMALLINT`;break;case`timestamp`:e=`DATETIME`;break;case`varchar`:e=`VARCHAR(`+t[1].size.toString()+`)`}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case`date`:e=`DATE`;break;case`float`:e=`FLOAT`;break;case`integer`:e=`INTEGER`;break;case`real`:e=`REAL`;break;case`smallint`:e=`SMALLINT`;break;case`timestamp`:e=`TIMESTAMP`;break;case`varchar`:e=`VARCHAR(`+t[1].size.toString()+`)`}return`CAST(${t[0]} AS ${e})`}}}throw new o(`InvalidFunctionParameters`,{function:e})}function _(e,t){let n=e.toDateTime(),r=n.hour===0&&n.minute===0&&n.second===0&&n.millisecond===0;switch(t){case 6:case 0:case 1:return r?`date '${n.toFormat(`yyyy-LL-dd`)}'`:`timestamp '${n.toFormat(`yyyy-LL-dd HH:mm:ss`)}'`;case 3:return r?`TO_DATE('${n.toFormat(`yyyy-LL-dd`)}','YYYY-MM-DD')`:`TO_DATE('${n.toFormat(`yyyy-LL-dd HH:mm:ss`)}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${n.toFormat(r?`yyyy-LL-dd`:`yyyy-LL-dd HH:mm:ss`)}'`;case 5:return`#${n.toFormat(r?`LL-dd-yyyy`:`LL-dd-yyyy HH:mm:ss`)}#`;case 4:return`TIMESTAMP '${n.toFormat(r?`yyyy-LL-dd`:`yyyy-LL-dd HH:mm:ss`)}'`;default:return`timestamp '${n.toFormat(`yyyy-LL-dd HH:mm:ss`)}'`}}function v(e,t){switch(t){case 6:case 0:case 1:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat(`Y-MM-DD`)}'`;case 2:return`'${e.toFormat(`Y-MM-DD`)}'`;case 5:return`#${e.toFormat(`Y-MM-DD`)}#`;case 4:return`TIMESTAMP '${e.toFormat(`Y-MM-DD`)}'`;default:return e.toSQLWithKeyword()}}function y(e,t){switch(e instanceof s&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function b(t,r){return _(e.dateTimeToArcadeDate(n(t)?t:l.fromJSDate(t)),r)}function x(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return e===`date`?`CURRENT_DATE`:e===`time`?`CURRENT_TIME`:`CURRENT_TIMESTAMP`;case 2:return e===`date`?`CAST(GETDATE() AS DATE)`:e===`time`?`CAST(GETDATE() AS TIME)`:`GETDATE()`;case 4:return e===`date`?`CURRENT_DATE`:e===`time`?`LOCALTIME`:`CURRENT_TIMESTAMP`}}function S(e,t,n={}){let r={},i={},a={esriFieldTypeSmallInteger:`integer`,esriFieldTypeInteger:`integer`,esriFieldTypeBigInteger:`integer`,esriFieldTypeSingle:`double`,esriFieldTypeDouble:`double`,esriFieldTypeString:`string`,esriFieldTypeTimeOnly:`time-only`,esriFieldTypeDateOnly:`date-only`,esriFieldTypeTimestampOffset:`timestamp-offset`,esriFieldTypeDate:`date`,esriFieldTypeOID:`integer`,esriFieldTypeGUID:`guid`,esriFieldTypeGlobalID:`guid`,oid:`integer`,long:`integer`,"small-integer":`integer`,integer:`integer`,"big-integer":`integer`,single:`double`,"time-only":`time-only`,"date-only":`date-only`,"timestamp-offset":`timestemp-offset`,double:`double`,date:`date`,guid:`guid`,"global-id":`guid`,string:`string`};for(let e of t){let t=e.type?a[e.type]:void 0;r[e.name.toLowerCase()]=t===void 0?``:t}for(let e in n){let t=a[n[e]];i[e.toLowerCase()]=t===void 0?``:t}switch(C(r,e.parseTree,e.parameters,i)){case`double`:return`double`;case`integer`:return`integer`;case`date`:return`date`;case`date-only`:return`date-only`;case`time-only`:return`time-only`;case`timestamp-offset`:return`timestamp-offset`;case`string`:return`string`;case`global-id`:return`guid`;case`guid`:return`guid`}return``}function C(e,n,s,c){let l;switch(n.type){case`interval`:return`integer`;case`case-expression`:{let t=[];if(n.format===`simple`){for(let r=0;r<n.clauses.length;r++)t.push(C(e,n.clauses[r].value,s,c));n.else!==null&&t.push(C(e,n.else,s,c))}else{for(let r=0;r<n.clauses.length;r++)t.push(C(e,n.clauses[r].value,s,c));n.else!==null&&t.push(C(e,n.else,s,c))}return T(t)}case`parameter`:{let e=c[n.value.toLowerCase()];if(e===void 0&&s){let e=s[n.value.toLowerCase()];if(e==null)return``;if(typeof e==`string`||e instanceof String)return`string`;if(typeof e==`boolean`)return`boolean`;if(t(e)||i(e))return`date`;if(a(e))return`date-only`;if(r(e))return`time-only`;if(typeof e==`number`)return e%1==0?`integer`:`double`}return e===void 0?``:e}case`expression-list`:{let t=[];for(let r of n.value)t.push(C(e,r,s,c));return t}case`unary-expression`:return`boolean`;case`binary-expression`:switch(n.operator){case`AND`:return`boolean`;case`OR`:return`boolean`;case`IS`:if(n.right.type!==`null`)throw new o(`UnsupportedIsRhs`);return`boolean`;case`ISNOT`:if(n.right.type!==`null`)throw new o(`UnsupportedIsRhs`);return`boolean`;case`IN`:return`boolean`;case`NOT IN`:return`boolean`;case`BETWEEN`:return`boolean`;case`NOTBETWEEN`:return`boolean`;case`LIKE`:return`boolean`;case`NOT LIKE`:return`boolean`;case`<>`:case`<`:case`>`:case`>=`:case`<=`:case`=`:return`boolean`;case`*`:case`-`:case`+`:case`/`:return T([C(e,n.left,s,c),C(e,n.right,s,c)]);case`||`:return`string`;default:throw new o(`UnsupportedOperator`,{operator:n.operator})}case`null`:return``;case`boolean`:return`boolean`;case`string`:return`string`;case`number`:return n.value===null?``:n.value%1==0?`integer`:`double`;case`date`:return`date`;case`timestamp`:return n.withtimezone?`timestamp-offset`:`date`;case`time`:return`time-only`;case`current-time`:return n.mode===`time`?`time-only`:`date`;case`current-user`:return`string`;case`column-reference`:{let t=e[n.column.toLowerCase()];return t===void 0?``:t}case`function`:switch(n.name.toLowerCase()){case`cast`:switch(n.args?.value[1]?.value.type??``){case`integer`:case`smallint`:return`integer`;case`real`:case`float`:return`double`;case`date`:case`timestamp`:return n.args?.value[1]?.value?.withtimezone===!0?`timestamp-offset`:`date`;case`time`:return`time-only`;case`varchar`:return`string`;default:return``}case`position`:case`extract`:case`char_length`:case`mod`:return`integer`;case`round`:if(l=C(e,n.args,s,c),Array.isArray(l)){if(l.length<=0)return`double`;l=l[0]}return l;case`sign`:return`integer`;case`ceiling`:case`floor`:case`abs`:return l=C(e,n.args,s,c),Array.isArray(l)&&(l=T(l)),l===`integer`||l===`double`?l:`double`;case`area`:case`length`:case`log`:case`log10`:case`sin`:case`cos`:case`tan`:case`asin`:case`acos`:case`atan`:case`cosh`:case`sinh`:case`tanh`:case`power`:return`double`;case`substring`:case`trim`:case`concat`:case`lower`:case`upper`:return`string`;case`truncate`:return`double`;case`nullif`:return l=C(e,n.args,s,c),Array.isArray(l)?l.length>0?l[0]:``:l;case`coalesce`:return l=C(e,n.args,s,c),Array.isArray(l)?l.length>0?l[0]:``:l}return``}throw new o(`UnsupportedSyntax`,{node:n.type})}const w={boolean:1,string:2,integer:3,double:4,date:5};function T(e){if(e){let t=``;for(let n of e)n!==``&&(t=t===``||w[t]<w[n]?n:t);return t}return``}function E(e,t){return O(e.parseTree,t)}function D(e){return e?.parseTree.type===`column-reference`}function O(e,t){if(e==null)return!1;switch(e.type){case`when-clause`:return O(e.operand,t)||O(e.value,t);case`case-expression`:for(let n of e.clauses)if(O(n,t))return!0;return!!(e.format===`simple`&&O(e.operand,t)||e.else!==null&&O(e.else,t));case`parameter`:return!1;case`expression-list`:for(let n of e.value)if(O(n,t))return!0;return!1;case`unary-expression`:return O(e.expr,t);case`binary-expression`:return O(e.left,t)||O(e.right,t);case`null`:case`boolean`:case`date`:case`timestamp`:case`time`:case`string`:case`number`:return!1;case`column-reference`:return t.toLowerCase()===e.column.toLowerCase();case`function`:return O(e.args,t)}return!1}function k(e){let t=``;return t+=e.period.toUpperCase(),t}function A(e,t,n){let r=``;return r=t.type===`interval-period`?k(t):k(t.start)+` TO `+k(t.end),`INTERVAL `+n+` `+e+` `+r}export{v as arcadeDateOnlyToSqlString,_ as arcadeDateToSqlString,p as combine,m as convertColumnReferenceToSql,A as convertIntervalToSql,D as isSingleField,b as makeSqlFromDateTimeParameter,y as makeTimeString,x as makeToday,S as predictType,f as reformulateWithoutField,E as scanForField,u as toWhereClause,d as toWhereClauseFromTree,g as translateFunctionToDatabaseSpecific};
|
|
2
|
+
import{ArcadeDate as e}from"../../ArcadeDate.js";import{isDate as t,isLuxonDate as n,isArcadeTime as r,isArcadeDate as i,isArcadeDateOnly as a}from"./shared.js";import{SqlError as o}from"../../../core/sql/errorSupport.js";import{TimeOnly as s}from"../../../core/sql/TimeOnly.js";import c from"../../../core/sql/WhereClause.js";import{DateTime as l}from"luxon";function u(e,t){return h(e?.parseTree,t,e?.parameters)}function d(e,t,n){return h(e,t,n)}function f(e,t,n,r){let i=h(e.parseTree,0,e.parameters,t,n);return c.create(i,{fieldsIndex:r,timeZone:e.timeZone,currentUser:e.currentUser})}function p(e,t,n=`AND`){return c.create(`((`+u(e,0)+`)`+n+`(`+u(t,0)+`))`,{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function m(e){return e.delimited===!0?`"${e.column.split(`"`).join(`""`)}"`:e.column}function h(e,s,c,l=null,u=null){let d,f,p,S;switch(e.type){case`interval`:return A(h(e.value,s,c,l,u),e.qualifier,e.op);case`case-expression`:{let t=` CASE `;e.format===`simple`&&(t+=h(e.operand,s,c,l,u));for(let n=0;n<e.clauses.length;n++)t+=` WHEN `+h(e.clauses[n].operand,s,c,l,u)+` THEN `+h(e.clauses[n].value,s,c,l,u);return e.else!==null&&(t+=` ELSE `+h(e.else,s,c,l,u)),t+=` END `,t}case`parameter`:{let o=c[e.value.toLowerCase()];if(typeof o==`string`)return`'`+c[e.value.toLowerCase()].toString().replaceAll(`'`,`''`)+`'`;if(t(o)||n(o))return b(o,s);if(r(o))return y(o,s);if(i(o))return _(o,s);if(a(o))return v(o,s);if(Array.isArray(o)){let e=[];for(let c=0;c<o.length;c++)typeof o[c]==`string`?e.push(`'`+o[c].toString().replaceAll(`'`,`''`)+`'`):t(o[c])||n(o[c])?e.push(b(o[c],s)):r(o[c])?e.push(y(o[c],s)):i(o[c])?e.push(_(o[c],s)):a(o[c])?e.push(v(o[c],s)):e.push(o[c].toString());return e}return o.toString()}case`expression-list`:f=[];for(let t of e.value)f.push(h(t,s,c,l,u));return f;case`unary-expression`:return` ( NOT `+h(e.expr,s,c,l,u)+` ) `;case`binary-expression`:switch(e.operator){case`AND`:return` (`+h(e.left,s,c,l,u)+` AND `+h(e.right,s,c,l,u)+`) `;case`OR`:return` (`+h(e.left,s,c,l,u)+` OR `+h(e.right,s,c,l,u)+`) `;case`IS`:if(e.right.type!==`null`)throw new o(`UnsupportedIsRhs`);return` (`+h(e.left,s,c,l,u)+` IS NULL )`;case`ISNOT`:if(e.right.type!==`null`)throw new o(`UnsupportedIsRhs`);return` (`+h(e.left,s,c,l,u)+` IS NOT NULL )`;case`IN`:return d=[],e.right.type===`expression-list`?(d=h(e.right,s,c,l,u),` (`+h(e.left,s,c,l,u)+` IN (`+d.join(`,`)+`)) `):(S=h(e.right,s,c,l,u),Array.isArray(S)?` (`+h(e.left,s,c,l,u)+` IN (`+S.join(`,`)+`)) `:` (`+h(e.left,s,c,l,u)+` IN (`+S+`)) `);case`NOT IN`:return d=[],e.right.type===`expression-list`?(d=h(e.right,s,c,l,u),` (`+h(e.left,s,c,l,u)+` NOT IN (`+d.join(`,`)+`)) `):(S=h(e.right,s,c,l,u),Array.isArray(S)?` (`+h(e.left,s,c,l,u)+` NOT IN (`+S.join(`,`)+`)) `:` (`+h(e.left,s,c,l,u)+` NOT IN (`+S+`)) `);case`BETWEEN`:return p=h(e.right,s,c,l,u),` (`+h(e.left,s,c,l,u)+` BETWEEN `+p[0]+` AND `+p[1]+` ) `;case`NOTBETWEEN`:return p=h(e.right,s,c,l,u),` (`+h(e.left,s,c,l,u)+` NOT BETWEEN `+p[0]+` AND `+p[1]+` ) `;case`LIKE`:return e.escape===``?` (`+h(e.left,s,c,l,u)+` LIKE `+h(e.right,s,c,l,u)+`) `:` (`+h(e.left,s,c,l,u)+` LIKE `+h(e.right,s,c,l,u)+` ESCAPE '`+e.escape+`') `;case`NOT LIKE`:return e.escape===``?` (`+h(e.left,s,c,l,u)+` NOT LIKE `+h(e.right,s,c,l,u)+`) `:` (`+h(e.left,s,c,l,u)+` NOT LIKE `+h(e.right,s,c,l,u)+` ESCAPE '`+e.escape+`') `;case`<>`:case`<`:case`>`:case`>=`:case`<=`:case`=`:case`*`:case`-`:case`+`:case`/`:return` (`+h(e.left,s,c,l,u)+` `+e.operator+` `+h(e.right,s,c,l,u)+`) `;case`||`:return` (`+h(e.left,s,c,l,u)+` `+(s===2?`+`:e.operator)+` `+h(e.right,s,c,l,u)+`) `}throw new o(`UnsupportedOperator`,{operator:e.operator});case`null`:return`null`;case`boolean`:return e.value===!0?`1`:`0`;case`string`:return`'`+e.value.toString().replaceAll(`'`,`''`)+`'`;case`timestamp`:return`timestamp '${e.value}'`;case`date`:return`date '${e.value}'`;case`time`:return`time '${e.value}'`;case`number`:return e.value.toString();case`current-time`:return x(e.mode,s);case`current-user`:return`CURRENT_USER`;case`column-reference`:return l&&l.toLowerCase()===e.column.toLowerCase()?`(`+u+`)`:m(e);case`data-type`:return e.value;case`function`:{let t=h(e.args,s,c,l,u);return g(e.name,t,s)}}throw new o(`UnsupportedSyntax`,{node:e.type})}function g(e,t,n){switch(e.toLowerCase().trim()){case`cos`:case`sin`:case`tan`:case`cosh`:case`tanh`:case`sinh`:case`acos`:case`asin`:case`atan`:case`floor`:case`log10`:case`log`:case`abs`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case`ceiling`:case`ceil`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:`ceiling`});switch(n){case 0:case 1:return`CEILING(`+t[0]+`)`;default:return`CEILING(`+t[0]+`)`}case`mod`:case`power`:case`nullif`:if(t.length!==2)throw new o(`InvalidFunctionParameters`,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case`round`:if(t.length===2)return`ROUND(`+t[0]+`,`+t[1]+`)`;if(t.length===1)return`ROUND(`+t[0]+`)`;throw new o(`InvalidFunctionParameters`,{function:`round`});case`truncate`:if(t.length<1||t.length>2)throw new o(`InvalidFunctionParameters`,{function:`truncate`});switch(n){case 2:return`ROUND(`+t[0]+(t.length===1?`0`:`,`+t[1])+`,1)`;default:return`TRUNCATE(`+t[0]+(t.length===1?`)`:`,`+t[1]+`)`)}case`char_length`:case`len`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:`char_length`});switch(n){case 2:return`LEN(`+t[0]+`)`;case 3:return`LENGTH(`+t[0]+`)`;default:return`CHAR_LENGTH(`+t[0]+`)`}case`coalesce`:case`concat`:{if(t.length<1)throw new o(`InvalidFunctionParameters`,{function:e.toLowerCase()});let n=e.toUpperCase().trim()+`(`;for(let e=0;e<t.length;e++)e!==0&&(n+=`,`),n+=t[e];return n+=`)`,n}case`lower`:case`lcase`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:`lower`});return`LOWER(`+t[0]+`)`;case`upper`:case`ucase`:if(t.length!==1)throw new o(`InvalidFunctionParameters`,{function:`upper`});return`UPPER(`+t[0]+`)`;case`substring`:{let e=``;switch(n){case 3:return e=`SUBSTR(`+t[0]+`,`+t[1],t.length===3&&(e+=`,`+t[2]),e+=`)`,e;case 2:return e=t.length===3?`SUBSTRING(`+t[0]+`,`+t[1]+`,`+t[2]+`)`:`SUBSTRING(`+t[0]+`, `+t[1]+`, LEN(`+t[0]+`) - `+t[1]+`)`,e;default:return e=`SUBSTRING(`+t[0]+` FROM `+t[1],t.length===3&&(e+=` FOR `+t[2]),e+=`)`,e}}case`extract`:return`EXTRACT(`+t[0].replaceAll(`'`,``)+` FROM `+t[1]+`)`;case`cast`:{let e=``;switch(n){case 3:switch(t[1].type){case`date`:e=`DATE`;break;case`float`:e=`DOUBLE`;break;case`integer`:e=`INTEGER`;break;case`real`:e=`REAL`;break;case`smallint`:e=`SMALLINT`;break;case`timestamp`:e=`TIMESTAMP`;break;case`varchar`:e=`VARCHAR(`+t[1].size.toString()+`)`}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case`date`:e=`DATE`;break;case`float`:e=`DOUBLE PRECISION`;break;case`integer`:e=`INT`;break;case`real`:e=`REAL`;break;case`smallint`:e=`SMALLINT`;break;case`timestamp`:e=`TIMESTAMP`;break;case`varchar`:e=`VARCHAR(`+t[1].size.toString()+`)`}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case`date`:e=`DATE`;break;case`float`:e=`FLOAT`;break;case`integer`:e=`INT`;break;case`real`:e=`REAL`;break;case`smallint`:e=`SMALLINT`;break;case`timestamp`:e=`DATETIME`;break;case`varchar`:e=`VARCHAR(`+t[1].size.toString()+`)`}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case`date`:e=`DATE`;break;case`float`:e=`FLOAT`;break;case`integer`:e=`INTEGER`;break;case`real`:e=`REAL`;break;case`smallint`:e=`SMALLINT`;break;case`timestamp`:e=`TIMESTAMP`;break;case`varchar`:e=`VARCHAR(`+t[1].size.toString()+`)`}return`CAST(${t[0]} AS ${e})`}}}throw new o(`InvalidFunctionParameters`,{function:e})}function _(e,t){let n=e.toDateTime(),r=n.hour===0&&n.minute===0&&n.second===0&&n.millisecond===0;switch(t){case 6:case 0:case 1:return r?`date '${n.toFormat(`yyyy-LL-dd`)}'`:`timestamp '${n.toFormat(`yyyy-LL-dd HH:mm:ss`)}'`;case 3:return r?`TO_DATE('${n.toFormat(`yyyy-LL-dd`)}','YYYY-MM-DD')`:`TO_DATE('${n.toFormat(`yyyy-LL-dd HH:mm:ss`)}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${n.toFormat(r?`yyyy-LL-dd`:`yyyy-LL-dd HH:mm:ss`)}'`;case 5:return`#${n.toFormat(r?`LL-dd-yyyy`:`LL-dd-yyyy HH:mm:ss`)}#`;case 4:return`TIMESTAMP '${n.toFormat(r?`yyyy-LL-dd`:`yyyy-LL-dd HH:mm:ss`)}'`;default:return`timestamp '${n.toFormat(`yyyy-LL-dd HH:mm:ss`)}'`}}function v(e,t){switch(t){case 6:case 0:case 1:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat(`Y-MM-DD`)}'`;case 2:return`'${e.toFormat(`Y-MM-DD`)}'`;case 5:return`#${e.toFormat(`Y-MM-DD`)}#`;case 4:return`TIMESTAMP '${e.toFormat(`Y-MM-DD`)}'`;default:return e.toSQLWithKeyword()}}function y(e,t){switch(e instanceof s&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function b(t,r){return _(e.dateTimeToArcadeDate(n(t)?t:l.fromJSDate(t)),r)}function x(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return e===`date`?`CURRENT_DATE`:e===`time`?`CURRENT_TIME`:`CURRENT_TIMESTAMP`;case 2:return e===`date`?`CAST(GETDATE() AS DATE)`:e===`time`?`CAST(GETDATE() AS TIME)`:`GETDATE()`;case 4:return e===`date`?`CURRENT_DATE`:e===`time`?`LOCALTIME`:`CURRENT_TIMESTAMP`}}function S(e,t,n={}){let r={},i={},a={esriFieldTypeSmallInteger:`integer`,esriFieldTypeInteger:`integer`,esriFieldTypeBigInteger:`integer`,esriFieldTypeSingle:`double`,esriFieldTypeDouble:`double`,esriFieldTypeString:`string`,esriFieldTypeTimeOnly:`time-only`,esriFieldTypeDateOnly:`date-only`,esriFieldTypeTimestampOffset:`timestamp-offset`,esriFieldTypeDate:`date`,esriFieldTypeOID:`integer`,esriFieldTypeGUID:`guid`,esriFieldTypeGlobalID:`guid`,oid:`integer`,long:`integer`,"small-integer":`integer`,integer:`integer`,"big-integer":`integer`,single:`double`,"time-only":`time-only`,"date-only":`date-only`,"timestamp-offset":`timestamp-offset`,double:`double`,date:`date`,guid:`guid`,"global-id":`guid`,string:`string`};for(let e of t){let t=e.type?a[e.type]:void 0;r[e.name.toLowerCase()]=t===void 0?``:t}for(let e in n){let t=a[n[e]];i[e.toLowerCase()]=t===void 0?``:t}switch(C(r,e.parseTree,e.parameters,i)){case`double`:return`double`;case`integer`:return`integer`;case`date`:return`date`;case`date-only`:return`date-only`;case`time-only`:return`time-only`;case`timestamp-offset`:return`timestamp-offset`;case`string`:return`string`;case`global-id`:return`guid`;case`guid`:return`guid`}return``}function C(e,n,s,c){let l;switch(n.type){case`interval`:return`integer`;case`case-expression`:{let t=[];if(n.format===`simple`){for(let r=0;r<n.clauses.length;r++)t.push(C(e,n.clauses[r].value,s,c));n.else!==null&&t.push(C(e,n.else,s,c))}else{for(let r=0;r<n.clauses.length;r++)t.push(C(e,n.clauses[r].value,s,c));n.else!==null&&t.push(C(e,n.else,s,c))}return T(t)}case`parameter`:{let e=c[n.value.toLowerCase()];if(e===void 0&&s){let e=s[n.value.toLowerCase()];if(e==null)return``;if(typeof e==`string`||e instanceof String)return`string`;if(typeof e==`boolean`)return`boolean`;if(t(e)||i(e))return`date`;if(a(e))return`date-only`;if(r(e))return`time-only`;if(typeof e==`number`)return e%1==0?`integer`:`double`}return e===void 0?``:e}case`expression-list`:{let t=[];for(let r of n.value)t.push(C(e,r,s,c));return t}case`unary-expression`:return`boolean`;case`binary-expression`:switch(n.operator){case`AND`:return`boolean`;case`OR`:return`boolean`;case`IS`:if(n.right.type!==`null`)throw new o(`UnsupportedIsRhs`);return`boolean`;case`ISNOT`:if(n.right.type!==`null`)throw new o(`UnsupportedIsRhs`);return`boolean`;case`IN`:return`boolean`;case`NOT IN`:return`boolean`;case`BETWEEN`:return`boolean`;case`NOTBETWEEN`:return`boolean`;case`LIKE`:return`boolean`;case`NOT LIKE`:return`boolean`;case`<>`:case`<`:case`>`:case`>=`:case`<=`:case`=`:return`boolean`;case`*`:case`-`:case`+`:case`/`:return T([C(e,n.left,s,c),C(e,n.right,s,c)]);case`||`:return`string`;default:throw new o(`UnsupportedOperator`,{operator:n.operator})}case`null`:return``;case`boolean`:return`boolean`;case`string`:return`string`;case`number`:return n.value===null?``:n.value%1==0?`integer`:`double`;case`date`:return`date`;case`timestamp`:return n.withtimezone?`timestamp-offset`:`date`;case`time`:return`time-only`;case`current-time`:return n.mode===`time`?`time-only`:`date`;case`current-user`:return`string`;case`column-reference`:{let t=e[n.column.toLowerCase()];return t===void 0?``:t}case`function`:switch(n.name.toLowerCase()){case`cast`:switch(n.args?.value[1]?.value.type??``){case`integer`:case`smallint`:return`integer`;case`real`:case`float`:return`double`;case`date`:case`timestamp`:return n.args?.value[1]?.value?.withtimezone===!0?`timestamp-offset`:`date`;case`time`:return`time-only`;case`varchar`:return`string`;default:return``}case`position`:case`extract`:case`char_length`:case`mod`:return`integer`;case`round`:if(l=C(e,n.args,s,c),Array.isArray(l)){if(l.length<=0)return`double`;l=l[0]}return l;case`sign`:return`integer`;case`ceiling`:case`floor`:case`abs`:return l=C(e,n.args,s,c),Array.isArray(l)&&(l=T(l)),l===`integer`||l===`double`?l:`double`;case`area`:case`length`:case`log`:case`log10`:case`sin`:case`cos`:case`tan`:case`asin`:case`acos`:case`atan`:case`cosh`:case`sinh`:case`tanh`:case`power`:return`double`;case`substring`:case`trim`:case`concat`:case`lower`:case`upper`:return`string`;case`truncate`:return`double`;case`nullif`:return l=C(e,n.args,s,c),Array.isArray(l)?l.length>0?l[0]:``:l;case`coalesce`:return l=C(e,n.args,s,c),Array.isArray(l)?l.length>0?l[0]:``:l}return``}throw new o(`UnsupportedSyntax`,{node:n.type})}const w={boolean:1,string:2,integer:3,double:4,date:5};function T(e){if(e){let t=``;for(let n of e)n!==``&&(t=t===``||w[t]<w[n]?n:t);return t}return``}function E(e,t){return O(e.parseTree,t)}function D(e){return e?.parseTree.type===`column-reference`}function O(e,t){if(e==null)return!1;switch(e.type){case`when-clause`:return O(e.operand,t)||O(e.value,t);case`case-expression`:for(let n of e.clauses)if(O(n,t))return!0;return!!(e.format===`simple`&&O(e.operand,t)||e.else!==null&&O(e.else,t));case`parameter`:return!1;case`expression-list`:for(let n of e.value)if(O(n,t))return!0;return!1;case`unary-expression`:return O(e.expr,t);case`binary-expression`:return O(e.left,t)||O(e.right,t);case`null`:case`boolean`:case`date`:case`timestamp`:case`time`:case`string`:case`number`:return!1;case`column-reference`:return t.toLowerCase()===e.column.toLowerCase();case`function`:return O(e.args,t)}return!1}function k(e){let t=``;return t+=e.period.toUpperCase(),t}function A(e,t,n){let r=``;return r=t.type===`interval-period`?k(t):k(t.start)+` TO `+k(t.end),`INTERVAL `+n+` `+e+` `+r}export{v as arcadeDateOnlyToSqlString,_ as arcadeDateToSqlString,p as combine,m as convertColumnReferenceToSql,A as convertIntervalToSql,D as isSingleField,b as makeSqlFromDateTimeParameter,y as makeTimeString,x as makeToday,S as predictType,f as reformulateWithoutField,E as scanForField,u as toWhereClause,d as toWhereClauseFromTree,g as translateFunctionToDatabaseSpecific};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{FeatureSetError as e}from"./errorsupport.js";import{
|
|
2
|
+
import{FeatureSetError as e}from"./errorsupport.js";import{aggregateFunction as t}from"../../../core/sql/AggregateFunctions.js";import{DateOnly as n}from"../../../core/sql/DateOnly.js";import{SqlTimeStampOffset as r}from"../../../core/sql/SqlTimestampOffset.js";import{TimeOnly as i}from"../../../core/sql/TimeOnly.js";function a(e){switch(e.toLowerCase()){case`distinct`:return`distinct`;case`avg`:case`mean`:return`avg`;case`min`:return`min`;case`sum`:return`sum`;case`max`:return`max`;case`stdev`:case`stddev`:return`stddev`;case`var`:case`variance`:return`var`;case`count`:return`count`}return null}async function o(n,r,i,a){let o=await n.queryAll(a),s=[];if(r!=null){let t={ticker:0};for await(let n of o){if(t.ticker+=n.length,t.ticker>=100&&(t.ticker=0,await new Promise(e=>{setTimeout(e,0)})),a?.aborted)throw new e(`Cancelled`);for(let e of n)s.push(r.calculateValue(e))}}return t(i,[s])}async function s(t,a,o=1e3,s=null){if(a==null)return[];let c=await t.queryAll(s),l=[],u=new Set,d={ticker:0};for await(let t of c){if(d.ticker+=t.length,d.ticker>=100&&(d.ticker=0,await new Promise(e=>{setTimeout(e,0)})),s?.aborted)throw new e(`Cancelled`);for(let e of t){let t=a.calculateValue(e),s=t;if(t instanceof n?s=`!!DATEONLY!!-`+t.toString():t instanceof r?s=`!!TSOFFSETONLY!!-`+t.toString():t instanceof i?s=`!!TIMEONLY!!-`+t.toString():t instanceof Date&&(s=`!!DATE!!-`+t.toString()),t!=null&&(u.has(s)||(l.push(t),u.add(s))),l.length>=o&&o!==-1)return l}}return l}export{o as calculateSqlAggregateStatistic,a as decodeStatType,s as distinct};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{ArcadeDate as e}from"../ArcadeDate.js";import{isEmpty as t}from"../containerUtils.js";import{ArcadeExecutionError as n}from"../executionError.js";import{E as r,k as i,g as a,l as o,F as s,G as c,N as l,O as u,S as
|
|
2
|
+
import{ArcadeDate as e}from"../ArcadeDate.js";import{isEmpty as t}from"../containerUtils.js";import{ArcadeExecutionError as n}from"../executionError.js";import{E as r,k as i,g as a,l as o,F as s,G as c,N as l,O as u,w as d,S as f}from"../../chunks/languageUtils.js";import{calculateStat as p}from"./fieldStats.js";import{SqlTimeStampOffset as m}from"../../core/sql/SqlTimestampOffset.js";import h from"../../core/sql/WhereClause.js";import{DateTime as g}from"luxon";import{isArray as _,isString as v,isBoolean as y,isDate as b}from"../../support/guards.js";async function x(e,t,n,r){if(n.length>0&&i(n[0])){let i=await n[0].load(),a=await C(h.create(d(n[1]),{fieldsIndex:i.getFieldsIndex(),timeZone:i.dateFieldsTimeZoneDefaultUTC}),r,t);return S(t,await n[0].calculateStatistic(e,a,-1,t.abortSignal))}if(n.length===1){if(_(n[0]))return p(e,n[0]);if(a(n[0]))return p(e,n[0].toArray())}return p(e,n)}function S(t,n){return m.isTimestampOffset(n)?e.fromReaderAsTimeStampOffset(n.toStorageFormat()):b(n)?e.dateJSAndZoneToArcadeDate(n,f(t)):g.isDateTime(n)?e.dateTimeToArcadeDate(n):n}async function C(e,t,n){let r=e.getVariables();if(r.length>0){let i={};for(let e of r)i[e]=t.evaluateIdentifier(n,{name:e});e.parameters=i}return e}function w(e){e.mode===`async`&&(e.functions.stdev=function(t,n){return e.standardFunctionAsync(t,n,(n,r,i)=>x(`stdev`,t,i,e))},e.functions.variance=function(t,n){return e.standardFunctionAsync(t,n,(n,r,i)=>x(`variance`,t,i,e))},e.functions.average=function(t,n){return e.standardFunctionAsync(t,n,(n,r,i)=>x(`mean`,t,i,e))},e.functions.mean=function(t,n){return e.standardFunctionAsync(t,n,(n,r,i)=>x(`mean`,t,i,e))},e.functions.sum=function(t,n){return e.standardFunctionAsync(t,n,(n,r,i)=>x(`sum`,t,i,e))},e.functions.min=function(t,n){return e.standardFunctionAsync(t,n,(n,r,i)=>x(`min`,t,i,e))},e.functions.max=function(t,n){return e.standardFunctionAsync(t,n,(n,r,i)=>x(`max`,t,i,e))},e.functions.count=function(t,l){return e.standardFunctionAsync(t,l,async(e,t,u)=>{if(r(u,1,1,l),u[0]==null)return 0;if(i(u[0]))return u[0].count(e.abortSignal);if(_(u[0])||v(u[0]))return u[0].length;if(a(u[0]))return u[0].length();if(o(u[0])||s(u[0])||c(u[0]))return u[0].entryCount();throw new n(`InvalidParameter`,l)})},e.functions.isempty=function(a,o){return e.standardFunctionAsync(a,o,async(e,a,o)=>{if(r(o,1,2,a),o.length>=2&&!y(o[1]))throw new n(`InvalidParameter`,a);return l(o[1],!1)?i(o[0])?await o[0].isEmpty(e.abortSignal):t(o[0]):u(o[0])})})}export{w as registerFunctions};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{u as e,z as t,a3 as n}from"../../chunks/languageUtils.js";import{isNumber as r,isString as i}from"../../support/guards.js";function a(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function o(e){let t=a(e),n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/e.length}function s(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}function c(n,a){let o=[],s={},c=[];for(let l of n){if(l!=null&&!e(l)){if(r(l)||i(l))s[l]===void 0&&(o.push(l),s[l]=1);else{let e=!1;for(let n=0;n<c.length;n++)t(c[n],l)===!0&&(e=!0);e===!1&&(c.push(l),o.push(l))}}if(o.length>=a&&a!==-1)return o}return o}function l(e){switch(e.toLowerCase()){case`distinct`:return`distinct`;case`avg`:case`mean`:return`avg`;case`min`:return`min`;case`sum`:return`sum`;case`max`:return`max`;case`stdev`:case`stddev`:return`stddev`;case`var`:case`variance`:return`var`;case`count`:return`count`}return``}function u(e,t){switch(e){case`avg`:case`mean`:return a(n(t));case`min`:return Math.min
|
|
2
|
+
import{u as e,z as t,a3 as n}from"../../chunks/languageUtils.js";import{isNumber as r,isString as i}from"../../support/guards.js";function a(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function o(e){let t=a(e),n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/e.length}function s(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}function c(n,a){let o=[],s={},c=[];for(let l of n){if(l!=null&&!e(l)){if(r(l)||i(l))s[l]===void 0&&(o.push(l),s[l]=1);else{let e=!1;for(let n=0;n<c.length;n++)t(c[n],l)===!0&&(e=!0);e===!1&&(c.push(l),o.push(l))}}if(o.length>=a&&a!==-1)return o}return o}function l(e){switch(e.toLowerCase()){case`distinct`:return`distinct`;case`avg`:case`mean`:return`avg`;case`min`:return`min`;case`sum`:return`sum`;case`max`:return`max`;case`stdev`:case`stddev`:return`stddev`;case`var`:case`variance`:return`var`;case`count`:return`count`}return``}function u(e,t){switch(e){case`avg`:case`mean`:return a(n(t));case`min`:return n(t).reduce((e,t)=>Math.min(e,t),1/0);case`sum`:return s(n(t));case`max`:return n(t).reduce((e,t)=>Math.max(e,t),-1/0);case`stdev`:case`stddev`:return Math.sqrt(o(n(t)));case`var`:case`variance`:return o(n(t));case`count`:return t.length;case`product`:return n(t).reduce((e,t)=>e*t,1);default:return 0}}export{u as calculateStat,l as decodeStatType,c as distinct};
|
package/arcgisGlobal.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export interface ArcgisImportModules {
|
|
|
161
161
|
"@arcgis/core/core/accessorSupport/decorators.js": typeof import("./core/accessorSupport/decorators.js");
|
|
162
162
|
"@arcgis/core/core/sql/WhereClause.js": typeof import("./core/sql/WhereClause.js").default;
|
|
163
163
|
"@arcgis/core/core/workers/Connection.js": typeof import("./core/workers/Connection.js").default;
|
|
164
|
+
"@arcgis/core/editing/fieldUtils.js": typeof import("./editing/fieldUtils.js");
|
|
164
165
|
"@arcgis/core/editing/sharedTemplates/SharedTemplate.js": typeof import("./editing/sharedTemplates/SharedTemplate.js").default;
|
|
165
166
|
"@arcgis/core/editing/sharedTemplates/SharedTemplateMetadata.js": typeof import("./editing/sharedTemplates/SharedTemplateMetadata.js").default;
|
|
166
167
|
"@arcgis/core/editing/templates/TemplateListItem.js": typeof import("./editing/templates/TemplateListItem.js").default;
|
|
@@ -549,7 +550,7 @@ export interface ArcgisImportModules {
|
|
|
549
550
|
"@arcgis/core/layers/voxel/VoxelVolume.js": typeof import("./layers/voxel/VoxelVolume.js").default;
|
|
550
551
|
"@arcgis/core/layers/voxel/VoxelVolumeStyle.js": typeof import("./layers/voxel/VoxelVolumeStyle.js").default;
|
|
551
552
|
"@arcgis/core/legend/ActiveLayerInfo.js": typeof import("./legend/ActiveLayerInfo.js").default;
|
|
552
|
-
"@arcgis/core/legend/
|
|
553
|
+
"@arcgis/core/legend/LegendModel.js": typeof import("./legend/LegendModel.js").default;
|
|
553
554
|
"@arcgis/core/linkChart/ChronologicalLayoutSettings.js": typeof import("./linkChart/ChronologicalLayoutSettings.js").default;
|
|
554
555
|
"@arcgis/core/linkChart/LayoutSettings.js": typeof import("./linkChart/LayoutSettings.js").default;
|
|
555
556
|
"@arcgis/core/linkChart/LinkChartProperties.js": typeof import("./linkChart/LinkChartProperties.js").default;
|
|
@@ -945,9 +946,11 @@ export interface ArcgisImportModules {
|
|
|
945
946
|
"@arcgis/core/smartMapping/statistics/classBreaks.js": typeof import("./smartMapping/statistics/classBreaks.js").default;
|
|
946
947
|
"@arcgis/core/smartMapping/statistics/heatmapStatistics.js": typeof import("./smartMapping/statistics/heatmapStatistics.js").default;
|
|
947
948
|
"@arcgis/core/smartMapping/statistics/histogram.js": typeof import("./smartMapping/statistics/histogram.js").default;
|
|
949
|
+
"@arcgis/core/smartMapping/statistics/histogramForTimeSeries.js": typeof import("./smartMapping/statistics/histogramForTimeSeries.js").default;
|
|
948
950
|
"@arcgis/core/smartMapping/statistics/predominantCategories.js": typeof import("./smartMapping/statistics/predominantCategories.js").default;
|
|
949
951
|
"@arcgis/core/smartMapping/statistics/summaryStatistics.js": typeof import("./smartMapping/statistics/summaryStatistics.js").default;
|
|
950
952
|
"@arcgis/core/smartMapping/statistics/summaryStatisticsForAge.js": typeof import("./smartMapping/statistics/summaryStatisticsForAge.js").default;
|
|
953
|
+
"@arcgis/core/smartMapping/statistics/summaryStatisticsForTimeSeries.js": typeof import("./smartMapping/statistics/summaryStatisticsForTimeSeries.js").default;
|
|
951
954
|
"@arcgis/core/smartMapping/statistics/uniqueValues.js": typeof import("./smartMapping/statistics/uniqueValues.js").default;
|
|
952
955
|
"@arcgis/core/smartMapping/statistics/support/ageUtils.js": typeof import("./smartMapping/statistics/support/ageUtils.js");
|
|
953
956
|
"@arcgis/core/smartMapping/statistics/support/predominanceUtils.js": typeof import("./smartMapping/statistics/support/predominanceUtils.js");
|
|
@@ -1178,6 +1181,7 @@ export interface ArcgisImportModules {
|
|
|
1178
1181
|
"@arcgis/core/views/layers/OrientedImageryLayerView.js": typeof import("./views/layers/OrientedImageryLayerView.js").default;
|
|
1179
1182
|
"@arcgis/core/views/layers/ParquetLayerView.js": typeof import("./views/layers/ParquetLayerView.js").default;
|
|
1180
1183
|
"@arcgis/core/views/layers/SceneLayerView.js": typeof import("./views/layers/SceneLayerView.js").default;
|
|
1184
|
+
"@arcgis/core/views/layers/SketchLayerView.js": typeof import("./views/layers/SketchLayerView.js").default;
|
|
1181
1185
|
"@arcgis/core/views/layers/StreamLayerView.js": typeof import("./views/layers/StreamLayerView.js").default;
|
|
1182
1186
|
"@arcgis/core/views/layers/SubtypeGroupLayerView.js": typeof import("./views/layers/SubtypeGroupLayerView.js").default;
|
|
1183
1187
|
"@arcgis/core/views/layers/VectorTileLayerView.js": typeof import("./views/layers/VectorTileLayerView.js").default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M7 1H4V0h3zM1 3H0v3h1zm0-2h2V0H0v2h1zM0 7h11v9H0zm1 8h9V8H1zm14-6h1l-1.5-2L13 9h1v5h-1l1.5 2 1.5-2h-1zM8 1h2v1h1V0H8zm2 5h1V3h-1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M14 9H1v14h15V9zm1 13H2V10h13zM2 4H1V1h3v1H2zm13 1h1v3h-1zM5 2V1h3v1zm4 0V1h3v1zm4 0V1h3v3h-1V2zM2 8H1V5h1zm20 3v10h1.176L21.5 23.058 19.824 21H21V11h-1.176L21.5 8.942 23.176 11z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M2 30h19V13H2zm18-16v15H3V14zM14 3V2h3v1zM3 9H2V6h1zm7-6V2h3v1zm-7 9H2v-2h1zm17-2h1v2h-1zm-2-7V2h3v3h-1V3zM6 3V2h3v1zM3 5H2V2h3v1H3zm17 1h1v3h-1zm8 10v11h2.19l-2.69 3.058L24.81 27H27V16h-2.19l2.69-3.058L30.19 16z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M1 10H0V7h1zm0-7H0v3h1zm6-3H4v1h3zM1 1h2V0H0v2h1zm14 11h1l-1.5-2-1.5 2h1v2h-1l1.5 2 1.5-2h-1zM8 1h2v1h1V0H8zM0 11h11v5H0zm1 4h9v-3H1zm9-9h1V3h-1zm0 4h1V7h-1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M13 2V1h3v3h-1V2zm-1 0V1H9v1zM2 2h2V1H1v3h1zm6 0V1H5v1zm7 3.44V8h1V5h-1zM15 17h1v6H1v-6zm0 1H2v4h13zM2 5.44V5H1v3h1zM15 12h1V9h-1zM2 9H1v3h1zm13 7h1v-3h-1zM2 13H1v3h1zm21.176 6L21.5 16.942 19.824 19H21v2h-1.176l1.676 2.058L23.176 21H22v-2z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M2 30h19v-8h-1v.021H3V22H2zm18-7v6H3v-6zM3 5H2V2h3v1H3zm0 8H2v-3h1zm0-4H2V6h1zm17 1h1v3h-1zM10 3V2h3v1zm10 3h1v3h-1zm-6-3V2h3v1zm4 0V2h3v3h-1V3zM6 3V2h3v1zm14 15h1v3h-1zM3 17H2v-3h1zm0 4H2v-3h1zm17-7h1v3h-1zm8 11v2h2.19l-2.69 3.058L24.81 27H27v-2h-2.19l2.69-3.058L30.19 25z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M7 1H4V0h3zm8 4h1l-1.5-2L13 5h1v9h-1l1.5 2 1.5-2h-1zM0 3h11v13H0zm1 12h9V4H1zM8 1h2v1h1V0H8zM1 1h2V0H0v2h1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M13 2V1h3v3h-1V2zM8 2V1H5v1zm7 3h1v18H1V5zm0 1H2v16h13zM2 2h2V1H1v3h1zm10 0V1H9v1zm11.176 5L21.5 4.942 19.824 7H21v14h-1.176l1.676 2.058L23.176 21H22V7z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M2 30h19V6H2zM20 7v22H3V7zM10 3V2h3v1zM3 5H2V2h3v1H3zm15-2V2h3v3h-1V3zm-4 0V2h3v1zM6 3V2h3v1zm22 24h2.19l-2.69 3.058L24.81 27H27V9h-2.19l2.69-3.058L30.19 9H28z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M6 11c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5c0 .229-.038.447-.067.667l-.934-.681A4.003 4.003 0 0 0 6 2C3.794 2 2 3.794 2 6s1.794 4 4 4zm5.717 0 1.838 3.667L11 15.952l-1.884-3.73L7 15.124V5.036L15.174 11zm-1.62-1h2.01L8 7.003v5.053l1.271-1.744 2.171 4.298.77-.388z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M9 12.755v1.025c-.165.012-.33.024-.497.024a6.26 6.26 0 0 1-4.457-1.844 6.31 6.31 0 0 1 0-8.913c1.188-1.19 2.771-1.844 4.457-1.844s3.268.654 4.456 1.844a6.28 6.28 0 0 1 1.824 4.855l-1.013-.74c-.082-1.287-.6-2.49-1.518-3.408-1-1-2.331-1.55-3.75-1.55s-2.75.55-3.75 1.55-1.55 2.33-1.55 3.75c0 1.418.55 2.749 1.55 3.749s2.333 1.55 3.75 1.55c.17 0 .332-.032.498-.048M22.813 15H17.36l3.032 6.049-3.94 1.981-3.106-6.152L10 21.462V5.65zm-3.067-1L11 7.618v10.777l2.501-3.427 3.393 6.72 2.155-1.084L15.739 14z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M12 17.642v1.016c-.49.09-.99.14-1.5.14-2.22 0-4.304-.862-5.87-2.428s-2.427-3.65-2.427-5.869.862-4.305 2.428-5.87S8.28 2.203 10.5 2.203s4.304.862 5.87 2.428a8.24 8.24 0 0 1 2.3 7.284l-.912-.666q.038-.37.039-.748a7.25 7.25 0 0 0-2.135-5.163c-1.376-1.377-3.21-2.135-5.162-2.135s-3.786.758-5.162 2.135A7.25 7.25 0 0 0 3.203 10.5c0 1.952.758 3.786 2.135 5.162a7.25 7.25 0 0 0 5.162 2.135c.51 0 1.012-.055 1.5-.156M29.425 21h-7.009l3.962 7.908-5.016 2.523-4.062-8.043-4.3 5.894V9.016zm-3.037-.99L13.99 10.964v15.28l3.464-4.748 4.346 8.606 3.25-1.635-4.237-8.458z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M4 16h9v-2h2V0H4C1.786 0 1.01 1.077 1.01 2L1 13c0 1.654 1.346 3 3 3M4 1h10v12h-1V3H4c-1.196 0-2-.402-2-1s.804-1 2-1M2 3.568C2.469 3.831 3.122 4 4 4h8v11H4c-1.103 0-2-.897-2-2zM4.857 11h3.286L9 13h.99L7 6H6l-2.99 7H4zM6.5 7.167 7.714 10H5.286z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"d":"M22 1H5.417C3.437 1 2 2.052 2 3.5v15.75A3.755 3.755 0 0 0 5.75 23H19v-3h3zm-4 21H5.75A2.753 2.753 0 0 1 3 19.25V5.317c.604.43 1.445.683 2.417.683H18zm3-3h-2V5H5.417C4.039 5 3 4.355 3 3.5S4.04 2 5.417 2H21z"},{"d":"M8.34 15h4.295L14 18h.99l-4.02-9h-1L6 18h.991zm2.132-4.75L12.179 14H8.79z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M6.833 2C4.683 2 3.01 3.098 3.01 4.5L3 25.5C3 27.981 5.019 30 7.5 30H26v-4h3V2zM25 29H7.5C5.57 29 4 27.43 4 25.5V6.2c.696.494 1.7.8 2.833.8H25zm3-4h-2V6H6.833C5.163 6 4 5.21 4 4.5S5.163 3 6.833 3H28zm-16.311-6h5.622l1.677 4h1.084l-5.03-12h-1.084l-5.03 12h1.084zm2.811-6.707L16.892 18h-4.784z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M13.5 11.1a2.404 2.404 0 0 0-2.346 1.9H5V8h6.154A2.404 2.404 0 0 0 13.5 9.9c1.323 0 2.4-1.077 2.4-2.4s-1.077-2.4-2.4-2.4A2.404 2.404 0 0 0 11.154 7H5V6h3V1H6V0H3v1H1v5h3v8h7.154a2.404 2.404 0 0 0 2.346 1.9c1.323 0 2.4-1.077 2.4-2.4s-1.077-2.4-2.4-2.4m0-5.1c.827 0 1.5.673 1.5 1.5S14.327 9 13.5 9 12 8.327 12 7.5 12.673 6 13.5 6M2 5V2h5v3zm11.5 10c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5 1.5.673 1.5 1.5-.673 1.5-1.5 1.5"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M18.5 17.1a3.395 3.395 0 0 0-3.35 2.9H7v-7h8.15a3.395 3.395 0 0 0 3.35 2.9c1.875 0 3.4-1.525 3.4-3.4s-1.525-3.4-3.4-3.4a3.395 3.395 0 0 0-3.35 2.9H7v-2h4V3H9V1H4v2H2v7h4v11h9.15a3.395 3.395 0 0 0 3.35 2.9c1.875 0 3.4-1.525 3.4-3.4s-1.525-3.4-3.4-3.4m0-7c1.323 0 2.4 1.077 2.4 2.4s-1.077 2.4-2.4 2.4-2.4-1.077-2.4-2.4 1.077-2.4 2.4-2.4M5 2h3v1H5zM3 9V4h7v5zm15.5 13.9c-1.323 0-2.4-1.077-2.4-2.4s1.077-2.4 2.4-2.4 2.4 1.077 2.4 2.4-1.077 2.4-2.4 2.4"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M24.5 22.1c-2.256 0-4.098 1.71-4.35 3.9H9v-9h11.15c.252 2.19 2.094 3.9 4.35 3.9 2.427 0 4.4-1.973 4.4-4.4s-1.973-4.4-4.4-4.4c-2.256 0-4.098 1.71-4.35 3.9H9v-4h6V3h-3V1H6v2H3v9h5v15h12.15c.252 2.19 2.094 3.9 4.35 3.9 2.427 0 4.4-1.973 4.4-4.4s-1.973-4.4-4.4-4.4m0-9c1.875 0 3.4 1.525 3.4 3.4s-1.525 3.4-3.4 3.4-3.4-1.525-3.4-3.4 1.525-3.4 3.4-3.4M7 2h4v1H7zm-3 9V4h10v7zm20.5 18.9c-1.875 0-3.4-1.525-3.4-3.4s1.525-3.4 3.4-3.4 3.4 1.525 3.4 3.4-1.525 3.4-3.4 3.4"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M11.492 13a4.5 4.5 0 0 0 4.5-4.496 4.507 4.507 0 0 0-4.5-4.502H4.517A4.494 4.494 0 0 0 .015 8.504 4.503 4.503 0 0 0 4.517 13zM1.015 8.504c0-1.93 1.57-3.51 3.502-3.51h6.975a3.505 3.505 0 0 1 0 7.01H4.517a3.505 3.505 0 0 1-3.502-3.5M12 9H4V8h8z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M17.456 6.017H6.512c-3.587 0-6.505 2.919-6.505 6.505S2.925 19 6.512 19h10.944c3.587 0 6.505-2.89 6.505-6.478s-2.918-6.505-6.505-6.505m0 12.01H6.512a5.51 5.51 0 0 1-5.505-5.505C1.007 9.486 3.477 7 6.512 7h10.944c3.035 0 5.505 2.486 5.505 5.522a5.51 5.51 0 0 1-5.505 5.505M7 12h10v1H7z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M22.505 8.002H9.548c-4.685 0-8.495 3.81-8.495 8.493s3.81 8.493 8.495 8.493h12.957c4.684 0 8.493-3.81 8.493-8.493s-3.81-8.493-8.493-8.493m0 15.998H9.548c-4.133 0-7.495-3.373-7.495-7.505S5.415 9 9.548 9h12.957c4.132 0 7.493 3.363 7.493 7.495S26.637 24 22.505 24M10 16h12v1H10z"
|