@humandialog/forms.svelte 1.1.0 → 1.1.2
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/desk.svelte +4 -5
- package/package.json +2 -2
- package/stores.d.ts +1 -1
- package/stores.js +3 -3
- package/tenant.members.svelte +4 -1
package/desk.svelte
CHANGED
|
@@ -70,17 +70,16 @@
|
|
|
70
70
|
set_dark_mode_default(layout.dark.default)
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
if(layout.operations != undefined)
|
|
73
|
+
if(layout.operations !== undefined)
|
|
75
74
|
{
|
|
76
75
|
if(layout.operations.optional)
|
|
77
76
|
layout.mainToolbar.operations = true;
|
|
78
77
|
|
|
79
|
-
if(layout.operations.default
|
|
80
|
-
set_default_tools_visible(layout.operations.default)
|
|
78
|
+
if(layout.operations.default !== undefined)
|
|
79
|
+
set_default_tools_visible(layout.operations.default, !layout.operations.optional)
|
|
81
80
|
}
|
|
82
81
|
else
|
|
83
|
-
set_default_tools_visible(false)
|
|
82
|
+
set_default_tools_visible(false, true)
|
|
84
83
|
|
|
85
84
|
//let autoRedirectToSignIn = layout.autoRedirectToSignIn ?? true
|
|
86
85
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humandialog/forms.svelte",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Basic Svelte UI components for Object Reef applications",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@playwright/test": "^1.28.1",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@humandialog/auth.svelte": "^1.8.
|
|
29
|
+
"@humandialog/auth.svelte": "^1.8.1",
|
|
30
30
|
"flowbite-svelte": "^0.44.4",
|
|
31
31
|
"svelte-icons": "^2.1.0",
|
|
32
32
|
"svelte-spa-router": "^4.0.1"
|
package/stores.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export function hasDataItem(): boolean;
|
|
|
4
4
|
export function reloadMainContentPage(): void;
|
|
5
5
|
export function reloadWholeApp(): void;
|
|
6
6
|
export function set_dark_mode_default(value: any): void;
|
|
7
|
-
export function set_default_tools_visible(value: any): void;
|
|
7
|
+
export function set_default_tools_visible(value: any, force: any): void;
|
|
8
8
|
export function restore_defults(): void;
|
|
9
9
|
export function toggle_sidebar(index: any): void;
|
|
10
10
|
export function auto_hide_sidebar(): void;
|
package/stores.js
CHANGED
|
@@ -76,7 +76,7 @@ export let sidebar_left_pos = writable(0)
|
|
|
76
76
|
let has_saved_tools_visible = false;
|
|
77
77
|
function create_tools_visible_store()
|
|
78
78
|
{
|
|
79
|
-
if(localStorage.tools_visible_store
|
|
79
|
+
if(localStorage.tools_visible_store !== undefined)
|
|
80
80
|
has_saved_tools_visible = true;
|
|
81
81
|
else
|
|
82
82
|
has_saved_tools_visible = false;
|
|
@@ -87,9 +87,9 @@ function create_tools_visible_store()
|
|
|
87
87
|
export const tools_visible_store = create_tools_visible_store();
|
|
88
88
|
tools_visible_store.subscribe( (value) => { localStorage.tools_visible_store = (value ? 'true' : '') } );
|
|
89
89
|
|
|
90
|
-
export function set_default_tools_visible(value)
|
|
90
|
+
export function set_default_tools_visible(value, force)
|
|
91
91
|
{
|
|
92
|
-
if(!has_saved_tools_visible)
|
|
92
|
+
if((!has_saved_tools_visible) || force)
|
|
93
93
|
tools_visible_store.set(value)
|
|
94
94
|
}
|
|
95
95
|
|
package/tenant.members.svelte
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import Modal from './modal.svelte'
|
|
19
19
|
import Checkbox from './components/checkbox.svelte';
|
|
20
20
|
import {Popover, Alert} from 'flowbite-svelte'
|
|
21
|
-
import { reef } from '@humandialog/auth.svelte';
|
|
21
|
+
import { reef, session, signInHRef } from '@humandialog/auth.svelte';
|
|
22
22
|
import { ComboSource } from './';
|
|
23
23
|
import {removeAt} from './utils'
|
|
24
24
|
import {showMenu} from './components/menu'
|
|
@@ -477,6 +477,9 @@
|
|
|
477
477
|
auth_group: new_user.auth_group,
|
|
478
478
|
files_group: new_user.files_group,
|
|
479
479
|
role: new_user.acc_role,
|
|
480
|
+
client_id: $session.configuration.client_id,
|
|
481
|
+
redirect_uri: `${window.location.origin}/#/auth/cb`,
|
|
482
|
+
state: `${window.location.origin}/#/auth/signin`,
|
|
480
483
|
set:
|
|
481
484
|
{
|
|
482
485
|
[nameAttrib]: new_user.name,
|