Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

6 lines
1.5 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define(["exports","./componentsUtils"],function(e,t){function k(){const a=navigator.userAgentData;return a?.brands?a.brands.map(({brand:b,version:f})=>`${b}/${f}`).join(" "):navigator.userAgent}function u(){const {disabled:a}=this;a||HTMLElement.prototype.click.call(this)}function l(a){var b=a.target;if(!c||d.get(b))({disabled:b}=b),b&&a.preventDefault()}function m(a){const b=a.target;c&&!d.get(b)||!b.disabled||(a.stopImmediatePropagation(),a.preventDefault())}function n(a){a.el.click=u;if(c){const b=
a.el.parentElement||a.el,f=d.get(a.el);f!==b&&(h(f),d.set(a.el,b));p(d.get(a.el))}else p(a.el)}function p(a){a&&(a.addEventListener("pointerdown",l,g),q.forEach(b=>a.addEventListener(b,m,g)))}function r(a){delete a.el.click;c?(h(d.get(a.el)),d.delete(a.el)):h(a.el)}function h(a){a&&(a.removeEventListener("pointerdown",l,g),q.forEach(b=>a.removeEventListener(b,m,g)))}const c=/firefox/i.test(k()),d=c?new WeakMap:null,q=["mousedown","mouseup","click"],g={capture:!0};e.InteractiveContainer=function({disabled:a},
b){return t.h("div",{class:"interaction-container",inert:a},...b)};e.connectInteractive=function(a){a.disabled&&c&&n(a)};e.disconnectInteractive=function(a){c&&r(a)};e.getUserAgentString=k;e.updateHostInteraction=function(a){a.disabled?(a.el.setAttribute("aria-disabled","true"),a.el.contains(document.activeElement)&&document.activeElement.blur(),n(a)):(r(a),a.el.removeAttribute("aria-disabled"))}});