refactor(core): doc property (#8465)

doc property upgraded to use orm.

The visibility of the property are simplified to three types: `always show`, `always hide`, `hide when empty`, and the default is `always show`.

![CleanShot 2024-10-14 at 15 34 52](https://github.com/user-attachments/assets/748b8b80-061f-4d6a-8579-52e59df717c2)

Added a sidebar view to manage properties
![CleanShot 2024-10-14 at 15 35 58](https://github.com/user-attachments/assets/bffa9b1a-a1a5-4708-b2e8-4963120f3af9)

new property ui in workspace settings
![CleanShot 2024-10-14 at 15 36 44](https://github.com/user-attachments/assets/572d8dcc-9b3d-462a-9bcc-5f5fa8e622da)

Property lists can be collapsed
![CleanShot 2024-10-14 at 15 37 59](https://github.com/user-attachments/assets/2b20be1a-8141-478a-8fe7-405aff6d04fd)
This commit is contained in:
EYHN
2024-10-15 10:17:11 +00:00
parent 13b24eb823
commit 24e0c5797c
88 changed files with 3151 additions and 3617 deletions
@@ -49,6 +49,12 @@ export const treeLine = style({
height: 2,
right: 0,
},
selectors: {
['&[data-no-terminal="true"]::before']: {
display: 'none',
},
},
});
export const lineAboveStyles = style({
@@ -143,7 +149,7 @@ export const left = style({
export const edgeLine = style({
vars: {
[terminalSize]: '8px',
[terminalSize]: '6px',
},
display: 'block',
position: 'absolute',
@@ -156,11 +162,17 @@ export const edgeLine = style({
// Terminal
'::before': {
content: '""',
width: terminalSize,
height: terminalSize,
width: 0,
height: 0,
boxSizing: 'border-box',
position: 'absolute',
border: `${terminalSize} solid ${cssVar('--affine-primary-color')}`,
borderRadius: '50%',
},
selectors: {
['&[data-no-terminal="true"]::before']: {
display: 'none',
},
},
});