@live-change/access-control-frontend 0.9.163 → 0.9.165

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.
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <slot v-if="!hidden && !authorized" name="blocked" :authorized="authorized" :roles="accessRoles" :accesses="accesses">
3
- <InsufficientAccess />
3
+ <InsufficientAccess :class="class" :style="style" />
4
4
  </slot>
5
- <BlockUI v-if="!hidden && !(contentHidden && !authorized)" :blocked="!authorized">
5
+ <BlockUI v-if="!hidden && !(contentHidden && !authorized)" :blocked="!authorized" :class="class" :style="style">
6
6
  <slot :authorized="authorized" :roles="accessRoles" :accesses="accesses"></slot>
7
7
  </BlockUI>
8
- <slot v-if="authorized && hidden" :roles="accessRoles" :accesses="accesses"></slot>
9
- <slot v-if="!authorized && hidden" name="alternative" :roles="accessRoles" :accesses="accesses"></slot>
8
+ <slot v-if="authorized && hidden" :roles="accessRoles" :accesses="accesses" :class="class" :style="style"></slot>
9
+ <slot v-if="!authorized && hidden" name="alternative" :roles="accessRoles" :accesses="accesses" :class="class" :style="style"></slot>
10
10
  </template>
11
11
 
12
12
  <script setup>
@@ -39,11 +39,19 @@
39
39
  contentHidden: {
40
40
  type: Boolean,
41
41
  default: false
42
+ },
43
+ class: {
44
+ type: String,
45
+ default: ''
46
+ },
47
+ style: {
48
+ type: String,
49
+ default: ''
42
50
  }
43
51
  })
44
52
 
45
53
  import { toRefs } from '@vueuse/core'
46
- import { computed } from 'vue'
54
+ import { computed, getCurrentInstance, onUnmounted } from 'vue'
47
55
  import { live, path } from '@live-change/vue3-ssr'
48
56
 
49
57
  const { objectType, object, objects, requiredRoles } = toRefs(props)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/access-control-frontend",
3
- "version": "0.9.163",
3
+ "version": "0.9.165",
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.9.163",
25
- "@live-change/cli": "^0.9.163",
26
- "@live-change/dao": "^0.9.163",
27
- "@live-change/dao-vue3": "^0.9.163",
28
- "@live-change/dao-websocket": "^0.9.163",
29
- "@live-change/db-admin": "^0.9.163",
30
- "@live-change/framework": "^0.9.163",
31
- "@live-change/frontend-base": "^0.9.163",
32
- "@live-change/password-authentication-service": "^0.9.163",
33
- "@live-change/secret-code-service": "^0.9.163",
34
- "@live-change/secret-link-service": "^0.9.163",
35
- "@live-change/session-service": "^0.9.163",
36
- "@live-change/user-frontend": "^0.9.163",
37
- "@live-change/user-service": "^0.9.163",
38
- "@live-change/vue3-components": "^0.9.163",
39
- "@live-change/vue3-ssr": "^0.9.163",
24
+ "@live-change/access-control-service": "^0.9.165",
25
+ "@live-change/cli": "^0.9.165",
26
+ "@live-change/dao": "^0.9.165",
27
+ "@live-change/dao-vue3": "^0.9.165",
28
+ "@live-change/dao-websocket": "^0.9.165",
29
+ "@live-change/db-admin": "^0.9.165",
30
+ "@live-change/framework": "^0.9.165",
31
+ "@live-change/frontend-base": "^0.9.165",
32
+ "@live-change/password-authentication-service": "^0.9.165",
33
+ "@live-change/secret-code-service": "^0.9.165",
34
+ "@live-change/secret-link-service": "^0.9.165",
35
+ "@live-change/session-service": "^0.9.165",
36
+ "@live-change/user-frontend": "^0.9.165",
37
+ "@live-change/user-service": "^0.9.165",
38
+ "@live-change/vue3-components": "^0.9.165",
39
+ "@live-change/vue3-ssr": "^0.9.165",
40
40
  "@vueuse/core": "^12.3.0",
41
41
  "codeceptjs-assert": "^0.0.5",
42
42
  "compression": "^1.7.5",
@@ -53,7 +53,7 @@
53
53
  "vue3-scroll-border": "0.1.7"
54
54
  },
55
55
  "devDependencies": {
56
- "@live-change/codeceptjs-helper": "^0.9.163",
56
+ "@live-change/codeceptjs-helper": "^0.9.165",
57
57
  "codeceptjs": "^3.6.10",
58
58
  "generate-password": "1.7.1",
59
59
  "playwright": "1.49.1",
@@ -64,5 +64,5 @@
64
64
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
65
65
  "license": "BSD-3-Clause",
66
66
  "description": "",
67
- "gitHead": "c410e1dacd07daed9a5c55367abd7f19d9a575cc"
67
+ "gitHead": "687dab16bd0c6594544cdab70cd7eecc17bb510c"
68
68
  }