diff --git a/src/components/basemap-gallery/basemap-gallery.tsx b/src/components/basemap-gallery/basemap-gallery.tsx index 841b74f27..0728743e4 100644 --- a/src/components/basemap-gallery/basemap-gallery.tsx +++ b/src/components/basemap-gallery/basemap-gallery.tsx @@ -169,8 +169,6 @@ export class BasemapGallery { /** * Initialize the basemap gallery or reset the current view if it already exists * - * @returns void - * * @protected */ protected async _initBaseMapGallery( diff --git a/src/components/crowdsource-manager/crowdsource-manager.tsx b/src/components/crowdsource-manager/crowdsource-manager.tsx index f56183f9e..5fb5b4d55 100644 --- a/src/components/crowdsource-manager/crowdsource-manager.tsx +++ b/src/components/crowdsource-manager/crowdsource-manager.tsx @@ -889,8 +889,6 @@ export class CrowdsourceManager { /** * Update the component layout when its size changes - * - * @returns void */ protected _onResize(): void { this._isMobile = this.el.offsetWidth < 1024; @@ -901,9 +899,6 @@ export class CrowdsourceManager { /** * Open/Close the appropriate panel. * The panel that is toggled is dependent upon the layout mode and if using classic grid or not - * - * @returns void - * @protected */ protected _toggleLayout(): void { this._panelOpen = !this._panelOpen; @@ -913,9 +908,6 @@ export class CrowdsourceManager { * Show/Hide the map, popup, and table * * @param show when true the map, popup, and table will be displayed - * - * @returns void - * @protected */ protected showHideMapPopupAndTable( show: boolean diff --git a/src/components/edit-card/edit-card.tsx b/src/components/edit-card/edit-card.tsx index 7f3ad997a..e1d3167e6 100644 --- a/src/components/edit-card/edit-card.tsx +++ b/src/components/edit-card/edit-card.tsx @@ -315,8 +315,6 @@ export class EditCard { /** * Init the Editor widget so we can display the popup content - * - * @returns void */ protected async _initEditorWidget(): Promise { if (this.mapView && this.graphics && this.graphics.length > 0 && this.graphics[0]) { @@ -375,8 +373,6 @@ export class EditCard { /** * Close the edit widget - * - * @returns void */ protected async _closeEdit(): Promise { this._shouldClose = true; @@ -395,8 +391,6 @@ export class EditCard { /** * Start the update workflow for the editor widget - * - * @returns void */ protected async _startUpdate(): Promise { await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]); diff --git a/src/components/floor-filter/floor-filter.tsx b/src/components/floor-filter/floor-filter.tsx index bd5cfa18b..33a3d9509 100644 --- a/src/components/floor-filter/floor-filter.tsx +++ b/src/components/floor-filter/floor-filter.tsx @@ -146,10 +146,6 @@ export class FloorFilter { /** * Initialize the floor filter or reset the current view if it already exists - * - * @returns void - * - * @protected */ protected _initFloorFilter( view: __esri.MapView diff --git a/src/components/info-card/info-card.tsx b/src/components/info-card/info-card.tsx index 80eed34d8..ad3b25377 100644 --- a/src/components/info-card/info-card.tsx +++ b/src/components/info-card/info-card.tsx @@ -461,8 +461,6 @@ export class InfoCard { /** * Close the popup and emit the selected features - * - * @returns void */ protected _closePopup(): void { this.popupClosed.emit(); @@ -470,8 +468,6 @@ export class InfoCard { /** * Set the alertOpen member to false when the alert is closed - * - * @returns void */ protected _alertClosed(): void { this._alertOpen = false; @@ -479,8 +475,6 @@ export class InfoCard { /** * Open the edit record - * - * @returns void */ protected _openEditRecord(): void { if (this._editEnabled) { @@ -492,8 +486,6 @@ export class InfoCard { /** * Go to the previous feature in the features widget - * - * @returns void */ protected _back(): void { this._features.previous(); @@ -502,8 +494,6 @@ export class InfoCard { /** * Go to the next feature in the features widget - * - * @returns void */ protected _next(): void { this._features.next(); diff --git a/src/components/layer-table/layer-table.tsx b/src/components/layer-table/layer-table.tsx index d2c8f6cbf..d22b2849e 100644 --- a/src/components/layer-table/layer-table.tsx +++ b/src/components/layer-table/layer-table.tsx @@ -656,8 +656,6 @@ export class LayerTable { /** * Update the toolbar when its size changes - * - * @returns void */ protected _onResize(): void { this._updateToolbar() @@ -796,8 +794,6 @@ export class LayerTable { /** * Update actions enabled prop based on number of selected indexes - * - * @returns void */ _validateEnabledActions(): void { const featuresSelected = this._featuresSelected(); @@ -818,8 +814,6 @@ export class LayerTable { * Get the full list of toolInfos. * Order is important. They should be listed in the order they should display in the UI from * Left to Right for the action bar and Top to Bottom for the dropdown. - * - * @returns void */ protected _initToolInfos(): void { if (!this.isMobile) { @@ -931,8 +925,6 @@ export class LayerTable { /** * Add/Remove tools from the action bar and dropdown based on available size - * - * @returns void */ protected _updateToolbar(): void { if (this._timeout) { @@ -1001,8 +993,6 @@ export class LayerTable { /** * Validate if controls that fit the current display has changed or * is different from what is currently displayed - * - * @returns void */ _setControlsThatFit( controlsThatFit: IToolSizeInfo[], @@ -1022,8 +1012,6 @@ export class LayerTable { /** * Get the id and size for the toolbars current items - * - * @returns void */ protected _setToolbarSizeInfos(): void { let hasWidth = false; @@ -1306,8 +1294,6 @@ export class LayerTable { * and initializes the FeatureTable * * @param node HTMLDivElement The node representing the DOM element that will contain the widget. - * - * @returns void */ private onTableNodeCreate = ( node: HTMLDivElement @@ -1319,8 +1305,6 @@ export class LayerTable { * Initialize the FeatureTable * * @param node HTMLDivElement The node representing the DOM element that will contain the widget. - * - * @returns void */ protected async _getTable( node: HTMLDivElement, @@ -1445,8 +1429,6 @@ export class LayerTable { /** * Handle any updates after a selection change has occured and emit the results - * - * @returns void */ protected _finishOnChange(): void { if (this._showOnlySelected) { @@ -1461,8 +1443,6 @@ export class LayerTable { /** * Reset basic table props - * - * @returns void */ protected async _resetTable(): Promise { this._clearSelection(); @@ -1511,8 +1491,6 @@ export class LayerTable { /** * Store the column names and current hidden status to support show/hide of columns - * - * @returns void */ protected _initColumnsInfo(): void { this._columnsInfo = this._table.columns.reduce((prev, cur: any) => { @@ -1523,8 +1501,6 @@ export class LayerTable { /** * Select the feature that was specified via url params - * - * @returns void */ protected _selectDefaultFeature( oids: number[] @@ -1540,8 +1516,6 @@ export class LayerTable { /** * Verify edit capabilities of the layer - * - * @returns void */ protected _checkEditEnabled(): void { this._editEnabled = this._layer.editingEnabled && this._layer.capabilities.operations.supportsUpdate; @@ -1550,8 +1524,6 @@ export class LayerTable { /** * Sort the objectid field in descending order - * - * @returns void */ protected async _sortTable(): Promise { if (this._table && this._layer && !this._sortActive) { @@ -1612,8 +1584,6 @@ export class LayerTable { /** * Keep track of key down for ctrl and shift - * - * @returns void */ protected _handleKeyDown( e: KeyboardEvent @@ -1624,8 +1594,6 @@ export class LayerTable { /** * Keep track of key up for ctrl and shift - * - * @returns void */ protected _handleKeyUp( e: KeyboardEvent @@ -1671,8 +1639,6 @@ export class LayerTable { /** * Close the filter modal - * - * @returns void */ protected async _closeFilter(): Promise { if (this._filterOpen) { @@ -1727,8 +1693,6 @@ export class LayerTable { /** * Delete the currently selected features - * - * @returns void */ protected async _deleteFeatures(): Promise { this._isDeleting = true; @@ -1748,8 +1712,6 @@ export class LayerTable { * Handle map click events to keep table and map click selection in sync * * @param evt IMapClick map click event details - * - * @returns void */ protected async _mapClicked( evt: IMapClick @@ -1777,8 +1739,6 @@ export class LayerTable { /** * Set the alertOpen member to false when the alert is closed - * - * @returns void */ protected _deleteClosed(): void { this._confirmDelete = false; @@ -1786,8 +1746,6 @@ export class LayerTable { /** * Select or deselect all rows - * - * @returns void */ protected _selectAll(): void { const ids = this._allIds; @@ -1801,8 +1759,6 @@ export class LayerTable { /** * Toggle the show only selected flag * When showOnly is true only the selected features will be shown in the table - * - * @returns void */ protected _toggleShowSelected(): void { this._showOnlySelected = !this._showOnlySelected; @@ -1815,8 +1771,6 @@ export class LayerTable { /** * Clears the selected indexes - * - * @returns void */ protected _clearSelection(): void { this._selectedIndexes = []; @@ -1825,8 +1779,6 @@ export class LayerTable { /** * When true the filter modal will be displayed - * - * @returns void */ protected _toggleFilter(): void { this._filterOpen = !this._filterOpen; @@ -1835,8 +1787,6 @@ export class LayerTable { /** * Store any filters for the current layer. * Should only occur on layer change - * - * @returns void */ protected _initLayerExpressions(): void { const layerExpressions = this.mapInfo?.filterConfig?.layerExpressions; @@ -1846,8 +1796,6 @@ export class LayerTable { /** * Select all rows that are not currently selectd - * - * @returns void */ protected _switchSelected(): void { const currentIndexes = [...this._selectedIndexes]; @@ -1888,8 +1836,6 @@ export class LayerTable { /** * Refreshes the table and maintains the curent scroll position - * - * @returns void */ protected async _refresh(): Promise { await this._table.refresh(); @@ -1979,9 +1925,6 @@ export class LayerTable { /** * Get the menu config that adds the ability to hide the current column - * - * @returns void - * @protected */ protected _getMenuConfig( name: string @@ -2002,9 +1945,6 @@ export class LayerTable { /** * Hide the table column for the provided name - * - * @returns void - * @protected */ protected _handleHideClick( name: string diff --git a/src/components/map-card/map-card.tsx b/src/components/map-card/map-card.tsx index 9239a2974..d4437cdd2 100644 --- a/src/components/map-card/map-card.tsx +++ b/src/components/map-card/map-card.tsx @@ -343,10 +343,6 @@ export class MapCard { * Load the webmap for the provided webMapInfo * * @param webMapInfo the webmap id and name to load - * - * @returns void - * - * @protected */ protected async _loadMap( webMapInfo: IMapInfo diff --git a/src/components/map-draw-tools/map-draw-tools.tsx b/src/components/map-draw-tools/map-draw-tools.tsx index 78d3868fc..9e37a5e75 100644 --- a/src/components/map-draw-tools/map-draw-tools.tsx +++ b/src/components/map-draw-tools/map-draw-tools.tsx @@ -260,8 +260,6 @@ export class MapDrawTools { /** * StencilJS: Called every time the component is disconnected from the DOM - * - * @returns void */ disconnectedCallback(): void { // cancel any existing create operations diff --git a/src/components/map-legend/map-legend.tsx b/src/components/map-legend/map-legend.tsx index 8c5a5c3b1..a6768809d 100644 --- a/src/components/map-legend/map-legend.tsx +++ b/src/components/map-legend/map-legend.tsx @@ -153,10 +153,6 @@ export class MapLegend { /** * Initialize the basemap gallery or reset the current view if it already exists - * - * @returns void - * - * @protected */ protected _initLegend( view: __esri.MapView diff --git a/src/components/map-picker/map-picker.tsx b/src/components/map-picker/map-picker.tsx index 75f5f6df2..6a36b31ed 100644 --- a/src/components/map-picker/map-picker.tsx +++ b/src/components/map-picker/map-picker.tsx @@ -279,10 +279,6 @@ export class MapPicker { * Fired when the user clicks on the map list * * @param webMapInfo the web map id and name selected from the list - * - * @returns void - * - * @protected */ protected _webMapSelected( webMapInfo: IMapInfo diff --git a/src/components/map-tools/map-tools.tsx b/src/components/map-tools/map-tools.tsx index 13162b912..c1ead8ec4 100644 --- a/src/components/map-tools/map-tools.tsx +++ b/src/components/map-tools/map-tools.tsx @@ -518,10 +518,6 @@ export class MapTools { /** * Show/Hide the basemap picker - * - * @returns void - * - * @protected */ protected _toggleBasemapPicker(): void { this._showBasemapWidget = !this._showBasemapWidget; @@ -530,10 +526,6 @@ export class MapTools { /** * Show/Hide the floor filter - * - * @returns void - * - * @protected */ protected _toggleFloorFilter(): void { this._showFloorFilter = !this._showFloorFilter; @@ -542,10 +534,6 @@ export class MapTools { /** * Enter/Exit fullscreen mode - * - * @returns void - * - * @protected */ protected _expand(): void { this._showFullscreen = !this._showFullscreen; @@ -553,10 +541,6 @@ export class MapTools { /** * Show/Hide the map tools - * - * @returns void - * - * @protected */ protected _toggleTools(): void { if (!this._showTools) {