Skip to content

Commit

Permalink
remove returns void doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhauck committed Dec 20, 2023
1 parent 2999c9a commit 134bda5
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 120 deletions.
2 changes: 0 additions & 2 deletions src/components/basemap-gallery/basemap-gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 0 additions & 8 deletions src/components/crowdsource-manager/crowdsource-manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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
Expand Down
6 changes: 0 additions & 6 deletions src/components/edit-card/edit-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ export class EditCard {

/**
* Init the Editor widget so we can display the popup content
*
* @returns void
*/
protected async _initEditorWidget(): Promise<void> {
if (this.mapView && this.graphics && this.graphics.length > 0 && this.graphics[0]) {
Expand Down Expand Up @@ -375,8 +373,6 @@ export class EditCard {

/**
* Close the edit widget
*
* @returns void
*/
protected async _closeEdit(): Promise<void> {
this._shouldClose = true;
Expand All @@ -395,8 +391,6 @@ export class EditCard {

/**
* Start the update workflow for the editor widget
*
* @returns void
*/
protected async _startUpdate(): Promise<void> {
await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
Expand Down
4 changes: 0 additions & 4 deletions src/components/floor-filter/floor-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions src/components/info-card/info-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,26 +461,20 @@ export class InfoCard {

/**
* Close the popup and emit the selected features
*
* @returns void
*/
protected _closePopup(): void {
this.popupClosed.emit();
}

/**
* Set the alertOpen member to false when the alert is closed
*
* @returns void
*/
protected _alertClosed(): void {
this._alertOpen = false;
}

/**
* Open the edit record
*
* @returns void
*/
protected _openEditRecord(): void {
if (this._editEnabled) {
Expand All @@ -492,8 +486,6 @@ export class InfoCard {

/**
* Go to the previous feature in the features widget
*
* @returns void
*/
protected _back(): void {
this._features.previous();
Expand All @@ -502,8 +494,6 @@ export class InfoCard {

/**
* Go to the next feature in the features widget
*
* @returns void
*/
protected _next(): void {
this._features.next();
Expand Down
60 changes: 0 additions & 60 deletions src/components/layer-table/layer-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,6 @@ export class LayerTable {

/**
* Update the toolbar when its size changes
*
* @returns void
*/
protected _onResize(): void {
this._updateToolbar()
Expand Down Expand Up @@ -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();
Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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[],
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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) {
Expand All @@ -1461,8 +1443,6 @@ export class LayerTable {

/**
* Reset basic table props
*
* @returns void
*/
protected async _resetTable(): Promise<void> {
this._clearSelection();
Expand Down Expand Up @@ -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) => {
Expand All @@ -1523,8 +1501,6 @@ export class LayerTable {

/**
* Select the feature that was specified via url params
*
* @returns void
*/
protected _selectDefaultFeature(
oids: number[]
Expand All @@ -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;
Expand All @@ -1550,8 +1524,6 @@ export class LayerTable {

/**
* Sort the objectid field in descending order
*
* @returns void
*/
protected async _sortTable(): Promise<void> {
if (this._table && this._layer && !this._sortActive) {
Expand Down Expand Up @@ -1612,8 +1584,6 @@ export class LayerTable {

/**
* Keep track of key down for ctrl and shift
*
* @returns void
*/
protected _handleKeyDown(
e: KeyboardEvent
Expand All @@ -1624,8 +1594,6 @@ export class LayerTable {

/**
* Keep track of key up for ctrl and shift
*
* @returns void
*/
protected _handleKeyUp(
e: KeyboardEvent
Expand Down Expand Up @@ -1671,8 +1639,6 @@ export class LayerTable {

/**
* Close the filter modal
*
* @returns void
*/
protected async _closeFilter(): Promise<void> {
if (this._filterOpen) {
Expand Down Expand Up @@ -1727,8 +1693,6 @@ export class LayerTable {

/**
* Delete the currently selected features
*
* @returns void
*/
protected async _deleteFeatures(): Promise<void> {
this._isDeleting = true;
Expand All @@ -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
Expand Down Expand Up @@ -1777,17 +1739,13 @@ export class LayerTable {

/**
* Set the alertOpen member to false when the alert is closed
*
* @returns void
*/
protected _deleteClosed(): void {
this._confirmDelete = false;
}

/**
* Select or deselect all rows
*
* @returns void
*/
protected _selectAll(): void {
const ids = this._allIds;
Expand All @@ -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;
Expand All @@ -1815,8 +1771,6 @@ export class LayerTable {

/**
* Clears the selected indexes
*
* @returns void
*/
protected _clearSelection(): void {
this._selectedIndexes = [];
Expand All @@ -1825,8 +1779,6 @@ export class LayerTable {

/**
* When true the filter modal will be displayed
*
* @returns void
*/
protected _toggleFilter(): void {
this._filterOpen = !this._filterOpen;
Expand All @@ -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;
Expand All @@ -1846,8 +1796,6 @@ export class LayerTable {

/**
* Select all rows that are not currently selectd
*
* @returns void
*/
protected _switchSelected(): void {
const currentIndexes = [...this._selectedIndexes];
Expand Down Expand Up @@ -1888,8 +1836,6 @@ export class LayerTable {

/**
* Refreshes the table and maintains the curent scroll position
*
* @returns void
*/
protected async _refresh(): Promise<void> {
await this._table.refresh();
Expand Down Expand Up @@ -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
Expand All @@ -2002,9 +1945,6 @@ export class LayerTable {

/**
* Hide the table column for the provided name
*
* @returns void
* @protected
*/
protected _handleHideClick(
name: string
Expand Down
4 changes: 0 additions & 4 deletions src/components/map-card/map-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 134bda5

Please sign in to comment.