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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.318",
3
+ "version": "0.0.321",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -20,8 +20,15 @@ menu.collection-page>main {
20
20
  overflow:auto;
21
21
  }
22
22
 
23
- .collection-page .content-editor .selected {
24
- /*background-color: #FBFBFB !important;*/
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)
@@ -18,9 +18,8 @@ main.table-page>header {
18
18
 
19
19
  main.table-page > article {
20
20
  padding: 1rem;
21
- height: 50%;
22
21
  display: flex;
23
- resize: vertical;
22
+ max-height: 50%;
24
23
  }
25
24
 
26
25
  aside.table-page {
@@ -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>
@@ -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'