@live-change/access-control-frontend 0.8.124 → 0.8.126
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.
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
v-model="synchronizedPublicAccess.userRoles"
|
|
32
32
|
:feedback="false" toggleMask :disabled="disabled" />
|
|
33
33
|
</div>
|
|
34
|
-
<div class="p-field field mb-4
|
|
34
|
+
<div class="p-field field mb-4" v-if="isMounted && requestedRolesVisible"
|
|
35
|
+
:class="autoGrantRequestsVisible ? 'col-6' : 'col-12'">
|
|
35
36
|
<label for="availablePublicAccess" class="block text-900 font-medium mb-2">Roles available to request:</label>
|
|
36
37
|
<MultiSelect id="userPublicAccess" class="w-full" inputClass="w-full"
|
|
37
38
|
:options="availableRequestedRoles"
|
|
@@ -39,12 +40,21 @@
|
|
|
39
40
|
v-model="synchronizedPublicAccess.availableRoles"
|
|
40
41
|
:feedback="false" toggleMask :disabled="disabled" />
|
|
41
42
|
</div>
|
|
43
|
+
<div class="p-field field mb-4 col-6" v-if="isMounted && autoGrantRequestsVisible">
|
|
44
|
+
<label for="autoGrantRequests" class="block text-900 font-medium mb-2">
|
|
45
|
+
Automatically grant number of requests:
|
|
46
|
+
</label>
|
|
47
|
+
<InputNumber id="autoGrantRequests" class="w-full" inputClass="w-full"
|
|
48
|
+
v-model="synchronizedPublicAccess.autoGrantRequests" showButtons
|
|
49
|
+
:min="0" :max="100" :step="1" mode="decimal" :feedback="false" :disabled="disabled" />
|
|
50
|
+
</div>
|
|
42
51
|
</div>
|
|
43
52
|
</template>
|
|
44
53
|
|
|
45
54
|
<script setup>
|
|
46
55
|
import Dropdown from "primevue/dropdown"
|
|
47
56
|
import MultiSelect from "primevue/multiselect"
|
|
57
|
+
import InputNumber from "primevue/inputnumber"
|
|
48
58
|
|
|
49
59
|
import { useToast } from 'primevue/usetoast'
|
|
50
60
|
const toast = useToast()
|
|
@@ -84,6 +94,10 @@
|
|
|
84
94
|
type: Boolean,
|
|
85
95
|
default: true
|
|
86
96
|
},
|
|
97
|
+
autoGrantRequestsVisible: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: true
|
|
100
|
+
},
|
|
87
101
|
availableRequestedRoles: {
|
|
88
102
|
type: Array,
|
|
89
103
|
default: () => ['reader']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-frontend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.126",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/access-control-service": "^0.8.
|
|
25
|
-
"@live-change/cli": "^0.8.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/db-admin": "^0.8.
|
|
30
|
-
"@live-change/framework": "^0.8.
|
|
31
|
-
"@live-change/frontend-base": "^0.8.
|
|
32
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
33
|
-
"@live-change/secret-code-service": "^0.8.
|
|
34
|
-
"@live-change/secret-link-service": "^0.8.
|
|
35
|
-
"@live-change/session-service": "^0.8.
|
|
36
|
-
"@live-change/user-frontend": "^0.8.
|
|
37
|
-
"@live-change/user-service": "^0.8.
|
|
38
|
-
"@live-change/vue3-components": "^0.8.
|
|
39
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
24
|
+
"@live-change/access-control-service": "^0.8.126",
|
|
25
|
+
"@live-change/cli": "^0.8.126",
|
|
26
|
+
"@live-change/dao": "^0.8.126",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.126",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.126",
|
|
29
|
+
"@live-change/db-admin": "^0.8.126",
|
|
30
|
+
"@live-change/framework": "^0.8.126",
|
|
31
|
+
"@live-change/frontend-base": "^0.8.126",
|
|
32
|
+
"@live-change/password-authentication-service": "^0.8.126",
|
|
33
|
+
"@live-change/secret-code-service": "^0.8.126",
|
|
34
|
+
"@live-change/secret-link-service": "^0.8.126",
|
|
35
|
+
"@live-change/session-service": "^0.8.126",
|
|
36
|
+
"@live-change/user-frontend": "^0.8.126",
|
|
37
|
+
"@live-change/user-service": "^0.8.126",
|
|
38
|
+
"@live-change/vue3-components": "^0.8.126",
|
|
39
|
+
"@live-change/vue3-ssr": "^0.8.126",
|
|
40
40
|
"@vueuse/core": "^10.11.0",
|
|
41
41
|
"codeceptjs-assert": "^0.0.5",
|
|
42
42
|
"compression": "^1.7.4",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue3-scroll-border": "0.1.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@live-change/codeceptjs-helper": "^0.8.
|
|
56
|
+
"@live-change/codeceptjs-helper": "^0.8.126",
|
|
57
57
|
"codeceptjs": "^3.6.5",
|
|
58
58
|
"generate-password": "1.7.1",
|
|
59
59
|
"playwright": "^1.41.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
65
65
|
"license": "BSD-3-Clause",
|
|
66
66
|
"description": "",
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "2aa34c0589d115aeaa573bd2cae09bb43a66d162"
|
|
68
68
|
}
|