@thunderid/vue 1.7.0 → 1.8.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/cjs/index.cjs +425 -58
- package/dist/components/admin/AgentDetails/AgentDetails.d.ts.map +1 -1
- package/dist/components/admin/AgentDetails/BaseAgentDetails.d.ts +6 -1
- package/dist/components/admin/AgentDetails/BaseAgentDetails.d.ts.map +1 -1
- package/dist/components/admin/ApplicationDetails/ApplicationDetails.d.ts.map +1 -1
- package/dist/components/admin/ApplicationDetails/BaseApplicationDetails.d.ts +6 -1
- package/dist/components/admin/ApplicationDetails/BaseApplicationDetails.d.ts.map +1 -1
- package/dist/components/admin/GroupMembers/GroupMembers.d.ts.map +1 -1
- package/dist/components/admin/RoleAssignments/RoleAssignments.d.ts.map +1 -1
- package/dist/components/admin/UserDetails/BaseUserDetails.d.ts +9 -1
- package/dist/components/admin/UserDetails/BaseUserDetails.d.ts.map +1 -1
- package/dist/components/admin/UserDetails/UserDetails.d.ts.map +1 -1
- package/dist/components/admin/shared/AccessStatusBadge.d.ts +8 -0
- package/dist/components/admin/shared/AccessStatusBadge.d.ts.map +1 -0
- package/dist/components/admin/shared/AccountLifecycleButtons.d.ts +9 -0
- package/dist/components/admin/shared/AccountLifecycleButtons.d.ts.map +1 -0
- package/dist/components/auth/flow/AuthOptionFactoryCore.d.ts.map +1 -1
- package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
- package/dist/components/primitives/TextField/TextField.d.ts.map +1 -1
- package/dist/composables/management/useAccountLifecycle.d.ts +56 -0
- package/dist/composables/management/useAccountLifecycle.d.ts.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +409 -60
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AuthFlowSelectConstants, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SPAUtils, SelectConstants, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createDesignTheme, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createPackageComponentLogger, createPackageLogger, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getTokenPermissions, getTokenPermissions as getTokenPermissions$1, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isApplicationSubmissionValid, isEmojiUri, isEmpty, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAdministrationFlow, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix } from "@thunderid/browser";
|
|
1
|
+
import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AuthFlowSelectConstants, CONSENT_INVALID_KEY_PREFIX, CONSENT_MODIFIED_KEY_PREFIX, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SPAUtils, SelectConstants, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createDesignTheme, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createPackageComponentLogger, createPackageLogger, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getTokenPermissions, getTokenPermissions as getTokenPermissions$1, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isApplicationSubmissionValid, isEmojiUri, isEmpty, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveAdministrationFlows as resolveAdministrationFlows$1, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAccountLifecycleAction as runAccountLifecycleAction$1, runAdministrationFlow, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix } from "@thunderid/browser";
|
|
2
2
|
import { Comment, Fragment, Teleport, computed, defineComponent, getCurrentInstance, getCurrentScope, h, inject, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, toValue, useId, watch } from "vue";
|
|
3
3
|
import DOMPurify from "dompurify";
|
|
4
4
|
|
|
@@ -4978,6 +4978,10 @@ const TextField = defineComponent({
|
|
|
4978
4978
|
default: void 0,
|
|
4979
4979
|
type: String
|
|
4980
4980
|
},
|
|
4981
|
+
maxLength: {
|
|
4982
|
+
default: void 0,
|
|
4983
|
+
type: Number
|
|
4984
|
+
},
|
|
4981
4985
|
modelValue: {
|
|
4982
4986
|
default: "",
|
|
4983
4987
|
type: String
|
|
@@ -5026,6 +5030,7 @@ const TextField = defineComponent({
|
|
|
5026
5030
|
"data-testid": attrs["data-testid"],
|
|
5027
5031
|
disabled: props.disabled,
|
|
5028
5032
|
id: props.id ?? props.name,
|
|
5033
|
+
maxlength: props.maxLength,
|
|
5029
5034
|
name: props.name,
|
|
5030
5035
|
onBlur: () => emit("blur"),
|
|
5031
5036
|
onInput: (e) => emit("update:modelValue", e.target.value),
|
|
@@ -7902,10 +7907,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
7902
7907
|
elements: [...(p.essential ?? []).map((e) => ({
|
|
7903
7908
|
approved: !isDeny,
|
|
7904
7909
|
name: e.name
|
|
7905
|
-
})), ...(p.optional ?? []).map((e) => (
|
|
7906
|
-
approved: !isDeny && formValues[getConsentOptionalKey(p.purposeId, e.name)] === "true",
|
|
7907
|
-
name: e.name
|
|
7908
|
-
}))],
|
|
7910
|
+
})), ...(p.optional ?? []).map((e) => getConsentElementDecision(p.purposeId, e, !isDeny && formValues[getConsentOptionalKey(p.purposeId, e.name)] === "true", formValues))],
|
|
7909
7911
|
purposeName: p.purposeName ?? ""
|
|
7910
7912
|
}))
|
|
7911
7913
|
};
|
|
@@ -8752,17 +8754,14 @@ const SignIn = defineComponent({
|
|
|
8752
8754
|
name: e.name
|
|
8753
8755
|
})), ...(p.optional ?? []).map((e) => {
|
|
8754
8756
|
const key = `__consent_opt__${p.purposeId}__${e.name}`;
|
|
8755
|
-
return
|
|
8756
|
-
approved: !isDeny && processedInputs[key] === "true",
|
|
8757
|
-
name: e.name
|
|
8758
|
-
};
|
|
8757
|
+
return getConsentElementDecision(p.purposeId, e, !isDeny && processedInputs[key] === "true", processedInputs);
|
|
8759
8758
|
})],
|
|
8760
8759
|
purposeName: p.purposeName
|
|
8761
8760
|
}))
|
|
8762
8761
|
};
|
|
8763
8762
|
processedInputs["consent_decisions"] = JSON.stringify(decisions);
|
|
8764
8763
|
Object.keys(processedInputs).forEach((key) => {
|
|
8765
|
-
if (key.startsWith("__consent_opt__")) delete processedInputs[key];
|
|
8764
|
+
if (key.startsWith("__consent_opt__") || key.startsWith(CONSENT_MODIFIED_KEY_PREFIX) || key.startsWith(CONSENT_INVALID_KEY_PREFIX)) delete processedInputs[key];
|
|
8766
8765
|
});
|
|
8767
8766
|
} catch {}
|
|
8768
8767
|
try {
|
|
@@ -10451,7 +10450,7 @@ var useAdminTranslation_default = useAdminTranslation;
|
|
|
10451
10450
|
|
|
10452
10451
|
//#endregion
|
|
10453
10452
|
//#region src/components/common/attribution/Attribution.ts
|
|
10454
|
-
const cls$
|
|
10453
|
+
const cls$13 = (suffix) => withVendorCSSClassPrefix(`attribution${suffix}`);
|
|
10455
10454
|
const wordmark = (className) => h("svg", {
|
|
10456
10455
|
"aria-label": "ThunderID",
|
|
10457
10456
|
class: className,
|
|
@@ -10499,8 +10498,8 @@ const Attribution = defineComponent({
|
|
|
10499
10498
|
return () => {
|
|
10500
10499
|
const isRibbon = props.appearance === "ribbon";
|
|
10501
10500
|
const label = t(props.variant === "powered" ? "attribution.powered_by" : "attribution.secured_by");
|
|
10502
|
-
const className = [cls$
|
|
10503
|
-
const content = isRibbon ? h("span", { class: cls$
|
|
10501
|
+
const className = [cls$13(""), ...isRibbon ? [cls$13("--ribbon")] : []];
|
|
10502
|
+
const content = isRibbon ? h("span", { class: cls$13("__ribbon-content") }, [h("span", { class: cls$13("__ribbon-label") }, label), wordmark(cls$13("__ribbon-wordmark"))]) : [h("span", { class: cls$13("__label") }, label), wordmark(cls$13("__wordmark"))];
|
|
10504
10503
|
if (props.href) return h("a", {
|
|
10505
10504
|
class: className,
|
|
10506
10505
|
href: props.href,
|
|
@@ -12169,7 +12168,7 @@ var InviteUser_default = InviteUser;
|
|
|
12169
12168
|
|
|
12170
12169
|
//#endregion
|
|
12171
12170
|
//#region src/components/common/language-switcher/BaseLanguageSwitcher.ts
|
|
12172
|
-
const cls$
|
|
12171
|
+
const cls$12 = (name) => withVendorCSSClassPrefix(`language-switcher${name}`);
|
|
12173
12172
|
/**
|
|
12174
12173
|
* BaseLanguageSwitcher — unstyled language selection component.
|
|
12175
12174
|
*
|
|
@@ -12219,13 +12218,13 @@ const BaseLanguageSwitcher = defineComponent({
|
|
|
12219
12218
|
const triggerButton = h("button", {
|
|
12220
12219
|
"aria-expanded": isOpen.value,
|
|
12221
12220
|
"aria-haspopup": "listbox",
|
|
12222
|
-
class: cls$
|
|
12221
|
+
class: cls$12("__trigger"),
|
|
12223
12222
|
onClick: toggle,
|
|
12224
12223
|
type: "button"
|
|
12225
12224
|
}, [
|
|
12226
12225
|
h(GlobeIcon, { size: 16 }),
|
|
12227
12226
|
h(Typography_default, {
|
|
12228
|
-
class: cls$
|
|
12227
|
+
class: cls$12("__trigger-label"),
|
|
12229
12228
|
variant: "body2"
|
|
12230
12229
|
}, () => currentLabel),
|
|
12231
12230
|
h(ChevronDownIcon, { size: 12 })
|
|
@@ -12234,17 +12233,17 @@ const BaseLanguageSwitcher = defineComponent({
|
|
|
12234
12233
|
const isActive = lang.value === props.currentLanguage;
|
|
12235
12234
|
return h("button", {
|
|
12236
12235
|
"aria-selected": isActive,
|
|
12237
|
-
class: [cls$
|
|
12236
|
+
class: [cls$12("__item"), isActive ? cls$12("__item--active") : ""],
|
|
12238
12237
|
onClick: () => handleSelect(lang.value),
|
|
12239
12238
|
role: "option",
|
|
12240
12239
|
type: "button"
|
|
12241
12240
|
}, [h(Typography_default, { variant: "body2" }, () => lang.label)]);
|
|
12242
12241
|
});
|
|
12243
12242
|
const dropdown = isOpen.value ? h("div", {
|
|
12244
|
-
class: cls$
|
|
12243
|
+
class: cls$12("__dropdown"),
|
|
12245
12244
|
role: "listbox"
|
|
12246
12245
|
}, dropdownItems) : null;
|
|
12247
|
-
return h(Card_default, { class: [cls$
|
|
12246
|
+
return h(Card_default, { class: [cls$12(""), props.className].filter(Boolean).join(" ") }, () => [triggerButton, dropdown]);
|
|
12248
12247
|
};
|
|
12249
12248
|
}
|
|
12250
12249
|
});
|
|
@@ -12361,38 +12360,38 @@ const DataTable = defineComponent({
|
|
|
12361
12360
|
setup(props) {
|
|
12362
12361
|
const { t: fallbackT } = useI18n_default();
|
|
12363
12362
|
const translate = (key, params) => (props.t ?? fallbackT)(key, params);
|
|
12364
|
-
const cls$
|
|
12363
|
+
const cls$14 = (element) => withVendorCSSClassPrefix(element ? `data-table__${element}` : "data-table");
|
|
12365
12364
|
const renderBody = () => {
|
|
12366
12365
|
const colSpan = props.columns.length;
|
|
12367
12366
|
if (props.isLoading) return h("tr", {}, [h("td", {
|
|
12368
|
-
class: cls$
|
|
12367
|
+
class: cls$14("empty"),
|
|
12369
12368
|
colspan: colSpan
|
|
12370
12369
|
}, [h("span", {
|
|
12371
|
-
class: cls$
|
|
12370
|
+
class: cls$14("loading"),
|
|
12372
12371
|
role: "status"
|
|
12373
12372
|
}, [h(Spinner_default, {
|
|
12374
12373
|
"aria-hidden": "true",
|
|
12375
12374
|
size: "small"
|
|
12376
12375
|
}), translate("admin.common.loading")])])]);
|
|
12377
12376
|
if (props.rows.length === 0) return h("tr", {}, [h("td", {
|
|
12378
|
-
class: cls$
|
|
12377
|
+
class: cls$14("empty"),
|
|
12379
12378
|
colspan: colSpan
|
|
12380
12379
|
}, props.emptyText)]);
|
|
12381
12380
|
return props.rows.map((row) => {
|
|
12382
12381
|
const rowId = props.getRowId(row);
|
|
12383
12382
|
const onRowClick = props.onRowClick;
|
|
12384
12383
|
return h("tr", {
|
|
12385
|
-
class: cls$
|
|
12384
|
+
class: cls$14("row"),
|
|
12386
12385
|
"data-clickable": onRowClick ? "true" : void 0,
|
|
12387
12386
|
"data-selected": props.selectedRowId === rowId ? "true" : void 0,
|
|
12388
12387
|
key: rowId,
|
|
12389
12388
|
onClick: onRowClick ? () => onRowClick(row) : void 0
|
|
12390
12389
|
}, props.columns.map((column, index) => h("td", {
|
|
12391
|
-
class: cls$
|
|
12390
|
+
class: cls$14("cell"),
|
|
12392
12391
|
key: column.id
|
|
12393
12392
|
}, index === 0 && onRowClick ? [h("button", {
|
|
12394
12393
|
"aria-pressed": props.selectedRowId === void 0 ? void 0 : String(props.selectedRowId === rowId),
|
|
12395
|
-
class: cls$
|
|
12394
|
+
class: cls$14("row-button"),
|
|
12396
12395
|
onClick: (event) => {
|
|
12397
12396
|
event.stopPropagation();
|
|
12398
12397
|
onRowClick(row);
|
|
@@ -12405,12 +12404,12 @@ const DataTable = defineComponent({
|
|
|
12405
12404
|
const { pagination } = props;
|
|
12406
12405
|
const start = pagination ? Math.min(pagination.offset + 1, pagination.total) : 0;
|
|
12407
12406
|
const end = pagination ? Math.min(pagination.offset + props.rows.length, pagination.total) : 0;
|
|
12408
|
-
return h("div", { class: [cls$
|
|
12407
|
+
return h("div", { class: [cls$14(), props.className].filter(Boolean).join(" ") }, [
|
|
12409
12408
|
props.error ? h(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null,
|
|
12410
|
-
h("div", { class: cls$
|
|
12411
|
-
h("caption", { class: cls$
|
|
12409
|
+
h("div", { class: cls$14("scroller") }, [h("table", { class: cls$14("table") }, [
|
|
12410
|
+
h("caption", { class: cls$14("caption") }, props.caption),
|
|
12412
12411
|
h("thead", {}, [h("tr", {}, props.columns.map((column) => h("th", {
|
|
12413
|
-
class: cls$
|
|
12412
|
+
class: cls$14("header-cell"),
|
|
12414
12413
|
key: column.id,
|
|
12415
12414
|
scope: "col"
|
|
12416
12415
|
}, column.header)))]),
|
|
@@ -12418,12 +12417,12 @@ const DataTable = defineComponent({
|
|
|
12418
12417
|
])]),
|
|
12419
12418
|
pagination && pagination.total > pagination.limit ? h("nav", {
|
|
12420
12419
|
"aria-label": translate("admin.common.pagination.label"),
|
|
12421
|
-
class: cls$
|
|
12420
|
+
class: cls$14("footer")
|
|
12422
12421
|
}, [h("span", { "aria-live": "polite" }, translate("admin.common.pagination.range", {
|
|
12423
12422
|
end,
|
|
12424
12423
|
start,
|
|
12425
12424
|
total: pagination.total
|
|
12426
|
-
})), h("div", { class: cls$
|
|
12425
|
+
})), h("div", { class: cls$14("footer-actions") }, [h(Button_default, {
|
|
12427
12426
|
disabled: pagination.offset === 0 || props.isLoading,
|
|
12428
12427
|
onClick: () => pagination.onChange(Math.max(0, pagination.offset - pagination.limit)),
|
|
12429
12428
|
size: "small",
|
|
@@ -12442,7 +12441,7 @@ var DataTable_default = DataTable;
|
|
|
12442
12441
|
|
|
12443
12442
|
//#endregion
|
|
12444
12443
|
//#region src/components/admin/shared/AdminAvatar.ts
|
|
12445
|
-
const cls$
|
|
12444
|
+
const cls$11 = (element) => withVendorCSSClassPrefix(`admin__${element}`);
|
|
12446
12445
|
/**
|
|
12447
12446
|
* A decorative circle with a name's initials. Hidden from assistive technology, since the name is
|
|
12448
12447
|
* always rendered next to it.
|
|
@@ -12464,7 +12463,7 @@ const AdminAvatar = defineComponent({
|
|
|
12464
12463
|
const initials = props.name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part.charAt(0).toUpperCase()).join("");
|
|
12465
12464
|
return h("span", {
|
|
12466
12465
|
"aria-hidden": "true",
|
|
12467
|
-
class: cls$
|
|
12466
|
+
class: cls$11("avatar"),
|
|
12468
12467
|
style: {
|
|
12469
12468
|
fontSize: `${Math.round(props.size * .4)}px`,
|
|
12470
12469
|
height: `${props.size}px`,
|
|
@@ -13325,6 +13324,146 @@ const UserCreate = defineComponent({
|
|
|
13325
13324
|
});
|
|
13326
13325
|
var UserCreate_default = UserCreate;
|
|
13327
13326
|
|
|
13327
|
+
//#endregion
|
|
13328
|
+
//#region src/components/admin/shared/AccessStatusBadge.ts
|
|
13329
|
+
const cls$10 = (element) => withVendorCSSClassPrefix(`admin__${element}`);
|
|
13330
|
+
/**
|
|
13331
|
+
* The translated access status of an identity, or its raw value when the status is one this SDK does
|
|
13332
|
+
* not know. Renders nothing when the server reports no status.
|
|
13333
|
+
*/
|
|
13334
|
+
const AccessStatusBadge = defineComponent({
|
|
13335
|
+
name: "AdminAccessStatusBadge",
|
|
13336
|
+
props: {
|
|
13337
|
+
status: {
|
|
13338
|
+
default: void 0,
|
|
13339
|
+
type: String
|
|
13340
|
+
},
|
|
13341
|
+
t: {
|
|
13342
|
+
required: true,
|
|
13343
|
+
type: Function
|
|
13344
|
+
}
|
|
13345
|
+
},
|
|
13346
|
+
setup(props) {
|
|
13347
|
+
return () => {
|
|
13348
|
+
if (!props.status) return null;
|
|
13349
|
+
const labels = {
|
|
13350
|
+
ACTIVE: props.t("admin.common.status.active"),
|
|
13351
|
+
LOCKED: props.t("admin.common.status.locked"),
|
|
13352
|
+
SUSPENDED: props.t("admin.common.status.suspended")
|
|
13353
|
+
};
|
|
13354
|
+
return h("span", { class: cls$10("chip") }, labels[props.status] ?? props.status);
|
|
13355
|
+
};
|
|
13356
|
+
}
|
|
13357
|
+
});
|
|
13358
|
+
var AccessStatusBadge_default = AccessStatusBadge;
|
|
13359
|
+
|
|
13360
|
+
//#endregion
|
|
13361
|
+
//#region src/components/admin/shared/AccountLifecycleButtons.ts
|
|
13362
|
+
const cls$9 = (element) => withVendorCSSClassPrefix(`admin__${element}`);
|
|
13363
|
+
/**
|
|
13364
|
+
* Matches the server's limit on an operator note.
|
|
13365
|
+
*/
|
|
13366
|
+
const OPERATOR_NOTE_MAX_LENGTH = 100;
|
|
13367
|
+
/**
|
|
13368
|
+
* One button per account lifecycle action. Suspending and unsuspending ask for confirmation inline;
|
|
13369
|
+
* unlocking is remedial and runs straight away. Emits `action` with the action and, on a suspension
|
|
13370
|
+
* that collects one, the operator's note.
|
|
13371
|
+
*/
|
|
13372
|
+
const AccountLifecycleButtons = defineComponent({
|
|
13373
|
+
name: "AdminAccountLifecycleButtons",
|
|
13374
|
+
props: {
|
|
13375
|
+
actions: {
|
|
13376
|
+
required: true,
|
|
13377
|
+
type: Array
|
|
13378
|
+
},
|
|
13379
|
+
collectsOperatorNote: {
|
|
13380
|
+
default: false,
|
|
13381
|
+
type: Boolean
|
|
13382
|
+
},
|
|
13383
|
+
isRunning: {
|
|
13384
|
+
default: false,
|
|
13385
|
+
type: Boolean
|
|
13386
|
+
},
|
|
13387
|
+
name: {
|
|
13388
|
+
required: true,
|
|
13389
|
+
type: String
|
|
13390
|
+
},
|
|
13391
|
+
t: {
|
|
13392
|
+
required: true,
|
|
13393
|
+
type: Function
|
|
13394
|
+
}
|
|
13395
|
+
},
|
|
13396
|
+
emits: ["action"],
|
|
13397
|
+
setup(props, { emit }) {
|
|
13398
|
+
const uid = useId();
|
|
13399
|
+
const confirming = ref(null);
|
|
13400
|
+
const operatorNote = ref("");
|
|
13401
|
+
const close = () => {
|
|
13402
|
+
confirming.value = null;
|
|
13403
|
+
operatorNote.value = "";
|
|
13404
|
+
};
|
|
13405
|
+
return () => {
|
|
13406
|
+
const { t } = props;
|
|
13407
|
+
if (props.actions.length === 0) return null;
|
|
13408
|
+
const labels = {
|
|
13409
|
+
suspend: t("admin.common.lifecycle.suspend"),
|
|
13410
|
+
unlock: t("admin.common.lifecycle.unlock"),
|
|
13411
|
+
unsuspend: t("admin.common.lifecycle.unsuspend")
|
|
13412
|
+
};
|
|
13413
|
+
const action = confirming.value;
|
|
13414
|
+
if (action && props.actions.includes(action)) {
|
|
13415
|
+
const question = action === "suspend" ? t("admin.common.lifecycle.suspend_confirm", { name: props.name }) : t("admin.common.lifecycle.unsuspend_confirm", { name: props.name });
|
|
13416
|
+
const withNote = props.collectsOperatorNote && action === "suspend";
|
|
13417
|
+
return h("span", {
|
|
13418
|
+
"aria-label": question,
|
|
13419
|
+
class: cls$9("confirm"),
|
|
13420
|
+
role: "group"
|
|
13421
|
+
}, [
|
|
13422
|
+
h("span", {}, question),
|
|
13423
|
+
withNote ? h(TextField_default, {
|
|
13424
|
+
disabled: props.isRunning,
|
|
13425
|
+
label: t("admin.common.lifecycle.operator_note"),
|
|
13426
|
+
maxLength: OPERATOR_NOTE_MAX_LENGTH,
|
|
13427
|
+
modelValue: operatorNote.value,
|
|
13428
|
+
name: `${uid}-operator-note`,
|
|
13429
|
+
"onUpdate:modelValue": (value) => {
|
|
13430
|
+
operatorNote.value = value;
|
|
13431
|
+
}
|
|
13432
|
+
}) : null,
|
|
13433
|
+
h(Button_default, {
|
|
13434
|
+
disabled: props.isRunning,
|
|
13435
|
+
onClick: close,
|
|
13436
|
+
size: "small",
|
|
13437
|
+
variant: "text"
|
|
13438
|
+
}, { default: () => t("admin.common.actions.cancel") }),
|
|
13439
|
+
h(Button_default, {
|
|
13440
|
+
color: action === "suspend" ? "danger" : "primary",
|
|
13441
|
+
disabled: props.isRunning,
|
|
13442
|
+
loading: props.isRunning,
|
|
13443
|
+
onClick: () => {
|
|
13444
|
+
emit("action", action, withNote ? operatorNote.value.trim() || void 0 : void 0);
|
|
13445
|
+
close();
|
|
13446
|
+
},
|
|
13447
|
+
size: "small"
|
|
13448
|
+
}, { default: () => labels[action] })
|
|
13449
|
+
]);
|
|
13450
|
+
}
|
|
13451
|
+
return props.actions.map((offered) => h(Button_default, {
|
|
13452
|
+
color: offered === "suspend" ? "danger" : "primary",
|
|
13453
|
+
disabled: props.isRunning,
|
|
13454
|
+
key: offered,
|
|
13455
|
+
loading: props.isRunning && offered === "unlock",
|
|
13456
|
+
onClick: () => {
|
|
13457
|
+
if (offered === "unlock") emit("action", offered);
|
|
13458
|
+
else confirming.value = offered;
|
|
13459
|
+
},
|
|
13460
|
+
variant: "outline"
|
|
13461
|
+
}, { default: () => labels[offered] }));
|
|
13462
|
+
};
|
|
13463
|
+
}
|
|
13464
|
+
});
|
|
13465
|
+
var AccountLifecycleButtons_default = AccountLifecycleButtons;
|
|
13466
|
+
|
|
13328
13467
|
//#endregion
|
|
13329
13468
|
//#region src/components/admin/shared/ChipList.ts
|
|
13330
13469
|
const cls$8 = (element) => withVendorCSSClassPrefix(`admin__${element}`);
|
|
@@ -13514,14 +13653,26 @@ const BaseUserDetails = defineComponent({
|
|
|
13514
13653
|
default: false,
|
|
13515
13654
|
type: Boolean
|
|
13516
13655
|
},
|
|
13656
|
+
isRunningLifecycleAction: {
|
|
13657
|
+
default: false,
|
|
13658
|
+
type: Boolean
|
|
13659
|
+
},
|
|
13517
13660
|
isUpdating: {
|
|
13518
13661
|
default: false,
|
|
13519
13662
|
type: Boolean
|
|
13520
13663
|
},
|
|
13664
|
+
lifecycleActions: {
|
|
13665
|
+
default: () => [],
|
|
13666
|
+
type: Array
|
|
13667
|
+
},
|
|
13521
13668
|
onDelete: {
|
|
13522
13669
|
default: void 0,
|
|
13523
13670
|
type: Function
|
|
13524
13671
|
},
|
|
13672
|
+
onLifecycleAction: {
|
|
13673
|
+
default: void 0,
|
|
13674
|
+
type: Function
|
|
13675
|
+
},
|
|
13525
13676
|
onUpdate: {
|
|
13526
13677
|
default: void 0,
|
|
13527
13678
|
type: Function
|
|
@@ -13550,8 +13701,11 @@ const BaseUserDetails = defineComponent({
|
|
|
13550
13701
|
groups: props.groups,
|
|
13551
13702
|
isDeleting: props.isDeleting,
|
|
13552
13703
|
isLoading: props.isLoading,
|
|
13704
|
+
isRunningLifecycleAction: props.isRunningLifecycleAction,
|
|
13553
13705
|
isUpdating: props.isUpdating,
|
|
13706
|
+
lifecycleActions: props.onLifecycleAction && user ? props.lifecycleActions : [],
|
|
13554
13707
|
onDelete: isWritable ? props.onDelete : void 0,
|
|
13708
|
+
onLifecycleAction: user ? props.onLifecycleAction : void 0,
|
|
13555
13709
|
onUpdate: isWritable ? props.onUpdate : void 0,
|
|
13556
13710
|
user
|
|
13557
13711
|
};
|
|
@@ -13624,18 +13778,36 @@ const BaseUserDetails = defineComponent({
|
|
|
13624
13778
|
description: t("admin.users.details.subtitle", { type: user.type }),
|
|
13625
13779
|
title: displayName
|
|
13626
13780
|
}, {
|
|
13627
|
-
actions: () => [
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13781
|
+
actions: () => [
|
|
13782
|
+
slots["actions"]?.(),
|
|
13783
|
+
props.onLifecycleAction ? h(AccountLifecycleButtons_default, {
|
|
13784
|
+
actions: props.lifecycleActions,
|
|
13785
|
+
collectsOperatorNote: true,
|
|
13786
|
+
isRunning: props.isRunningLifecycleAction,
|
|
13787
|
+
name: displayName,
|
|
13788
|
+
onAction: props.onLifecycleAction,
|
|
13789
|
+
t
|
|
13790
|
+
}) : null,
|
|
13791
|
+
props.onDelete && !user.isReadOnly ? h(ConfirmButton_default, {
|
|
13792
|
+
confirmText: t("admin.users.details.delete.confirm", { name: displayName }),
|
|
13793
|
+
isLoading: props.isDeleting,
|
|
13794
|
+
onConfirm: props.onDelete,
|
|
13795
|
+
t
|
|
13796
|
+
}, { default: () => t("admin.users.details.delete.action") }) : null
|
|
13797
|
+
],
|
|
13633
13798
|
default: () => [
|
|
13634
13799
|
props.error ? h(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null,
|
|
13635
|
-
h("div", { class: cls$4("row") }, [
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13800
|
+
h("div", { class: cls$4("row") }, [
|
|
13801
|
+
h(AdminAvatar_default, {
|
|
13802
|
+
name: displayName,
|
|
13803
|
+
size: 48
|
|
13804
|
+
}),
|
|
13805
|
+
h("span", { class: cls$4("muted") }, user.ouHandle ?? user.ouId),
|
|
13806
|
+
h(AccessStatusBadge_default, {
|
|
13807
|
+
status: user.status?.value,
|
|
13808
|
+
t
|
|
13809
|
+
})
|
|
13810
|
+
]),
|
|
13639
13811
|
h(Panel_default, { title: t("admin.users.details.attributes") }, {
|
|
13640
13812
|
actions: () => canEdit && !draft.value ? h(Button_default, {
|
|
13641
13813
|
onClick: () => {
|
|
@@ -13661,6 +13833,55 @@ const BaseUserDetails = defineComponent({
|
|
|
13661
13833
|
});
|
|
13662
13834
|
var BaseUserDetails_default = BaseUserDetails;
|
|
13663
13835
|
|
|
13836
|
+
//#endregion
|
|
13837
|
+
//#region src/composables/management/useAccountLifecycle.ts
|
|
13838
|
+
/**
|
|
13839
|
+
* Offers the account lifecycle actions (suspend, unsuspend, unlock) of a user, agent or application and
|
|
13840
|
+
* runs them. These actions have no management API endpoint: they run only through the administration
|
|
13841
|
+
* flows the server configures, so an action is offered only when its flow is configured.
|
|
13842
|
+
*
|
|
13843
|
+
* @example
|
|
13844
|
+
* ```typescript
|
|
13845
|
+
* const lifecycle = useAccountLifecycle({
|
|
13846
|
+
* enabled: () => props.lifecycleActions,
|
|
13847
|
+
* invalidatedKeys: () => [[UserQueryKeys.USER, props.userId]],
|
|
13848
|
+
* kind: 'user',
|
|
13849
|
+
* status: () => user.data.value?.status?.value,
|
|
13850
|
+
* subject: () => props.userId,
|
|
13851
|
+
* });
|
|
13852
|
+
* ```
|
|
13853
|
+
*/
|
|
13854
|
+
const useAccountLifecycle = ({ enabled, invalidatedKeys, kind, status, subject }) => {
|
|
13855
|
+
const { baseUrl } = useThunderID_default();
|
|
13856
|
+
const flows = useResourceQuery_default(() => [
|
|
13857
|
+
"administration-flows",
|
|
13858
|
+
"account-lifecycle",
|
|
13859
|
+
kind
|
|
13860
|
+
], (fetcher) => resolveAdministrationFlows$1({
|
|
13861
|
+
baseUrl,
|
|
13862
|
+
fetcher
|
|
13863
|
+
}, Object.values(AccountLifecycleFlowConfigKey$1[kind])), { enabled });
|
|
13864
|
+
const execution = useResourceMutation_default(({ action, operatorNote }, fetcher) => runAccountLifecycleAction$1({
|
|
13865
|
+
action,
|
|
13866
|
+
baseUrl,
|
|
13867
|
+
fetcher,
|
|
13868
|
+
kind,
|
|
13869
|
+
operatorNote,
|
|
13870
|
+
subject: subject()
|
|
13871
|
+
}), () => invalidatedKeys());
|
|
13872
|
+
return {
|
|
13873
|
+
actions: computed(() => enabled() && flows.data.value ? getAccountLifecycleActions$1(kind, status(), flows.data.value) : []),
|
|
13874
|
+
error: computed(() => execution.error.value),
|
|
13875
|
+
isRunning: computed(() => execution.isLoading.value),
|
|
13876
|
+
loadError: computed(() => flows.error.value),
|
|
13877
|
+
run: (action, operatorNote) => void execution.mutate({
|
|
13878
|
+
action,
|
|
13879
|
+
operatorNote
|
|
13880
|
+
})
|
|
13881
|
+
};
|
|
13882
|
+
};
|
|
13883
|
+
var useAccountLifecycle_default = useAccountLifecycle;
|
|
13884
|
+
|
|
13664
13885
|
//#endregion
|
|
13665
13886
|
//#region src/components/admin/UserDetails/UserDetails.ts
|
|
13666
13887
|
/**
|
|
@@ -13677,6 +13898,10 @@ var BaseUserDetails_default = BaseUserDetails;
|
|
|
13677
13898
|
const UserDetails = defineComponent({
|
|
13678
13899
|
name: "UserDetails",
|
|
13679
13900
|
props: {
|
|
13901
|
+
administrationMode: {
|
|
13902
|
+
default: void 0,
|
|
13903
|
+
type: String
|
|
13904
|
+
},
|
|
13680
13905
|
className: {
|
|
13681
13906
|
default: "",
|
|
13682
13907
|
type: String
|
|
@@ -13693,6 +13918,10 @@ const UserDetails = defineComponent({
|
|
|
13693
13918
|
default: () => ["password"],
|
|
13694
13919
|
type: Array
|
|
13695
13920
|
},
|
|
13921
|
+
lifecycleActions: {
|
|
13922
|
+
default: false,
|
|
13923
|
+
type: Boolean
|
|
13924
|
+
},
|
|
13696
13925
|
preferences: {
|
|
13697
13926
|
default: void 0,
|
|
13698
13927
|
type: Object
|
|
@@ -13725,6 +13954,7 @@ const UserDetails = defineComponent({
|
|
|
13725
13954
|
}), { enabled: hasUserId });
|
|
13726
13955
|
const deletion = useResourceMutation_default((userId, fetcher) => deleteUser$1({
|
|
13727
13956
|
...endpoint,
|
|
13957
|
+
administrationMode: props.administrationMode,
|
|
13728
13958
|
fetcher,
|
|
13729
13959
|
userId
|
|
13730
13960
|
}), () => [[UserQueryKeys$1.USERS]], { onSuccess: () => emit("deleted") });
|
|
@@ -13734,17 +13964,27 @@ const UserDetails = defineComponent({
|
|
|
13734
13964
|
payload: data,
|
|
13735
13965
|
userId
|
|
13736
13966
|
}), ({ userId }) => [[UserQueryKeys$1.USER, userId], [UserQueryKeys$1.USERS]]);
|
|
13967
|
+
const lifecycle = useAccountLifecycle_default({
|
|
13968
|
+
enabled: () => props.lifecycleActions,
|
|
13969
|
+
invalidatedKeys: () => [[UserQueryKeys$1.USER, props.userId], [UserQueryKeys$1.USERS]],
|
|
13970
|
+
kind: "user",
|
|
13971
|
+
status: () => user.data.value?.status?.value,
|
|
13972
|
+
subject: () => props.userId
|
|
13973
|
+
});
|
|
13737
13974
|
return () => {
|
|
13738
13975
|
const current = user.data.value;
|
|
13739
13976
|
return h(BaseUserDetails_default, {
|
|
13740
13977
|
className: props.className,
|
|
13741
|
-
error: toManagementErrorMessage(t, user.error.value, "admin.users.details.error") ?? toManagementErrorMessage(t, deletion.error.value, "admin.users.details.delete.error") ?? toManagementErrorMessage(t, update.error.value, "admin.users.details.edit.error"),
|
|
13978
|
+
error: toManagementErrorMessage(t, user.error.value, "admin.users.details.error") ?? toManagementErrorMessage(t, deletion.error.value, "admin.users.details.delete.error") ?? toManagementErrorMessage(t, update.error.value, "admin.users.details.edit.error") ?? toManagementErrorMessage(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? toManagementErrorMessage(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error"),
|
|
13742
13979
|
groups: groups.data.value?.groups ?? [],
|
|
13743
13980
|
hiddenAttributes: props.hiddenAttributes,
|
|
13744
13981
|
isDeleting: deletion.isLoading.value,
|
|
13745
13982
|
isLoading: user.isLoading.value,
|
|
13983
|
+
isRunningLifecycleAction: lifecycle.isRunning.value,
|
|
13746
13984
|
isUpdating: update.isLoading.value,
|
|
13985
|
+
lifecycleActions: lifecycle.actions.value,
|
|
13747
13986
|
onDelete: props.deletable ? () => void deletion.mutate(props.userId) : void 0,
|
|
13987
|
+
onLifecycleAction: props.lifecycleActions ? lifecycle.run : void 0,
|
|
13748
13988
|
onUpdate: props.editable && current ? (attributes) => void update.mutate({
|
|
13749
13989
|
data: {
|
|
13750
13990
|
attributes,
|
|
@@ -14197,6 +14437,10 @@ var BaseGroupMembers_default = BaseGroupMembers;
|
|
|
14197
14437
|
const GroupMembers = defineComponent({
|
|
14198
14438
|
name: "GroupMembers",
|
|
14199
14439
|
props: {
|
|
14440
|
+
administrationMode: {
|
|
14441
|
+
default: void 0,
|
|
14442
|
+
type: String
|
|
14443
|
+
},
|
|
14200
14444
|
className: {
|
|
14201
14445
|
default: "",
|
|
14202
14446
|
type: String
|
|
@@ -14262,6 +14506,7 @@ const GroupMembers = defineComponent({
|
|
|
14262
14506
|
}), invalidatedByMembership);
|
|
14263
14507
|
const remove = useResourceMutation_default(({ groupId, members: removed }, fetcher) => removeGroupMembers$1({
|
|
14264
14508
|
...groupsEndpoint,
|
|
14509
|
+
administrationMode: props.administrationMode,
|
|
14265
14510
|
fetcher,
|
|
14266
14511
|
groupId,
|
|
14267
14512
|
members: removed
|
|
@@ -14682,6 +14927,10 @@ var BaseRoleAssignments_default = BaseRoleAssignments;
|
|
|
14682
14927
|
const RoleAssignments = defineComponent({
|
|
14683
14928
|
name: "RoleAssignments",
|
|
14684
14929
|
props: {
|
|
14930
|
+
administrationMode: {
|
|
14931
|
+
default: void 0,
|
|
14932
|
+
type: String
|
|
14933
|
+
},
|
|
14685
14934
|
className: {
|
|
14686
14935
|
default: "",
|
|
14687
14936
|
type: String
|
|
@@ -14756,6 +15005,7 @@ const RoleAssignments = defineComponent({
|
|
|
14756
15005
|
}), () => [[RoleQueryKeys$1.ROLE_ASSIGNMENTS]]);
|
|
14757
15006
|
const unassign = useResourceMutation_default(({ roleId, assignments: removed }, fetcher) => removeRoleAssignments$1({
|
|
14758
15007
|
...rolesEndpoint,
|
|
15008
|
+
administrationMode: props.administrationMode,
|
|
14759
15009
|
assignments: removed,
|
|
14760
15010
|
fetcher,
|
|
14761
15011
|
roleId
|
|
@@ -15254,10 +15504,22 @@ const BaseAgentDetails = defineComponent({
|
|
|
15254
15504
|
default: false,
|
|
15255
15505
|
type: Boolean
|
|
15256
15506
|
},
|
|
15507
|
+
isRunningLifecycleAction: {
|
|
15508
|
+
default: false,
|
|
15509
|
+
type: Boolean
|
|
15510
|
+
},
|
|
15511
|
+
lifecycleActions: {
|
|
15512
|
+
default: () => [],
|
|
15513
|
+
type: Array
|
|
15514
|
+
},
|
|
15257
15515
|
onDelete: {
|
|
15258
15516
|
default: void 0,
|
|
15259
15517
|
type: Function
|
|
15260
15518
|
},
|
|
15519
|
+
onLifecycleAction: {
|
|
15520
|
+
default: void 0,
|
|
15521
|
+
type: Function
|
|
15522
|
+
},
|
|
15261
15523
|
preferences: {
|
|
15262
15524
|
default: void 0,
|
|
15263
15525
|
type: Object
|
|
@@ -15278,7 +15540,10 @@ const BaseAgentDetails = defineComponent({
|
|
|
15278
15540
|
groups: props.groups,
|
|
15279
15541
|
isDeleting: props.isDeleting,
|
|
15280
15542
|
isLoading: props.isLoading,
|
|
15543
|
+
isRunningLifecycleAction: props.isRunningLifecycleAction,
|
|
15544
|
+
lifecycleActions: props.onLifecycleAction && agent ? props.lifecycleActions : [],
|
|
15281
15545
|
onDelete: agent && !agent.isReadOnly ? props.onDelete : void 0,
|
|
15546
|
+
onLifecycleAction: agent ? props.onLifecycleAction : void 0,
|
|
15282
15547
|
roles: props.roles
|
|
15283
15548
|
};
|
|
15284
15549
|
return h("div", { class: props.className }, slots["default"](renderProps));
|
|
@@ -15311,6 +15576,13 @@ const BaseAgentDetails = defineComponent({
|
|
|
15311
15576
|
value: agent.ouHandle ?? agent.ouId
|
|
15312
15577
|
}
|
|
15313
15578
|
];
|
|
15579
|
+
if (agent.status) details.push({
|
|
15580
|
+
label: t("admin.common.columns.status"),
|
|
15581
|
+
value: h(AccessStatusBadge_default, {
|
|
15582
|
+
status: agent.status.value,
|
|
15583
|
+
t
|
|
15584
|
+
})
|
|
15585
|
+
});
|
|
15314
15586
|
if (agent.clientId) details.push({
|
|
15315
15587
|
label: t("admin.agents.list.columns.client_id"),
|
|
15316
15588
|
value: h(CopyableText_default, { value: agent.clientId })
|
|
@@ -15321,12 +15593,23 @@ const BaseAgentDetails = defineComponent({
|
|
|
15321
15593
|
description: agent.description,
|
|
15322
15594
|
title: agent.name
|
|
15323
15595
|
}, {
|
|
15324
|
-
actions: () => [
|
|
15325
|
-
|
|
15326
|
-
|
|
15327
|
-
|
|
15328
|
-
|
|
15329
|
-
|
|
15596
|
+
actions: () => [
|
|
15597
|
+
slots["actions"]?.(),
|
|
15598
|
+
props.onLifecycleAction ? h(AccountLifecycleButtons_default, {
|
|
15599
|
+
actions: props.lifecycleActions,
|
|
15600
|
+
collectsOperatorNote: true,
|
|
15601
|
+
isRunning: props.isRunningLifecycleAction,
|
|
15602
|
+
name: agent.name,
|
|
15603
|
+
onAction: props.onLifecycleAction,
|
|
15604
|
+
t
|
|
15605
|
+
}) : null,
|
|
15606
|
+
props.onDelete && !agent.isReadOnly ? h(ConfirmButton_default, {
|
|
15607
|
+
confirmText: t("admin.agents.details.delete.confirm", { name: agent.name }),
|
|
15608
|
+
isLoading: props.isDeleting,
|
|
15609
|
+
onConfirm: props.onDelete,
|
|
15610
|
+
t
|
|
15611
|
+
}, { default: () => t("admin.agents.details.delete.action") }) : null
|
|
15612
|
+
],
|
|
15330
15613
|
default: () => [
|
|
15331
15614
|
props.error ? h(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null,
|
|
15332
15615
|
h(Panel_default, { title: t("admin.agents.details.overview") }, { default: () => h(DetailList_default, { items: details }) }),
|
|
@@ -15381,6 +15664,10 @@ const AgentDetails = defineComponent({
|
|
|
15381
15664
|
default: false,
|
|
15382
15665
|
type: Boolean
|
|
15383
15666
|
},
|
|
15667
|
+
lifecycleActions: {
|
|
15668
|
+
default: false,
|
|
15669
|
+
type: Boolean
|
|
15670
|
+
},
|
|
15384
15671
|
preferences: {
|
|
15385
15672
|
default: void 0,
|
|
15386
15673
|
type: Object
|
|
@@ -15423,14 +15710,24 @@ const AgentDetails = defineComponent({
|
|
|
15423
15710
|
agentId,
|
|
15424
15711
|
fetcher
|
|
15425
15712
|
}), () => [[AgentQueryKeys$1.AGENTS]], { onSuccess: () => emit("deleted") });
|
|
15713
|
+
const lifecycle = useAccountLifecycle_default({
|
|
15714
|
+
enabled: () => props.lifecycleActions,
|
|
15715
|
+
invalidatedKeys: () => [[AgentQueryKeys$1.AGENT, props.agentId], [AgentQueryKeys$1.AGENTS]],
|
|
15716
|
+
kind: "agent",
|
|
15717
|
+
status: () => agent.data.value?.status?.value,
|
|
15718
|
+
subject: () => props.agentId
|
|
15719
|
+
});
|
|
15426
15720
|
return () => h(BaseAgentDetails_default, {
|
|
15427
15721
|
agent: agent.data.value,
|
|
15428
15722
|
className: props.className,
|
|
15429
|
-
error: toManagementErrorMessage(t, agent.error.value, "admin.agents.details.error") ?? toManagementErrorMessage(t, deletion.error.value, "admin.agents.details.delete.error"),
|
|
15723
|
+
error: toManagementErrorMessage(t, agent.error.value, "admin.agents.details.error") ?? toManagementErrorMessage(t, deletion.error.value, "admin.agents.details.delete.error") ?? toManagementErrorMessage(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? toManagementErrorMessage(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error"),
|
|
15430
15724
|
groups: groups.data.value?.groups ?? [],
|
|
15431
15725
|
isDeleting: deletion.isLoading.value,
|
|
15432
15726
|
isLoading: agent.isLoading.value,
|
|
15727
|
+
isRunningLifecycleAction: lifecycle.isRunning.value,
|
|
15728
|
+
lifecycleActions: lifecycle.actions.value,
|
|
15433
15729
|
onDelete: props.deletable ? () => void deletion.mutate(props.agentId) : void 0,
|
|
15730
|
+
onLifecycleAction: props.lifecycleActions ? lifecycle.run : void 0,
|
|
15434
15731
|
preferences: props.preferences,
|
|
15435
15732
|
roles: roles.data.value?.roles ?? []
|
|
15436
15733
|
}, { ...slots });
|
|
@@ -15877,14 +16174,26 @@ const BaseApplicationDetails = defineComponent({
|
|
|
15877
16174
|
default: false,
|
|
15878
16175
|
type: Boolean
|
|
15879
16176
|
},
|
|
16177
|
+
isRunningLifecycleAction: {
|
|
16178
|
+
default: false,
|
|
16179
|
+
type: Boolean
|
|
16180
|
+
},
|
|
15880
16181
|
isUpdating: {
|
|
15881
16182
|
default: false,
|
|
15882
16183
|
type: Boolean
|
|
15883
16184
|
},
|
|
16185
|
+
lifecycleActions: {
|
|
16186
|
+
default: () => [],
|
|
16187
|
+
type: Array
|
|
16188
|
+
},
|
|
15884
16189
|
onDelete: {
|
|
15885
16190
|
default: void 0,
|
|
15886
16191
|
type: Function
|
|
15887
16192
|
},
|
|
16193
|
+
onLifecycleAction: {
|
|
16194
|
+
default: void 0,
|
|
16195
|
+
type: Function
|
|
16196
|
+
},
|
|
15888
16197
|
onRegenerateSecret: {
|
|
15889
16198
|
default: void 0,
|
|
15890
16199
|
type: Function
|
|
@@ -15924,9 +16233,12 @@ const BaseApplicationDetails = defineComponent({
|
|
|
15924
16233
|
isDeleting: props.isDeleting,
|
|
15925
16234
|
isLoading: props.isLoading,
|
|
15926
16235
|
isRegeneratingSecret: props.isRegeneratingSecret,
|
|
16236
|
+
isRunningLifecycleAction: props.isRunningLifecycleAction,
|
|
15927
16237
|
isUpdating: props.isUpdating,
|
|
16238
|
+
lifecycleActions: props.onLifecycleAction && application ? props.lifecycleActions : [],
|
|
15928
16239
|
oauth,
|
|
15929
16240
|
onDelete: isWritable ? props.onDelete : void 0,
|
|
16241
|
+
onLifecycleAction: application ? props.onLifecycleAction : void 0,
|
|
15930
16242
|
onRegenerateSecret: canRegenerate ? props.onRegenerateSecret : void 0,
|
|
15931
16243
|
onSecretDismiss: props.clientSecret ? props.onSecretDismiss : void 0,
|
|
15932
16244
|
onUpdate: isWritable ? props.onUpdate : void 0
|
|
@@ -15970,6 +16282,13 @@ const BaseApplicationDetails = defineComponent({
|
|
|
15970
16282
|
value: application.logoUrl ?? notSet
|
|
15971
16283
|
}
|
|
15972
16284
|
];
|
|
16285
|
+
if (application.status?.value) overview.push({
|
|
16286
|
+
label: t("admin.common.columns.status"),
|
|
16287
|
+
value: h(AccessStatusBadge_default, {
|
|
16288
|
+
status: application.status.value,
|
|
16289
|
+
t
|
|
16290
|
+
})
|
|
16291
|
+
});
|
|
15973
16292
|
const renderEditForm = (current) => h(Panel_default, { title: t("admin.applications.details.edit.action") }, { default: () => h("form", {
|
|
15974
16293
|
class: cls("edit-form"),
|
|
15975
16294
|
novalidate: true,
|
|
@@ -16053,12 +16372,22 @@ const BaseApplicationDetails = defineComponent({
|
|
|
16053
16372
|
description: application.description,
|
|
16054
16373
|
title: application.name
|
|
16055
16374
|
}, {
|
|
16056
|
-
actions: () => [
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
16375
|
+
actions: () => [
|
|
16376
|
+
slots["actions"]?.(),
|
|
16377
|
+
props.onLifecycleAction ? h(AccountLifecycleButtons_default, {
|
|
16378
|
+
actions: props.lifecycleActions,
|
|
16379
|
+
isRunning: props.isRunningLifecycleAction,
|
|
16380
|
+
name: application.name,
|
|
16381
|
+
onAction: props.onLifecycleAction,
|
|
16382
|
+
t
|
|
16383
|
+
}) : null,
|
|
16384
|
+
props.onDelete && isWritable ? h(ConfirmButton_default, {
|
|
16385
|
+
confirmText: t("admin.applications.details.delete.confirm", { name: application.name }),
|
|
16386
|
+
isLoading: props.isDeleting,
|
|
16387
|
+
onConfirm: props.onDelete,
|
|
16388
|
+
t
|
|
16389
|
+
}, { default: () => t("admin.applications.details.delete.action") }) : null
|
|
16390
|
+
],
|
|
16062
16391
|
default: () => [props.error ? h(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null, ...draft.value ? [renderEditForm(draft.value)] : [h(Panel_default, { title: t("admin.applications.details.overview") }, {
|
|
16063
16392
|
actions: () => props.onUpdate && isWritable ? h(Button_default, {
|
|
16064
16393
|
onClick: () => {
|
|
@@ -16103,6 +16432,10 @@ var BaseApplicationDetails_default = BaseApplicationDetails;
|
|
|
16103
16432
|
const ApplicationDetails = defineComponent({
|
|
16104
16433
|
name: "ApplicationDetails",
|
|
16105
16434
|
props: {
|
|
16435
|
+
administrationMode: {
|
|
16436
|
+
default: void 0,
|
|
16437
|
+
type: String
|
|
16438
|
+
},
|
|
16106
16439
|
applicationId: {
|
|
16107
16440
|
required: true,
|
|
16108
16441
|
type: String
|
|
@@ -16119,6 +16452,10 @@ const ApplicationDetails = defineComponent({
|
|
|
16119
16452
|
default: false,
|
|
16120
16453
|
type: Boolean
|
|
16121
16454
|
},
|
|
16455
|
+
lifecycleActions: {
|
|
16456
|
+
default: false,
|
|
16457
|
+
type: Boolean
|
|
16458
|
+
},
|
|
16122
16459
|
preferences: {
|
|
16123
16460
|
default: void 0,
|
|
16124
16461
|
type: Object
|
|
@@ -16139,6 +16476,7 @@ const ApplicationDetails = defineComponent({
|
|
|
16139
16476
|
}), { enabled: () => Boolean(props.applicationId) });
|
|
16140
16477
|
const deletion = useResourceMutation_default((applicationId, fetcher) => deleteApplication$1({
|
|
16141
16478
|
...endpoint,
|
|
16479
|
+
administrationMode: props.administrationMode,
|
|
16142
16480
|
applicationId,
|
|
16143
16481
|
fetcher
|
|
16144
16482
|
}), () => [[ApplicationQueryKeys$1.APPLICATIONS]], { onSuccess: () => emit("deleted") });
|
|
@@ -16150,21 +16488,32 @@ const ApplicationDetails = defineComponent({
|
|
|
16150
16488
|
}), ({ application: current }) => [[ApplicationQueryKeys$1.APPLICATION, current.id], [ApplicationQueryKeys$1.APPLICATIONS]]);
|
|
16151
16489
|
const regeneration = useResourceMutation_default((applicationId, fetcher) => regenerateClientSecret$1({
|
|
16152
16490
|
...endpoint,
|
|
16491
|
+
administrationMode: props.administrationMode,
|
|
16153
16492
|
applicationId,
|
|
16154
16493
|
fetcher
|
|
16155
16494
|
}), (applicationId) => [[ApplicationQueryKeys$1.APPLICATION, applicationId], [ApplicationQueryKeys$1.APPLICATIONS]]);
|
|
16495
|
+
const lifecycle = useAccountLifecycle_default({
|
|
16496
|
+
enabled: () => props.lifecycleActions,
|
|
16497
|
+
invalidatedKeys: () => [[ApplicationQueryKeys$1.APPLICATION, props.applicationId], [ApplicationQueryKeys$1.APPLICATIONS]],
|
|
16498
|
+
kind: "application",
|
|
16499
|
+
status: () => application.data.value?.status?.value,
|
|
16500
|
+
subject: () => props.applicationId
|
|
16501
|
+
});
|
|
16156
16502
|
return () => {
|
|
16157
16503
|
const current = application.data.value;
|
|
16158
16504
|
return h(BaseApplicationDetails_default, {
|
|
16159
16505
|
application: current,
|
|
16160
16506
|
className: props.className,
|
|
16161
16507
|
clientSecret: regeneration.data.value?.clientSecret ?? null,
|
|
16162
|
-
error: toManagementErrorMessage(t, application.error.value, "admin.applications.details.error") ?? toManagementErrorMessage(t, deletion.error.value, "admin.applications.details.delete.error") ?? toManagementErrorMessage(t, update.error.value, "admin.applications.details.edit.error") ?? toManagementErrorMessage(t, regeneration.error.value, "admin.applications.details.secret.error"),
|
|
16508
|
+
error: toManagementErrorMessage(t, application.error.value, "admin.applications.details.error") ?? toManagementErrorMessage(t, deletion.error.value, "admin.applications.details.delete.error") ?? toManagementErrorMessage(t, update.error.value, "admin.applications.details.edit.error") ?? toManagementErrorMessage(t, regeneration.error.value, "admin.applications.details.secret.error") ?? toManagementErrorMessage(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? toManagementErrorMessage(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error"),
|
|
16163
16509
|
isDeleting: deletion.isLoading.value,
|
|
16164
16510
|
isLoading: application.isLoading.value,
|
|
16165
16511
|
isRegeneratingSecret: regeneration.isLoading.value,
|
|
16512
|
+
isRunningLifecycleAction: lifecycle.isRunning.value,
|
|
16166
16513
|
isUpdating: update.isLoading.value,
|
|
16514
|
+
lifecycleActions: lifecycle.actions.value,
|
|
16167
16515
|
onDelete: props.deletable ? () => void deletion.mutate(props.applicationId) : void 0,
|
|
16516
|
+
onLifecycleAction: props.lifecycleActions ? lifecycle.run : void 0,
|
|
16168
16517
|
onRegenerateSecret: props.secretRegenerable ? () => void regeneration.mutate(props.applicationId) : void 0,
|
|
16169
16518
|
onSecretDismiss: regeneration.reset,
|
|
16170
16519
|
onUpdate: props.editable && current ? (changes) => void update.mutate({
|
|
@@ -16314,4 +16663,4 @@ const createCallbackRoute = (options = {}) => {
|
|
|
16314
16663
|
};
|
|
16315
16664
|
|
|
16316
16665
|
//#endregion
|
|
16317
|
-
export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseGroupCreate_default as BaseGroupCreate, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createDesignTheme, createField, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createResource, createResourceInvalidator, createResourceServer, createRole, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRoleAssignments, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };
|
|
16666
|
+
export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseGroupCreate_default as BaseGroupCreate, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createDesignTheme, createField, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createResource, createResourceInvalidator, createResourceServer, createRole, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRoleAssignments, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };
|