@7365admin1/layer-common 4.0.3-staging.224 → 4.0.3-staging.226

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.
@@ -354,17 +354,20 @@ const props = defineProps({
354
354
  type: Object as PropType<Record<string, any> | null>,
355
355
  default: null,
356
356
  },
357
+ // Fail closed, like the other gate props in this layer. `AccessManagement`
358
+ // is the only caller and binds all three, so nothing changes today; the
359
+ // default no longer grants the control to a future caller that omits one.
357
360
  canUpdate: {
358
361
  type: Boolean,
359
- default: true,
362
+ default: false,
360
363
  },
361
364
  canReplaceAccessCard: {
362
365
  type: Boolean,
363
- default: true,
366
+ default: false,
364
367
  },
365
368
  canDeleteAccessCard: {
366
369
  type: Boolean,
367
- default: true,
370
+ default: false,
368
371
  },
369
372
  // Fail closed. `AccessManagement` did not forward this, so the dialog's
370
373
  // Assign control defaulted to open for every role.
@@ -186,14 +186,6 @@ const props = defineProps({
186
186
  type: Boolean,
187
187
  default: true,
188
188
  },
189
- canUpdate: {
190
- type: Boolean,
191
- default: true,
192
- },
193
- canDelete: {
194
- type: Boolean,
195
- default: true,
196
- },
197
189
  canCreateAccessCard: {
198
190
  type: Boolean,
199
191
  default: false,
@@ -192,10 +192,6 @@ const props = defineProps({
192
192
  type: Boolean,
193
193
  default: true,
194
194
  },
195
- canDelete: {
196
- type: Boolean,
197
- default: true,
198
- },
199
195
  canCreateBuilding: {
200
196
  type: Boolean,
201
197
  default: false,
@@ -182,14 +182,6 @@ const props = defineProps({
182
182
  type: Boolean,
183
183
  default: true,
184
184
  },
185
- canUpdate: {
186
- type: Boolean,
187
- default: true,
188
- },
189
- canDelete: {
190
- type: Boolean,
191
- default: true,
192
- },
193
185
  canCreateUnit: {
194
186
  type: Boolean,
195
187
  default: false,
@@ -649,14 +649,6 @@ const props = defineProps({
649
649
  type: Boolean,
650
650
  default: true,
651
651
  },
652
- canUpdate: {
653
- type: Boolean,
654
- default: true,
655
- },
656
- canDelete: {
657
- type: Boolean,
658
- default: true,
659
- },
660
652
  canCreateDocument: {
661
653
  type: Boolean,
662
654
  default: false,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.0.3-staging.224",
5
+ "version": "4.0.3-staging.226",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",