chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-04 01:12:55 -07:00
parent 9341cd9554
commit 1525c89733
274 changed files with 1755 additions and 2733 deletions

View File

@@ -5,7 +5,8 @@ import { GridLayout } from "../../layouts/grid-layout";
// Requires
import { TabContentItemBase, traceCategory } from "./tab-content-item-common";
import { View, traceWrite, traceMessageType } from "../../core/view";
import { View } from "../../core/view";
import { Trace } from "../../../trace";
export * from "./tab-content-item-common";
@@ -49,7 +50,7 @@ export class TabContentItem extends TabContentItemBase {
const fragmentManager = tabView._getFragmentManager();
if (typeof this.index === "undefined") {
traceWrite(`Current TabContentItem index is not set`, traceCategory, traceMessageType.error);
Trace.write(`Current TabContentItem index is not set`, traceCategory, Trace.messageType.error);
}
for (let fragment of (<Array<any>>fragmentManager.getFragments().toArray())) {
@@ -61,8 +62,8 @@ export class TabContentItem extends TabContentItemBase {
// TODO: can happen in a modal tabview scenario when the modal dialog fragment is already removed
if (!tabFragment) {
// if (traceEnabled()) {
// traceWrite(`Could not get child fragment manager for tab item with index ${this.index}`, traceCategory);
// if (Trace.isEnabled()) {
// Trace.write(`Could not get child fragment manager for tab item with index ${this.index}`, traceCategory);
// }
// TODO: fix d.ts in view module

View File

@@ -1,10 +1,4 @@
/**
* Contains the TabContentItem class, which represents a content entry for tab navigation.
* @module "ui/tab-navigation/tab-content-item"
*/ /** */
import { View, ViewBase } from "../../core/view";
import { ContentView } from "../../content-view";
import { ContentView } from "../../content-view";
/**
* Represents a tab navigation content entry.

View File

@@ -1,15 +1,13 @@
/**
* Contains the TabNavigationBase class, which serves as the base class for tab navigation.
* @module "ui/tab-navigation/tab-navigation-base"
*/ /** */
import {
View, ViewBase, Property, CoercibleProperty, isIOS, AddArrayFromBuilder, AddChildFromBuilder, EventData, Color
import {
View, AddArrayFromBuilder, AddChildFromBuilder
} from "../../core/view";
import { isIOS } from "../../../platform";
import { TabStrip } from "../tab-strip";
import { TabStripItem } from "../tab-strip-item";
import { TabContentItem } from "../tab-content-item";
import { Property, CoercibleProperty } from "../../core/properties";
import { EventData } from "../../../data/observable";
import { Color } from "../../../color";
/**
* Defines the data for the tab navigation selectedIndexChanged event.
*/

View File

@@ -1,11 +1,7 @@
/**
* Contains the TabStripItem class, which represents a tab strip entry for tab navigation.
* @module "ui/tab-navigation/tab-strip-item"
*/ /** */
import { View, EventData } from "../../core/view";
import { View } from "../../core/view";
import { Image } from "../../image/image";
import { Label } from "../../label/label";
import { EventData } from "../../../data/observable"
/**
* Represents a tab strip entry.

View File

@@ -1,10 +1,7 @@
/**
* Contains the TabStrip class, which represents a tab strip for tab navigation.
* @module "ui/tab-navigation/tab-strip"
*/ /** */
import { Color } from "../../../color";
import { EventData, Property, View } from "../../core/view";
import { Color } from "../../../color";
import { View } from "../../core/view";
import { EventData } from "../../../data/observable";
import { Property } from "../../core/properties"
import { TabStripItem } from "../tab-strip-item";
/**