UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 1.07 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as e}from"../../../chunks/tslib.es6.js";import"../../../core/Logger.js";import"../../../core/has.js";import"../../../core/RandomLCG.js";import"../../../core/Error.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{css as t}from"../resources.js";import{isWidget as r,hasDomNode as s}from"../../support/widget.js";import{tsx as c}from"../../support/jsxFactory.js";const n=n=>{let i=class extends n{constructor(){super(...arguments),this.renderNodeContent=e=>r(e)&&!e.destroyed?c("div",{class:t.contentNode,key:e},e.render()):e instanceof HTMLElement?c("div",{afterCreate:this._attachToNode,bind:e,class:t.contentNode,key:e}):s(e)?c("div",{afterCreate:this._attachToNode,bind:e.domNode,class:t.contentNode,key:e}):null}_attachToNode(e){const o=this;e.appendChild(o)}};return i=e([o("esri.widgets.Feature.support.FeatureContentMixin")],i),i};export{n as FeatureContentMixin};