FIX mockdata for sidebar

This commit is contained in:
Norbert de Langen 2019-02-07 16:42:52 +01:00
parent 6a2bc291f3
commit 2623e158e2
2 changed files with 498 additions and 214 deletions

View File

@ -2,36 +2,53 @@ export const mockDataset = {
withRoot: {
'1': {
isRoot: true,
isLeaf: false,
isComponent: false,
children: ['1-11', '1-12'],
depth: 0,
id: '1',
name: 'Root 1',
},
'2': {
isRoot: false,
isLeaf: false,
isComponent: false,
children: ['2-21', '2-22'],
depth: 0,
id: '2',
name: 'Group 1',
},
'1-11': {
isRoot: false,
isLeaf: false,
isComponent: true,
id: '1-11',
parent: '1',
depth: 1,
name: 'Child A1',
},
'1-12-121': {
isRoot: false,
isLeaf: true,
isComponent: false,
id: '1-12-121',
parent: '1-12',
depth: 2,
name: 'GrandChild A1.1',
},
'1-12-122': {
isRoot: false,
isLeaf: true,
isComponent: false,
id: '1-12-122',
parent: '1-12',
depth: 2,
name: 'GrandChild A1.2',
},
'1-12': {
isRoot: false,
isLeaf: false,
isComponent: true,
id: '1-12',
name: 'Child A2',
depth: 1,
@ -39,12 +56,18 @@ export const mockDataset = {
parent: '1',
},
'2-21': {
isRoot: false,
isLeaf: true,
isComponent: false,
id: '2-21',
depth: 1,
name: 'Child B1',
parent: '2',
},
'2-22': {
isRoot: false,
isLeaf: false,
isComponent: true,
id: '2-22',
depth: 1,
name: 'Child B2',
@ -52,18 +75,26 @@ export const mockDataset = {
},
'3': {
isRoot: true,
isLeaf: false,
isComponent: false,
children: ['3-31', '3-32'],
depth: 0,
id: '3',
name: 'Root 3',
},
'3-31': {
isRoot: false,
isLeaf: true,
isComponent: false,
id: '3-31',
depth: 1,
name: 'Child A1',
parent: '3',
},
'3-32': {
isRoot: false,
isLeaf: false,
isComponent: true,
id: '3-32',
name: 'Child A2',
depth: 1,
@ -71,12 +102,18 @@ export const mockDataset = {
parent: '3',
},
'3-32-321': {
isRoot: false,
isLeaf: true,
isComponent: false,
id: '3-32-321',
depth: 2,
name: 'GrandChild A1.1',
parent: '3-32',
},
'3-32-322': {
isRoot: false,
isLeaf: true,
isComponent: false,
id: '3-32-322',
depth: 2,
name: 'GrandChild A1.2',
@ -86,12 +123,18 @@ export const mockDataset = {
noRoot: {
'1': {
children: ['1-11', '1-12'],
isRoot: false,
isComponent: false,
isLeaf: false,
depth: 0,
id: '1',
name: 'Parent A',
},
'2': {
children: ['2-21', '2-22'],
isRoot: false,
isComponent: true,
isLeaf: false,
depth: 0,
id: '2',
name: 'Parent B',
@ -100,18 +143,27 @@ export const mockDataset = {
id: '1-11',
depth: 1,
name: 'Child A1',
isLeaf: true,
isComponent: false,
isRoot: false,
parent: '1',
},
'1-12-121': {
id: '1-12-121',
depth: 2,
name: 'GrandChild A1.1',
isLeaf: true,
isComponent: false,
isRoot: false,
parent: '1-12',
},
'1-12-122': {
id: '1-12-122',
depth: 2,
name: 'GrandChild A1.2',
isLeaf: true,
isComponent: false,
isRoot: false,
parent: '1-12',
},
'1-12': {
@ -119,18 +171,27 @@ export const mockDataset = {
name: 'Child A2',
depth: 1,
children: ['1-12-121', '1-12-122'],
isRoot: false,
isComponent: true,
isLeaf: false,
parent: '1',
},
'2-21': {
id: '2-21',
depth: 1,
name: 'Child B1',
isLeaf: true,
isComponent: false,
isRoot: false,
parent: '2',
},
'2-22': {
id: '2-22',
depth: 1,
name: 'Child B2',
isLeaf: true,
isComponent: false,
isRoot: false,
parent: '2',
},
},