@humandialog/forms.svelte 1.7.16 → 1.7.18
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/components/Floating_container.svelte +1 -1
- package/components/contextmenu.svelte +4 -3
- package/components/document/internal/palette.svelte +0 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +2 -1
- package/page.svelte +1 -0
- package/page.svelte.d.ts +2 -0
- package/paper.svelte +11 -0
- package/paper.svelte.d.ts +27 -0
|
@@ -122,7 +122,7 @@ function calculatePosition(x2, y2, around, visible2, fresh) {
|
|
|
122
122
|
y2 = screenRect.bottom - maxHeight - margin;
|
|
123
123
|
result = `left: ${x2}px; bottom: ${margin}px; width: ${width}px; max-height: ${maxHeight}px; display: block`;
|
|
124
124
|
}
|
|
125
|
-
closeButtonPos = `right: 0.5rem;
|
|
125
|
+
closeButtonPos = `right: 0.5rem; bottom: calc(${margin + maxHeight}px - 1.75rem)`;
|
|
126
126
|
} else {
|
|
127
127
|
let myRect = null;
|
|
128
128
|
if (!fresh) {
|
|
@@ -50,8 +50,9 @@ function calculatePosition(x2, y2, visible2, fresh) {
|
|
|
50
50
|
myRect = null;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
+
let maxHeight;
|
|
53
54
|
if (myRect) {
|
|
54
|
-
|
|
55
|
+
maxHeight = screenRect.height / 2 - margin;
|
|
55
56
|
if (myRect.height < maxHeight)
|
|
56
57
|
maxHeight = myRect.height;
|
|
57
58
|
const width = screenRect.width - 2 * margin;
|
|
@@ -59,13 +60,13 @@ function calculatePosition(x2, y2, visible2, fresh) {
|
|
|
59
60
|
y2 = screenRect.bottom - maxHeight - margin;
|
|
60
61
|
result = `left: ${x2}px; bottom: ${margin}px; width: ${width}px; max-height: ${maxHeight}px; display: block`;
|
|
61
62
|
} else {
|
|
62
|
-
|
|
63
|
+
maxHeight = screenRect.height / 2 - margin;
|
|
63
64
|
const width = screenRect.width - 2 * margin;
|
|
64
65
|
x2 = margin;
|
|
65
66
|
y2 = screenRect.bottom - maxHeight - margin;
|
|
66
67
|
result = `left: ${x2}px; bottom: ${margin}px; width: ${width}px; max-height: ${maxHeight}px; display: block`;
|
|
67
68
|
}
|
|
68
|
-
closeButtonPos = `right: 0.5rem;
|
|
69
|
+
closeButtonPos = `right: 0.5rem; bottom: calc(${margin + maxHeight}px - 1.75rem)`;
|
|
69
70
|
} else {
|
|
70
71
|
let myRect = null;
|
|
71
72
|
if (!fresh) {
|
package/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { default as Tile } from "./tile.svelte";
|
|
|
3
3
|
export { default as Row } from "./tiles.row.svelte";
|
|
4
4
|
export { default as Box } from "./form.box.svelte";
|
|
5
5
|
export { default as Operations } from './operations.svelte';
|
|
6
|
+
export { default as Paper } from './paper.svelte';
|
|
6
7
|
export { default as Layout } from './desk.svelte';
|
|
7
8
|
export { default as VerticalToolbar } from './vertical.toolbar.svelte';
|
|
8
9
|
export { default as HorizontalToolbar } from './horizontal.toolbar.svelte';
|
package/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export { default as Row } from "./tiles.row.svelte";
|
|
|
7
7
|
export { default as Box } from "./form.box.svelte";
|
|
8
8
|
//export { default as TilesVerticalRow } from "./tiles.vertical.row.svelte";
|
|
9
9
|
export { default as Operations } from './operations.svelte';
|
|
10
|
+
export { default as Paper } from './paper.svelte';
|
|
10
11
|
export { default as Layout } from './desk.svelte';
|
|
11
12
|
export { default as VerticalToolbar } from './vertical.toolbar.svelte';
|
|
12
13
|
export { default as HorizontalToolbar } from './horizontal.toolbar.svelte';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humandialog/forms.svelte",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.18",
|
|
4
4
|
"description": "Basic Svelte UI components for Object Reef applications",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@playwright/test": "^1.28.1",
|
|
@@ -175,6 +175,7 @@
|
|
|
175
175
|
"./operations.svelte": "./operations.svelte",
|
|
176
176
|
"./page.row.svelte": "./page.row.svelte",
|
|
177
177
|
"./page.svelte": "./page.svelte",
|
|
178
|
+
"./paper.svelte": "./paper.svelte",
|
|
178
179
|
"./stores": "./stores.js",
|
|
179
180
|
"./tenant.members.svelte": "./tenant.members.svelte",
|
|
180
181
|
"./tile.svelte": "./tile.svelte",
|
package/page.svelte
CHANGED
package/page.svelte.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export default class Page extends SvelteComponentTyped<{
|
|
|
13
13
|
focused_only?: boolean | undefined;
|
|
14
14
|
inContext?: string | undefined;
|
|
15
15
|
toolbarOperations?: any;
|
|
16
|
+
paper?: boolean | undefined;
|
|
16
17
|
}, {
|
|
17
18
|
[evt: string]: CustomEvent<any>;
|
|
18
19
|
}, {
|
|
@@ -36,6 +37,7 @@ declare const __propDef: {
|
|
|
36
37
|
focused_only?: boolean | undefined;
|
|
37
38
|
inContext?: string | undefined;
|
|
38
39
|
toolbarOperations?: any;
|
|
40
|
+
paper?: boolean | undefined;
|
|
39
41
|
};
|
|
40
42
|
events: {
|
|
41
43
|
[evt: string]: CustomEvent<any>;
|
package/paper.svelte
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
let additionalClass = $$props.class ?? ''
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<section class="w-full flex flex-col items-center
|
|
6
|
+
sm:bg-white sm:dark:bg-stone-800/40 sm:shadow-slate-700/10 sm:dark:shadow-black/10
|
|
7
|
+
sm:mt-6 sm:px-6 sm:py-12 sm:shadow-xl md:mx-auto sm:max-w-3xl sm:min-h-[32rem] sm:rounded
|
|
8
|
+
sm:ring-1 sm:ring-stone-900/5 sm:dark:ring-stone-950/20
|
|
9
|
+
{additionalClass}">
|
|
10
|
+
<slot/>
|
|
11
|
+
</section>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} PaperProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} PaperEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} PaperSlots */
|
|
4
|
+
export default class Paper extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type PaperProps = typeof __propDef.props;
|
|
13
|
+
export type PaperEvents = typeof __propDef.events;
|
|
14
|
+
export type PaperSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|