Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataViews: Update folders structure #58430

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useMemo, useState, useCallback } from '@wordpress/element';
/**
* Internal dependencies
*/
import { unlock } from './lock-unlock';
import { unlock } from '../lock-unlock';

const {
DropdownMenuV2: DropdownMenu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { moreVertical } from '@wordpress/icons';
/**
* Internal dependencies
*/
import { unlock } from './lock-unlock';
import { unlock } from '../lock-unlock';

const {
DropdownMenuV2: DropdownMenu,
Expand Down
6 changes: 3 additions & 3 deletions packages/dataviews/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
/**
* Internal dependencies
*/
import ViewTable from './view-table';
import ViewGrid from './view-grid';
import ViewList from './view-list';
import ViewTable from './layouts/table';
import ViewGrid from './layouts/grid';
import ViewList from './layouts/list';

// Field types.
export const ENUMERATION_TYPE = 'enumeration';
Expand Down
4 changes: 2 additions & 2 deletions packages/dataviews/src/dataviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { useMemo, useState, useCallback, useEffect } from '@wordpress/element';
import Pagination from './pagination';
import ViewActions from './view-actions';
import Filters from './filters';
import Search from './search';
import Search from './filters/search';
import { VIEW_LAYOUTS, LAYOUT_TABLE } from './constants';
import BulkActions from './bulk-actions';
import BulkActions from './actions/bulk-actions';

const defaultGetItemId = ( item ) => item.id;
const defaultOnSelectionChange = () => {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import { Children, Fragment } from '@wordpress/element';
/**
* Internal dependencies
*/
import { unlock } from './lock-unlock';
import { LAYOUT_LIST, OPERATORS } from './constants';
import { DropdownMenuRadioItemCustom } from './dropdown-menu-helper';
import { unlock } from '../lock-unlock';
import { LAYOUT_LIST, OPERATORS } from '../constants';
import { DropdownMenuRadioItemCustom } from '../dropdown-menu-helper';

const {
DropdownMenuV2: DropdownMenu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { Children, Fragment } from '@wordpress/element';
/**
* Internal dependencies
*/
import { OPERATOR_IN, OPERATOR_NOT_IN, OPERATORS } from './constants';
import { unlock } from './lock-unlock';
import { DropdownMenuRadioItemCustom } from './dropdown-menu-helper';
import { OPERATOR_IN, OPERATOR_NOT_IN, OPERATORS } from '../constants';
import { unlock } from '../lock-unlock';
import { DropdownMenuRadioItemCustom } from '../dropdown-menu-helper';

const {
DropdownMenuV2: DropdownMenu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
OPERATOR_IN,
OPERATOR_NOT_IN,
LAYOUT_LIST,
} from './constants';
} from '../constants';

const sanitizeOperators = ( field ) => {
let operators = field.filterBy?.operators;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useAsyncList } from '@wordpress/compose';
/**
* Internal dependencies
*/
import ItemActions from './item-actions';
import ItemActions from '../actions/item-actions';

export default function ViewGrid( {
data,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import {
/**
* Internal dependencies
*/
import { unlock } from './lock-unlock';
import ItemActions from './item-actions';
import { ENUMERATION_TYPE, OPERATORS, SORTING_DIRECTIONS } from './constants';
import { DropdownMenuRadioItemCustom } from './dropdown-menu-helper';
import { unlock } from '../lock-unlock';
import ItemActions from '../actions/item-actions';
import { ENUMERATION_TYPE, OPERATORS, SORTING_DIRECTIONS } from '../constants';
import { DropdownMenuRadioItemCustom } from '../dropdown-menu-helper';

const {
DropdownMenuV2: DropdownMenu,
Expand Down
Loading