ywana-core8 0.0.318 → 0.0.321
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/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +13 -4
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +6 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.css +12 -3
- package/src/domain/CollectionPage.js +3 -2
- package/src/domain/TablePage.css +1 -2
- package/src/domain/TablePage.js +1 -1
- package/src/domain/index.js +1 -1
package/package.json
CHANGED
@@ -20,8 +20,15 @@ menu.collection-page>main {
|
|
20
20
|
overflow:auto;
|
21
21
|
}
|
22
22
|
|
23
|
-
.collection-page
|
24
|
-
|
23
|
+
main.collection-page {
|
24
|
+
display: flex;
|
25
|
+
flex-direction: column;
|
26
|
+
}
|
27
|
+
|
28
|
+
main.collection-page > article {
|
29
|
+
padding: 1rem;
|
30
|
+
display: flex;
|
31
|
+
resize: vertical;
|
25
32
|
}
|
26
33
|
|
27
34
|
.collection-page .content-editor>section {
|
@@ -35,4 +42,6 @@ menu.collection-page>main {
|
|
35
42
|
border-width: 0 1px 1px 1px;
|
36
43
|
background-color: var(--paper-color);
|
37
44
|
padding: 0 1rem 1rem 1rem;
|
38
|
-
}
|
45
|
+
}
|
46
|
+
|
47
|
+
|
@@ -15,7 +15,7 @@ import "./CollectionPage.css"
|
|
15
15
|
export const CollectionPage = (props) => {
|
16
16
|
|
17
17
|
const site = useContext(SiteContext)
|
18
|
-
const { id = "collection", icon, title, name = "Collection 1", schema, url, host, groupBy, editor, field, autosave = false, delay = 1000, actions, levels, onSelect } = props
|
18
|
+
const { id = "collection", icon, title, name = "Collection 1", schema, url, host, groupBy, editor, field, autosave = false, delay = 1000, actions, levels, onSelect, children } = props
|
19
19
|
const [pageContext, setPageContext] = useContext(PageContext)
|
20
20
|
const context = CollectionContext(url, field, host)
|
21
21
|
|
@@ -59,6 +59,7 @@ export const CollectionPage = (props) => {
|
|
59
59
|
</menu>
|
60
60
|
<main key={id} className="collection-page">
|
61
61
|
<CollectionEditor icon={icon} schema={schema} layout={editor} autosave={autosave} delay={delay} />
|
62
|
+
{children ? <article>{children}</article> : null}
|
62
63
|
</main>
|
63
64
|
</Fragment>
|
64
65
|
)
|
@@ -100,7 +101,7 @@ const CollectionList = (props) => {
|
|
100
101
|
/**
|
101
102
|
* Collection Tree
|
102
103
|
*/
|
103
|
-
const CollectionTree = (props) => {
|
104
|
+
export const CollectionTree = (props) => {
|
104
105
|
|
105
106
|
const { levels, onSelect } = props
|
106
107
|
const [pageContext, setPageContext] = useContext(PageContext)
|
package/src/domain/TablePage.css
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -145,8 +145,8 @@ export const TablePage = (props) => {
|
|
145
145
|
</menu>
|
146
146
|
) : null}
|
147
147
|
<main key={id} className="table-page">
|
148
|
-
{children ? <article>{children}</article> : null}
|
149
148
|
<TableEditor icon={icon} title={name} schema={schema} delay={delay} editable={editable} groupBy={groupBy} filter={tableFilter} actions={tableActions} canDelete={canDelete} />
|
149
|
+
{children ? <article>{children}</article> : null}
|
150
150
|
</main>
|
151
151
|
{renderAside()}
|
152
152
|
</Fragment>
|
package/src/domain/index.js
CHANGED
@@ -3,5 +3,5 @@ export { ContentForm } from './ContentForm'
|
|
3
3
|
export { ContentEditor, TabbedContentEditor, CollectionEditor, TreededContentEditor, FieldEditor, ListEditor } from './ContentEditor'
|
4
4
|
export { CreateContentDialog } from './CreateContentDialog'
|
5
5
|
export { EditContentDialog } from './EditContentDialog'
|
6
|
-
export { CollectionPage, CollectionContext } from './CollectionPage'
|
6
|
+
export { CollectionPage, CollectionContext, CollectionTree } from './CollectionPage'
|
7
7
|
export { TablePage, TableEditor } from './TablePage'
|