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.
 
 

7 lines
3.2 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","./label2"],function(d,a,c){function e(){"undefined"!==typeof customElements&&["calcite-label"].forEach(b=>{switch(b){case "calcite-label":customElements.get(b)||customElements.define(b,f)}})}const f=a.proxyCustomElement(class extends a.H{constructor(){super();this.__registerHost();this.__attachShadow();this.calciteInternalLabelClick=a.createEvent(this,"calciteInternalLabelClick",2);this.labelClickHandler=b=>{this.calciteInternalLabelClick.emit({sourceEvent:b})};
this.alignment="start";this.for=void 0;this.scale="m";this.layout="default"}handleForChange(){c.associateExplicitLabelToUnlabeledComponent(this.el)}connectedCallback(){document.dispatchEvent(new CustomEvent(c.labelConnectedEvent))}disconnectedCallback(){document.dispatchEvent(new CustomEvent(c.labelDisconnectedEvent))}render(){return a.h(a.Host,{key:"fc1ef6c0deb51a1cfb30b8efe5bb386bdb834380",onClick:this.labelClickHandler},a.h("div",{key:"23ac73d58f829394636f391ae5126332374e0857",class:"container"},
a.h("slot",{key:"a2f2f7d660b6a3d31f14a027187e8f2d27fcb611"})))}get el(){return this}static get watchers(){return{for:["handleForChange"]}}static get style(){return":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment\x3dstart]){text-align:start}:host([alignment\x3dend]){text-align:end}:host([alignment\x3dcenter]){text-align:center}:host([scale\x3ds]) .container{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.5rem)}:host([scale\x3dm]) .container{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.75rem)}:host([scale\x3dl]) .container{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1)}:host([layout\x3ddefault]) .container{display:flex;flex-direction:column}:host([layout\x3dinline]) .container,:host([layout\x3dinline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:0.5rem}:host([layout\x3dinline][scale\x3dl]) .container{gap:0.75rem}:host([layout\x3dinline-space-between]) .container{justify-content:space-between}:host([disabled])\x3e.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity:1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}"}},
[1,"calcite-label",{alignment:[513],for:[513],scale:[513],layout:[513]},void 0,{for:["handleForChange"]}]);e();d.Label=f;d.defineCustomElement=e});