Skip to content

Commit

Permalink
tidy up relative path urls in import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
heswell committed Jan 3, 2024
1 parent b2b157f commit d879ff7
Show file tree
Hide file tree
Showing 24 changed files with 56 additions and 2,508 deletions.
2,463 changes: 3 additions & 2,460 deletions vuu-ui/packages/vuu-data-remote/src/inlined-worker.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ftse from "./ftse100";
import nasdaq from "./nasdaq100";
import sp500 from "./sp500";
import hsi from "./hsi";
import { VuuRowDataItemType } from "packages/vuu-protocol-types";
import { VuuRowDataItemType } from "@finos/vuu-protocol-types";

const basketConstituentData = [];
for (const row of ftse) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { NamedFilter } from "packages/vuu-filter-types";
import { NamedFilter } from "@finos/vuu-filter-types";
import { CSSProperties, ReactElement } from "react";
import { DragDropRect, DragInstructions } from "../drag-drop";
import { DropTarget } from "../drag-drop/DropTarget";
Expand Down
4 changes: 2 additions & 2 deletions vuu-ui/packages/vuu-shell/src/shellTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VuuTable } from "@finos/vuu-protocol-types";
import { ViewProps } from "packages/vuu-layout/src";
import type { VuuTable } from "@finos/vuu-protocol-types";
import type { ViewProps } from "@finos/vuu-layout";

declare global {
const vuuConfig: Promise<VuuConfig>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Dropdown, SingleSelectionHandler } from "@finos/vuu-ui-controls";

import "./BackgroundCellConfigurationEditor.css";
import { useCallback, useState } from "react";
import { ColumnDescriptorCustomRenderer } from "packages/vuu-table-types";
import type { ColumnDescriptorCustomRenderer } from "@finos/vuu-table-types";

const classBase = "vuuBackgroundCellConfiguration";

Expand Down
2 changes: 1 addition & 1 deletion vuu-ui/packages/vuu-table/src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { useTable } from "./useTable";
import { TableHeader } from "./table-header/TableHeader";

import "./Table.css";
import { DragDropState } from "packages/vuu-ui-controls/src/drag-drop/DragDropState";
import type { DragDropState } from "@finos/vuu-ui-controls";

const classBase = "vuuTable";

