@wildo-ai/presets-components 1.1.1 → 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.
Files changed (100) hide show
  1. package/dist/esm/components/actions/action-button.d.ts +1 -4
  2. package/dist/esm/components/actions/action-button.d.ts.map +1 -1
  3. package/dist/esm/components/actions/action-button.js +21 -5
  4. package/dist/esm/components/actions/action-button.js.map +1 -1
  5. package/dist/esm/components/ai-elements/artifacts/artifact-browser.d.ts.map +1 -1
  6. package/dist/esm/components/ai-elements/artifacts/artifact-browser.js +7 -3
  7. package/dist/esm/components/ai-elements/artifacts/artifact-browser.js.map +1 -1
  8. package/dist/esm/components/ai-elements/execution/task.d.ts.map +1 -1
  9. package/dist/esm/components/ai-elements/execution/task.js +10 -2
  10. package/dist/esm/components/ai-elements/execution/task.js.map +1 -1
  11. package/dist/esm/components/app/app-layout-main-container.labels.d.ts.map +1 -1
  12. package/dist/esm/components/app/app-layout-main-container.labels.js +10 -2
  13. package/dist/esm/components/app/app-layout-main-container.labels.js.map +1 -1
  14. package/dist/esm/components/app/public-layout-main-container.d.ts.map +1 -1
  15. package/dist/esm/components/app/public-layout-main-container.js +52 -5
  16. package/dist/esm/components/app/public-layout-main-container.js.map +1 -1
  17. package/dist/esm/components/data-display/description-list.d.ts.map +1 -1
  18. package/dist/esm/components/data-display/description-list.js +10 -7
  19. package/dist/esm/components/data-display/description-list.js.map +1 -1
  20. package/dist/esm/components/data-display/formatters/display-field-string.d.ts.map +1 -1
  21. package/dist/esm/components/data-display/formatters/display-field-string.js +3 -0
  22. package/dist/esm/components/data-display/formatters/display-field-string.js.map +1 -1
  23. package/dist/esm/components/form/chromes/form-primitive.labels.js +2 -2
  24. package/dist/esm/components/form/chromes/form-primitive.labels.js.map +1 -1
  25. package/dist/esm/components/navigation/app-level/menu-user-org.d.ts.map +1 -1
  26. package/dist/esm/components/navigation/app-level/menu-user-org.js +8 -2
  27. package/dist/esm/components/navigation/app-level/menu-user-org.js.map +1 -1
  28. package/dist/esm/components/navigation/app-level/sidebar.d.ts.map +1 -1
  29. package/dist/esm/components/navigation/app-level/sidebar.js +32 -15
  30. package/dist/esm/components/navigation/app-level/sidebar.js.map +1 -1
  31. package/dist/esm/components/overlays/containers/sheet.d.ts.map +1 -1
  32. package/dist/esm/components/overlays/containers/sheet.js +2 -2
  33. package/dist/esm/components/overlays/containers/sheet.js.map +1 -1
  34. package/dist/esm/components/sections/accordion.d.ts.map +1 -1
  35. package/dist/esm/components/sections/accordion.js +43 -13
  36. package/dist/esm/components/sections/accordion.js.map +1 -1
  37. package/dist/esm/components/sections/collapsible.d.ts.map +1 -1
  38. package/dist/esm/components/sections/collapsible.js +17 -3
  39. package/dist/esm/components/sections/collapsible.js.map +1 -1
  40. package/dist/esm/components/sections/content-section.d.ts.map +1 -1
  41. package/dist/esm/components/sections/content-section.js +11 -7
  42. package/dist/esm/components/sections/content-section.js.map +1 -1
  43. package/dist/esm/components/sections/disclosure-nesting.d.ts +20 -0
  44. package/dist/esm/components/sections/disclosure-nesting.d.ts.map +1 -0
  45. package/dist/esm/components/sections/disclosure-nesting.js +20 -0
  46. package/dist/esm/components/sections/disclosure-nesting.js.map +1 -0
  47. package/dist/esm/components/sections/tabs.d.ts.map +1 -1
  48. package/dist/esm/components/sections/tabs.js +141 -10
  49. package/dist/esm/components/sections/tabs.js.map +1 -1
  50. package/dist/esm/config/preset-kits.d.ts.map +1 -1
  51. package/dist/esm/config/preset-kits.js +0 -4
  52. package/dist/esm/config/preset-kits.js.map +1 -1
  53. package/dist/esm/config/preset-shell.d.ts.map +1 -1
  54. package/dist/esm/config/preset-shell.js +0 -4
  55. package/dist/esm/config/preset-shell.js.map +1 -1
  56. package/dist/esm/config/presets.d.ts.map +1 -1
  57. package/dist/esm/config/presets.js +0 -1
  58. package/dist/esm/config/presets.js.map +1 -1
  59. package/dist/esm/config/resources/application.resource-presets.d.ts.map +1 -1
  60. package/dist/esm/config/resources/application.resource-presets.js +6 -6
  61. package/dist/esm/config/resources/application.resource-presets.js.map +1 -1
  62. package/dist/esm/config/resources/billing.resource-presets.d.ts.map +1 -1
  63. package/dist/esm/config/resources/billing.resource-presets.js +8 -8
  64. package/dist/esm/config/resources/billing.resource-presets.js.map +1 -1
  65. package/dist/esm/config/resources/guidance.resource-presets.d.ts.map +1 -1
  66. package/dist/esm/config/resources/guidance.resource-presets.js +7 -7
  67. package/dist/esm/config/resources/guidance.resource-presets.js.map +1 -1
  68. package/dist/esm/config/resources/identity.resource-presets.d.ts.map +1 -1
  69. package/dist/esm/config/resources/identity.resource-presets.js +7 -7
  70. package/dist/esm/config/resources/identity.resource-presets.js.map +1 -1
  71. package/dist/esm/config/resources/organizations.resource-presets.d.ts.map +1 -1
  72. package/dist/esm/config/resources/organizations.resource-presets.js +8 -8
  73. package/dist/esm/config/resources/organizations.resource-presets.js.map +1 -1
  74. package/dist/esm/config/resources/security.resource-presets.d.ts.map +1 -1
  75. package/dist/esm/config/resources/security.resource-presets.js +9 -9
  76. package/dist/esm/config/resources/security.resource-presets.js.map +1 -1
  77. package/dist/esm/themes/cozy.theme.d.ts.map +1 -1
  78. package/dist/esm/themes/cozy.theme.js +8 -3
  79. package/dist/esm/themes/cozy.theme.js.map +1 -1
  80. package/dist/esm/themes/dense.theme.d.ts.map +1 -1
  81. package/dist/esm/themes/dense.theme.js +8 -5
  82. package/dist/esm/themes/dense.theme.js.map +1 -1
  83. package/dist/esm/themes/editorial.theme.d.ts.map +1 -1
  84. package/dist/esm/themes/editorial.theme.js +8 -3
  85. package/dist/esm/themes/editorial.theme.js.map +1 -1
  86. package/dist/esm/themes/glass.theme.d.ts.map +1 -1
  87. package/dist/esm/themes/glass.theme.js +10 -4
  88. package/dist/esm/themes/glass.theme.js.map +1 -1
  89. package/dist/esm/themes/neo-brutalist.theme.d.ts.map +1 -1
  90. package/dist/esm/themes/neo-brutalist.theme.js +8 -3
  91. package/dist/esm/themes/neo-brutalist.theme.js.map +1 -1
  92. package/dist/esm/themes/terminal.theme.d.ts.map +1 -1
  93. package/dist/esm/themes/terminal.theme.js +8 -3
  94. package/dist/esm/themes/terminal.theme.js.map +1 -1
  95. package/dist/esm/themes/trading.theme.d.ts.map +1 -1
  96. package/dist/esm/themes/trading.theme.js +8 -3
  97. package/dist/esm/themes/trading.theme.js.map +1 -1
  98. package/dist/tsconfig.build.tsbuildinfo +1 -1
  99. package/package.json +7 -7
  100. package/dist/esm/.builder.pid +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.resource-presets.js","sourceRoot":"","sources":["../../../../../src/config/resources/organizations.resource-presets.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,uBAAuB,EACvB,OAAO,EACP,aAAa,GACd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjI,OAAO,EACL,OAAO,EACP,cAAc,EACd,GAAG,EACH,WAAW,EACX,SAAS,EACT,IAAI,EACJ,UAAU,EACV,KAAK,EACL,SAAS,EACT,IAAI,EACJ,UAAU,EACV,WAAW,EACX,MAAM,EACN,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,IAAI,CAAC,EACrB,qBAAqB,IAAI,EAAE,EAC3B,kBAAkB,EAClB,wBAAwB,EACxB,2BAA2B,EAC3B,8BAA8B,EAC9B,8BAA8B,EAC9B,iCAAiC,EACjC,+BAA+B,EAC/B,uDAAuD,IAAI,UAAU,EACrE,2DAA2D,IAAI,cAAc,EAC7E,8DAA8D,IAAI,iBAAiB,EACnF,8DAA8D,IAAI,iBAAiB,EACnF,oEAAoE,IAAI,uBAAuB,EAC/F,kEAA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ResourceOperationFrontendConfig } from '@wildo-ai/saas-frontend-lib';\nimport {\n resourceUIBehavior,\n resourceUIBehaviorFrom,\n StandardIconReference,\n ActionVisibility,\n} from '@wildo-ai/saas-frontend-lib';\nimport {\n DisplayField,\n DisplayLayout,\n FormField,\n FormLayout,\n ObjectScope,\n RelatedResourceSections,\n Section,\n SummaryLayout,\n} from '@wildo-ai/saas-frontend-lib';\nimport { BadgeSemanticVariant, DisplayChromeMode, EditChromeMode, EnumDisplayMode, SectionMode } from '@wildo-ai/zod-decorators';\nimport {\n Archive,\n ArchiveRestore,\n Ban,\n CirclePause,\n GitBranch,\n Move,\n Paintbrush,\n Power,\n RotateCcw,\n Send,\n ToggleLeft,\n ToggleRight,\n Trash2,\n UserPlus,\n} from 'lucide-react';\nimport {\n CoreResourceType as R,\n CoreResourceOperation as Op,\n OrganizationStatus,\n OrganizationMemberStatus,\n OrganizationUnit_Operations,\n OrganizationMembers_Operations,\n OrganizationProfile_Operations,\n Organization_Lifecycle_Operations,\n OrganizationFeatures_Operations,\n organizationResourceConfiguration_InitializationFactory as orgFactory,\n organizationUnitResourceConfiguration_InitializationFactory as orgUnitFactory,\n organizationMembersResourceConfiguration_InitializationFactory as orgMembersFactory,\n organizationProfileResourceConfiguration_InitializationFactory as orgProfileFactory,\n organizationNotificationsResourceConfiguration_InitializationFactory as orgNotificationsFactory,\n organizationPreferencesResourceConfiguration_InitializationFactory as orgPreferencesFactory,\n organizationFeaturesResourceConfiguration_InitializationFactory as orgFeaturesFactory,\n OrganizationSchema,\n OrganizationUnitSchema,\n OrganizationMemberSchema,\n OrganizationProfileSchema,\n OrganizationNotificationsSchema,\n OrganizationPreferencesSchema,\n ScopeFeaturesWithOverridesSchema,\n} from '@wildo-ai/saas-models';\nimport { addressable, notAddressable, apiOnly } from './resource.config.utils';\n\n/**\n * Organizations — Resource frontend presets\n *\n * Domain: ORGANIZATIONS, ORGANIZATION_UNITS, ORGANIZATION_MEMBERS,\n * ORGANIZATION_PROFILES,\n * ORGANIZATION_NOTIFICATIONS, ORGANIZATION_PREFERENCES, ORGANIZATION_FEATURES\n *\n * Enum badges use inline `values` and `showDescription: true` like `billing.resource-presets.tsx`.\n * Layout templates are implemented inline in each resource config.\n */\n\n/**\n * Org lifecycle-transition action config, shared by the main and admin org\n * presets (the same super-admin transitions surface in the main-app settings\n * hub today and will surface in the dedicated admin app later).\n *\n * ACTIVATE/SUSPEND are direct status transitions with no intermediate view, so\n * they are gated purely by their `enabledCondition` (org status). The\n * `WHEN_AVAILABLE` visibility makes each action **vanish** (rather than render\n * disabled) when its precondition is unmet: ACTIVATE shows only on a\n * suspended/expired org, SUSPEND only on an active/trial one. The icon overrides\n * give the custom ops a meaningful glyph instead of the action-bar fallback.\n */\nconst organizationLifecycleOpViews: Array<[Organization_Lifecycle_Operations, ResourceOperationFrontendConfig]> = [\n [Organization_Lifecycle_Operations.ACTIVATE, notAddressable({ iconOverride: Power, actionVisibility: ActionVisibility.WHEN_AVAILABLE })],\n [Organization_Lifecycle_Operations.SUSPEND, notAddressable({ iconOverride: CirclePause, actionVisibility: ActionVisibility.WHEN_AVAILABLE, hasDescription: true })],\n // Tenant teardown (WS-A). `request_deletion` is the tenant-facing delete — it REPLACED the\n // org-admin `DELETE` action, which no longer exists as an API door. `hasDescription` because the\n // confirmation copy has to say the thing a delete dialog normally cannot: this is reversible,\n // and until when.\n [Organization_Lifecycle_Operations.REQUEST_DELETION, notAddressable({ iconOverride: Trash2, actionVisibility: ActionVisibility.WHEN_AVAILABLE, hasDescription: true })],\n // Only ever available on a marked tenant, and only to a platform super-admin — the role gate on\n // the action bar hides it from everyone else, and `WHEN_AVAILABLE` hides it on a live tenant.\n [Organization_Lifecycle_Operations.RESTORE, notAddressable({ iconOverride: RotateCcw, actionVisibility: ActionVisibility.WHEN_AVAILABLE, hasDescription: true })],\n];\n\nexport function buildOrganizationsMainPresets(): Partial<ResourceUIBehavior> {\n return {\n [R.ORGANIZATIONS]: resourceUIBehavior(orgFactory, OrganizationSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.ORGANIZATION,\n layout: {\n refs: { sections: ['overview', 'lifecycle'] },\n // Settings-page chrome: shown in the Settings Hub (General). Read + edit render as\n // label-left / value-right rows; the list/summary stays compact.\n defaultChromeMode: { display: DisplayChromeMode.SETTINGS_ROW, summary: DisplayChromeMode.INLINE, edit: EditChromeMode.SETTINGS_ROW },\n display: () => (\n <DisplayLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <DisplayField name=\"name\" />\n <DisplayField name=\"slug\" />\n <DisplayField name=\"status\" />\n <DisplayField name=\"type\" />\n </Section>\n <Section name=\"lifecycle\">\n <DisplayField name=\"createdAt\" />\n </Section>\n {/*\n The organization's own children, named here rather than curated\n through per-edge relationship config.\n\n Placing them makes this template OWN the child region: automatic\n composition stands down, so the tenant's APPLICATION resources\n (todo lists, todos, tasks — org-scoped, and therefore owned children\n of every organization) stop appearing as tabs on an engine admin\n surface that only ever intended these three. That leak was the\n price of composing every owned child by default; naming them is\n what removes it, and it removes the ~16 `hidden: true` opt-outs\n that used to say the same thing edge by edge.\n\n Titles come from each child resource's own header label, so this\n adds no `layout.refs` entry and no specification slot.\n */}\n <RelatedResourceSections\n config={{ mode: SectionMode.TABS }}\n targets={[R.ORGANIZATION_UNITS, R.ORGANIZATION_MEMBERS, R.ORGANIZATION_FEATURES]}\n />\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout className=\"flex flex-col gap-2 text-sm\">\n <div className=\"font-medium leading-tight\">\n <DisplayField name=\"name\" hideLabel />\n </div>\n <div className=\"flex flex-wrap items-center gap-x-3 gap-y-1\">\n <DisplayField name=\"slug\" />\n <DisplayField name=\"status\" />\n <DisplayField name=\"type\" />\n <DisplayField name=\"createdAt\" />\n </div>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <FormField name=\"name\" />\n <FormField name=\"slug\" />\n <FormField name=\"status\" />\n <FormField name=\"type\" />\n </Section>\n </FormLayout>\n ),\n },\n fields: {\n status: schemaShape.status.enumUI({\n display: { displayMode: EnumDisplayMode.BADGE, showDescription: true },\n edit: { showDescription: true },\n values: {\n [OrganizationStatus.ACTIVE]: { color: BadgeSemanticVariant.SUCCESS },\n [OrganizationStatus.SUSPENDED]: { color: BadgeSemanticVariant.DESTRUCTIVE },\n [OrganizationStatus.TRIAL]: { color: BadgeSemanticVariant.INFO },\n [OrganizationStatus.TRIAL_EXPIRED]: { color: BadgeSemanticVariant.WARNING },\n [OrganizationStatus.CANCELLED]: { color: BadgeSemanticVariant.SECONDARY },\n [OrganizationStatus.DELETED]: { color: BadgeSemanticVariant.DESTRUCTIVE },\n },\n }),\n },\n getFrontendResourceLabel: ({ currentObject }) => currentObject.name,\n views: [\n // Organizations are created via the registration/signup flow, not a resource\n // create form — headless (no form view, created programmatically by the flow).\n [Op.CREATE, apiOnly()],\n [Op.READ, notAddressable()],\n [Op.UPDATE, notAddressable()],\n // NO `Op.DELETE` view. Since the WS-A teardown split the DEFAULT delete variant is a\n // route-less INTERNAL_CALL owned by the `organization-purge` batch, so there is no HTTP\n // door for this view to drive — rendering an action for it would produce a button that\n // cannot be invoked. The tenant-facing verb is `request_deletion`, below. The `admin`\n // purge-now variant keeps its view in the admin presets.\n ...organizationLifecycleOpViews,\n ],\n })),\n\n [R.ORGANIZATION_UNITS]: resourceUIBehavior(orgUnitFactory, OrganizationUnitSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: GitBranch,\n getFrontendResourceLabel: ({ currentObject }) => currentObject.name,\n layout: {\n refs: { sections: ['identity', 'hierarchy'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"identity\" appearance={SectionMode.CARD}>\n <DisplayField name=\"name\" />\n <DisplayField name=\"code\" />\n <DisplayField name=\"type\" />\n <DisplayField name=\"status\" />\n </Section>\n <Section name=\"hierarchy\">\n <DisplayField name=\"parentUnitId\" />\n <DisplayField name=\"path\" />\n <DisplayField name=\"inheritanceType\" />\n </Section>\n {/*\n Sub-units — a SELF-REFERENCING edge, so this nests: a unit shows its\n children, each of which is a unit that shows its own. Bounded by the\n framework embed-depth default and by the cycle guard keyed on\n `(edge, host row)`, which admits a genuine hierarchy over distinct\n rows while refusing a row that reappears on its own path.\n */}\n <RelatedResourceSections\n config={{ mode: SectionMode.TABS }}\n targets={[R.ORGANIZATION_UNITS]}\n />\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout className=\"flex flex-col gap-2 text-sm\">\n <div className=\"font-medium leading-tight\">\n <DisplayField name=\"name\" hideLabel />\n </div>\n <div className=\"flex flex-wrap items-center gap-x-3 gap-y-1\">\n <DisplayField name=\"type\" />\n <DisplayField name=\"status\" />\n </div>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"identity\" appearance={SectionMode.CARD}>\n <FormField name=\"name\" />\n <FormField name=\"code\" />\n <FormField name=\"type\" />\n <FormField name=\"status\" />\n </Section>\n <Section name=\"hierarchy\">\n <FormField name=\"parentUnitId\" />\n <FormField name=\"inheritanceType\" />\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.CREATE, notAddressable()],\n [Op.READ, notAddressable()],\n [Op.LIST, notAddressable()],\n [Op.SEARCH, notAddressable()],\n [Op.UPDATE, notAddressable()],\n [Op.DELETE, notAddressable()],\n [OrganizationUnit_Operations.MOVE, notAddressable({ iconOverride: Move })],\n [OrganizationUnit_Operations.ARCHIVE, notAddressable({ iconOverride: Archive })],\n [OrganizationUnit_Operations.RESTORE, notAddressable({ iconOverride: ArchiveRestore })],\n ],\n })),\n\n [R.ORGANIZATION_MEMBERS]: resourceUIBehavior(orgMembersFactory, OrganizationMemberSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.TEAM,\n layout: {\n refs: { sections: ['overview', 'membership'] },\n // Settings-page chrome (Settings Hub → Members): label-left / value-right rows.\n defaultChromeMode: { display: DisplayChromeMode.SETTINGS_ROW, summary: DisplayChromeMode.INLINE, edit: EditChromeMode.SETTINGS_ROW },\n display: () => (\n <DisplayLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <DisplayField name=\"userTitle\" />\n <DisplayField name=\"status\" />\n <DisplayField name=\"roles\" />\n </Section>\n {/* Unit assignments moved out of this row entirely (D-B5): they are now\n ORGANIZATION_UNIT_MEMBERS rows, surfaced through that resource rather than as an\n embedded field here. The section keeps its slot ref for `createdAt`. */}\n <Section name=\"membership\">\n <DisplayField name=\"createdAt\" />\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout className=\"flex flex-col gap-2 text-sm\">\n <div className=\"font-medium leading-tight\">\n <DisplayField name=\"userTitle\" hideLabel />\n </div>\n <div className=\"flex flex-wrap items-center gap-x-3 gap-y-1\">\n <DisplayField name=\"roles\" />\n <DisplayField name=\"status\" />\n </div>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n {/* Invite email — the admin's invitee address. Renders on the CREATE (invite)\n form only: `userEmail` is `.excludeFromUpdate()`, so it's absent from the\n UPDATE DTO and this FormField auto-skips on the edit form. The invite prefix\n find-or-creates the User by this email. Placed first — it's the primary input. */}\n <FormField name=\"userEmail\" />\n <FormField name=\"userTitle\" />\n <FormField name=\"status\" />\n <FormField name=\"roles\" />\n </Section>\n {/* No `membership` section on the edit form: its only field was\n `organizationUnitsMembership`, now the ORGANIZATION_UNIT_MEMBERS junction (D-B5).\n Assigning a member to a unit is a write against that resource, not a field edit\n here — which is also what makes it role-ceiling governed. */}\n </FormLayout>\n ),\n },\n fields: {\n status: schemaShape.status.enumUI({\n display: { displayMode: EnumDisplayMode.BADGE, showDescription: true },\n edit: { showDescription: true },\n values: {\n [OrganizationMemberStatus.INVITED]: { color: BadgeSemanticVariant.INFO },\n [OrganizationMemberStatus.ACTIVE]: { color: BadgeSemanticVariant.SUCCESS },\n [OrganizationMemberStatus.INACTIVE]: { color: BadgeSemanticVariant.SECONDARY },\n [OrganizationMemberStatus.SUSPENDED]: { color: BadgeSemanticVariant.DESTRUCTIVE },\n },\n }),\n },\n // A membership has no inherent name — its identity is the related user.\n // `instanceLabel` is a server-resolved virtual field that forwards the\n // user's name live from `USER_PROFILES` (see `forwardedLabel` on\n // `OrganizationMemberSchema`), so the label is a plain, synchronous field\n // ref — never stale, tenant-safe, no async frontend resolver. `userTitle`\n // is the distinct authored job title and stays its own FIELD.\n getFrontendResourceLabel: ['instanceLabel'],\n views: [\n [Op.COUNT, notAddressable()],\n // CREATE is the org-admin INVITE entry point (it mints the invitee's pending\n // membership row directly on this junction — invitations are no longer a separate\n // resource). Surfaced as an EMBEDDED action (\"Invite member\", UserPlus): the\n // collection toolbar shows the button, which opens the invite form overlay (email +\n // roles + optional title/units). NOT `apiOnly()` — that hid it entirely, leaving no\n // way to invite from the UI.\n [Op.CREATE, notAddressable({ iconOverride: UserPlus })],\n [Op.READ, notAddressable()],\n [Op.LIST, addressable()],\n [Op.SEARCH, notAddressable()],\n [Op.UPDATE, notAddressable()],\n [Op.DELETE, notAddressable()],\n // Role changes ride `UPDATE` — the PROMOTE/DEMOTE verbs were removed on 2026-08-01\n // (routed but never implemented, so they answered 200 having changed nothing).\n [OrganizationMembers_Operations.SUSPEND, notAddressable({ iconOverride: CirclePause })],\n [OrganizationMembers_Operations.REACTIVATE, notAddressable({ iconOverride: Power })],\n // Invitation management on a still-INVITED row (invitations live in this list, not a\n // separate section): REVOKE cancels the pending invite (deletes the row + revokes its\n // accept token), RESEND re-issues the accept link. `WHEN_AVAILABLE` hides (not disables)\n // both on non-INVITED rows — they vanish on ACTIVE members rather than sit greyed out —\n // driven by the ops' `enabledCondition: status === INVITED` (resources-config). Surfaced\n // here so the spec's frontend `views` matches the merged config (companion validator).\n [OrganizationMembers_Operations.REVOKE, notAddressable({ iconOverride: Ban, actionVisibility: ActionVisibility.WHEN_AVAILABLE })],\n [OrganizationMembers_Operations.RESEND, notAddressable({ iconOverride: Send, actionVisibility: ActionVisibility.WHEN_AVAILABLE })],\n ],\n })),\n\n [R.ORGANIZATION_PROFILES]: resourceUIBehavior(orgProfileFactory, OrganizationProfileSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.PROFILE,\n getFrontendResourceLabel: ({ currentObject }) => currentObject.displayName || `Organization ${currentObject.organizationId}`,\n layout: {\n refs: { sections: ['company', 'classification', 'location', 'branding', 'social'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"company\" appearance={SectionMode.CARD}>\n <DisplayField name=\"displayName\" />\n <DisplayField name=\"domain\" />\n <DisplayField name=\"website\" />\n <DisplayField name=\"phone\" />\n <DisplayField name=\"description\" />\n </Section>\n <Section name=\"classification\">\n <DisplayField name=\"industry\" />\n <DisplayField name=\"size\" />\n <DisplayField name=\"founded\" />\n <DisplayField name=\"timezone\" />\n </Section>\n <Section name=\"location\">\n <DisplayField name=\"address\" />\n </Section>\n <Section name=\"branding\">\n <ObjectScope name=\"branding\">\n <DisplayField name=\"logo\" />\n <DisplayField name=\"favicon\" />\n <DisplayField name=\"primaryColor\" />\n <DisplayField name=\"secondaryColor\" />\n <DisplayField name=\"customDomain\" />\n </ObjectScope>\n </Section>\n <Section name=\"social\">\n <ObjectScope name=\"socialLinks\">\n <DisplayField name=\"linkedin\" />\n <DisplayField name=\"twitter\" />\n <DisplayField name=\"facebook\" />\n <DisplayField name=\"github\" />\n </ObjectScope>\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout className=\"text-sm\">\n <DisplayField name=\"displayName\" />\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"company\" appearance={SectionMode.CARD}>\n <FormField name=\"displayName\" />\n <FormField name=\"domain\" />\n <FormField name=\"website\" />\n <FormField name=\"phone\" />\n <FormField name=\"description\" />\n </Section>\n <Section name=\"classification\">\n <FormField name=\"industry\" />\n <FormField name=\"size\" />\n <FormField name=\"founded\" />\n <FormField name=\"timezone\" />\n </Section>\n <Section name=\"location\">\n <FormField name=\"address\" />\n </Section>\n <Section name=\"branding\">\n <ObjectScope name=\"branding\">\n <FormField name=\"logo\" />\n <FormField name=\"favicon\" />\n <FormField name=\"primaryColor\" />\n <FormField name=\"secondaryColor\" />\n <FormField name=\"customDomain\" />\n </ObjectScope>\n </Section>\n <Section name=\"social\">\n <ObjectScope name=\"socialLinks\">\n <FormField name=\"linkedin\" />\n <FormField name=\"twitter\" />\n <FormField name=\"facebook\" />\n <FormField name=\"github\" />\n </ObjectScope>\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.READ, notAddressable()],\n [Op.UPDATE, notAddressable()],\n [OrganizationProfile_Operations.UPDATE_BRANDING, notAddressable({ iconOverride: Paintbrush })],\n ],\n })),\n\n [R.ORGANIZATION_NOTIFICATIONS]: resourceUIBehavior(orgNotificationsFactory, OrganizationNotificationsSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.NOTIFICATION,\n layout: {\n refs: { sections: ['addresses', 'categories'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"addresses\" appearance={SectionMode.CARD}>\n <ObjectScope name=\"emailNotifications\">\n <DisplayField name=\"defaultEmailAddress\" />\n <DisplayField name=\"billingAddress\" />\n <DisplayField name=\"securityAddress\" />\n <DisplayField name=\"administrativeAddress\" />\n <DisplayField name=\"usersManagementAddress\" />\n </ObjectScope>\n </Section>\n <Section name=\"categories\">\n <ObjectScope name=\"emailNotifications\">\n <DisplayField name=\"billing\" />\n <DisplayField name=\"administrative\" />\n <DisplayField name=\"security\" />\n <DisplayField name=\"usersManagement\" />\n </ObjectScope>\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout className=\"flex flex-wrap items-center gap-x-3 gap-y-1 text-sm\">\n <ObjectScope name=\"emailNotifications\">\n <DisplayField name=\"defaultEmailAddress\" />\n </ObjectScope>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"addresses\" appearance={SectionMode.CARD}>\n <ObjectScope name=\"emailNotifications\">\n <FormField name=\"defaultEmailAddress\" />\n <FormField name=\"billingAddress\" />\n <FormField name=\"securityAddress\" />\n <FormField name=\"administrativeAddress\" />\n <FormField name=\"usersManagementAddress\" />\n </ObjectScope>\n </Section>\n <Section name=\"categories\">\n <ObjectScope name=\"emailNotifications\">\n <FormField name=\"billing\" />\n <FormField name=\"administrative\" />\n <FormField name=\"security\" />\n <FormField name=\"usersManagement\" />\n </ObjectScope>\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.READ, notAddressable()],\n [Op.UPDATE, notAddressable()],\n ],\n })),\n\n [R.ORGANIZATION_PREFERENCES]: resourceUIBehavior(orgPreferencesFactory, OrganizationPreferencesSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.SETTINGS,\n layout: {\n refs: { sections: ['regional', 'language', 'overrides'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"regional\" appearance={SectionMode.CARD}>\n <DisplayField name=\"timezone\" />\n <DisplayField name=\"locale\" />\n <DisplayField name=\"dateFormat\" />\n <DisplayField name=\"timeFormat\" />\n </Section>\n <Section name=\"language\">\n <ObjectScope name=\"languagePreferences\">\n <DisplayField name=\"primaryLanguage\" />\n <DisplayField name=\"supportedLanguages\" />\n <DisplayField name=\"allowUserOverride\" />\n <DisplayField name=\"enforceForAllMembers\" />\n </ObjectScope>\n </Section>\n <Section name=\"overrides\">\n <DisplayField name=\"allowMemberEmailOverride\" />\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout className=\"flex flex-wrap items-center gap-x-3 gap-y-1 text-sm\">\n <DisplayField name=\"timezone\" />\n <DisplayField name=\"locale\" />\n <ObjectScope name=\"languagePreferences\">\n <DisplayField name=\"primaryLanguage\" />\n </ObjectScope>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"regional\" appearance={SectionMode.CARD}>\n <FormField name=\"timezone\" />\n <FormField name=\"locale\" />\n <FormField name=\"dateFormat\" />\n <FormField name=\"timeFormat\" />\n </Section>\n <Section name=\"language\">\n <ObjectScope name=\"languagePreferences\">\n <FormField name=\"primaryLanguage\" />\n <FormField name=\"supportedLanguages\" />\n <FormField name=\"allowUserOverride\" />\n <FormField name=\"enforceForAllMembers\" />\n </ObjectScope>\n </Section>\n <Section name=\"overrides\">\n <FormField name=\"allowMemberEmailOverride\" />\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.READ, notAddressable()],\n [Op.UPDATE, notAddressable()],\n ],\n })),\n\n [R.ORGANIZATION_FEATURES]: resourceUIBehavior(orgFeaturesFactory, ScopeFeaturesWithOverridesSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n layout: {\n refs: { sections: ['overview', 'overrides'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <DisplayField name=\"features\" />\n <DisplayField name=\"limits\" />\n </Section>\n <Section name=\"overrides\">\n <ObjectScope name=\"manualOverrides\">\n <DisplayField name=\"addedFeatures\" />\n <DisplayField name=\"removedFeatures\" />\n <DisplayField name=\"limitOverrides\" />\n </ObjectScope>\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout className=\"flex flex-col gap-2 text-sm\">\n <DisplayField name=\"features\" />\n <DisplayField name=\"limits\" />\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <FormField name=\"features\" />\n <FormField name=\"limits\" />\n </Section>\n <Section name=\"overrides\">\n <ObjectScope name=\"manualOverrides\">\n <FormField name=\"addedFeatures\" />\n <FormField name=\"removedFeatures\" />\n <FormField name=\"limitOverrides\" />\n </ObjectScope>\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.READ, notAddressable()],\n [Op.SEARCH, notAddressable()],\n // Org feature flags are toggled programmatically, not via a generic edit form —\n // UPDATE is headless.\n [Op.UPDATE, apiOnly()],\n ],\n })),\n };\n}\n\nexport function buildOrganizationsAdminPresets(main: Partial<ResourceUIBehavior>): Partial<ResourceUIBehavior> {\n return {\n [R.ORGANIZATIONS]: resourceUIBehaviorFrom(orgFactory, main[R.ORGANIZATIONS]!, ({ base, opsVariantResolver }) => ({\n icon: base.icon,\n layout: base.layout,\n fields: base.fields,\n views: [\n [opsVariantResolver(Op.READ, 'admin'), notAddressable()],\n [Op.LIST, notAddressable()],\n [Op.SEARCH, notAddressable()],\n [opsVariantResolver(Op.CREATE, 'admin'), addressable()],\n [opsVariantResolver(Op.UPDATE, 'admin'), notAddressable()],\n [opsVariantResolver(Op.DELETE, 'admin'), notAddressable()],\n ...organizationLifecycleOpViews,\n ],\n })),\n [R.ORGANIZATION_FEATURES]: resourceUIBehaviorFrom(orgFeaturesFactory, main[R.ORGANIZATION_FEATURES]!, ({ base }) => ({\n icon: base.icon,\n layout: base.layout,\n views: [\n [Op.UPDATE, notAddressable()],\n [OrganizationFeatures_Operations.ENABLE_FEATURE, notAddressable({ iconOverride: ToggleRight })],\n [OrganizationFeatures_Operations.DISABLE_FEATURE, notAddressable({ iconOverride: ToggleLeft })],\n [OrganizationFeatures_Operations.RESET_FEATURES, notAddressable({ iconOverride: RotateCcw })],\n ],\n })),\n };\n}\n\nexport const organizationsMainPresets = buildOrganizationsMainPresets();\nexport const organizationsAdminPresets = buildOrganizationsAdminPresets(organizationsMainPresets);\n\nexport const organizationsMainOrgResourceUIBehavior = organizationsMainPresets[R.ORGANIZATIONS]!;\nexport const organizationsAdminOrgResourceUIBehavior = organizationsAdminPresets[R.ORGANIZATIONS]!;\nexport const organizationUnitsMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_UNITS]!;\nexport const organizationMembersMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_MEMBERS]!;\nexport const organizationProfilesMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_PROFILES]!;\nexport const organizationNotificationsMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_NOTIFICATIONS]!;\nexport const organizationPreferencesMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_PREFERENCES]!;\nexport const organizationFeaturesMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_FEATURES]!;\nexport const organizationFeaturesAdminResourceUIBehavior = organizationsAdminPresets[R.ORGANIZATION_FEATURES]!;\n"]}
1
+ {"version":3,"file":"organizations.resource-presets.js","sourceRoot":"","sources":["../../../../../src/config/resources/organizations.resource-presets.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,uBAAuB,EACvB,OAAO,EACP,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjI,OAAO,EACL,OAAO,EACP,cAAc,EACd,GAAG,EACH,WAAW,EACX,SAAS,EACT,IAAI,EACJ,UAAU,EACV,KAAK,EACL,SAAS,EACT,IAAI,EACJ,UAAU,EACV,WAAW,EACX,MAAM,EACN,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,IAAI,CAAC,EACrB,qBAAqB,IAAI,EAAE,EAC3B,kBAAkB,EAClB,wBAAwB,EACxB,2BAA2B,EAC3B,8BAA8B,EAC9B,8BAA8B,EAC9B,iCAAiC,EACjC,+BAA+B,EAC/B,uDAAuD,IAAI,UAAU,EACrE,2DAA2D,IAAI,cAAc,EAC7E,8DAA8D,IAAI,iBAAiB,EACnF,8DAA8D,IAAI,iBAAiB,EACnF,oEAAoE,IAAI,uBAAuB,EAC/F,kEAAkE,IAAI,qBAAqB,EAC3F,+DAA+D,IAAI,kBAAkB,EACrF,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,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CAAC,CAAC;AAElG,MAAM,CAAC,MAAM,sCAAsC,GAAG,wBAAwB,CAAC,CAAC,CAAC,aAAa,CAAE,CAAC;AACjG,MAAM,CAAC,MAAM,uCAAuC,GAAG,yBAAyB,CAAC,CAAC,CAAC,aAAa,CAAE,CAAC;AACnG,MAAM,CAAC,MAAM,uCAAuC,GAAG,wBAAwB,CAAC,CAAC,CAAC,kBAAkB,CAAE,CAAC;AACvG,MAAM,CAAC,MAAM,yCAAyC,GAAG,wBAAwB,CAAC,CAAC,CAAC,oBAAoB,CAAE,CAAC;AAC3G,MAAM,CAAC,MAAM,0CAA0C,GAAG,wBAAwB,CAAC,CAAC,CAAC,qBAAqB,CAAE,CAAC;AAC7G,MAAM,CAAC,MAAM,+CAA+C,GAAG,wBAAwB,CAAC,CAAC,CAAC,0BAA0B,CAAE,CAAC;AACvH,MAAM,CAAC,MAAM,6CAA6C,GAAG,wBAAwB,CAAC,CAAC,CAAC,wBAAwB,CAAE,CAAC;AACnH,MAAM,CAAC,MAAM,0CAA0C,GAAG,wBAAwB,CAAC,CAAC,CAAC,qBAAqB,CAAE,CAAC;AAC7G,MAAM,CAAC,MAAM,2CAA2C,GAAG,yBAAyB,CAAC,CAAC,CAAC,qBAAqB,CAAE,CAAC","sourcesContent":["import React from 'react';\nimport type { ResourceUIBehavior, ResourceOperationFrontendConfig } from '@wildo-ai/saas-frontend-lib';\nimport {\n resourceUIBehavior,\n resourceUIBehaviorFrom,\n StandardIconReference,\n ActionVisibility,\n} from '@wildo-ai/saas-frontend-lib';\nimport {\n DisplayField,\n DisplayLayout,\n FormField,\n FormLayout,\n ObjectScope,\n RelatedResourceSections,\n Section,\n SummaryLayout,\n SummaryFlow,\n SummaryMeta,\n SummaryTitle,\n} from '@wildo-ai/saas-frontend-lib';\nimport { BadgeSemanticVariant, DisplayChromeMode, EditChromeMode, EnumDisplayMode, SectionMode } from '@wildo-ai/zod-decorators';\nimport {\n Archive,\n ArchiveRestore,\n Ban,\n CirclePause,\n GitBranch,\n Move,\n Paintbrush,\n Power,\n RotateCcw,\n Send,\n ToggleLeft,\n ToggleRight,\n Trash2,\n UserPlus,\n} from 'lucide-react';\nimport {\n CoreResourceType as R,\n CoreResourceOperation as Op,\n OrganizationStatus,\n OrganizationMemberStatus,\n OrganizationUnit_Operations,\n OrganizationMembers_Operations,\n OrganizationProfile_Operations,\n Organization_Lifecycle_Operations,\n OrganizationFeatures_Operations,\n organizationResourceConfiguration_InitializationFactory as orgFactory,\n organizationUnitResourceConfiguration_InitializationFactory as orgUnitFactory,\n organizationMembersResourceConfiguration_InitializationFactory as orgMembersFactory,\n organizationProfileResourceConfiguration_InitializationFactory as orgProfileFactory,\n organizationNotificationsResourceConfiguration_InitializationFactory as orgNotificationsFactory,\n organizationPreferencesResourceConfiguration_InitializationFactory as orgPreferencesFactory,\n organizationFeaturesResourceConfiguration_InitializationFactory as orgFeaturesFactory,\n OrganizationSchema,\n OrganizationUnitSchema,\n OrganizationMemberSchema,\n OrganizationProfileSchema,\n OrganizationNotificationsSchema,\n OrganizationPreferencesSchema,\n ScopeFeaturesWithOverridesSchema,\n} from '@wildo-ai/saas-models';\nimport { addressable, notAddressable, apiOnly } from './resource.config.utils';\n\n/**\n * Organizations — Resource frontend presets\n *\n * Domain: ORGANIZATIONS, ORGANIZATION_UNITS, ORGANIZATION_MEMBERS,\n * ORGANIZATION_PROFILES,\n * ORGANIZATION_NOTIFICATIONS, ORGANIZATION_PREFERENCES, ORGANIZATION_FEATURES\n *\n * Enum badges use inline `values` and `showDescription: true` like `billing.resource-presets.tsx`.\n * Layout templates are implemented inline in each resource config.\n */\n\n/**\n * Org lifecycle-transition action config, shared by the main and admin org\n * presets (the same super-admin transitions surface in the main-app settings\n * hub today and will surface in the dedicated admin app later).\n *\n * ACTIVATE/SUSPEND are direct status transitions with no intermediate view, so\n * they are gated purely by their `enabledCondition` (org status). The\n * `WHEN_AVAILABLE` visibility makes each action **vanish** (rather than render\n * disabled) when its precondition is unmet: ACTIVATE shows only on a\n * suspended/expired org, SUSPEND only on an active/trial one. The icon overrides\n * give the custom ops a meaningful glyph instead of the action-bar fallback.\n */\nconst organizationLifecycleOpViews: Array<[Organization_Lifecycle_Operations, ResourceOperationFrontendConfig]> = [\n [Organization_Lifecycle_Operations.ACTIVATE, notAddressable({ iconOverride: Power, actionVisibility: ActionVisibility.WHEN_AVAILABLE })],\n [Organization_Lifecycle_Operations.SUSPEND, notAddressable({ iconOverride: CirclePause, actionVisibility: ActionVisibility.WHEN_AVAILABLE, hasDescription: true })],\n // Tenant teardown (WS-A). `request_deletion` is the tenant-facing delete — it REPLACED the\n // org-admin `DELETE` action, which no longer exists as an API door. `hasDescription` because the\n // confirmation copy has to say the thing a delete dialog normally cannot: this is reversible,\n // and until when.\n [Organization_Lifecycle_Operations.REQUEST_DELETION, notAddressable({ iconOverride: Trash2, actionVisibility: ActionVisibility.WHEN_AVAILABLE, hasDescription: true })],\n // Only ever available on a marked tenant, and only to a platform super-admin — the role gate on\n // the action bar hides it from everyone else, and `WHEN_AVAILABLE` hides it on a live tenant.\n [Organization_Lifecycle_Operations.RESTORE, notAddressable({ iconOverride: RotateCcw, actionVisibility: ActionVisibility.WHEN_AVAILABLE, hasDescription: true })],\n];\n\nexport function buildOrganizationsMainPresets(): Partial<ResourceUIBehavior> {\n return {\n [R.ORGANIZATIONS]: resourceUIBehavior(orgFactory, OrganizationSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.ORGANIZATION,\n layout: {\n refs: { sections: ['overview', 'lifecycle'] },\n // Settings-page chrome: shown in the Settings Hub (General). Read + edit render as\n // label-left / value-right rows; the list/summary stays compact.\n defaultChromeMode: { display: DisplayChromeMode.SETTINGS_ROW, summary: DisplayChromeMode.INLINE, edit: EditChromeMode.SETTINGS_ROW },\n display: () => (\n <DisplayLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <DisplayField name=\"name\" />\n <DisplayField name=\"slug\" />\n <DisplayField name=\"status\" />\n <DisplayField name=\"type\" />\n </Section>\n <Section name=\"lifecycle\">\n <DisplayField name=\"createdAt\" />\n </Section>\n {/*\n The organization's own children, named here rather than curated\n through per-edge relationship config.\n\n Placing them makes this template OWN the child region: automatic\n composition stands down, so the tenant's APPLICATION resources\n (todo lists, todos, tasks — org-scoped, and therefore owned children\n of every organization) stop appearing as tabs on an engine admin\n surface that only ever intended these three. That leak was the\n price of composing every owned child by default; naming them is\n what removes it, and it removes the ~16 `hidden: true` opt-outs\n that used to say the same thing edge by edge.\n\n Titles come from each child resource's own header label, so this\n adds no `layout.refs` entry and no specification slot.\n */}\n <RelatedResourceSections\n config={{ mode: SectionMode.TABS }}\n targets={[R.ORGANIZATION_UNITS, R.ORGANIZATION_MEMBERS, R.ORGANIZATION_FEATURES]}\n />\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout>\n <SummaryTitle name=\"name\" />\n <SummaryMeta>\n <DisplayField name=\"slug\" />\n <DisplayField name=\"status\" />\n <DisplayField name=\"type\" />\n <DisplayField name=\"createdAt\" />\n </SummaryMeta>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <FormField name=\"name\" />\n <FormField name=\"slug\" />\n <FormField name=\"status\" />\n <FormField name=\"type\" />\n </Section>\n </FormLayout>\n ),\n },\n fields: {\n status: schemaShape.status.enumUI({\n display: { displayMode: EnumDisplayMode.BADGE, showDescription: true },\n edit: { showDescription: true },\n values: {\n [OrganizationStatus.ACTIVE]: { color: BadgeSemanticVariant.SUCCESS },\n [OrganizationStatus.SUSPENDED]: { color: BadgeSemanticVariant.DESTRUCTIVE },\n [OrganizationStatus.TRIAL]: { color: BadgeSemanticVariant.INFO },\n [OrganizationStatus.TRIAL_EXPIRED]: { color: BadgeSemanticVariant.WARNING },\n [OrganizationStatus.CANCELLED]: { color: BadgeSemanticVariant.SECONDARY },\n [OrganizationStatus.DELETED]: { color: BadgeSemanticVariant.DESTRUCTIVE },\n },\n }),\n },\n getFrontendResourceLabel: ({ currentObject }) => currentObject.name,\n views: [\n // Organizations are created via the registration/signup flow, not a resource\n // create form — headless (no form view, created programmatically by the flow).\n [Op.CREATE, apiOnly()],\n [Op.READ, notAddressable()],\n [Op.UPDATE, notAddressable()],\n // NO `Op.DELETE` view. Since the WS-A teardown split the DEFAULT delete variant is a\n // route-less INTERNAL_CALL owned by the `organization-purge` batch, so there is no HTTP\n // door for this view to drive — rendering an action for it would produce a button that\n // cannot be invoked. The tenant-facing verb is `request_deletion`, below. The `admin`\n // purge-now variant keeps its view in the admin presets.\n ...organizationLifecycleOpViews,\n ],\n })),\n\n [R.ORGANIZATION_UNITS]: resourceUIBehavior(orgUnitFactory, OrganizationUnitSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: GitBranch,\n getFrontendResourceLabel: ({ currentObject }) => currentObject.name,\n layout: {\n refs: { sections: ['identity', 'hierarchy'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"identity\" appearance={SectionMode.CARD}>\n <DisplayField name=\"name\" />\n <DisplayField name=\"code\" />\n <DisplayField name=\"type\" />\n <DisplayField name=\"status\" />\n </Section>\n <Section name=\"hierarchy\">\n <DisplayField name=\"parentUnitId\" />\n <DisplayField name=\"path\" />\n <DisplayField name=\"inheritanceType\" />\n </Section>\n {/*\n Sub-units — a SELF-REFERENCING edge, so this nests: a unit shows its\n children, each of which is a unit that shows its own. Bounded by the\n framework embed-depth default and by the cycle guard keyed on\n `(edge, host row)`, which admits a genuine hierarchy over distinct\n rows while refusing a row that reappears on its own path.\n */}\n <RelatedResourceSections\n config={{ mode: SectionMode.TABS }}\n targets={[R.ORGANIZATION_UNITS]}\n />\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout>\n <SummaryTitle name=\"name\" />\n <SummaryMeta>\n <DisplayField name=\"type\" />\n <DisplayField name=\"status\" />\n </SummaryMeta>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"identity\" appearance={SectionMode.CARD}>\n <FormField name=\"name\" />\n <FormField name=\"code\" />\n <FormField name=\"type\" />\n <FormField name=\"status\" />\n </Section>\n <Section name=\"hierarchy\">\n <FormField name=\"parentUnitId\" />\n <FormField name=\"inheritanceType\" />\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.CREATE, notAddressable()],\n [Op.READ, notAddressable()],\n [Op.LIST, notAddressable()],\n [Op.SEARCH, notAddressable()],\n [Op.UPDATE, notAddressable()],\n [Op.DELETE, notAddressable()],\n [OrganizationUnit_Operations.MOVE, notAddressable({ iconOverride: Move })],\n [OrganizationUnit_Operations.ARCHIVE, notAddressable({ iconOverride: Archive })],\n [OrganizationUnit_Operations.RESTORE, notAddressable({ iconOverride: ArchiveRestore })],\n ],\n })),\n\n [R.ORGANIZATION_MEMBERS]: resourceUIBehavior(orgMembersFactory, OrganizationMemberSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.TEAM,\n layout: {\n refs: { sections: ['overview', 'membership'] },\n // Settings-page chrome (Settings Hub → Members): label-left / value-right rows.\n defaultChromeMode: { display: DisplayChromeMode.SETTINGS_ROW, summary: DisplayChromeMode.INLINE, edit: EditChromeMode.SETTINGS_ROW },\n display: () => (\n <DisplayLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <DisplayField name=\"userTitle\" />\n <DisplayField name=\"status\" />\n <DisplayField name=\"roles\" />\n </Section>\n {/* Unit assignments moved out of this row entirely (D-B5): they are now\n ORGANIZATION_UNIT_MEMBERS rows, surfaced through that resource rather than as an\n embedded field here. The section keeps its slot ref for `createdAt`. */}\n <Section name=\"membership\">\n <DisplayField name=\"createdAt\" />\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout>\n <SummaryTitle name=\"userTitle\" />\n <SummaryMeta>\n <DisplayField name=\"roles\" />\n <DisplayField name=\"status\" />\n </SummaryMeta>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n {/* Invite email — the admin's invitee address. Renders on the CREATE (invite)\n form only: `userEmail` is `.excludeFromUpdate()`, so it's absent from the\n UPDATE DTO and this FormField auto-skips on the edit form. The invite prefix\n find-or-creates the User by this email. Placed first — it's the primary input. */}\n <FormField name=\"userEmail\" />\n <FormField name=\"userTitle\" />\n <FormField name=\"status\" />\n <FormField name=\"roles\" />\n </Section>\n {/* No `membership` section on the edit form: its only field was\n `organizationUnitsMembership`, now the ORGANIZATION_UNIT_MEMBERS junction (D-B5).\n Assigning a member to a unit is a write against that resource, not a field edit\n here — which is also what makes it role-ceiling governed. */}\n </FormLayout>\n ),\n },\n fields: {\n status: schemaShape.status.enumUI({\n display: { displayMode: EnumDisplayMode.BADGE, showDescription: true },\n edit: { showDescription: true },\n values: {\n [OrganizationMemberStatus.INVITED]: { color: BadgeSemanticVariant.INFO },\n [OrganizationMemberStatus.ACTIVE]: { color: BadgeSemanticVariant.SUCCESS },\n [OrganizationMemberStatus.INACTIVE]: { color: BadgeSemanticVariant.SECONDARY },\n [OrganizationMemberStatus.SUSPENDED]: { color: BadgeSemanticVariant.DESTRUCTIVE },\n },\n }),\n },\n // A membership has no inherent name — its identity is the related user.\n // `instanceLabel` is a server-resolved virtual field that forwards the\n // user's name live from `USER_PROFILES` (see `forwardedLabel` on\n // `OrganizationMemberSchema`), so the label is a plain, synchronous field\n // ref — never stale, tenant-safe, no async frontend resolver. `userTitle`\n // is the distinct authored job title and stays its own FIELD.\n getFrontendResourceLabel: ['instanceLabel'],\n views: [\n [Op.COUNT, notAddressable()],\n // CREATE is the org-admin INVITE entry point (it mints the invitee's pending\n // membership row directly on this junction — invitations are no longer a separate\n // resource). Surfaced as an EMBEDDED action (\"Invite member\", UserPlus): the\n // collection toolbar shows the button, which opens the invite form overlay (email +\n // roles + optional title/units). NOT `apiOnly()` — that hid it entirely, leaving no\n // way to invite from the UI.\n [Op.CREATE, notAddressable({ iconOverride: UserPlus })],\n [Op.READ, notAddressable()],\n [Op.LIST, addressable()],\n [Op.SEARCH, notAddressable()],\n [Op.UPDATE, notAddressable()],\n [Op.DELETE, notAddressable()],\n // Role changes ride `UPDATE` — the PROMOTE/DEMOTE verbs were removed on 2026-08-01\n // (routed but never implemented, so they answered 200 having changed nothing).\n [OrganizationMembers_Operations.SUSPEND, notAddressable({ iconOverride: CirclePause })],\n [OrganizationMembers_Operations.REACTIVATE, notAddressable({ iconOverride: Power })],\n // Invitation management on a still-INVITED row (invitations live in this list, not a\n // separate section): REVOKE cancels the pending invite (deletes the row + revokes its\n // accept token), RESEND re-issues the accept link. `WHEN_AVAILABLE` hides (not disables)\n // both on non-INVITED rows — they vanish on ACTIVE members rather than sit greyed out —\n // driven by the ops' `enabledCondition: status === INVITED` (resources-config). Surfaced\n // here so the spec's frontend `views` matches the merged config (companion validator).\n [OrganizationMembers_Operations.REVOKE, notAddressable({ iconOverride: Ban, actionVisibility: ActionVisibility.WHEN_AVAILABLE })],\n [OrganizationMembers_Operations.RESEND, notAddressable({ iconOverride: Send, actionVisibility: ActionVisibility.WHEN_AVAILABLE })],\n ],\n })),\n\n [R.ORGANIZATION_PROFILES]: resourceUIBehavior(orgProfileFactory, OrganizationProfileSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.PROFILE,\n getFrontendResourceLabel: ({ currentObject }) => currentObject.displayName || `Organization ${currentObject.organizationId}`,\n layout: {\n refs: { sections: ['company', 'classification', 'location', 'branding', 'social'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"company\" appearance={SectionMode.CARD}>\n <DisplayField name=\"displayName\" />\n <DisplayField name=\"domain\" />\n <DisplayField name=\"website\" />\n <DisplayField name=\"phone\" />\n <DisplayField name=\"description\" />\n </Section>\n <Section name=\"classification\">\n <DisplayField name=\"industry\" />\n <DisplayField name=\"size\" />\n <DisplayField name=\"founded\" />\n <DisplayField name=\"timezone\" />\n </Section>\n <Section name=\"location\">\n <DisplayField name=\"address\" />\n </Section>\n <Section name=\"branding\">\n <ObjectScope name=\"branding\">\n <DisplayField name=\"logo\" />\n <DisplayField name=\"favicon\" />\n <DisplayField name=\"primaryColor\" />\n <DisplayField name=\"secondaryColor\" />\n <DisplayField name=\"customDomain\" />\n </ObjectScope>\n </Section>\n <Section name=\"social\">\n <ObjectScope name=\"socialLinks\">\n <DisplayField name=\"linkedin\" />\n <DisplayField name=\"twitter\" />\n <DisplayField name=\"facebook\" />\n <DisplayField name=\"github\" />\n </ObjectScope>\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout>\n <DisplayField name=\"displayName\" />\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"company\" appearance={SectionMode.CARD}>\n <FormField name=\"displayName\" />\n <FormField name=\"domain\" />\n <FormField name=\"website\" />\n <FormField name=\"phone\" />\n <FormField name=\"description\" />\n </Section>\n <Section name=\"classification\">\n <FormField name=\"industry\" />\n <FormField name=\"size\" />\n <FormField name=\"founded\" />\n <FormField name=\"timezone\" />\n </Section>\n <Section name=\"location\">\n <FormField name=\"address\" />\n </Section>\n <Section name=\"branding\">\n <ObjectScope name=\"branding\">\n <FormField name=\"logo\" />\n <FormField name=\"favicon\" />\n <FormField name=\"primaryColor\" />\n <FormField name=\"secondaryColor\" />\n <FormField name=\"customDomain\" />\n </ObjectScope>\n </Section>\n <Section name=\"social\">\n <ObjectScope name=\"socialLinks\">\n <FormField name=\"linkedin\" />\n <FormField name=\"twitter\" />\n <FormField name=\"facebook\" />\n <FormField name=\"github\" />\n </ObjectScope>\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.READ, notAddressable()],\n [Op.UPDATE, notAddressable()],\n [OrganizationProfile_Operations.UPDATE_BRANDING, notAddressable({ iconOverride: Paintbrush })],\n ],\n })),\n\n [R.ORGANIZATION_NOTIFICATIONS]: resourceUIBehavior(orgNotificationsFactory, OrganizationNotificationsSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.NOTIFICATION,\n layout: {\n refs: { sections: ['addresses', 'categories'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"addresses\" appearance={SectionMode.CARD}>\n <ObjectScope name=\"emailNotifications\">\n <DisplayField name=\"defaultEmailAddress\" />\n <DisplayField name=\"billingAddress\" />\n <DisplayField name=\"securityAddress\" />\n <DisplayField name=\"administrativeAddress\" />\n <DisplayField name=\"usersManagementAddress\" />\n </ObjectScope>\n </Section>\n <Section name=\"categories\">\n <ObjectScope name=\"emailNotifications\">\n <DisplayField name=\"billing\" />\n <DisplayField name=\"administrative\" />\n <DisplayField name=\"security\" />\n <DisplayField name=\"usersManagement\" />\n </ObjectScope>\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout flow={SummaryFlow.ROW}>\n <ObjectScope name=\"emailNotifications\">\n <DisplayField name=\"defaultEmailAddress\" />\n </ObjectScope>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"addresses\" appearance={SectionMode.CARD}>\n <ObjectScope name=\"emailNotifications\">\n <FormField name=\"defaultEmailAddress\" />\n <FormField name=\"billingAddress\" />\n <FormField name=\"securityAddress\" />\n <FormField name=\"administrativeAddress\" />\n <FormField name=\"usersManagementAddress\" />\n </ObjectScope>\n </Section>\n <Section name=\"categories\">\n <ObjectScope name=\"emailNotifications\">\n <FormField name=\"billing\" />\n <FormField name=\"administrative\" />\n <FormField name=\"security\" />\n <FormField name=\"usersManagement\" />\n </ObjectScope>\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.READ, notAddressable()],\n [Op.UPDATE, notAddressable()],\n ],\n })),\n\n [R.ORGANIZATION_PREFERENCES]: resourceUIBehavior(orgPreferencesFactory, OrganizationPreferencesSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: StandardIconReference.SETTINGS,\n layout: {\n refs: { sections: ['regional', 'language', 'overrides'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"regional\" appearance={SectionMode.CARD}>\n <DisplayField name=\"timezone\" />\n <DisplayField name=\"locale\" />\n <DisplayField name=\"dateFormat\" />\n <DisplayField name=\"timeFormat\" />\n </Section>\n <Section name=\"language\">\n <ObjectScope name=\"languagePreferences\">\n <DisplayField name=\"primaryLanguage\" />\n <DisplayField name=\"supportedLanguages\" />\n <DisplayField name=\"allowUserOverride\" />\n <DisplayField name=\"enforceForAllMembers\" />\n </ObjectScope>\n </Section>\n <Section name=\"overrides\">\n <DisplayField name=\"allowMemberEmailOverride\" />\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout flow={SummaryFlow.ROW}>\n <DisplayField name=\"timezone\" />\n <DisplayField name=\"locale\" />\n <ObjectScope name=\"languagePreferences\">\n <DisplayField name=\"primaryLanguage\" />\n </ObjectScope>\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"regional\" appearance={SectionMode.CARD}>\n <FormField name=\"timezone\" />\n <FormField name=\"locale\" />\n <FormField name=\"dateFormat\" />\n <FormField name=\"timeFormat\" />\n </Section>\n <Section name=\"language\">\n <ObjectScope name=\"languagePreferences\">\n <FormField name=\"primaryLanguage\" />\n <FormField name=\"supportedLanguages\" />\n <FormField name=\"allowUserOverride\" />\n <FormField name=\"enforceForAllMembers\" />\n </ObjectScope>\n </Section>\n <Section name=\"overrides\">\n <FormField name=\"allowMemberEmailOverride\" />\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.READ, notAddressable()],\n [Op.UPDATE, notAddressable()],\n ],\n })),\n\n [R.ORGANIZATION_FEATURES]: resourceUIBehavior(orgFeaturesFactory, ScopeFeaturesWithOverridesSchema, ({ schema, schemaShape, opsVariantResolver }) => ({\n layout: {\n refs: { sections: ['overview', 'overrides'] },\n display: () => (\n <DisplayLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <DisplayField name=\"features\" />\n <DisplayField name=\"limits\" />\n </Section>\n <Section name=\"overrides\">\n <ObjectScope name=\"manualOverrides\">\n <DisplayField name=\"addedFeatures\" />\n <DisplayField name=\"removedFeatures\" />\n <DisplayField name=\"limitOverrides\" />\n </ObjectScope>\n </Section>\n </DisplayLayout>\n ),\n summary: () => (\n <SummaryLayout>\n <DisplayField name=\"features\" />\n <DisplayField name=\"limits\" />\n </SummaryLayout>\n ),\n edit: () => (\n <FormLayout>\n <Section name=\"overview\" appearance={SectionMode.CARD}>\n <FormField name=\"features\" />\n <FormField name=\"limits\" />\n </Section>\n <Section name=\"overrides\">\n <ObjectScope name=\"manualOverrides\">\n <FormField name=\"addedFeatures\" />\n <FormField name=\"removedFeatures\" />\n <FormField name=\"limitOverrides\" />\n </ObjectScope>\n </Section>\n </FormLayout>\n ),\n },\n views: [\n [Op.READ, notAddressable()],\n [Op.SEARCH, notAddressable()],\n // Org feature flags are toggled programmatically, not via a generic edit form —\n // UPDATE is headless.\n [Op.UPDATE, apiOnly()],\n ],\n })),\n };\n}\n\nexport function buildOrganizationsAdminPresets(main: Partial<ResourceUIBehavior>): Partial<ResourceUIBehavior> {\n return {\n [R.ORGANIZATIONS]: resourceUIBehaviorFrom(orgFactory, main[R.ORGANIZATIONS]!, ({ base, opsVariantResolver }) => ({\n icon: base.icon,\n layout: base.layout,\n fields: base.fields,\n views: [\n [opsVariantResolver(Op.READ, 'admin'), notAddressable()],\n [Op.LIST, notAddressable()],\n [Op.SEARCH, notAddressable()],\n [opsVariantResolver(Op.CREATE, 'admin'), addressable()],\n [opsVariantResolver(Op.UPDATE, 'admin'), notAddressable()],\n [opsVariantResolver(Op.DELETE, 'admin'), notAddressable()],\n ...organizationLifecycleOpViews,\n ],\n })),\n [R.ORGANIZATION_FEATURES]: resourceUIBehaviorFrom(orgFeaturesFactory, main[R.ORGANIZATION_FEATURES]!, ({ base }) => ({\n icon: base.icon,\n layout: base.layout,\n views: [\n [Op.UPDATE, notAddressable()],\n [OrganizationFeatures_Operations.ENABLE_FEATURE, notAddressable({ iconOverride: ToggleRight })],\n [OrganizationFeatures_Operations.DISABLE_FEATURE, notAddressable({ iconOverride: ToggleLeft })],\n [OrganizationFeatures_Operations.RESET_FEATURES, notAddressable({ iconOverride: RotateCcw })],\n ],\n })),\n };\n}\n\nexport const organizationsMainPresets = buildOrganizationsMainPresets();\nexport const organizationsAdminPresets = buildOrganizationsAdminPresets(organizationsMainPresets);\n\nexport const organizationsMainOrgResourceUIBehavior = organizationsMainPresets[R.ORGANIZATIONS]!;\nexport const organizationsAdminOrgResourceUIBehavior = organizationsAdminPresets[R.ORGANIZATIONS]!;\nexport const organizationUnitsMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_UNITS]!;\nexport const organizationMembersMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_MEMBERS]!;\nexport const organizationProfilesMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_PROFILES]!;\nexport const organizationNotificationsMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_NOTIFICATIONS]!;\nexport const organizationPreferencesMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_PREFERENCES]!;\nexport const organizationFeaturesMainResourceUIBehavior = organizationsMainPresets[R.ORGANIZATION_FEATURES]!;\nexport const organizationFeaturesAdminResourceUIBehavior = organizationsAdminPresets[R.ORGANIZATION_FEATURES]!;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"security.resource-presets.d.ts","sourceRoot":"","sources":["../../../../../src/config/resources/security.resource-presets.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AA8dtE,wBAAgB,wBAAwB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAwXtE;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA4MxG;AAED,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,6BAAiD,CAAC;AAEnF,eAAO,MAAM,gCAAgC,gGAAuC,CAAC;AACrF,eAAO,MAAM,iCAAiC,gGAAwC,CAAC;AACvF,eAAO,MAAM,+BAA+B,gGAAqC,CAAC"}
1
+ {"version":3,"file":"security.resource-presets.d.ts","sourceRoot":"","sources":["../../../../../src/config/resources/security.resource-presets.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAudtE,wBAAgB,wBAAwB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAwXtE;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA4MxG;AAED,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,6BAAiD,CAAC;AAEnF,eAAO,MAAM,gCAAgC,gGAAuC,CAAC;AACrF,eAAO,MAAM,iCAAiC,gGAAwC,CAAC;AACvF,eAAO,MAAM,+BAA+B,gGAAqC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { resourceUIBehavior, resourceUIBehaviorFrom, polymorphicResourceUIBehavior, polymorphicResourceUIBehaviorFrom, StandardIconReference, ResourceOperationActionScope, } from '@wildo-ai/saas-frontend-lib';
3
- import { DisplayField, DisplayLayout, FormField, FormLayout, ObjectScope, Section, SummaryLayout, useFormTemplateContext, useDisplayTemplateContext, ResourceLayoutPreset_Create_SamlWizard, ResourceLayoutPreset_Read_SsoSaml, } from '@wildo-ai/saas-frontend-lib';
3
+ import { DisplayField, DisplayLayout, FormField, FormLayout, ObjectScope, Section, SummaryLayout, useFormTemplateContext, useDisplayTemplateContext, ResourceLayoutPreset_Create_SamlWizard, ResourceLayoutPreset_Read_SsoSaml, SummaryFlow, SummaryMeta, SummaryTitle, } from '@wildo-ai/saas-frontend-lib';
4
4
  import { BadgeSemanticVariant, BooleanDisplayMode, BooleanEditMode, BooleanLabellingValue, SectionMode, DisplayChromeMode, EditChromeMode, EnumDisplayMode, ShowWhenOperator, StringDisplayMode, } from '@wildo-ai/zod-decorators';
5
5
  import { Key, ShieldCheck, Fingerprint, UserCog, KeyRound, Radio, AlertTriangle, RotateCw, RefreshCw, PowerOff, Power, CalendarPlus, ChartColumn, Download, Trash2, PlugZap, Search, ShieldX, } from 'lucide-react';
6
6
  import { CoreResourceType as R, CoreResourceOperation as Op, ApiKeyStatus, OrgApiKeys_Operations, AuditLogs_Operations, SiemDeliveryDlq_Operations, SsoConnection_Operations, ScimTokens_Operations, orgApiKeysResourceConfiguration_InitializationFactory as orgApiKeysFactory, auditLogsResourceConfiguration_InitializationFactory as auditLogsFactory, siemExportConfigPolymorphicFactories, siemDeliveryDlqPolymorphicFactories, ssoConfigPolymorphicFactories, ssoConnectionPolymorphicFactories, scimProvisioningConfigPolymorphicFactories, scimTokensPolymorphicFactories, ApiKeyOrganizationSchema, AuditableEvent_BaseSchema, SiemExportConfigBaseSchema, SiemDeliveryDlqBaseSchema, SiemDeliveryDlqStatus, SsoConfigBaseSchema, SsoConnectionBaseSchema, ScimProvisioningConfigBaseSchema, ScimTokenBaseSchema, SsoProtocol, SIEMAuthMethod, } from '@wildo-ai/saas-models';
@@ -48,46 +48,46 @@ function OrgApiKeyEditTemplate() {
48
48
  return (_jsxs(FormLayout, { children: [_jsxs(Section, { name: "overview", appearance: SectionMode.CARD, children: [_jsx(FormField, { name: "name" }), _jsx(FormField, { name: "status" }), _jsx(FormField, { name: "expiresAt" })] }), _jsxs(Section, { name: "access", children: [_jsx(FormField, { name: "roles" }), _jsx(FormField, { name: "description" })] })] }));
49
49
  }
50
50
  function OrgApiKeySummaryTemplate() {
51
- return (_jsxs(SummaryLayout, { className: "flex flex-col gap-2 text-sm", children: [_jsx("div", { className: "font-medium leading-tight", children: _jsx(DisplayField, { name: "name", hideLabel: true }) }), _jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [_jsx(DisplayField, { name: "scope" }), _jsx(DisplayField, { name: "status" }), _jsx(DisplayField, { name: "keyPrefix" })] })] }));
51
+ return (_jsxs(SummaryLayout, { children: [_jsx(SummaryTitle, { name: "name" }), _jsxs(SummaryMeta, { children: [_jsx(DisplayField, { name: "scope" }), _jsx(DisplayField, { name: "status" }), _jsx(DisplayField, { name: "keyPrefix" })] })] }));
52
52
  }
53
53
  function AuditLogDisplayTemplate() {
54
54
  return (_jsxs(DisplayLayout, { children: [_jsxs(Section, { name: "overview", appearance: SectionMode.CARD, children: [_jsx(DisplayField, { name: "eventType" }), _jsx(DisplayField, { name: "eventCategory" }), _jsx(DisplayField, { name: "severity" }), _jsx(DisplayField, { name: "riskLevel" })] }), _jsxs(Section, { name: "actors", children: [_jsx(DisplayField, { name: "userId" }), _jsx(DisplayField, { name: "organizationId" })] }), _jsxs(Section, { name: "payload", children: [_jsx(DisplayField, { name: "eventData" }), _jsx(DisplayField, { name: "createdAt" })] })] }));
55
55
  }
56
56
  function AuditLogSummaryTemplate() {
57
- return (_jsxs(SummaryLayout, { className: "flex flex-col gap-2 text-sm", children: [_jsx("div", { className: "font-medium leading-tight", children: _jsx(DisplayField, { name: "eventType", hideLabel: true }) }), _jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [_jsx(DisplayField, { name: "eventCategory" }), _jsx(DisplayField, { name: "severity" }), _jsx(DisplayField, { name: "createdAt" })] })] }));
57
+ return (_jsxs(SummaryLayout, { children: [_jsx(SummaryTitle, { name: "eventType" }), _jsxs(SummaryMeta, { children: [_jsx(DisplayField, { name: "eventCategory" }), _jsx(DisplayField, { name: "severity" }), _jsx(DisplayField, { name: "createdAt" })] })] }));
58
58
  }
59
59
  function SiemExportSummaryTemplate() {
60
- return (_jsx(SummaryLayout, { className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-sm", children: _jsx(DisplayField, { name: "enabled" }) }));
60
+ return (_jsx(SummaryLayout, { flow: SummaryFlow.ROW, children: _jsx(DisplayField, { name: "enabled" }) }));
61
61
  }
62
62
  function SiemDlqDisplayTemplate() {
63
63
  return (_jsxs(DisplayLayout, { children: [_jsxs(Section, { name: "overview", appearance: SectionMode.CARD, children: [_jsx(DisplayField, { name: "status" }), _jsx(DisplayField, { name: "failureReason" })] }), _jsxs(Section, { name: "delivery", children: [_jsx(DisplayField, { name: "eventId" }), _jsx(DisplayField, { name: "failureCount" }), _jsx(DisplayField, { name: "lastAttemptAt" }), _jsx(DisplayField, { name: "nextRetryAt" })] }), _jsx(Section, { name: "payload", children: _jsx(DisplayField, { name: "eventPayload" }) })] }));
64
64
  }
65
65
  function SiemDlqSummaryTemplate() {
66
- return (_jsxs(SummaryLayout, { className: "flex flex-col gap-2 text-sm", children: [_jsx("div", { className: "font-medium leading-tight", children: _jsx(DisplayField, { name: "failureReason", hideLabel: true }) }), _jsx("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: _jsx(DisplayField, { name: "status" }) })] }));
66
+ return (_jsxs(SummaryLayout, { children: [_jsx(SummaryTitle, { name: "failureReason" }), _jsx(SummaryMeta, { children: _jsx(DisplayField, { name: "status" }) })] }));
67
67
  }
68
68
  function SsoConfigDisplayTemplate() {
69
69
  return (_jsxs(DisplayLayout, { children: [_jsx(Section, { name: "enforcement", appearance: SectionMode.CARD, children: _jsxs(ObjectScope, { name: "enforcement", children: [_jsx(DisplayField, { name: "requireSSO" }), _jsx(DisplayField, { name: "allowPasswordFallback" }), _jsx(DisplayField, { name: "enforceForAdmins" }), _jsx(DisplayField, { name: "graceLoginAttempts" })] }) }), _jsx(Section, { name: "domains", children: _jsxs(ObjectScope, { name: "domains", children: [_jsx(DisplayField, { name: "verifiedDomains" }), _jsx(DisplayField, { name: "ssoEnabledDomains" }), _jsx(DisplayField, { name: "domainHinting" }), _jsx(DisplayField, { name: "allowExternalDomains" }), _jsx(DisplayField, { name: "domainVerificationStatus" })] }) }), _jsx(Section, { name: "provisioning", children: _jsxs(ObjectScope, { name: "provisioning", children: [_jsx(DisplayField, { name: "autoCreateUsers" }), _jsx(DisplayField, { name: "autoUpdateUsers" }), _jsx(DisplayField, { name: "autoDeactivateUsers" }), _jsx(DisplayField, { name: "defaultRole" }), _jsx(DisplayField, { name: "requiredAttributes" }), _jsx(DisplayField, { name: "syncFrequencyHours" })] }) }), _jsx(Section, { name: "session", children: _jsxs(ObjectScope, { name: "sessionSettings", children: [_jsx(DisplayField, { name: "ssoSessionDurationMinutes" }), _jsx(DisplayField, { name: "requireReauthForSensitive" }), _jsx(DisplayField, { name: "singleLogoutEnabled" }), _jsx(DisplayField, { name: "maxConcurrentSessions" })] }) }), _jsx(Section, { name: "audit", children: _jsxs(ObjectScope, { name: "auditConfig", children: [_jsx(DisplayField, { name: "logAllSSOEvents" }), _jsx(DisplayField, { name: "logProviderSwitching" }), _jsx(DisplayField, { name: "logRoleMapping" }), _jsx(DisplayField, { name: "complianceReporting" }), _jsx(DisplayField, { name: "retentionDays" })] }) }), _jsx(Section, { name: "emergency", children: _jsxs(ObjectScope, { name: "emergencyAccess", children: [_jsx(DisplayField, { name: "enabled" }), _jsx(DisplayField, { name: "breakGlassAccounts" }), _jsx(DisplayField, { name: "requireApproval" }), _jsx(DisplayField, { name: "maxDurationHours" }), _jsx(DisplayField, { name: "auditLevel" })] }) }), _jsxs(Section, { name: "oauth", children: [_jsxs(ObjectScope, { name: "oauth2ProviderRestrictions", children: [_jsx(DisplayField, { name: "allowedProviders" }), _jsx(DisplayField, { name: "blockedProviders" }), _jsx(DisplayField, { name: "requireEnterpriseSSOOnly" })] }), _jsx(DisplayField, { name: "socialCredentialOverrides" })] })] }));
70
70
  }
71
71
  function SsoConfigSummaryTemplate() {
72
- return (_jsx(SummaryLayout, { className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-sm", children: _jsx(ObjectScope, { name: "enforcement", children: _jsx(DisplayField, { name: "requireSSO" }) }) }));
72
+ return (_jsx(SummaryLayout, { flow: SummaryFlow.ROW, children: _jsx(ObjectScope, { name: "enforcement", children: _jsx(DisplayField, { name: "requireSSO" }) }) }));
73
73
  }
74
74
  function SsoConnectionDisplayTemplate() {
75
75
  return (_jsxs(DisplayLayout, { children: [_jsxs(Section, { name: "overview", appearance: SectionMode.CARD, children: [_jsx(DisplayField, { name: "displayName" }), _jsx(DisplayField, { name: "protocol" }), _jsx(DisplayField, { name: "enabled" }), _jsx(DisplayField, { name: "isDefault" }), _jsx(DisplayField, { name: "externalProviderId" })] }), _jsx(Section, { name: "oidc", children: _jsxs(ObjectScope, { name: "oidc", children: [_jsx(DisplayField, { name: "templateMode" }), _jsx(DisplayField, { name: "discoveryUrl" }), _jsx(DisplayField, { name: "issuer" }), _jsx(DisplayField, { name: "authorizationEndpoint" }), _jsx(DisplayField, { name: "tokenEndpoint" }), _jsx(DisplayField, { name: "userInfoEndpoint" }), _jsx(DisplayField, { name: "jwksUri" }), _jsx(DisplayField, { name: "endSessionEndpoint" }), _jsx(DisplayField, { name: "clientId" }), _jsx(DisplayField, { name: "scopes" }), _jsx(DisplayField, { name: "responseType" }), _jsx(DisplayField, { name: "responseMode" }), _jsx(DisplayField, { name: "validateIssuer" }), _jsx(DisplayField, { name: "validateAudience" }), _jsx(DisplayField, { name: "pkceEnabled" }), _jsx(DisplayField, { name: "pkceMethod" }), _jsx(DisplayField, { name: "prompt" }), _jsx(DisplayField, { name: "claimsMapping" }), _jsx(DisplayField, { name: "auditSettings" })] }) }), _jsx(Section, { name: "saml", children: _jsxs(ObjectScope, { name: "saml", children: [_jsx(DisplayField, { name: "entityId" }), _jsx(DisplayField, { name: "ssoUrl" }), _jsx(DisplayField, { name: "sloUrl" }), _jsx(DisplayField, { name: "x509CertificatePem" }), _jsx(DisplayField, { name: "attributeMapping" }), _jsx(DisplayField, { name: "signRequests" }), _jsx(DisplayField, { name: "wantAssertionsSigned" }), _jsx(DisplayField, { name: "allowedClockDrift" }), _jsx(DisplayField, { name: "forceAuthn" }), _jsx(DisplayField, { name: "maxAuthAge" }), _jsx(DisplayField, { name: "nameIdFormat" }), _jsx(DisplayField, { name: "allowIdpInitiated" }), _jsx(DisplayField, { name: "auditSettings" })] }) }), _jsxs(Section, { name: "provisioning", children: [_jsx(DisplayField, { name: "autoCreateUsers" }), _jsx(DisplayField, { name: "autoVerifyEmail" }), _jsx(DisplayField, { name: "bypassAppMFA" }), _jsx(DisplayField, { name: "defaultRole" }), _jsx(DisplayField, { name: "allowedDomains" }), _jsx(DisplayField, { name: "roleMapping" }), _jsx(DisplayField, { name: "groupMapping" })] })] }));
76
76
  }
77
77
  function SsoConnectionSummaryTemplate() {
78
- return (_jsxs(SummaryLayout, { className: "flex flex-col gap-2 text-sm", children: [_jsx("div", { className: "font-medium leading-tight", children: _jsx(DisplayField, { name: "displayName", hideLabel: true }) }), _jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [_jsx(DisplayField, { name: "protocol" }), _jsx(DisplayField, { name: "enabled" })] })] }));
78
+ return (_jsxs(SummaryLayout, { children: [_jsx(SummaryTitle, { name: "displayName" }), _jsxs(SummaryMeta, { children: [_jsx(DisplayField, { name: "protocol" }), _jsx(DisplayField, { name: "enabled" })] })] }));
79
79
  }
80
80
  function ScimProvisioningDisplayTemplate() {
81
81
  return (_jsxs(DisplayLayout, { children: [_jsxs(Section, { name: "overview", appearance: SectionMode.CARD, children: [_jsx(DisplayField, { name: "autoCreateUsers" }), _jsx(DisplayField, { name: "autoVerifyEmail" }), _jsx(DisplayField, { name: "autoDeactivateUsers" }), _jsx(DisplayField, { name: "defaultRole" })] }), _jsx(Section, { name: "mapping", children: _jsx(DisplayField, { name: "attributeMapping" }) }), _jsxs(Section, { name: "lifecycle", children: [_jsx(DisplayField, { name: "createdAt" }), _jsx(DisplayField, { name: "updatedAt" })] })] }));
82
82
  }
83
83
  function ScimProvisioningSummaryTemplate() {
84
- return (_jsx(SummaryLayout, { className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-sm", children: _jsx(DisplayField, { name: "autoCreateUsers" }) }));
84
+ return (_jsx(SummaryLayout, { flow: SummaryFlow.ROW, children: _jsx(DisplayField, { name: "autoCreateUsers" }) }));
85
85
  }
86
86
  function ScimTokenDisplayTemplate() {
87
87
  return (_jsxs(DisplayLayout, { children: [_jsxs(Section, { name: "overview", appearance: SectionMode.CARD, children: [_jsx(DisplayField, { name: "displayName" }), _jsx(DisplayField, { name: "isActive" }), _jsx(DisplayField, { name: "createdByUserId" })] }), _jsxs(Section, { name: "lifecycle", children: [_jsx(DisplayField, { name: "lastUsedAt" }), _jsx(DisplayField, { name: "expiresAt" }), _jsx(DisplayField, { name: "createdAt" })] })] }));
88
88
  }
89
89
  function ScimTokenSummaryTemplate() {
90
- return (_jsxs(SummaryLayout, { className: "flex flex-col gap-2 text-sm", children: [_jsx("div", { className: "font-medium leading-tight", children: _jsx(DisplayField, { name: "displayName", hideLabel: true }) }), _jsx("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: _jsx(DisplayField, { name: "isActive" }) })] }));
90
+ return (_jsxs(SummaryLayout, { children: [_jsx(SummaryTitle, { name: "displayName" }), _jsx(SummaryMeta, { children: _jsx(DisplayField, { name: "isActive" }) })] }));
91
91
  }
92
92
  export function buildSecurityMainPresets() {
93
93
  return {