ywana-core8 0.0.468 → 0.0.471

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,3 +5,4 @@ export { CreateContentDialog } from './CreateContentDialog'
5
5
  export { EditContentDialog } from './EditContentDialog'
6
6
  export { CollectionPage, CollectionContext, CollectionTree } from './CollectionPage'
7
7
  export { TablePage, TableEditor } from './TablePage'
8
+ export { TabbedTablePage } from './TabbedTablePage'
@@ -8,20 +8,24 @@ import { Dialog } from './dialog'
8
8
  import { Button, DropDown, TextField, TextArea } from '../html'
9
9
  import { UploadDialog } from '../widgets/upload/UploadDialog'
10
10
  import { Uploader } from '../widgets/upload/Uploader'
11
- import { TablePage } from '../domain/TablePage'
11
+ import { TabbedTablePage } from '../domain/TabbedTablePage'
12
+ import { FORMATS, TYPES } from '../domain/ContentType'
12
13
 
13
14
  const SiteTest = (prop) => {
14
15
 
15
16
  const footer = <div>FOOTER</div>
16
17
 
17
18
  return (
18
- <Site icon="star" title="Site Test" init={"PAGE1"} footer={footer}>
19
+ <Site icon="star" title="Site Test" init={"PAGE3"} footer={footer}>
19
20
  <Page id="PAGE1" section="SECTION1" icon="description" title="Page 1" layout="workspace">
20
21
  <Page1 />
21
22
  </Page>
22
23
  <Page id="PAGE2" section="SECTION1" icon="description" title="Page 2" layout="workspace">
23
24
  <Page2 />
24
25
  </Page>
26
+ <Page id="PAGE3" section="SECTION1" icon="description" title="Page 3" layout="workspace">
27
+ <Page3 />
28
+ </Page>
25
29
  </Site>
26
30
  )
27
31
  }
@@ -110,10 +114,20 @@ const Page2 = (props) => {
110
114
 
111
115
  const Page3 = (props) => {
112
116
 
113
- const site = useContext(SiteContext)
117
+ const schema = {
118
+ name : { id: "name" , type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: false, column: true , filter: true , label: "Name" },
119
+ state : { id: "state" , type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: true , column: true , filter: false, label: "State" , options: [
120
+ { label: "Pendiente", value: "NOT_CLASSIFIED" },
121
+ { label: "Clasificada", value: "CLASSIFIED"},
122
+ ]},
123
+ field1: { id: "field1", type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: false, column: true , filter: true , label: "field1" },
124
+ field2: { id: "field2", type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: false, column: true , filter: true , label: "field2" },
125
+ field4: { id: "field4", type: TYPES.STRING, format: FORMATS.COLOR, required: true, tab: false, column: true , filter: true , label: "Color" },
126
+ }
114
127
 
115
128
  return (
116
129
  <Fragment>
130
+ <TabbedTablePage title="Referencias" schema={schema} host="http://localhost:3000" url="/references"/>
117
131
  </Fragment>
118
132
  )
119
133
  }