Expand Down
2 changes: 1 addition & 1 deletion vuu-ui/packages/vuu-table/src/cell-renderers/cell-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TableCellRendererProps } from "packages/vuu-table-types";
import { TableCellRendererProps } from "@finos/vuu-table-types";
/**
* A memo compare function for cell renderers. Can be used to suppress
* render where column and data are both unchanged. Avoids render
Expand Down
2 changes: 1 addition & 1 deletion vuu-ui/packages/vuu-table/src/useDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "@finos/vuu-data-types";
import { VuuRange } from "@finos/vuu-protocol-types";
import { getFullRange, NULL_RANGE } from "@finos/vuu-utils";
import { GridAction } from "packages/vuu-table-types";
import { GridAction } from "@finos/vuu-table-types";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { MovingWindow } from "./moving-window";

Expand Down
2 changes: 1 addition & 1 deletion vuu-ui/packages/vuu-table/src/useSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
DataSourceRow,
Selection,
SelectionChangeHandler,
} from "packages/vuu-data-types";
} from "@finos/vuu-data-types";
import {
KeyboardEvent,
KeyboardEventHandler,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Button, ButtonProps } from "@salt-ds/core";
import cx from "clsx";
import { CommitResponse } from "packages/vuu-table-types";
import {
import type { CommitResponse } from "@finos/vuu-table-types";
import type {
VuuColumnDataType,
VuuRowDataItemType,
} from "packages/vuu-protocol-types";
} from "@finos/vuu-protocol-types";
import { ForwardedRef, forwardRef, SyntheticEvent, useCallback } from "react";

const classBase = "vuuCycleStateButton";
Expand Down
2 changes: 2 additions & 0 deletions vuu-ui/packages/vuu-ui-controls/src/drag-drop/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export * from "./dragDropTypesNext";
export * from "./DragDropProvider";
export * from "./DragDropState";
export * from "./useDragDropNext";
export * from "./drop-target-utils";
export * from "./useGlobalDragDrop";
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ColumnDescriptor } from "packages/vuu-table-types";
import type { ColumnDescriptor } from "@finos/vuu-table-types";

const editable = true;
const hidden = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ColumnDescriptor } from "packages/vuu-table-types";
import type { ColumnDescriptor } from "@finos/vuu-table-types";

const hidden = true;
const ticking = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import {
useEditableText,
} from "@finos/vuu-ui-controls";
import { Button, FormField, FormFieldLabel } from "@salt-ds/core";
import {
import type {
CommitResponse,
DataItemCommitHandler,
} from "packages/vuu-table-types";
import { VuuRowDataItemType } from "packages/vuu-protocol-types";
} from "@finos/vuu-table-types";
import type { VuuRowDataItemType } from "@finos/vuu-protocol-types";
import { HTMLAttributes, useCallback } from "react";
import { BasketSelector, BasketSelectorProps } from "../basket-selector";
import { Basket } from "../useBasketTrading";
import { BasketStatus } from "../VuuBasketTradingFeature";
import type { BasketStatus } from "../VuuBasketTradingFeature";
import { BasketMenu } from "./BasketMenu";
import cx from "clsx";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import {
} from "@finos/vuu-layout";
import { registerComponent } from "@finos/vuu-utils";
import { Button } from "@salt-ds/core";
import { DataSource } from "packages/vuu-data-types";
import { InstrumentSearchProps } from "packages/vuu-ui-controls/src";
import type { DataSource } from "@finos/vuu-data-types";
import type { InstrumentSearchProps } from "@finos/vuu-ui-controls/src";
import { MouseEventHandler, useCallback, useMemo } from "react";

import "./ColHeaderAddSymbol.css";

const classBase = "vuuColHeaderAddSymbol";
Expand Down
2 changes: 1 addition & 1 deletion vuu-ui/sample-apps/standalone-table/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getSchema, SimulTableName, vuuModule } from "@finos/vuu-data-test";
// import "@finos/vuu-theme/index.css";

import "./App.css";
// import { ThemeProvider } from "packages/vuu-utils/src";
// import { ThemeProvider } from "@finos/vuu-utils";

export const App = () => {
const columnDescriptors = [{ name: "Column 1" }, { name: "Column 2" }];
Expand Down
16 changes: 9 additions & 7 deletions vuu-ui/scripts/build-all-type-defs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ function buildPackage(packageName) {
}

const packages = [
"vuu-utils",
"vuu-data",
"vuu-data-test",
"vuu-data-react",
"vuu-codemirror",
"vuu-data-ag-grid",
"vuu-data-local",
"vuu-data-react",
"vuu-data-remote",
"vuu-data-test",
"vuu-datatable",
"vuu-filter-parser",
"vuu-filters",
"vuu-layout",
"vuu-popups",
"vuu-datatable",
"vuu-shell",
"vuu-table",
"vuu-table-extras",
"vuu-layout",
"vuu-shell",
"vuu-ui-controls",
"vuu-utils",
];

packages.forEach(buildPackage);
16 changes: 8 additions & 8 deletions vuu-ui/showcase/src/examples/DataTable/FilterTable.examples.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { FilterTable } from "@finos/vuu-datatable";
import { TableConfig } from "@finos/vuu-table-types";
import { Filter } from "@finos/vuu-filter-types";
import { useCallback, useMemo, useState } from "react";
import { useTestDataSource } from "../utils";
import { DataSourceFilter } from "@finos/vuu-data-types";
import {
getAllSchemas,
getSchema,
SimulTableName,
vuuModule,
} from "@finos/vuu-data-test";
import { ActiveItemChangeHandler } from "packages/vuu-layout/src";
import { TableProps } from "packages/vuu-table/src";
import type { DataSourceFilter } from "@finos/vuu-data-types";
import { FilterTable } from "@finos/vuu-datatable";
import type { Filter } from "@finos/vuu-filter-types";
import type { ActiveItemChangeHandler } from "@finos/vuu-layout";
import type { TableProps } from "@finos/vuu-table";
import type { TableConfig } from "@finos/vuu-table-types";
import { useCallback, useMemo, useState } from "react";
import { useTestDataSource } from "../utils";

let displaySequence = 1;
const schemas = getAllSchemas();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { FilterBar, FilterBarProps } from "@finos/vuu-filters";
import { Filter } from "@finos/vuu-filter-types";
import type { Filter } from "@finos/vuu-filter-types";
import { useCallback, useEffect, useRef, useState } from "react";
import { DataSourceFilter } from "@finos/vuu-data-types";
import type { DataSourceFilter } from "@finos/vuu-data-types";
import { Input } from "@salt-ds/core";
import { getSchema, vuuModule } from "@finos/vuu-data-test";
import { ActiveItemChangeHandler } from "packages/vuu-layout/src";
import type { ActiveItemChangeHandler } from "@finos/vuu-layout";

let displaySequence = 1;

Expand Down
2 changes: 1 addition & 1 deletion vuu-ui/showcase/src/examples/ShowcaseControls/Tree.data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TreeSourceNode } from "packages/vuu-ui-controls/src";
import type { TreeSourceNode } from "@finos/vuu-ui-controls";

export const folderData: TreeSourceNode[] = [
// prettier-ignore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { InstrumentPicker } from "@finos/vuu-ui-controls";
import {
getAllSchemas,
getSchema,
SimulTableName,
vuuModule,
} from "@finos/vuu-data-test";
import type { DataSourceRow } from "@finos/vuu-data-types";
import type { TableProps, TableRowSelectHandler } from "@finos/vuu-table";
import type { ColumnDescriptor } from "@finos/vuu-table-types";
import { InstrumentPicker } from "@finos/vuu-ui-controls";
import { buildColumnMap, ColumnMap } from "@finos/vuu-utils";
import { useCallback, useMemo } from "react";
import { TableProps, TableRowSelectHandler } from "@finos/vuu-table";
import { ColumnDescriptor } from "@finos/vuu-table-types";
import { useTestDataSource } from "../utils";
import { DataSourceRow } from "packages/vuu-data-types";

let displaySequence = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
InstrumentSearch,
useDragDropProvider,
} from "@finos/vuu-ui-controls";
import { DataSourceRow } from "packages/vuu-data-types";
import { GlobalDropHandler } from "packages/vuu-ui-controls/src/drag-drop/useGlobalDragDrop";
import type { DataSourceRow } from "@finos/vuu-data-types";
import type { GlobalDropHandler } from "@finos/vuu-ui-controls";
import {
HTMLAttributes,
useCallback,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useCallback, useState } from "react";
import { FilterTableFeature } from "../../features/FilterTable.feature";
import { VuuBlotterHeader } from "./VuuBlotterHeader";
import { JsonTable } from "@finos/vuu-datatable";
import { JsonData } from "packages/vuu-utils/src";
import type { JsonData } from "@finos/vuu-utils";

registerComponent("FilterTableFeature", FilterTableFeature, "view");

Expand Down
2 changes: 1 addition & 1 deletion vuu-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"references": [
{ "path": "packages/vuu-codemirror" },
{ "path": "packages/vuu-data-local" },
{ "path": "packages/vuu-data-react" },
{ "path": "packages/vuu-data-remote" },
{ "path": "packages/vuu-data-types" },
{ "path": "packages/vuu-data-ag-grid" },
{ "path": "packages/vuu-data-react" },
{ "path": "packages/vuu-data-test" },
{ "path": "packages/vuu-data-types" },
{ "path": "packages/vuu-datatable" },
Expand Down

0 comments on commit d879ff7

Please sign in to comment.