@objectstack/platform-objects 14.8.0 → 15.0.0

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/dist/index.mjs CHANGED
@@ -16677,6 +16677,83 @@ var SysUserDetailPage = {
16677
16677
  }
16678
16678
  ]
16679
16679
  },
16680
+ {
16681
+ // [ADR-0091 D1] Direct permission-set grants (直接授权) — pure SDUI.
16682
+ // sys_user_permission_set is an ordinary id-keyed junction:
16683
+ // user_id / permission_set_id are lookups keyed by record id, so
16684
+ // the list keys on `relationshipField: 'user_id'` (no
16685
+ // relationshipValueField). The Add picker binds a permission set by
16686
+ // its id (linkField: 'permission_set_id'); server-side gates
16687
+ // (audience-anchor D5/D9, delegated-admin D12) surface their denial
16688
+ // reason in the Add dialog.
16689
+ label: { en: "Permission Sets", "zh-CN": "\u6743\u9650\u96C6", "ja-JP": "\u6A29\u9650\u30BB\u30C3\u30C8", "es-ES": "Conjuntos de permisos" },
16690
+ icon: "lock",
16691
+ children: [
16692
+ {
16693
+ type: "record:related_list",
16694
+ properties: {
16695
+ objectName: "sys_user_permission_set",
16696
+ relationshipField: "user_id",
16697
+ columns: ["permission_set_id", "organization_id", "granted_by", "created_at"],
16698
+ sort: [{ field: "created_at", order: "desc" }],
16699
+ limit: 25,
16700
+ showViewAll: true,
16701
+ title: { en: "Permission Sets", "zh-CN": "\u6743\u9650\u96C6", "ja-JP": "\u6A29\u9650\u30BB\u30C3\u30C8", "es-ES": "Conjuntos de permisos" },
16702
+ add: {
16703
+ picker: {
16704
+ object: "sys_permission_set",
16705
+ labelField: "label"
16706
+ },
16707
+ linkField: "permission_set_id",
16708
+ label: {
16709
+ en: "Grant permission set",
16710
+ "zh-CN": "\u6388\u4E88\u6743\u9650\u96C6",
16711
+ "ja-JP": "\u6A29\u9650\u30BB\u30C3\u30C8\u3092\u4ED8\u4E0E",
16712
+ "es-ES": "Otorgar conjunto de permisos"
16713
+ }
16714
+ }
16715
+ }
16716
+ }
16717
+ ]
16718
+ },
16719
+ {
16720
+ // Business-unit membership (业务单元归属) — pure SDUI.
16721
+ // sys_business_unit_member is an id-keyed junction: user_id /
16722
+ // business_unit_id are lookups keyed by record id, so the list keys
16723
+ // on `relationshipField: 'user_id'` (no relationshipValueField).
16724
+ // The Add picker binds a BU by its id (linkField: 'business_unit_id');
16725
+ // sys_business_unit has no `label` field so the picker labels rows by
16726
+ // its display field `name`.
16727
+ label: { en: "Business Units", "zh-CN": "\u4E1A\u52A1\u5355\u5143", "ja-JP": "\u30D3\u30B8\u30CD\u30B9\u30E6\u30CB\u30C3\u30C8", "es-ES": "Unidades de negocio" },
16728
+ icon: "network",
16729
+ children: [
16730
+ {
16731
+ type: "record:related_list",
16732
+ properties: {
16733
+ objectName: "sys_business_unit_member",
16734
+ relationshipField: "user_id",
16735
+ columns: ["business_unit_id", "function_in_business_unit", "is_primary", "created_at"],
16736
+ sort: [{ field: "created_at", order: "desc" }],
16737
+ limit: 25,
16738
+ showViewAll: true,
16739
+ title: { en: "Business Units", "zh-CN": "\u4E1A\u52A1\u5355\u5143", "ja-JP": "\u30D3\u30B8\u30CD\u30B9\u30E6\u30CB\u30C3\u30C8", "es-ES": "Unidades de negocio" },
16740
+ add: {
16741
+ picker: {
16742
+ object: "sys_business_unit",
16743
+ labelField: "name"
16744
+ },
16745
+ linkField: "business_unit_id",
16746
+ label: {
16747
+ en: "Add to business unit",
16748
+ "zh-CN": "\u52A0\u5165\u4E1A\u52A1\u5355\u5143",
16749
+ "ja-JP": "\u30D3\u30B8\u30CD\u30B9\u30E6\u30CB\u30C3\u30C8\u306B\u8FFD\u52A0",
16750
+ "es-ES": "A\xF1adir a unidad de negocio"
16751
+ }
16752
+ }
16753
+ }
16754
+ }
16755
+ ]
16756
+ },
16680
16757
  {
16681
16758
  label: { en: "Sessions", "zh-CN": "\u4F1A\u8BDD", "ja-JP": "\u30BB\u30C3\u30B7\u30E7\u30F3", "es-ES": "Sesiones" },
16682
16759
  icon: "monitor",