ywana-core8 0.0.469 → 0.0.472
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.
- package/db/db.json +50 -0
- package/db/routes.json +0 -0
- package/dist/index.cjs +1113 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +1112 -32
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1113 -32
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TabbedTablePage.js +711 -0
- package/src/domain/index.js +1 -0
- package/src/site/site.test.js +17 -3
package/src/site/site.test.js
CHANGED
@@ -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 {
|
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={"
|
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
|
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
|
}
|