@thunderid/vue 1.19.1 → 1.20.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 +171 -54
- package/dist/components/account/user-profile/BaseUserProfile.d.ts.map +1 -1
- package/dist/components/account/verify-attribute/BaseVerifyAttribute.d.ts.map +1 -1
- package/dist/components/account/verify-attribute/VerifyAttribute.css.d.ts +1 -1
- package/dist/components/account/verify-attribute/VerifyAttribute.css.d.ts.map +1 -1
- package/dist/components/management/UserDetails/BaseUserDetails.d.ts +15 -1
- package/dist/components/management/UserDetails/BaseUserDetails.d.ts.map +1 -1
- package/dist/components/management/UserDetails/UserDetails.d.ts +2 -1
- package/dist/components/management/UserDetails/UserDetails.d.ts.map +1 -1
- package/dist/components/management/shared/Admin.css.d.ts +2 -2
- package/dist/components/management/shared/Admin.css.d.ts.map +1 -1
- package/dist/components/primitives/Icons.d.ts +1 -0
- package/dist/components/primitives/Icons.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +167 -56
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -2615,16 +2615,6 @@ const VERIFY_ATTRIBUTE_CSS = `
|
|
|
2615
2615
|
gap: calc(var(--thunderid-spacing-unit) * 1.5);
|
|
2616
2616
|
}
|
|
2617
2617
|
|
|
2618
|
-
.thunderid-verify-attribute__content .thunderid-otp-field__inputs {
|
|
2619
|
-
justify-content: flex-start;
|
|
2620
|
-
}
|
|
2621
|
-
|
|
2622
|
-
.thunderid-verify-attribute__content .thunderid-otp-field__digit {
|
|
2623
|
-
flex: 1 1 calc(var(--thunderid-spacing-unit) * 4);
|
|
2624
|
-
max-width: calc(var(--thunderid-spacing-unit) * 6);
|
|
2625
|
-
min-width: 0;
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
2618
|
.thunderid-verify-attribute__alert {
|
|
2629
2619
|
width: 100%;
|
|
2630
2620
|
}
|
|
@@ -2655,7 +2645,7 @@ var VerifyAttribute_css_default = VERIFY_ATTRIBUTE_CSS;
|
|
|
2655
2645
|
* Section: __header | __heading | __title | __description | __actions
|
|
2656
2646
|
* Forms: __form | __form-actions
|
|
2657
2647
|
* Parts: __panel | __panel-header | __panel-title | __detail | __detail-label | __detail-value
|
|
2658
|
-
* __chip-list | __chip | __confirm | __muted | __row | __avatar | __picker
|
|
2648
|
+
* __chip-list | __chip | __status-chip | __confirm | __muted | __row | __avatar | __picker
|
|
2659
2649
|
*
|
|
2660
2650
|
* Each component root also carries its own block class (for example `.thunderid-user-list`), so an
|
|
2661
2651
|
* application can target a single component.
|
|
@@ -2776,6 +2766,35 @@ const ADMIN_CSS = `
|
|
|
2776
2766
|
color: var(--thunderid-color-text-primary);
|
|
2777
2767
|
}
|
|
2778
2768
|
|
|
2769
|
+
.thunderid-admin__status-chip {
|
|
2770
|
+
display: inline-flex;
|
|
2771
|
+
flex-shrink: 0;
|
|
2772
|
+
gap: calc(var(--thunderid-spacing-unit) * 0.5);
|
|
2773
|
+
align-items: center;
|
|
2774
|
+
padding: 0 var(--thunderid-spacing-unit);
|
|
2775
|
+
border-radius: 999px;
|
|
2776
|
+
font-size: 0.75rem;
|
|
2777
|
+
font-weight: 500;
|
|
2778
|
+
line-height: 22px;
|
|
2779
|
+
white-space: nowrap;
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
.thunderid-admin__status-chip svg {
|
|
2783
|
+
width: 12px;
|
|
2784
|
+
height: 12px;
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
.thunderid-admin__status-chip--success {
|
|
2788
|
+
color: var(--thunderid-color-success-dark, var(--thunderid-color-success-main));
|
|
2789
|
+
background: color-mix(in srgb, var(--thunderid-color-success-main) 12%, transparent);
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
/* Amber marks an action the administrator can take. */
|
|
2793
|
+
.thunderid-admin__status-chip--warning {
|
|
2794
|
+
color: var(--thunderid-color-warning-contrastText);
|
|
2795
|
+
background: color-mix(in srgb, var(--thunderid-color-warning-main) 14%, transparent);
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2779
2798
|
.thunderid-admin__confirm {
|
|
2780
2799
|
display: inline-flex;
|
|
2781
2800
|
flex-wrap: wrap;
|
|
@@ -2799,6 +2818,32 @@ const ADMIN_CSS = `
|
|
|
2799
2818
|
gap: calc(var(--thunderid-spacing-unit) * 1.5);
|
|
2800
2819
|
}
|
|
2801
2820
|
|
|
2821
|
+
/* The value and its status on the left, the send action at the row's end. */
|
|
2822
|
+
.thunderid-admin__verification-row {
|
|
2823
|
+
display: flex;
|
|
2824
|
+
align-items: center;
|
|
2825
|
+
justify-content: space-between;
|
|
2826
|
+
gap: calc(var(--thunderid-spacing-unit) * 1.5);
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
/* The action's padding must not make the row taller than its label. */
|
|
2830
|
+
.thunderid-admin__verification-row > button {
|
|
2831
|
+
margin-block: calc(var(--thunderid-spacing-unit) * -0.75);
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
.thunderid-admin__verification-value {
|
|
2835
|
+
display: inline-flex;
|
|
2836
|
+
flex-wrap: wrap;
|
|
2837
|
+
align-items: center;
|
|
2838
|
+
gap: var(--thunderid-spacing-unit);
|
|
2839
|
+
min-width: 0;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
.thunderid-admin__verification-row svg {
|
|
2843
|
+
width: 14px;
|
|
2844
|
+
height: 14px;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2802
2847
|
.thunderid-admin__name {
|
|
2803
2848
|
display: inline-flex;
|
|
2804
2849
|
align-items: center;
|
|
@@ -6009,6 +6054,7 @@ const TriangleAlertIcon = () => icon([
|
|
|
6009
6054
|
y2: "17"
|
|
6010
6055
|
})
|
|
6011
6056
|
]);
|
|
6057
|
+
const SendIcon = () => icon([(0, vue.h)("path", { d: "m22 2-7 20-4-9-9-4Z" }), (0, vue.h)("path", { d: "M22 2 11 13" })]);
|
|
6012
6058
|
const PlusIcon = () => icon([(0, vue.h)("line", {
|
|
6013
6059
|
x1: "12",
|
|
6014
6060
|
x2: "12",
|
|
@@ -11684,7 +11730,6 @@ const AVATAR_GRADIENTS$1 = [
|
|
|
11684
11730
|
"linear-gradient(135deg, #f97316 0%, #ec4899 100%)"
|
|
11685
11731
|
];
|
|
11686
11732
|
const isVerificationType = (type) => !!type && __thunderid_browser.AttributeVerificationConstants.VERIFIABLE_ATTRIBUTE_TYPES.includes(type.toLowerCase());
|
|
11687
|
-
const isVerifiedAfterSave = (type) => !!type && __thunderid_browser.AttributeVerificationConstants.VERIFY_AFTER_SAVE_ATTRIBUTE_TYPES.includes(type.toLowerCase());
|
|
11688
11733
|
const storedValueOf = (user, name) => {
|
|
11689
11734
|
return (user?.["attributes"])?.[name] ?? user?.[name];
|
|
11690
11735
|
};
|
|
@@ -11828,26 +11873,8 @@ const BaseUserProfile = (0, vue.defineComponent)({
|
|
|
11828
11873
|
focusBeforeDialog = null;
|
|
11829
11874
|
}
|
|
11830
11875
|
});
|
|
11831
|
-
const pendingVerification = (0, vue.ref)(null);
|
|
11832
11876
|
const storedUser = () => props.flattenedProfile ?? props.profile ?? null;
|
|
11833
11877
|
const reportedVerifiedAttributes = () => (0, __thunderid_browser.getVerifiedAttributes)(props.profile ?? props.flattenedProfile);
|
|
11834
|
-
(0, vue.watch)(() => [
|
|
11835
|
-
props.profile,
|
|
11836
|
-
props.flattenedProfile,
|
|
11837
|
-
props.error
|
|
11838
|
-
], () => {
|
|
11839
|
-
const pending = pendingVerification.value;
|
|
11840
|
-
if (!pending) return;
|
|
11841
|
-
if (props.error) {
|
|
11842
|
-
pendingVerification.value = null;
|
|
11843
|
-
return;
|
|
11844
|
-
}
|
|
11845
|
-
const storedValue = storedValueOf(storedUser(), pending.name);
|
|
11846
|
-
if (storedValue === pending.previousValue) return;
|
|
11847
|
-
const verified = reportedVerifiedAttributes();
|
|
11848
|
-
if (verified && typeof storedValue === "string" && storedValue.trim() !== "" && !verified[pending.name]) openVerification(pending.name);
|
|
11849
|
-
pendingVerification.value = null;
|
|
11850
|
-
});
|
|
11851
11878
|
function shouldShowField(fieldName, isSchemaBased = false) {
|
|
11852
11879
|
if (!isSchemaBased && FIELDS_TO_SKIP.includes(fieldName)) return false;
|
|
11853
11880
|
if (props.hideFields && props.hideFields.length > 0 && props.hideFields.includes(fieldName)) return false;
|
|
@@ -11925,13 +11952,7 @@ const BaseUserProfile = (0, vue.defineComponent)({
|
|
|
11925
11952
|
...fieldErrors.value,
|
|
11926
11953
|
[fieldName]: ""
|
|
11927
11954
|
};
|
|
11928
|
-
const
|
|
11929
|
-
const payload = buildPatchValue(fieldName, submitVal, schema.schemaId, schema.multiValued);
|
|
11930
|
-
const previousValue = storedValueOf(storedUser(), fieldName);
|
|
11931
|
-
pendingVerification.value = slots["verification"] && isVerifiedAfterSave(schema.type) && (0, __thunderid_browser.isVerifiableAttribute)(props.userSchema, fieldName) && typeof submitVal === "string" && submitVal !== "" && submitVal !== previousValue ? {
|
|
11932
|
-
name: fieldName,
|
|
11933
|
-
previousValue
|
|
11934
|
-
} : null;
|
|
11955
|
+
const payload = buildPatchValue(fieldName, typeof value === "string" ? strVal : value, schema.schemaId, schema.multiValued);
|
|
11935
11956
|
try {
|
|
11936
11957
|
await props.onUpdate(payload);
|
|
11937
11958
|
editingFields.value = {
|
|
@@ -11939,9 +11960,7 @@ const BaseUserProfile = (0, vue.defineComponent)({
|
|
|
11939
11960
|
[fieldName]: false
|
|
11940
11961
|
};
|
|
11941
11962
|
clearEditedValue(fieldName);
|
|
11942
|
-
} catch {
|
|
11943
|
-
pendingVerification.value = null;
|
|
11944
|
-
}
|
|
11963
|
+
} catch {}
|
|
11945
11964
|
}
|
|
11946
11965
|
function renderVerificationStatus(name) {
|
|
11947
11966
|
const verification = reportedVerifiedAttributes()?.[name];
|
|
@@ -12639,20 +12658,21 @@ const BaseVerifyAttribute = (0, vue.defineComponent)({
|
|
|
12639
12658
|
t,
|
|
12640
12659
|
variant: props.variant
|
|
12641
12660
|
}).map((node) => withFlowTestIds(node, flowIds))) : null,
|
|
12642
|
-
props.onCancel || showDone ? (0, vue.h)("div", { class: px("verify-attribute__actions") }, [
|
|
12643
|
-
color: "primary",
|
|
12644
|
-
"data-testid": "thunderid-action-verificationDone",
|
|
12645
|
-
onClick: () => props.onDone?.(),
|
|
12646
|
-
size: "small",
|
|
12647
|
-
variant: "solid"
|
|
12648
|
-
}, () => t("user.verification.buttons.done.text")) : null, props.onCancel ? (0, vue.h)(Button_default, {
|
|
12661
|
+
props.onCancel || showDone ? (0, vue.h)("div", { class: px("verify-attribute__actions") }, [props.onCancel ? (0, vue.h)(Button_default, {
|
|
12649
12662
|
color: "secondary",
|
|
12650
12663
|
"data-testid": "thunderid-action-verificationCancel",
|
|
12651
12664
|
disabled: isSubmitting.value,
|
|
12652
12665
|
onClick: () => props.onCancel?.(),
|
|
12653
12666
|
size: "small",
|
|
12654
|
-
|
|
12655
|
-
|
|
12667
|
+
type: "button",
|
|
12668
|
+
variant: "text"
|
|
12669
|
+
}, () => state.value === "active" || state.value === "loading" ? t("user.verification.buttons.cancel.text") : t("user.verification.buttons.close.text")) : null, showDone ? (0, vue.h)(Button_default, {
|
|
12670
|
+
color: "primary",
|
|
12671
|
+
"data-testid": "thunderid-action-verificationDone",
|
|
12672
|
+
onClick: () => props.onDone?.(),
|
|
12673
|
+
size: "small",
|
|
12674
|
+
variant: "solid"
|
|
12675
|
+
}, () => t("user.verification.buttons.done.text")) : null]) : null
|
|
12656
12676
|
]);
|
|
12657
12677
|
};
|
|
12658
12678
|
}
|
|
@@ -16545,6 +16565,10 @@ const BaseUserDetails = (0, vue.defineComponent)({
|
|
|
16545
16565
|
default: false,
|
|
16546
16566
|
type: Boolean
|
|
16547
16567
|
},
|
|
16568
|
+
isSendingVerification: {
|
|
16569
|
+
default: false,
|
|
16570
|
+
type: Boolean
|
|
16571
|
+
},
|
|
16548
16572
|
isUpdating: {
|
|
16549
16573
|
default: false,
|
|
16550
16574
|
type: Boolean
|
|
@@ -16561,6 +16585,10 @@ const BaseUserDetails = (0, vue.defineComponent)({
|
|
|
16561
16585
|
default: void 0,
|
|
16562
16586
|
type: Function
|
|
16563
16587
|
},
|
|
16588
|
+
onSendVerification: {
|
|
16589
|
+
default: void 0,
|
|
16590
|
+
type: Function
|
|
16591
|
+
},
|
|
16564
16592
|
onUpdate: {
|
|
16565
16593
|
default: void 0,
|
|
16566
16594
|
type: Function
|
|
@@ -16569,17 +16597,29 @@ const BaseUserDetails = (0, vue.defineComponent)({
|
|
|
16569
16597
|
default: void 0,
|
|
16570
16598
|
type: Object
|
|
16571
16599
|
},
|
|
16600
|
+
sentVerification: {
|
|
16601
|
+
default: null,
|
|
16602
|
+
type: Object
|
|
16603
|
+
},
|
|
16572
16604
|
user: {
|
|
16573
16605
|
default: void 0,
|
|
16574
16606
|
type: Object
|
|
16607
|
+
},
|
|
16608
|
+
userSchema: {
|
|
16609
|
+
default: void 0,
|
|
16610
|
+
type: Object
|
|
16575
16611
|
}
|
|
16576
16612
|
},
|
|
16577
16613
|
setup(props, { slots }) {
|
|
16578
16614
|
const t = useAdminTranslation_default(() => props.preferences);
|
|
16579
16615
|
const uid = (0, vue.useId)();
|
|
16580
16616
|
const draft = (0, vue.ref)(null);
|
|
16617
|
+
const sendingAttribute = (0, vue.ref)(null);
|
|
16581
16618
|
return () => {
|
|
16582
16619
|
const { user } = props;
|
|
16620
|
+
const visibleAttributeNames = Object.keys(user?.attributes ?? {}).filter((name) => !props.hiddenAttributes.includes(name));
|
|
16621
|
+
const verifiableAttributes = visibleAttributeNames.filter((name) => (0, __thunderid_browser.isAdminVerifiableAttribute)(user, name, props.userSchema));
|
|
16622
|
+
const verificationStatusAttributes = visibleAttributeNames.filter((name) => (0, __thunderid_browser.hasAdminVerificationStatus)(user, name, props.userSchema));
|
|
16583
16623
|
if (slots["default"]) {
|
|
16584
16624
|
const isWritable = Boolean(user) && !user?.isReadOnly;
|
|
16585
16625
|
const renderProps = {
|
|
@@ -16590,12 +16630,20 @@ const BaseUserDetails = (0, vue.defineComponent)({
|
|
|
16590
16630
|
isDeleting: props.isDeleting,
|
|
16591
16631
|
isLoading: props.isLoading,
|
|
16592
16632
|
isRunningLifecycleAction: props.isRunningLifecycleAction,
|
|
16633
|
+
isSendingVerification: props.isSendingVerification,
|
|
16593
16634
|
isUpdating: props.isUpdating,
|
|
16594
16635
|
lifecycleActions: props.onLifecycleAction && user ? props.lifecycleActions : [],
|
|
16595
16636
|
onDelete: isWritable ? props.onDelete : void 0,
|
|
16596
16637
|
onLifecycleAction: user ? props.onLifecycleAction : void 0,
|
|
16638
|
+
onSendVerification: isWritable && !props.isUpdating && props.onSendVerification ? (name) => {
|
|
16639
|
+
if (verifiableAttributes.includes(name) && !user?.verifiedAttributes?.[name]) props.onSendVerification?.(name);
|
|
16640
|
+
} : void 0,
|
|
16597
16641
|
onUpdate: isWritable ? props.onUpdate : void 0,
|
|
16598
|
-
|
|
16642
|
+
sentVerification: props.sentVerification,
|
|
16643
|
+
user,
|
|
16644
|
+
verifiableAttributes,
|
|
16645
|
+
verificationStatusAttributes,
|
|
16646
|
+
verifiedAttributes: user?.verifiedAttributes
|
|
16599
16647
|
};
|
|
16600
16648
|
return (0, vue.h)("div", { class: props.className }, slots["default"](renderProps));
|
|
16601
16649
|
}
|
|
@@ -16617,6 +16665,26 @@ const BaseUserDetails = (0, vue.defineComponent)({
|
|
|
16617
16665
|
const attributes = Object.entries(user.attributes ?? {}).filter(([name]) => !props.hiddenAttributes.includes(name));
|
|
16618
16666
|
const editableAttributes = attributes.filter((entry) => typeof entry[1] === "string");
|
|
16619
16667
|
const canEdit = Boolean(props.onUpdate) && !user.isReadOnly && editableAttributes.length > 0;
|
|
16668
|
+
const renderVerificationStatus = (name) => {
|
|
16669
|
+
const isVerified = user.verifiedAttributes?.[name] !== void 0;
|
|
16670
|
+
return (0, vue.h)("span", { class: [cls$10("status-chip"), isVerified ? cls$10("status-chip--success") : cls$10("status-chip--warning")] }, [(0, vue.h)(isVerified ? CircleCheckIcon : CircleAlertIcon, { "aria-hidden": "true" }), isVerified ? t("admin.users.details.verification.status.verified") : t("admin.users.details.verification.status.unverified")]);
|
|
16671
|
+
};
|
|
16672
|
+
const renderAttributeValue = (name, value) => {
|
|
16673
|
+
if (!verificationStatusAttributes.includes(name)) return stringify(value);
|
|
16674
|
+
const canSend = props.onSendVerification && !user.isReadOnly && verifiableAttributes.includes(name) && user.verifiedAttributes?.[name] === void 0;
|
|
16675
|
+
return (0, vue.h)("span", { class: cls$10("verification-row") }, [(0, vue.h)("span", { class: cls$10("verification-value") }, [(0, vue.h)("span", stringify(value)), renderVerificationStatus(name)]), canSend ? (0, vue.h)(Button_default, {
|
|
16676
|
+
"aria-label": `${t("admin.users.details.verification.verify")} ${name}`,
|
|
16677
|
+
disabled: props.isSendingVerification || props.isUpdating,
|
|
16678
|
+
loading: props.isSendingVerification && sendingAttribute.value === name,
|
|
16679
|
+
onClick: () => {
|
|
16680
|
+
sendingAttribute.value = name;
|
|
16681
|
+
props.onSendVerification?.(name);
|
|
16682
|
+
},
|
|
16683
|
+
size: "small",
|
|
16684
|
+
startIcon: (0, vue.h)(SendIcon, { "aria-hidden": "true" }),
|
|
16685
|
+
variant: "text"
|
|
16686
|
+
}, { default: () => t("admin.users.details.verification.verify") }) : null]);
|
|
16687
|
+
};
|
|
16620
16688
|
const renderAttributes = () => {
|
|
16621
16689
|
if (draft.value) {
|
|
16622
16690
|
const current = draft.value;
|
|
@@ -16656,7 +16724,7 @@ const BaseUserDetails = (0, vue.defineComponent)({
|
|
|
16656
16724
|
}
|
|
16657
16725
|
if (attributes.length > 0) return (0, vue.h)(DetailList_default, { items: attributes.map(([name, value]) => ({
|
|
16658
16726
|
label: name,
|
|
16659
|
-
value:
|
|
16727
|
+
value: renderAttributeValue(name, value)
|
|
16660
16728
|
})) });
|
|
16661
16729
|
return (0, vue.h)("span", { class: cls$10("muted") }, t("admin.users.details.no_attributes"));
|
|
16662
16730
|
};
|
|
@@ -16685,6 +16753,7 @@ const BaseUserDetails = (0, vue.defineComponent)({
|
|
|
16685
16753
|
],
|
|
16686
16754
|
default: () => [
|
|
16687
16755
|
props.error ? (0, vue.h)(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null,
|
|
16756
|
+
props.sentVerification && !props.error ? (0, vue.h)(Alert_default, { severity: props.sentVerification.emailSent === false ? "error" : "success" }, { default: () => [props.sentVerification?.emailSent === false ? t("admin.users.details.verification.error") : props.sentVerification?.maskedDestination ? t("admin.users.details.verification.sent", { destination: props.sentVerification.maskedDestination }) : t("admin.users.details.verification.sent_generic")] }) : null,
|
|
16688
16757
|
(0, vue.h)("div", { class: cls$10("row") }, [
|
|
16689
16758
|
(0, vue.h)(AdminAvatar_default, {
|
|
16690
16759
|
name: displayName,
|
|
@@ -16774,7 +16843,8 @@ var useAccountLifecycle_default = useAccountLifecycle;
|
|
|
16774
16843
|
//#region src/components/management/UserDetails/UserDetails.ts
|
|
16775
16844
|
/**
|
|
16776
16845
|
* Shows a user and the groups they belong to, and optionally lets the signed-in user edit or delete
|
|
16777
|
-
* them. Emits `deleted` after
|
|
16846
|
+
* them, run account lifecycle actions or send them a link to verify their email. Emits `deleted` after
|
|
16847
|
+
* the user has been deleted.
|
|
16778
16848
|
*
|
|
16779
16849
|
* Slots: `actions`, rendered next to the user's name.
|
|
16780
16850
|
*
|
|
@@ -16790,6 +16860,10 @@ const UserDetails = (0, vue.defineComponent)({
|
|
|
16790
16860
|
default: void 0,
|
|
16791
16861
|
type: String
|
|
16792
16862
|
},
|
|
16863
|
+
attributeVerification: {
|
|
16864
|
+
default: false,
|
|
16865
|
+
type: Boolean
|
|
16866
|
+
},
|
|
16793
16867
|
className: {
|
|
16794
16868
|
default: "",
|
|
16795
16869
|
type: String
|
|
@@ -16829,6 +16903,13 @@ const UserDetails = (0, vue.defineComponent)({
|
|
|
16829
16903
|
fetcher,
|
|
16830
16904
|
userId: props.userId
|
|
16831
16905
|
}), { enabled: hasUserId });
|
|
16906
|
+
const userTypesEndpoint = useManagementEndpoint_default("userTypes");
|
|
16907
|
+
const typeHandle = () => user.data.value?.id === props.userId ? user.data.value.type : void 0;
|
|
16908
|
+
const userType = useResourceQuery_default(() => [__thunderid_browser.UserQueryKeys.USER_TYPES, { handle: typeHandle() }], (fetcher) => (0, __thunderid_browser.getUserTypeByHandle)({
|
|
16909
|
+
...userTypesEndpoint,
|
|
16910
|
+
fetcher,
|
|
16911
|
+
handle: typeHandle()
|
|
16912
|
+
}), { enabled: () => props.attributeVerification && Boolean(typeHandle() && user.data.value?.verifiedAttributes) });
|
|
16832
16913
|
const groups = useResourceQuery_default(() => [
|
|
16833
16914
|
__thunderid_browser.GroupQueryKeys.MEMBERSHIPS,
|
|
16834
16915
|
"user",
|
|
@@ -16852,6 +16933,20 @@ const UserDetails = (0, vue.defineComponent)({
|
|
|
16852
16933
|
payload: data,
|
|
16853
16934
|
userId
|
|
16854
16935
|
}), ({ userId }) => [[__thunderid_browser.UserQueryKeys.USER, userId], [__thunderid_browser.UserQueryKeys.USERS]]);
|
|
16936
|
+
const { baseUrl } = useThunderID_default();
|
|
16937
|
+
const verificationFlow = useResourceQuery_default(() => ["administration-flows", "attribute-verification"], (fetcher) => (0, __thunderid_browser.resolveAdministrationFlowHandles)({
|
|
16938
|
+
baseUrl,
|
|
16939
|
+
fetcher
|
|
16940
|
+
}, [__thunderid_browser.AdministrationFlowConfigKey.ADMIN_ATTRIBUTE_VERIFICATION]), { enabled: () => props.attributeVerification });
|
|
16941
|
+
const verificationHandle = () => verificationFlow.data.value?.[__thunderid_browser.AdministrationFlowConfigKey.ADMIN_ATTRIBUTE_VERIFICATION];
|
|
16942
|
+
const verificationTarget = (0, vue.shallowRef)(null);
|
|
16943
|
+
const verification = useResourceMutation_default(({ attribute, userId }, fetcher) => (0, __thunderid_browser.sendUserAttributeVerification)({
|
|
16944
|
+
...endpoint,
|
|
16945
|
+
attribute,
|
|
16946
|
+
fetcher,
|
|
16947
|
+
handle: verificationHandle(),
|
|
16948
|
+
userId
|
|
16949
|
+
}), ({ userId }) => [[__thunderid_browser.UserQueryKeys.USER, userId]]);
|
|
16855
16950
|
const lifecycle = useAccountLifecycle_default({
|
|
16856
16951
|
enabled: () => props.lifecycleActions,
|
|
16857
16952
|
invalidatedKeys: () => [[__thunderid_browser.UserQueryKeys.USER, props.userId], [__thunderid_browser.UserQueryKeys.USERS]],
|
|
@@ -16861,18 +16956,32 @@ const UserDetails = (0, vue.defineComponent)({
|
|
|
16861
16956
|
});
|
|
16862
16957
|
return () => {
|
|
16863
16958
|
const current = user.data.value;
|
|
16959
|
+
const userSchema = userType.data.value?.handle === typeHandle() ? userType.data.value?.schema : void 0;
|
|
16960
|
+
const target = verificationTarget.value;
|
|
16961
|
+
const showVerificationResult = props.attributeVerification && target?.userId === props.userId && current?.attributes?.[target.attribute] === target.value;
|
|
16864
16962
|
return (0, vue.h)(BaseUserDetails_default, {
|
|
16865
16963
|
className: props.className,
|
|
16866
|
-
error: (0, __thunderid_browser.toManagementErrorMessage)(t, user.error.value, "admin.users.details.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, deletion.error.value, "admin.users.details.delete.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, update.error.value, "admin.users.details.edit.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error"),
|
|
16964
|
+
error: (0, __thunderid_browser.toManagementErrorMessage)(t, user.error.value, "admin.users.details.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, deletion.error.value, "admin.users.details.delete.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, update.error.value, "admin.users.details.edit.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, showVerificationResult ? verification.error.value : null, "admin.users.details.verification.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, verificationFlow.error.value ?? userType.error.value, "admin.users.details.verification.load_error"),
|
|
16867
16965
|
groups: groups.data.value?.groups ?? [],
|
|
16868
16966
|
hiddenAttributes: props.hiddenAttributes,
|
|
16869
16967
|
isDeleting: deletion.isLoading.value,
|
|
16870
16968
|
isLoading: user.isLoading.value,
|
|
16871
16969
|
isRunningLifecycleAction: lifecycle.isRunning.value,
|
|
16970
|
+
isSendingVerification: verification.isLoading.value,
|
|
16872
16971
|
isUpdating: update.isLoading.value,
|
|
16873
16972
|
lifecycleActions: lifecycle.actions.value,
|
|
16874
16973
|
onDelete: props.deletable ? () => void deletion.mutate(props.userId) : void 0,
|
|
16875
16974
|
onLifecycleAction: props.lifecycleActions ? lifecycle.run : void 0,
|
|
16975
|
+
onSendVerification: props.attributeVerification && verificationHandle() && userSchema && current?.id === props.userId ? (attribute) => {
|
|
16976
|
+
const target$1 = {
|
|
16977
|
+
attribute,
|
|
16978
|
+
userId: props.userId,
|
|
16979
|
+
value: current?.attributes?.[attribute]
|
|
16980
|
+
};
|
|
16981
|
+
verificationTarget.value = target$1;
|
|
16982
|
+
verification.reset();
|
|
16983
|
+
verification.mutate(target$1);
|
|
16984
|
+
} : void 0,
|
|
16876
16985
|
onUpdate: props.editable && current ? (attributes) => void update.mutate({
|
|
16877
16986
|
data: {
|
|
16878
16987
|
attributes,
|
|
@@ -16882,7 +16991,9 @@ const UserDetails = (0, vue.defineComponent)({
|
|
|
16882
16991
|
userId: props.userId
|
|
16883
16992
|
}) : void 0,
|
|
16884
16993
|
preferences: props.preferences,
|
|
16885
|
-
|
|
16994
|
+
sentVerification: showVerificationResult ? verification.data.value ?? null : null,
|
|
16995
|
+
user: current,
|
|
16996
|
+
userSchema
|
|
16886
16997
|
}, { ...slots });
|
|
16887
16998
|
};
|
|
16888
16999
|
}
|
|
@@ -23674,6 +23785,12 @@ Object.defineProperty(exports, 'runAdministrationFlow', {
|
|
|
23674
23785
|
return __thunderid_browser.runAdministrationFlow;
|
|
23675
23786
|
}
|
|
23676
23787
|
});
|
|
23788
|
+
Object.defineProperty(exports, 'sendUserAttributeVerification', {
|
|
23789
|
+
enumerable: true,
|
|
23790
|
+
get: function () {
|
|
23791
|
+
return __thunderid_browser.sendUserAttributeVerification;
|
|
23792
|
+
}
|
|
23793
|
+
});
|
|
23677
23794
|
Object.defineProperty(exports, 'setTranslation', {
|
|
23678
23795
|
enumerable: true,
|
|
23679
23796
|
get: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseUserProfile.d.ts","sourceRoot":"","sources":["../../../../src/components/account/user-profile/BaseUserProfile.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAEf,WAAW,EACX,KAAK,IAAI,EACT,KAAK,iBAAiB,EAOvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EAMd,KAAK,KAAK,EAOX,MAAM,KAAK,CAAC;AAiCb,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EA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gDAAgD;IAChD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;
|
|
1
|
+
{"version":3,"file":"BaseUserProfile.d.ts","sourceRoot":"","sources":["../../../../src/components/account/user-profile/BaseUserProfile.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAEf,WAAW,EACX,KAAK,IAAI,EACT,KAAK,iBAAiB,EAOvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EAMd,KAAK,KAAK,EAOX,MAAM,KAAK,CAAC;AAiCb,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,IAAI,CAAC;CACrD;AAED;;;GAGG;AACH,MAAM,WAAW,oCAAoC;IACnD,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,wBAAwB;IACxB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,+DAA+D;IAC/D,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C,oCAAoC;IACpC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,4FAA4F;IAC5F,kBAAkB,EAAE,MAAM,KAAK,GAAG,IAAI,CAAC;IACvC,sEAAsE;IACtE,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;;;OAGG;IACH,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,UAAU,GAAG,YAAY,GAAG,IAAI,CAAC;IAC5E,uGAAuG;IACvG,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAClE,gDAAgD;IAChD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AA2GD,QAAA,MAAM,eAAe,EAAE,SAmrBrB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseVerifyAttribute.d.ts","sourceRoot":"","sources":["../../../../src/components/account/verify-attribute/BaseVerifyAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EAKxB,WAAW,EAKZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAA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CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,wBAAwB;IACvC,8FAA8F;IAC9F,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC1D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC5D,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACnF,8EAA8E;IAC9E,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"BaseVerifyAttribute.d.ts","sourceRoot":"","sources":["../../../../src/components/account/verify-attribute/BaseVerifyAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB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
|
|
3
3
|
* Parity target: `@thunderid/react` BaseVerifyAttribute.styles.ts
|
|
4
4
|
*/
|
|
5
|
-
declare const VERIFY_ATTRIBUTE_CSS = "\n/* ============================================================\n VerifyAttribute (React Parity)\n ============================================================ */\n\n.thunderid-verify-attribute {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 2);\n width: 100%;\n box-sizing: border-box;\n font-family: var(--thunderid-typography-fontFamily);\n}\n\n.thunderid-verify-attribute--outlined {\n padding: calc(var(--thunderid-spacing-unit) * 2);\n border: 1px solid var(--thunderid-color-border);\n border-radius: var(--thunderid-border-radius-medium, 6px);\n}\n\n.thunderid-verify-attribute__header {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) / 2);\n}\n\n.thunderid-verify-attribute__heading {\n margin: 0;\n}\n\n.thunderid-verify-attribute__subheading,\n.thunderid-verify-attribute__destination {\n margin: 0;\n color: var(--thunderid-color-text-secondary);\n}\n\n.thunderid-verify-attribute__content {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-verify-
|
|
5
|
+
declare const VERIFY_ATTRIBUTE_CSS = "\n/* ============================================================\n VerifyAttribute (React Parity)\n ============================================================ */\n\n.thunderid-verify-attribute {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 2);\n width: 100%;\n box-sizing: border-box;\n font-family: var(--thunderid-typography-fontFamily);\n}\n\n.thunderid-verify-attribute--outlined {\n padding: calc(var(--thunderid-spacing-unit) * 2);\n border: 1px solid var(--thunderid-color-border);\n border-radius: var(--thunderid-border-radius-medium, 6px);\n}\n\n.thunderid-verify-attribute__header {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) / 2);\n}\n\n.thunderid-verify-attribute__heading {\n margin: 0;\n}\n\n.thunderid-verify-attribute__subheading,\n.thunderid-verify-attribute__destination {\n margin: 0;\n color: var(--thunderid-color-text-secondary);\n}\n\n.thunderid-verify-attribute__content {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-verify-attribute__alert {\n width: 100%;\n}\n\n.thunderid-verify-attribute__loading {\n display: flex;\n justify-content: center;\n padding: calc(var(--thunderid-spacing-unit) * 2);\n}\n\n.thunderid-verify-attribute__actions {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: var(--thunderid-spacing-unit);\n}\n";
|
|
6
6
|
export default VERIFY_ATTRIBUTE_CSS;
|
|
7
7
|
//# sourceMappingURL=VerifyAttribute.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyAttribute.css.d.ts","sourceRoot":"","sources":["../../../../src/components/account/verify-attribute/VerifyAttribute.css.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,QAAA,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"VerifyAttribute.css.d.ts","sourceRoot":"","sources":["../../../../src/components/account/verify-attribute/VerifyAttribute.css.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,QAAA,MAAM,oBAAoB,47CA0DzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AccountLifecycleAction, type ManagedUser, type MembershipGroup } from '@thunderid/browser';
|
|
1
|
+
import { type AccountLifecycleAction, type ManagedUser, type MembershipGroup, type SendUserAttributeVerificationResult, type VerifiedAttribute } from '@thunderid/browser';
|
|
2
2
|
import { type Component } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* What `BaseUserDetails` hands its default scoped slot, so the user can be shown with any UI.
|
|
@@ -13,6 +13,7 @@ export interface BaseUserDetailsRenderProps {
|
|
|
13
13
|
isDeleting: boolean;
|
|
14
14
|
isLoading: boolean;
|
|
15
15
|
isRunningLifecycleAction: boolean;
|
|
16
|
+
isSendingVerification: boolean;
|
|
16
17
|
isUpdating: boolean;
|
|
17
18
|
/** The account lifecycle actions offered for the user. Empty when none is allowed. */
|
|
18
19
|
lifecycleActions: AccountLifecycleAction[];
|
|
@@ -23,9 +24,22 @@ export interface BaseUserDetailsRenderProps {
|
|
|
23
24
|
* allowed.
|
|
24
25
|
*/
|
|
25
26
|
onLifecycleAction?: (action: AccountLifecycleAction, operatorNote?: string) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Sends the user a link to verify the given attribute. Undefined when sending is not allowed, including
|
|
29
|
+
* for read-only users.
|
|
30
|
+
*/
|
|
31
|
+
onSendVerification?: (attribute: string) => void;
|
|
26
32
|
/** Saves the given attributes. Undefined when editing is not allowed, including for read-only users. */
|
|
27
33
|
onUpdate?: (attributes: Record<string, unknown>) => void;
|
|
34
|
+
/** What the last sent verification link reported, such as its masked destination. */
|
|
35
|
+
sentVerification: SendUserAttributeVerificationResult | null;
|
|
28
36
|
user?: ManagedUser;
|
|
37
|
+
/** The attributes whose verification status is known and for which a link can be sent, verified or not. */
|
|
38
|
+
verifiableAttributes: string[];
|
|
39
|
+
/** Visible contact attributes with a known verification status, including mobile numbers. */
|
|
40
|
+
verificationStatusAttributes: string[];
|
|
41
|
+
/** The user's verified attributes, keyed by attribute. Undefined when the server does not report them. */
|
|
42
|
+
verifiedAttributes?: Record<string, VerifiedAttribute>;
|
|
29
43
|
}
|
|
30
44
|
/**
|
|
31
45
|
* Shows a user's attributes, type, organization unit and groups. Holds no data of its own: pass the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseUserDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/management/UserDetails/BaseUserDetails.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,
|
|
1
|
+
{"version":3,"file":"BaseUserDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/management/UserDetails/BaseUserDetails.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE3B,KAAK,WAAW,EAChB,KAAK,eAAe,EAEpB,KAAK,mCAAmC,EACxC,KAA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H,QAAA,MAAM,eAAe,EAAE,SA6VrB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type Component } from 'vue';
|
|
2
2
|
/**
|
|
3
3
|
* Shows a user and the groups they belong to, and optionally lets the signed-in user edit or delete
|
|
4
|
-
* them. Emits `deleted` after
|
|
4
|
+
* them, run account lifecycle actions or send them a link to verify their email. Emits `deleted` after
|
|
5
|
+
* the user has been deleted.
|
|
5
6
|
*
|
|
6
7
|
* Slots: `actions`, rendered next to the user's name.
|
|
7
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/management/UserDetails/UserDetails.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/management/UserDetails/UserDetails.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAC,KAAK,SAAS,EAA+E,MAAM,KAAK,CAAC;AAgCjH;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,WAAW,EAAE,SAsKjB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* Section: __header | __heading | __title | __description | __actions
|
|
8
8
|
* Forms: __form | __form-actions
|
|
9
9
|
* Parts: __panel | __panel-header | __panel-title | __detail | __detail-label | __detail-value
|
|
10
|
-
* __chip-list | __chip | __confirm | __muted | __row | __avatar | __picker
|
|
10
|
+
* __chip-list | __chip | __status-chip | __confirm | __muted | __row | __avatar | __picker
|
|
11
11
|
*
|
|
12
12
|
* Each component root also carries its own block class (for example `.thunderid-user-list`), so an
|
|
13
13
|
* application can target a single component.
|
|
14
14
|
*/
|
|
15
|
-
declare const ADMIN_CSS = "\n/* ============================================================\n Admin components\n ============================================================ */\n\n.thunderid-admin {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 2);\n font-family: var(--thunderid-typography-fontFamily);\n color: var(--thunderid-color-text-primary);\n}\n\n.thunderid-admin__header {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n justify-content: space-between;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-admin__title {\n margin: 0;\n font-size: var(--thunderid-typography-fontSize-xl);\n font-weight: var(--thunderid-typography-fontWeight-normal);\n}\n\n.thunderid-admin__description {\n margin: calc(var(--thunderid-spacing-unit) / 2) 0 0;\n color: var(--thunderid-color-text-secondary);\n font-size: var(--thunderid-typography-fontSize-sm);\n}\n\n.thunderid-admin__actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--thunderid-spacing-unit);\n}\n\n.thunderid-admin__form {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 2);\n max-width: 560px;\n}\n\n.thunderid-admin__form-actions {\n display: flex;\n gap: var(--thunderid-spacing-unit);\n justify-content: flex-end;\n}\n\n.thunderid-admin__panel {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n padding: calc(var(--thunderid-spacing-unit) * 2);\n border: 1px solid var(--thunderid-color-border);\n border-radius: var(--thunderid-border-radius-large);\n background: var(--thunderid-color-background-surface);\n}\n\n.thunderid-admin__panel-header {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-admin__panel-title {\n margin: 0;\n font-size: var(--thunderid-typography-fontSize-md);\n font-weight: var(--thunderid-typography-fontWeight-semibold);\n}\n\n.thunderid-admin__detail {\n display: grid;\n grid-template-columns: fit-content(200px) minmax(0, 1fr);\n gap: var(--thunderid-spacing-unit) calc(var(--thunderid-spacing-unit) * 2);\n margin: 0;\n font-size: var(--thunderid-typography-fontSize-sm);\n}\n\n.thunderid-admin__detail-label {\n color: var(--thunderid-color-text-secondary);\n}\n\n.thunderid-admin__detail-value {\n margin: 0;\n color: var(--thunderid-color-text-primary);\n overflow-wrap: anywhere;\n}\n\n.thunderid-admin__chip-list {\n display: flex;\n flex-wrap: wrap;\n gap: var(--thunderid-spacing-unit);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.thunderid-admin__chip {\n display: inline-flex;\n align-items: center;\n gap: calc(var(--thunderid-spacing-unit) / 2);\n padding: calc(var(--thunderid-spacing-unit) / 2) var(--thunderid-spacing-unit);\n border-radius: var(--thunderid-border-radius-full);\n border: 1px solid var(--thunderid-color-border);\n background: var(--thunderid-color-background-surface);\n font-size: var(--thunderid-typography-fontSize-sm);\n color: var(--thunderid-color-text-primary);\n}\n\n.thunderid-admin__confirm {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--thunderid-spacing-unit);\n font-size: var(--thunderid-typography-fontSize-sm);\n}\n\n.thunderid-admin__muted {\n display: inline-flex;\n align-items: center;\n gap: var(--thunderid-spacing-unit);\n color: var(--thunderid-color-text-secondary);\n font-size: var(--thunderid-typography-fontSize-sm);\n}\n\n.thunderid-admin__row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-admin__name {\n display: inline-flex;\n align-items: center;\n gap: 0.75em;\n}\n\n.thunderid-admin__avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n border-radius: var(--thunderid-border-radius-full);\n background: var(--thunderid-color-primary-main);\n color: var(--thunderid-color-primary-contrastText);\n font-weight: var(--thunderid-typography-fontWeight-semibold);\n line-height: 1;\n user-select: none;\n}\n\n.thunderid-admin__picker {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-admin__picker > .thunderid-select {\n flex: 1 1 180px;\n}\n\n.thunderid-admin__edit-form {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n";
|
|
15
|
+
declare const ADMIN_CSS = "\n/* ============================================================\n Admin components\n ============================================================ */\n\n.thunderid-admin {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 2);\n font-family: var(--thunderid-typography-fontFamily);\n color: var(--thunderid-color-text-primary);\n}\n\n.thunderid-admin__header {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n justify-content: space-between;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-admin__title {\n margin: 0;\n font-size: var(--thunderid-typography-fontSize-xl);\n font-weight: var(--thunderid-typography-fontWeight-normal);\n}\n\n.thunderid-admin__description {\n margin: calc(var(--thunderid-spacing-unit) / 2) 0 0;\n color: var(--thunderid-color-text-secondary);\n font-size: var(--thunderid-typography-fontSize-sm);\n}\n\n.thunderid-admin__actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--thunderid-spacing-unit);\n}\n\n.thunderid-admin__form {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 2);\n max-width: 560px;\n}\n\n.thunderid-admin__form-actions {\n display: flex;\n gap: var(--thunderid-spacing-unit);\n justify-content: flex-end;\n}\n\n.thunderid-admin__panel {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n padding: calc(var(--thunderid-spacing-unit) * 2);\n border: 1px solid var(--thunderid-color-border);\n border-radius: var(--thunderid-border-radius-large);\n background: var(--thunderid-color-background-surface);\n}\n\n.thunderid-admin__panel-header {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-admin__panel-title {\n margin: 0;\n font-size: var(--thunderid-typography-fontSize-md);\n font-weight: var(--thunderid-typography-fontWeight-semibold);\n}\n\n.thunderid-admin__detail {\n display: grid;\n grid-template-columns: fit-content(200px) minmax(0, 1fr);\n gap: var(--thunderid-spacing-unit) calc(var(--thunderid-spacing-unit) * 2);\n margin: 0;\n font-size: var(--thunderid-typography-fontSize-sm);\n}\n\n.thunderid-admin__detail-label {\n color: var(--thunderid-color-text-secondary);\n}\n\n.thunderid-admin__detail-value {\n margin: 0;\n color: var(--thunderid-color-text-primary);\n overflow-wrap: anywhere;\n}\n\n.thunderid-admin__chip-list {\n display: flex;\n flex-wrap: wrap;\n gap: var(--thunderid-spacing-unit);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.thunderid-admin__chip {\n display: inline-flex;\n align-items: center;\n gap: calc(var(--thunderid-spacing-unit) / 2);\n padding: calc(var(--thunderid-spacing-unit) / 2) var(--thunderid-spacing-unit);\n border-radius: var(--thunderid-border-radius-full);\n border: 1px solid var(--thunderid-color-border);\n background: var(--thunderid-color-background-surface);\n font-size: var(--thunderid-typography-fontSize-sm);\n color: var(--thunderid-color-text-primary);\n}\n\n.thunderid-admin__status-chip {\n display: inline-flex;\n flex-shrink: 0;\n gap: calc(var(--thunderid-spacing-unit) * 0.5);\n align-items: center;\n padding: 0 var(--thunderid-spacing-unit);\n border-radius: 999px;\n font-size: 0.75rem;\n font-weight: 500;\n line-height: 22px;\n white-space: nowrap;\n}\n\n.thunderid-admin__status-chip svg {\n width: 12px;\n height: 12px;\n}\n\n.thunderid-admin__status-chip--success {\n color: var(--thunderid-color-success-dark, var(--thunderid-color-success-main));\n background: color-mix(in srgb, var(--thunderid-color-success-main) 12%, transparent);\n}\n\n/* Amber marks an action the administrator can take. */\n.thunderid-admin__status-chip--warning {\n color: var(--thunderid-color-warning-contrastText);\n background: color-mix(in srgb, var(--thunderid-color-warning-main) 14%, transparent);\n}\n\n.thunderid-admin__confirm {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--thunderid-spacing-unit);\n font-size: var(--thunderid-typography-fontSize-sm);\n}\n\n.thunderid-admin__muted {\n display: inline-flex;\n align-items: center;\n gap: var(--thunderid-spacing-unit);\n color: var(--thunderid-color-text-secondary);\n font-size: var(--thunderid-typography-fontSize-sm);\n}\n\n.thunderid-admin__row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n/* The value and its status on the left, the send action at the row's end. */\n.thunderid-admin__verification-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n/* The action's padding must not make the row taller than its label. */\n.thunderid-admin__verification-row > button {\n margin-block: calc(var(--thunderid-spacing-unit) * -0.75);\n}\n\n.thunderid-admin__verification-value {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--thunderid-spacing-unit);\n min-width: 0;\n}\n\n.thunderid-admin__verification-row svg {\n width: 14px;\n height: 14px;\n}\n\n.thunderid-admin__name {\n display: inline-flex;\n align-items: center;\n gap: 0.75em;\n}\n\n.thunderid-admin__avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n border-radius: var(--thunderid-border-radius-full);\n background: var(--thunderid-color-primary-main);\n color: var(--thunderid-color-primary-contrastText);\n font-weight: var(--thunderid-typography-fontWeight-semibold);\n line-height: 1;\n user-select: none;\n}\n\n.thunderid-admin__picker {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n\n.thunderid-admin__picker > .thunderid-select {\n flex: 1 1 180px;\n}\n\n.thunderid-admin__edit-form {\n display: flex;\n flex-direction: column;\n gap: calc(var(--thunderid-spacing-unit) * 1.5);\n}\n";
|
|
16
16
|
export default ADMIN_CSS;
|
|
17
17
|
//# sourceMappingURL=Admin.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Admin.css.d.ts","sourceRoot":"","sources":["../../../../src/components/management/shared/Admin.css.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"Admin.css.d.ts","sourceRoot":"","sources":["../../../../src/components/management/shared/Admin.css.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,SAAS,o+LAqOd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare const CircleAlertIcon: () => VNode;
|
|
|
8
8
|
export declare const CircleCheckIcon: () => VNode;
|
|
9
9
|
export declare const InfoIcon: () => VNode;
|
|
10
10
|
export declare const TriangleAlertIcon: () => VNode;
|
|
11
|
+
export declare const SendIcon: () => VNode;
|
|
11
12
|
export declare const PlusIcon: () => VNode;
|
|
12
13
|
export declare const LogOutIcon: () => VNode;
|
|
13
14
|
export declare const UserIcon: () => VNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/Icons.ts"],"names":[],"mappings":"AAGA,OAAO,EAAI,KAAK,KAAK,EAAC,MAAM,KAAK,CAAC;AAgBlC,eAAO,MAAM,SAAS,QAAO,KAA0D,CAAC;AAExF,eAAO,MAAM,QAAQ,QAAO,KAIxB,CAAC;AAEL,eAAO,MAAM,KAAK,QAAO,KACqF,CAAC;AAE/G,eAAO,MAAM,OAAO,QAAO,KACwF,CAAC;AAEpH,eAAO,MAAM,UAAU,QAAO,KAK1B,CAAC;AAEL,eAAO,MAAM,eAAe,QAAO,KAK/B,CAAC;AAEL,eAAO,MAAM,eAAe,QAAO,KAC6E,CAAC;AAEjH,eAAO,MAAM,QAAQ,QAAO,KAKxB,CAAC;AAEL,eAAO,MAAM,iBAAiB,QAAO,KAKjC,CAAC;AAEL,eAAO,MAAM,QAAQ,QAAO,KACoF,CAAC;AAEjH,eAAO,MAAM,UAAU,QAAO,KAK1B,CAAC;AAEL,eAAO,MAAM,QAAQ,QAAO,KACmF,CAAC;AAEhH,eAAO,MAAM,kBAAkB,QAAO,KAKlC,CAAC;AAEL,eAAO,MAAM,YAAY,QAAO,KAU5B,CAAC;AAEL,eAAO,MAAM,eAAe,QAAO,KAA0D,CAAC;AAE9F,eAAO,MA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