rimecms 0.27.5 → 0.27.6
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/adapter-sqlite/generate-schema/templates.server.d.ts +1 -1
- package/dist/adapter-sqlite/generate-schema/templates.server.js +3 -2
- package/dist/core/dev/generate/routes/common.js +23 -8
- package/dist/core/i18n/en/common.d.ts +1 -0
- package/dist/core/i18n/en/common.js +1 -0
- package/dist/core/i18n/fr/common.d.ts +1 -0
- package/dist/core/i18n/fr/common.js +1 -0
- package/dist/core/operations/hooks/before-upsert/handle-new-version.server.js +4 -3
- package/dist/core/operations/shared/fallback-data-from-original.d.ts +1 -0
- package/dist/core/operations/shared/fallback-data-from-original.js +5 -0
- package/dist/fields/checkbox/index.server.js +1 -1
- package/dist/fields/combobox/index.server.js +3 -2
- package/dist/fields/date/index.server.js +1 -1
- package/dist/fields/email/index.server.js +1 -1
- package/dist/fields/link/index.server.js +1 -1
- package/dist/fields/number/index.server.js +1 -1
- package/dist/fields/radio/index.server.js +1 -1
- package/dist/fields/relation/index.server.js +1 -1
- package/dist/fields/rich-text/index.server.d.ts +1 -1
- package/dist/fields/rich-text/index.server.js +1 -1
- package/dist/fields/select/index.server.d.ts +1 -1
- package/dist/fields/select/index.server.js +2 -1
- package/dist/fields/slug/index.server.js +1 -1
- package/dist/fields/text/index.server.js +1 -1
- package/dist/fields/textarea/index.server.js +1 -1
- package/dist/fields/time/index.server.js +1 -1
- package/dist/fields/toggle/index.server.js +1 -1
- package/dist/panel/components/sections/auth/AuthForm.svelte +2 -4
- package/dist/panel/components/sections/collection/list/row/Row.svelte +8 -4
- package/dist/panel/components/sections/collection/tree/CollectionTree.svelte +1 -1
- package/dist/panel/components/sections/document/CurrentlyEdited.svelte +1 -2
- package/dist/panel/components/sections/document/Document.svelte +2 -0
- package/dist/panel/components/sections/document/Versions.svelte +1 -2
- package/dist/panel/components/sections/page-layout/Page.svelte +0 -4
- package/dist/panel/components/ui/dialog/dialog-overlay.css +1 -2
- package/dist/panel/components/ui/sheet/sheet.css +1 -2
- package/dist/panel/style/index.css +1 -0
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ export declare const templateHasAuth: (slug: string) => string;
|
|
|
65
65
|
export declare const templateUniqueRequired: (field: {
|
|
66
66
|
unique?: boolean;
|
|
67
67
|
required?: boolean;
|
|
68
|
-
}) => string;
|
|
68
|
+
}, defaultValue?: string | number | boolean | object | unknown[]) => string;
|
|
69
69
|
/** Template rows Relation */
|
|
70
70
|
/**
|
|
71
71
|
* Generates a one-to-one or many-to-one relationship definition
|
|
@@ -85,9 +85,10 @@ ${slug === 'staff' ? `isSuperAdmin: integer('is_super_admin', { mode: 'boolean'
|
|
|
85
85
|
* .notNull()
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
88
|
-
export const templateUniqueRequired = (field) => {
|
|
88
|
+
export const templateUniqueRequired = (field, defaultValue) => {
|
|
89
89
|
const { unique, required } = field;
|
|
90
|
-
|
|
90
|
+
const defaultStr = required && defaultValue !== undefined ? `.default(${JSON.stringify(defaultValue)})` : '';
|
|
91
|
+
return `${unique ? '.unique()' : ''}${required ? `.notNull()${defaultStr}` : ''}`;
|
|
91
92
|
};
|
|
92
93
|
/** Template rows Relation */
|
|
93
94
|
/**
|
|
@@ -18,16 +18,31 @@ export const load = async ({ locals, url }: ServerLoadEvent) => {
|
|
|
18
18
|
*/
|
|
19
19
|
const error = () => `
|
|
20
20
|
<script>
|
|
21
|
-
|
|
21
|
+
import { page } from '$app/state';
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
|
-
<div class="
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</div
|
|
24
|
+
<div class="rz-error">
|
|
25
|
+
<h1>Error {page.status}</h1>
|
|
26
|
+
|
|
|
27
|
+
<p>
|
|
28
|
+
{page.error?.message}
|
|
29
|
+
</p>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<style>
|
|
33
|
+
.rz-error {
|
|
34
|
+
height: 100vh;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
gap: 1rem;
|
|
39
|
+
h1 {
|
|
40
|
+
font-size: 1.5rem;
|
|
41
|
+
font-weight: semibold;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
45
|
+
`;
|
|
31
46
|
/**
|
|
32
47
|
* Root layout template
|
|
33
48
|
* (rime)/+layout.svelte
|
|
@@ -56,6 +56,7 @@ declare namespace _default {
|
|
|
56
56
|
export let signin: string;
|
|
57
57
|
export let unsaved_dialog_title: string;
|
|
58
58
|
export let unsaved_dialog_text: string;
|
|
59
|
+
export let version_created: string;
|
|
59
60
|
export let versions_history: string;
|
|
60
61
|
export let view_page: string;
|
|
61
62
|
export let view_site: string;
|
|
@@ -56,6 +56,7 @@ export default {
|
|
|
56
56
|
signin: 'Sign In',
|
|
57
57
|
unsaved_dialog_title: 'Changes unsaved',
|
|
58
58
|
unsaved_dialog_text: 'There are unsaved modifications in the document.',
|
|
59
|
+
version_created: 'New version created',
|
|
59
60
|
versions_history: 'Versions history',
|
|
60
61
|
view_page: 'View page',
|
|
61
62
|
view_site: 'View website',
|
|
@@ -55,6 +55,7 @@ declare namespace _default {
|
|
|
55
55
|
export let signin: string;
|
|
56
56
|
export let unsaved_dialog_title: string;
|
|
57
57
|
export let unsaved_dialog_text: string;
|
|
58
|
+
export let version_created: string;
|
|
58
59
|
export let versions_history: string;
|
|
59
60
|
export let versions: string;
|
|
60
61
|
export let view_page: string;
|
|
@@ -58,6 +58,7 @@ export default {
|
|
|
58
58
|
signin: 'Se connecter',
|
|
59
59
|
unsaved_dialog_title: 'Modification(s) non-enregistrée(s)',
|
|
60
60
|
unsaved_dialog_text: 'Il y a des modifications non-enregistrées pour ce document.',
|
|
61
|
+
version_created: 'Nouvelle version créée',
|
|
61
62
|
versions_history: 'Historique des versions',
|
|
62
63
|
versions: 'Versions',
|
|
63
64
|
view_page: 'Voir la page',
|
|
@@ -78,18 +78,19 @@ async function prepareDataForNewVersion(args) {
|
|
|
78
78
|
console.error(`Failed to create file from path: ${filePath}`, err);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
// Use missing data from original version
|
|
81
|
+
// Use missing required data from original version
|
|
82
82
|
data = await fallbackDataFromOriginal({
|
|
83
83
|
data,
|
|
84
84
|
original: originalDoc,
|
|
85
85
|
configMap: originalConfigMap,
|
|
86
|
-
ignore: ['status']
|
|
86
|
+
ignore: ['status'],
|
|
87
|
+
mode: 'required'
|
|
87
88
|
});
|
|
88
89
|
// Set default status to "draft" if no data.status
|
|
89
90
|
if (!data.status) {
|
|
90
91
|
data.status = VERSIONS_STATUS.DRAFT;
|
|
91
92
|
}
|
|
92
|
-
// Remove ownerId and id props from data
|
|
93
|
+
// Remove ownerId and id props from data this force new relation/blocks creations
|
|
93
94
|
data = recursiveRemoveKeys('ownerId', 'id').from(data);
|
|
94
95
|
data.ownerId = originalDoc.id;
|
|
95
96
|
delete data.id;
|
|
@@ -2,12 +2,17 @@ import { logger } from '../../logger/index.server.js';
|
|
|
2
2
|
import { getValueAtPath, setValueAtPath } from '../../../util/object.js';
|
|
3
3
|
export const fallbackDataFromOriginal = async (args) => {
|
|
4
4
|
//
|
|
5
|
+
const mode = args.mode || 'all';
|
|
5
6
|
const { original, configMap, ignore } = args;
|
|
6
7
|
let output = { ...args.data };
|
|
7
8
|
for (const [key, config] of Object.entries(configMap)) {
|
|
8
9
|
// skip keys in ignore list
|
|
9
10
|
if (ignore.includes(key))
|
|
10
11
|
continue;
|
|
12
|
+
// skip if not required and mode is 'required'
|
|
13
|
+
const shouldUpdate = (config.required && mode === 'required') || mode === 'all';
|
|
14
|
+
if (!shouldUpdate)
|
|
15
|
+
continue;
|
|
11
16
|
let value = getValueAtPath(key, output);
|
|
12
17
|
let isEmpty;
|
|
13
18
|
try {
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.raw.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
5
|
+
const suffix = templateUniqueRequired(field.raw, field.raw.defaultValue ?? false);
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: integer('${snake}', { mode: 'boolean' })${suffix}`;
|
|
@@ -2,11 +2,12 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.raw.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
5
|
+
const suffix = templateUniqueRequired({ ...field.raw }, typeof field.raw.defaultValue === 'string' ? field.raw.defaultValue : '');
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: text('${snake}')${suffix}`;
|
|
9
9
|
};
|
|
10
10
|
export const toType = (field) => {
|
|
11
|
-
|
|
11
|
+
const optionsJoinedType = field.raw.options.map((o) => `'${o.value}'`).join(' | ');
|
|
12
|
+
return `${field.raw.name}${field.raw.required ? '' : '?'}: ${optionsJoinedType}`;
|
|
12
13
|
};
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.raw.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
5
|
+
const suffix = templateUniqueRequired({ ...field.raw }, field.raw.defaultValue instanceof Date ? field.raw.defaultValue.getTime() : 0);
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: integer('${snake}', { mode : 'timestamp_ms' })${suffix}`;
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export function toSchema(field, parentPath) {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired({ unique: field.raw.unique, required: field.raw.required });
|
|
5
|
+
const suffix = templateUniqueRequired({ unique: field.raw.unique, required: field.raw.required }, typeof field.raw.defaultValue === 'string' ? field.raw.defaultValue : '');
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: text('${snake}')${suffix}`;
|
|
@@ -5,7 +5,7 @@ import { logger } from '../../core/logger/index.server.js';
|
|
|
5
5
|
import { trycatch } from '../../util/function.js';
|
|
6
6
|
export const toSchema = (field, parentPath) => {
|
|
7
7
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
8
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
8
|
+
const suffix = templateUniqueRequired(field.raw, typeof field.raw.defaultValue === 'object' ? field.raw.defaultValue : {});
|
|
9
9
|
if (field._generateSchema)
|
|
10
10
|
return field._generateSchema({ camel, snake, suffix });
|
|
11
11
|
return `${camel}: text('${snake}', { mode: 'json'})${suffix}`;
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
5
|
+
const suffix = templateUniqueRequired(field.raw, typeof field.raw.defaultValue === 'number' ? field.raw.defaultValue : 0);
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: real('${snake}')${suffix}`;
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.raw.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
5
|
+
const suffix = templateUniqueRequired(field.raw, typeof field.raw.defaultValue === 'string' ? field.raw.defaultValue : '');
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: text('${snake}')${suffix}`;
|
|
@@ -3,7 +3,7 @@ import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.
|
|
|
3
3
|
import { capitalize } from '../../util/string.js';
|
|
4
4
|
export const toSchema = (field, parentPath) => {
|
|
5
5
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
6
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
6
|
+
const suffix = templateUniqueRequired(field.raw, {});
|
|
7
7
|
if (field._generateSchema)
|
|
8
8
|
return field._generateSchema({ camel, snake, suffix });
|
|
9
9
|
return `${camel}: text('${snake}', { mode: 'json' })${suffix}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RichTextFieldBuilder } from './index.js';
|
|
2
1
|
import type { ToSchema, ToType } from '../index.server.js';
|
|
2
|
+
import type { RichTextFieldBuilder } from './index.js';
|
|
3
3
|
export declare const toSchema: ToSchema<RichTextFieldBuilder>;
|
|
4
4
|
export declare const toType: ToType<RichTextFieldBuilder>;
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
5
|
+
const suffix = templateUniqueRequired(field.raw, typeof field.raw.defaultValue === 'object' ? field.raw.defaultValue : {});
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: text('${snake}')${suffix}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectFieldBuilder } from './index.js';
|
|
2
1
|
import type { ToSchema, ToType } from '../index.server.js';
|
|
2
|
+
import type { SelectFieldBuilder } from './index.js';
|
|
3
3
|
export declare const toSchema: ToSchema<SelectFieldBuilder>;
|
|
4
4
|
export declare const toType: ToType<SelectFieldBuilder>;
|
|
@@ -2,7 +2,8 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.raw.name, parentPath });
|
|
5
|
-
const
|
|
5
|
+
const defaultValue = field.raw.many ? [] : '';
|
|
6
|
+
const suffix = templateUniqueRequired(field.raw, typeof field.raw.defaultValue === 'undefined' ? defaultValue : field.raw.defaultValue);
|
|
6
7
|
if (field._generateSchema)
|
|
7
8
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
9
|
if (field.raw.many) {
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired({ unique: field.raw.unique, required: field.raw.required });
|
|
5
|
+
const suffix = templateUniqueRequired({ unique: field.raw.unique, required: field.raw.required }, typeof field.raw.defaultValue === 'string' ? field.raw.defaultValue : '');
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: text('${snake}')${suffix}`;
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired({ unique: field.raw.unique, required: field.raw.required });
|
|
5
|
+
const suffix = templateUniqueRequired({ unique: field.raw.unique, required: field.raw.required }, typeof field.raw.defaultValue === 'string' ? field.raw.defaultValue : '');
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: text('${snake}')${suffix}`;
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired({ unique: false, required: field.raw.required });
|
|
5
|
+
const suffix = templateUniqueRequired({ unique: false, required: field.raw.required }, typeof field.raw.defaultValue === 'string' ? field.raw.defaultValue : '');
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: text('${snake}')${suffix}`;
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
5
|
+
const suffix = templateUniqueRequired(field.raw, typeof field.raw.defaultValue === 'string' ? field.raw.defaultValue : '00:00');
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: text('${snake}')${suffix}`;
|
|
@@ -2,7 +2,7 @@ import { templateUniqueRequired } from '../../adapter-sqlite/generate-schema/tem
|
|
|
2
2
|
import { getSchemaColumnNames } from '../../adapter-sqlite/generate-schema/util.js';
|
|
3
3
|
export const toSchema = (field, parentPath) => {
|
|
4
4
|
const { camel, snake } = getSchemaColumnNames({ name: field.name, parentPath });
|
|
5
|
-
const suffix = templateUniqueRequired(field.raw);
|
|
5
|
+
const suffix = templateUniqueRequired(field.raw, typeof field.raw.defaultValue === 'boolean' ? field.raw.defaultValue : false);
|
|
6
6
|
if (field._generateSchema)
|
|
7
7
|
return field._generateSchema({ camel, snake, suffix });
|
|
8
8
|
return `${camel}: integer('${snake}', { mode: 'boolean' })${suffix}`;
|
|
@@ -61,12 +61,10 @@
|
|
|
61
61
|
--border-color: light-dark(hsl(68deg 100 100 / 0.6), hsl(68deg 100 100 / 0.1));
|
|
62
62
|
border-radius: var(--rz-radius-xl);
|
|
63
63
|
background-color: hsl(var(--rz-color-bg) / 0.4);
|
|
64
|
-
|
|
65
|
-
backdrop-filter: blur(10px) brightness(180%);
|
|
64
|
+
backdrop-filter: blur(10px) brightness(180%);
|
|
66
65
|
@media (prefers-color-scheme: light) {
|
|
67
66
|
background-color: hsl(var(--rz-color-bg) / 0.1);
|
|
68
|
-
|
|
69
|
-
backdrop-filter: blur(4px) brightness(105%);
|
|
67
|
+
backdrop-filter: blur(4px) brightness(105%);
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
@media (min-width: 1024px) {
|
|
@@ -83,23 +83,27 @@
|
|
|
83
83
|
/**************************************/
|
|
84
84
|
|
|
85
85
|
.rz-list-row {
|
|
86
|
+
--rz-upload-preview-cell-fit: cover;
|
|
87
|
+
|
|
86
88
|
display: grid;
|
|
87
89
|
height: var(--rz-row-height);
|
|
88
90
|
align-items: center;
|
|
89
91
|
border: var(--rz-border);
|
|
90
92
|
border-radius: var(--rz-radius-md);
|
|
91
93
|
background-color: hsl(var(--rz-row-bg));
|
|
94
|
+
|
|
92
95
|
.rz-list-row__icon {
|
|
93
|
-
height: var(--rz-size-
|
|
94
|
-
width: var(--rz-size-
|
|
95
|
-
border-radius: var(--rz-radius-
|
|
96
|
+
height: var(--rz-size-9);
|
|
97
|
+
width: var(--rz-size-9);
|
|
98
|
+
border-radius: var(--rz-radius-sm);
|
|
96
99
|
display: flex;
|
|
97
100
|
flex-shrink: 0;
|
|
98
101
|
flex-grow: 0;
|
|
99
102
|
align-items: center;
|
|
100
103
|
justify-content: center;
|
|
101
|
-
background-color: light-dark(hsl(var(--rz-gray-
|
|
104
|
+
background-color: light-dark(hsl(var(--rz-gray-16)), hsl(var(--rz-gray-1)));
|
|
102
105
|
}
|
|
106
|
+
|
|
103
107
|
:global {
|
|
104
108
|
.rz-list-row__checkbox {
|
|
105
109
|
margin-left: var(--rz-size-2);
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
<div class="rz-document-versions__list">
|
|
48
|
-
{#each versions as version}
|
|
48
|
+
{#each versions as version (version.id)}
|
|
49
49
|
<a
|
|
50
50
|
class="rz-document-versions__list-item"
|
|
51
51
|
class:rz-document-versions__list--active={doc.versionId === version.id}
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
padding: var(--rz-size-5) var(--rz-size-5) 0 var(--rz-size-5);
|
|
98
98
|
margin-left: calc(-1 * var(--rz-size-2));
|
|
99
99
|
align-items: center;
|
|
100
|
-
/* justify-content: space-between; */
|
|
101
100
|
}
|
|
102
101
|
h2 {
|
|
103
102
|
font-variation-settings: 'wght' 700;
|
|
@@ -128,8 +128,7 @@
|
|
|
128
128
|
position: fixed;
|
|
129
129
|
inset: 0;
|
|
130
130
|
z-index: 100;
|
|
131
|
-
|
|
132
|
-
backdrop-filter: blur(var(--rz-overlay-blur));
|
|
131
|
+
backdrop-filter: blur(var(--rz-overlay-blur));
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
/**************************************/
|