@unidy.io/sdk 1.1.6 → 1.1.8
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/package.json +2 -2
- package/dist/cjs/app-globals-DSKjcXX_.js +0 -10
- package/dist/cjs/app-globals-DSKjcXX_.js.map +0 -1
- package/dist/cjs/auth-B83pzi0f.js +0 -582
- package/dist/cjs/auth-B83pzi0f.js.map +0 -1
- package/dist/cjs/auth-store-DPHWWmXf.js +0 -183
- package/dist/cjs/auth-store-DPHWWmXf.js.map +0 -1
- package/dist/cjs/component-utils-BpMyeVQo.js +0 -35
- package/dist/cjs/component-utils-BpMyeVQo.js.map +0 -1
- package/dist/cjs/flash-store-BuIBuQDx.js +0 -50
- package/dist/cjs/flash-store-BuIBuQDx.js.map +0 -1
- package/dist/cjs/helpers-BcPlKlBG.js +0 -11
- package/dist/cjs/helpers-BcPlKlBG.js.map +0 -1
- package/dist/cjs/helpers-DJyRa0Qo.js +0 -11
- package/dist/cjs/helpers-DJyRa0Qo.js.map +0 -1
- package/dist/cjs/i18n-BoDZ8kd2.js +0 -3236
- package/dist/cjs/i18n-BoDZ8kd2.js.map +0 -1
- package/dist/cjs/index-B_N5xKgH.js +0 -12025
- package/dist/cjs/index-B_N5xKgH.js.map +0 -1
- package/dist/cjs/index-DLz3FT7T.js +0 -214
- package/dist/cjs/index-DLz3FT7T.js.map +0 -1
- package/dist/cjs/index-R2MKLaem.js +0 -5267
- package/dist/cjs/index-R2MKLaem.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -64
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -14
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/newsletter-helpers-D-V_8kiN.js +0 -289
- package/dist/cjs/newsletter-helpers-D-V_8kiN.js.map +0 -1
- package/dist/cjs/newsletter-store-BzytX7Qh.js +0 -38
- package/dist/cjs/newsletter-store-BzytX7Qh.js.map +0 -1
- package/dist/cjs/pagination-store-BEiW3MQd.js +0 -16
- package/dist/cjs/pagination-store-BEiW3MQd.js.map +0 -1
- package/dist/cjs/profile-helpers-B2h2III_.js +0 -39
- package/dist/cjs/profile-helpers-B2h2III_.js.map +0 -1
- package/dist/cjs/profile-store-P_BcYkef.js +0 -22
- package/dist/cjs/profile-store-P_BcYkef.js.map +0 -1
- package/dist/cjs/sdk.cjs.js +0 -26
- package/dist/cjs/sdk.cjs.js.map +0 -1
- package/dist/cjs/u-conditional-render.cjs.entry.js +0 -103
- package/dist/cjs/u-conditional-render.entry.cjs.js.map +0 -1
- package/dist/cjs/u-config.cjs.entry.js +0 -87
- package/dist/cjs/u-config.entry.cjs.js.map +0 -1
- package/dist/cjs/u-email-field.cjs.entry.js +0 -77
- package/dist/cjs/u-email-field.entry.cjs.js.map +0 -1
- package/dist/cjs/u-error-message.cjs.entry.js +0 -82
- package/dist/cjs/u-error-message.entry.cjs.js.map +0 -1
- package/dist/cjs/u-field.u-raw-field.entry.cjs.js.map +0 -1
- package/dist/cjs/u-field_2.cjs.entry.js +0 -375
- package/dist/cjs/u-flash-message.cjs.entry.js +0 -37
- package/dist/cjs/u-flash-message.entry.cjs.js.map +0 -1
- package/dist/cjs/u-full-profile.cjs.entry.js +0 -37
- package/dist/cjs/u-full-profile.entry.cjs.js.map +0 -1
- package/dist/cjs/u-logout-button.cjs.entry.js +0 -38
- package/dist/cjs/u-logout-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-magic-code-field.cjs.entry.js +0 -91
- package/dist/cjs/u-magic-code-field.entry.cjs.js.map +0 -1
- package/dist/cjs/u-missing-field.cjs.entry.js +0 -22
- package/dist/cjs/u-missing-field.entry.cjs.js.map +0 -1
- package/dist/cjs/u-missing-fields-submit-button.cjs.entry.js +0 -46
- package/dist/cjs/u-missing-fields-submit-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-newsletter-checkbox.cjs.entry.js +0 -63
- package/dist/cjs/u-newsletter-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/u-newsletter-logout-button.cjs.entry.js +0 -36
- package/dist/cjs/u-newsletter-logout-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-newsletter-preference-checkbox.cjs.entry.js +0 -106
- package/dist/cjs/u-newsletter-preference-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/u-newsletter-resend-doi-button.cjs.entry.js +0 -49
- package/dist/cjs/u-newsletter-resend-doi-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-newsletter-root.cjs.entry.js +0 -72
- package/dist/cjs/u-newsletter-root.entry.cjs.js.map +0 -1
- package/dist/cjs/u-newsletter-toggle-subscription-button.cjs.entry.js +0 -73
- package/dist/cjs/u-newsletter-toggle-subscription-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-pagination-button.cjs.entry.js +0 -63
- package/dist/cjs/u-pagination-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-pagination-page.cjs.entry.js +0 -44
- package/dist/cjs/u-pagination-page.entry.cjs.js.map +0 -1
- package/dist/cjs/u-passkey.cjs.entry.js +0 -47
- package/dist/cjs/u-passkey.entry.cjs.js.map +0 -1
- package/dist/cjs/u-password-field.cjs.entry.js +0 -104
- package/dist/cjs/u-password-field.entry.cjs.js.map +0 -1
- package/dist/cjs/u-profile.u-submit-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-profile_2.cjs.entry.js +0 -327
- package/dist/cjs/u-registration-button.cjs.entry.js +0 -48
- package/dist/cjs/u-registration-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-reset-password-button.cjs.entry.js +0 -47
- package/dist/cjs/u-reset-password-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-send-magic-code-button.cjs.entry.js +0 -68
- package/dist/cjs/u-send-magic-code-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-signed-in.cjs.entry.js +0 -25
- package/dist/cjs/u-signed-in.entry.cjs.js.map +0 -1
- package/dist/cjs/u-signin-root.cjs.entry.js +0 -43
- package/dist/cjs/u-signin-root.entry.cjs.js.map +0 -1
- package/dist/cjs/u-signin-step.cjs.entry.js +0 -66
- package/dist/cjs/u-signin-step.entry.cjs.js.map +0 -1
- package/dist/cjs/u-signin-strategy.cjs.entry.js +0 -30
- package/dist/cjs/u-signin-strategy.entry.cjs.js.map +0 -1
- package/dist/cjs/u-social-login-button.cjs.entry.js +0 -100
- package/dist/cjs/u-social-login-button.entry.cjs.js.map +0 -1
- package/dist/cjs/u-spinner.cjs.entry.js +0 -18
- package/dist/cjs/u-spinner.entry.cjs.js.map +0 -1
- package/dist/cjs/u-ticketable-list.cjs.entry.js +0 -6087
- package/dist/cjs/u-ticketable-list.entry.cjs.js.map +0 -1
- package/dist/cjs/unidy-store-7AbWnZ6g.js +0 -41
- package/dist/cjs/unidy-store-7AbWnZ6g.js.map +0 -1
- package/dist/collection/api/client.js +0 -144
- package/dist/collection/api/client.js.map +0 -1
- package/dist/collection/api/index.js +0 -42
- package/dist/collection/api/index.js.map +0 -1
- package/dist/collection/api/shared.js +0 -18
- package/dist/collection/api/shared.js.map +0 -1
- package/dist/collection/auth/api/auth.js +0 -264
- package/dist/collection/auth/api/auth.js.map +0 -1
- package/dist/collection/auth/auth-helpers.js +0 -297
- package/dist/collection/auth/auth-helpers.js.map +0 -1
- package/dist/collection/auth/auth.js +0 -124
- package/dist/collection/auth/auth.js.map +0 -1
- package/dist/collection/auth/components/helpers.js +0 -5
- package/dist/collection/auth/components/helpers.js.map +0 -1
- package/dist/collection/auth/components/logout-button/logout-button.js +0 -85
- package/dist/collection/auth/components/logout-button/logout-button.js.map +0 -1
- package/dist/collection/auth/components/magic-code-field/magic-code-field.css +0 -1
- package/dist/collection/auth/components/magic-code-field/magic-code-field.js +0 -113
- package/dist/collection/auth/components/magic-code-field/magic-code-field.js.map +0 -1
- package/dist/collection/auth/components/missing-field/missing-field.js +0 -14
- package/dist/collection/auth/components/missing-field/missing-field.js.map +0 -1
- package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js +0 -39
- package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js.map +0 -1
- package/dist/collection/auth/components/passkey/passkey.js +0 -103
- package/dist/collection/auth/components/passkey/passkey.js.map +0 -1
- package/dist/collection/auth/components/password-field/password-field.js +0 -166
- package/dist/collection/auth/components/password-field/password-field.js.map +0 -1
- package/dist/collection/auth/components/registration/registration-button.js +0 -104
- package/dist/collection/auth/components/registration/registration-button.js.map +0 -1
- package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js +0 -59
- package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js.map +0 -1
- package/dist/collection/auth/components/send-magic-code-button/send-magic-code-button.js +0 -104
- package/dist/collection/auth/components/send-magic-code-button/send-magic-code-button.js.map +0 -1
- package/dist/collection/auth/components/signed-in/signed-in.js +0 -59
- package/dist/collection/auth/components/signed-in/signed-in.js.map +0 -1
- package/dist/collection/auth/components/signin-root/signin-root.js +0 -97
- package/dist/collection/auth/components/signin-root/signin-root.js.map +0 -1
- package/dist/collection/auth/components/signin-step/signin-step.js +0 -135
- package/dist/collection/auth/components/signin-step/signin-step.js.map +0 -1
- package/dist/collection/auth/components/signin-strategy/signin-strategy.js +0 -64
- package/dist/collection/auth/components/signin-strategy/signin-strategy.js.map +0 -1
- package/dist/collection/auth/components/social-logins/logos/apple.js +0 -3
- package/dist/collection/auth/components/social-logins/logos/apple.js.map +0 -1
- package/dist/collection/auth/components/social-logins/logos/discord.js +0 -3
- package/dist/collection/auth/components/social-logins/logos/discord.js.map +0 -1
- package/dist/collection/auth/components/social-logins/logos/facebook.js +0 -3
- package/dist/collection/auth/components/social-logins/logos/facebook.js.map +0 -1
- package/dist/collection/auth/components/social-logins/logos/google.js +0 -3
- package/dist/collection/auth/components/social-logins/logos/google.js.map +0 -1
- package/dist/collection/auth/components/social-logins/logos/linkedin.js +0 -3
- package/dist/collection/auth/components/social-logins/logos/linkedin.js.map +0 -1
- package/dist/collection/auth/components/social-logins/social-login-button.css +0 -1
- package/dist/collection/auth/components/social-logins/social-login-button.js +0 -188
- package/dist/collection/auth/components/social-logins/social-login-button.js.map +0 -1
- package/dist/collection/auth/components/submit-button/auth-submit-button.js +0 -62
- package/dist/collection/auth/components/submit-button/auth-submit-button.js.map +0 -1
- package/dist/collection/auth/error-definitions.js +0 -26
- package/dist/collection/auth/error-definitions.js.map +0 -1
- package/dist/collection/auth/index.js +0 -14
- package/dist/collection/auth/index.js.map +0 -1
- package/dist/collection/auth/passkey-auth.js +0 -106
- package/dist/collection/auth/passkey-auth.js.map +0 -1
- package/dist/collection/auth/store/auth-store.js +0 -174
- package/dist/collection/auth/store/auth-store.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -46
- package/dist/collection/globalScript.js +0 -18
- package/dist/collection/globalScript.js.map +0 -1
- package/dist/collection/i18n.js +0 -31
- package/dist/collection/i18n.js.map +0 -1
- package/dist/collection/index.js +0 -16
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/locales/de.json +0 -133
- package/dist/collection/locales/en.json +0 -133
- package/dist/collection/locales/fr.json +0 -133
- package/dist/collection/locales/it.json +0 -133
- package/dist/collection/locales/nl_be.json +0 -133
- package/dist/collection/locales/ro.json +0 -133
- package/dist/collection/logger.js +0 -106
- package/dist/collection/logger.js.map +0 -1
- package/dist/collection/newsletter/api/newsletters.js +0 -189
- package/dist/collection/newsletter/api/newsletters.js.map +0 -1
- package/dist/collection/newsletter/components/helpers.js +0 -5
- package/dist/collection/newsletter/components/helpers.js.map +0 -1
- package/dist/collection/newsletter/components/logout-button/logout-button.js +0 -48
- package/dist/collection/newsletter/components/logout-button/logout-button.js.map +0 -1
- package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js +0 -109
- package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js.map +0 -1
- package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js +0 -119
- package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js.map +0 -1
- package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js +0 -178
- package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js.map +0 -1
- package/dist/collection/newsletter/components/resend-doi-button/resend-doi-button.css +0 -1
- package/dist/collection/newsletter/components/resend-doi-button/resend-doi-button.js +0 -89
- package/dist/collection/newsletter/components/resend-doi-button/resend-doi-button.js.map +0 -1
- package/dist/collection/newsletter/components/submit-button/newsletter-submit-button.js +0 -18
- package/dist/collection/newsletter/components/submit-button/newsletter-submit-button.js.map +0 -1
- package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.css +0 -1
- package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js +0 -154
- package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js.map +0 -1
- package/dist/collection/newsletter/index.js +0 -11
- package/dist/collection/newsletter/index.js.map +0 -1
- package/dist/collection/newsletter/newsletter-helpers.js +0 -277
- package/dist/collection/newsletter/newsletter-helpers.js.map +0 -1
- package/dist/collection/newsletter/store/newsletter-store.js +0 -34
- package/dist/collection/newsletter/store/newsletter-store.js.map +0 -1
- package/dist/collection/profile/api/profile.js +0 -168
- package/dist/collection/profile/api/profile.js.map +0 -1
- package/dist/collection/profile/components/field/field.css +0 -1
- package/dist/collection/profile/components/field/field.js +0 -359
- package/dist/collection/profile/components/field/field.js.map +0 -1
- package/dist/collection/profile/components/full-profile/full-profile.css +0 -1
- package/dist/collection/profile/components/full-profile/full-profile.js +0 -78
- package/dist/collection/profile/components/full-profile/full-profile.js.map +0 -1
- package/dist/collection/profile/components/profile/profile.js +0 -250
- package/dist/collection/profile/components/profile/profile.js.map +0 -1
- package/dist/collection/profile/components/raw-field/raw-field.js +0 -697
- package/dist/collection/profile/components/raw-field/raw-field.js.map +0 -1
- package/dist/collection/profile/components/raw-input-fields/Input.js +0 -3
- package/dist/collection/profile/components/raw-input-fields/Input.js.map +0 -1
- package/dist/collection/profile/components/raw-input-fields/MultiSelect.js +0 -8
- package/dist/collection/profile/components/raw-input-fields/MultiSelect.js.map +0 -1
- package/dist/collection/profile/components/raw-input-fields/RadioGroup.js +0 -8
- package/dist/collection/profile/components/raw-input-fields/RadioGroup.js.map +0 -1
- package/dist/collection/profile/components/raw-input-fields/Select.js +0 -11
- package/dist/collection/profile/components/raw-input-fields/Select.js.map +0 -1
- package/dist/collection/profile/components/raw-input-fields/Textarea.js +0 -3
- package/dist/collection/profile/components/raw-input-fields/Textarea.js.map +0 -1
- package/dist/collection/profile/components/submit-button/profile-submit-button.js +0 -17
- package/dist/collection/profile/components/submit-button/profile-submit-button.js.map +0 -1
- package/dist/collection/profile/index.js +0 -13
- package/dist/collection/profile/index.js.map +0 -1
- package/dist/collection/profile/profile-helpers.js +0 -31
- package/dist/collection/profile/profile-helpers.js.map +0 -1
- package/dist/collection/profile/store/profile-store.js +0 -15
- package/dist/collection/profile/store/profile-store.js.map +0 -1
- package/dist/collection/sdk.css +0 -39
- package/dist/collection/shared/component-utils.js +0 -28
- package/dist/collection/shared/component-utils.js.map +0 -1
- package/dist/collection/shared/components/conditional-render/conditional-render.js +0 -178
- package/dist/collection/shared/components/conditional-render/conditional-render.js.map +0 -1
- package/dist/collection/shared/components/config/config.js +0 -260
- package/dist/collection/shared/components/config/config.js.map +0 -1
- package/dist/collection/shared/components/email-field/email-field.css +0 -1
- package/dist/collection/shared/components/email-field/email-field.js +0 -145
- package/dist/collection/shared/components/email-field/email-field.js.map +0 -1
- package/dist/collection/shared/components/error-message/error-message.js +0 -141
- package/dist/collection/shared/components/error-message/error-message.js.map +0 -1
- package/dist/collection/shared/components/flash-message/close-icon.js +0 -3
- package/dist/collection/shared/components/flash-message/close-icon.js.map +0 -1
- package/dist/collection/shared/components/flash-message/flash-message.css +0 -1
- package/dist/collection/shared/components/flash-message/flash-message.js +0 -79
- package/dist/collection/shared/components/flash-message/flash-message.js.map +0 -1
- package/dist/collection/shared/components/spinner/spinner.css +0 -1
- package/dist/collection/shared/components/spinner/spinner.js +0 -19
- package/dist/collection/shared/components/spinner/spinner.js.map +0 -1
- package/dist/collection/shared/components/submit-button/context.js +0 -10
- package/dist/collection/shared/components/submit-button/context.js.map +0 -1
- package/dist/collection/shared/components/submit-button/submit-button.css +0 -1
- package/dist/collection/shared/components/submit-button/submit-button.js +0 -196
- package/dist/collection/shared/components/submit-button/submit-button.js.map +0 -1
- package/dist/collection/shared/store/flash-store.js +0 -43
- package/dist/collection/shared/store/flash-store.js.map +0 -1
- package/dist/collection/shared/store/unidy-store.js +0 -33
- package/dist/collection/shared/store/unidy-store.js.map +0 -1
- package/dist/collection/ticketable/api/get-with-schema.js +0 -35
- package/dist/collection/ticketable/api/get-with-schema.js.map +0 -1
- package/dist/collection/ticketable/api/schemas.js +0 -12
- package/dist/collection/ticketable/api/schemas.js.map +0 -1
- package/dist/collection/ticketable/api/subscriptions.js +0 -47
- package/dist/collection/ticketable/api/subscriptions.js.map +0 -1
- package/dist/collection/ticketable/api/tickets.js +0 -48
- package/dist/collection/ticketable/api/tickets.js.map +0 -1
- package/dist/collection/ticketable/components/pagination/pagination-button.js +0 -108
- package/dist/collection/ticketable/components/pagination/pagination-button.js.map +0 -1
- package/dist/collection/ticketable/components/pagination/pagination-page.js +0 -69
- package/dist/collection/ticketable/components/pagination/pagination-page.js.map +0 -1
- package/dist/collection/ticketable/components/ticketable-list/skeleton-helpers.js +0 -54
- package/dist/collection/ticketable/components/ticketable-list/skeleton-helpers.js.map +0 -1
- package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js +0 -498
- package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js.map +0 -1
- package/dist/collection/ticketable/index.js +0 -13
- package/dist/collection/ticketable/index.js.map +0 -1
- package/dist/collection/ticketable/store/pagination-store.js +0 -9
- package/dist/collection/ticketable/store/pagination-store.js.map +0 -1
- package/dist/components/auth-store.js +0 -178
- package/dist/components/auth-store.js.map +0 -1
- package/dist/components/auth.js +0 -581
- package/dist/components/auth.js.map +0 -1
- package/dist/components/component-utils.js +0 -32
- package/dist/components/component-utils.js.map +0 -1
- package/dist/components/exports.js +0 -4106
- package/dist/components/exports.js.map +0 -1
- package/dist/components/field.js +0 -144
- package/dist/components/field.js.map +0 -1
- package/dist/components/flash-store.js +0 -47
- package/dist/components/flash-store.js.map +0 -1
- package/dist/components/helpers.js +0 -9
- package/dist/components/helpers.js.map +0 -1
- package/dist/components/helpers2.js +0 -9
- package/dist/components/helpers2.js.map +0 -1
- package/dist/components/i18n.js +0 -3234
- package/dist/components/i18n.js.map +0 -1
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -5902
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js +0 -5256
- package/dist/components/index2.js.map +0 -1
- package/dist/components/index3.js +0 -212
- package/dist/components/index3.js.map +0 -1
- package/dist/components/logger.js +0 -111
- package/dist/components/logger.js.map +0 -1
- package/dist/components/newsletter-helpers.js +0 -278
- package/dist/components/newsletter-helpers.js.map +0 -1
- package/dist/components/newsletter-store.js +0 -34
- package/dist/components/newsletter-store.js.map +0 -1
- package/dist/components/pagination-store.js +0 -14
- package/dist/components/pagination-store.js.map +0 -1
- package/dist/components/profile-helpers.js +0 -36
- package/dist/components/profile-helpers.js.map +0 -1
- package/dist/components/profile-store.js +0 -18
- package/dist/components/profile-store.js.map +0 -1
- package/dist/components/profile.js +0 -151
- package/dist/components/profile.js.map +0 -1
- package/dist/components/raw-field.js +0 -318
- package/dist/components/raw-field.js.map +0 -1
- package/dist/components/spinner.js +0 -35
- package/dist/components/spinner.js.map +0 -1
- package/dist/components/submit-button.js +0 -231
- package/dist/components/submit-button.js.map +0 -1
- package/dist/components/u-conditional-render.d.ts +0 -11
- package/dist/components/u-conditional-render.js +0 -121
- package/dist/components/u-conditional-render.js.map +0 -1
- package/dist/components/u-config.d.ts +0 -11
- package/dist/components/u-config.js +0 -113
- package/dist/components/u-config.js.map +0 -1
- package/dist/components/u-email-field.d.ts +0 -11
- package/dist/components/u-email-field.js +0 -99
- package/dist/components/u-email-field.js.map +0 -1
- package/dist/components/u-error-message.d.ts +0 -11
- package/dist/components/u-error-message.js +0 -105
- package/dist/components/u-error-message.js.map +0 -1
- package/dist/components/u-field.d.ts +0 -11
- package/dist/components/u-field.js +0 -9
- package/dist/components/u-field.js.map +0 -1
- package/dist/components/u-flash-message.d.ts +0 -11
- package/dist/components/u-flash-message.js +0 -58
- package/dist/components/u-flash-message.js.map +0 -1
- package/dist/components/u-full-profile.d.ts +0 -11
- package/dist/components/u-full-profile.js +0 -87
- package/dist/components/u-full-profile.js.map +0 -1
- package/dist/components/u-logout-button.d.ts +0 -11
- package/dist/components/u-logout-button.js +0 -53
- package/dist/components/u-logout-button.js.map +0 -1
- package/dist/components/u-magic-code-field.d.ts +0 -11
- package/dist/components/u-magic-code-field.js +0 -106
- package/dist/components/u-magic-code-field.js.map +0 -1
- package/dist/components/u-missing-field.d.ts +0 -11
- package/dist/components/u-missing-field.js +0 -57
- package/dist/components/u-missing-field.js.map +0 -1
- package/dist/components/u-missing-fields-submit-button.d.ts +0 -11
- package/dist/components/u-missing-fields-submit-button.js +0 -70
- package/dist/components/u-missing-fields-submit-button.js.map +0 -1
- package/dist/components/u-newsletter-checkbox.d.ts +0 -11
- package/dist/components/u-newsletter-checkbox.js +0 -77
- package/dist/components/u-newsletter-checkbox.js.map +0 -1
- package/dist/components/u-newsletter-logout-button.d.ts +0 -11
- package/dist/components/u-newsletter-logout-button.js +0 -51
- package/dist/components/u-newsletter-logout-button.js.map +0 -1
- package/dist/components/u-newsletter-preference-checkbox.d.ts +0 -11
- package/dist/components/u-newsletter-preference-checkbox.js +0 -124
- package/dist/components/u-newsletter-preference-checkbox.js.map +0 -1
- package/dist/components/u-newsletter-resend-doi-button.d.ts +0 -11
- package/dist/components/u-newsletter-resend-doi-button.js +0 -70
- package/dist/components/u-newsletter-resend-doi-button.js.map +0 -1
- package/dist/components/u-newsletter-root.d.ts +0 -11
- package/dist/components/u-newsletter-root.js +0 -90
- package/dist/components/u-newsletter-root.js.map +0 -1
- package/dist/components/u-newsletter-toggle-subscription-button.d.ts +0 -11
- package/dist/components/u-newsletter-toggle-subscription-button.js +0 -97
- package/dist/components/u-newsletter-toggle-subscription-button.js.map +0 -1
- package/dist/components/u-pagination-button.d.ts +0 -11
- package/dist/components/u-pagination-button.js +0 -86
- package/dist/components/u-pagination-button.js.map +0 -1
- package/dist/components/u-pagination-page.d.ts +0 -11
- package/dist/components/u-pagination-page.js +0 -66
- package/dist/components/u-pagination-page.js.map +0 -1
- package/dist/components/u-passkey.d.ts +0 -11
- package/dist/components/u-passkey.js +0 -65
- package/dist/components/u-passkey.js.map +0 -1
- package/dist/components/u-password-field.d.ts +0 -11
- package/dist/components/u-password-field.js +0 -125
- package/dist/components/u-password-field.js.map +0 -1
- package/dist/components/u-profile.d.ts +0 -11
- package/dist/components/u-profile.js +0 -9
- package/dist/components/u-profile.js.map +0 -1
- package/dist/components/u-raw-field.d.ts +0 -11
- package/dist/components/u-raw-field.js +0 -9
- package/dist/components/u-raw-field.js.map +0 -1
- package/dist/components/u-registration-button.d.ts +0 -11
- package/dist/components/u-registration-button.js +0 -70
- package/dist/components/u-registration-button.js.map +0 -1
- package/dist/components/u-reset-password-button.d.ts +0 -11
- package/dist/components/u-reset-password-button.js +0 -63
- package/dist/components/u-reset-password-button.js.map +0 -1
- package/dist/components/u-send-magic-code-button.d.ts +0 -11
- package/dist/components/u-send-magic-code-button.js +0 -85
- package/dist/components/u-send-magic-code-button.js.map +0 -1
- package/dist/components/u-signed-in.d.ts +0 -11
- package/dist/components/u-signed-in.js +0 -44
- package/dist/components/u-signed-in.js.map +0 -1
- package/dist/components/u-signin-root.d.ts +0 -11
- package/dist/components/u-signin-root.js +0 -63
- package/dist/components/u-signin-root.js.map +0 -1
- package/dist/components/u-signin-step.d.ts +0 -11
- package/dist/components/u-signin-step.js +0 -84
- package/dist/components/u-signin-step.js.map +0 -1
- package/dist/components/u-signin-strategy.d.ts +0 -11
- package/dist/components/u-signin-strategy.js +0 -50
- package/dist/components/u-signin-strategy.js.map +0 -1
- package/dist/components/u-social-login-button.d.ts +0 -11
- package/dist/components/u-social-login-button.js +0 -125
- package/dist/components/u-social-login-button.js.map +0 -1
- package/dist/components/u-spinner.d.ts +0 -11
- package/dist/components/u-spinner.js +0 -9
- package/dist/components/u-spinner.js.map +0 -1
- package/dist/components/u-submit-button.d.ts +0 -11
- package/dist/components/u-submit-button.js +0 -9
- package/dist/components/u-submit-button.js.map +0 -1
- package/dist/components/u-ticketable-list.d.ts +0 -11
- package/dist/components/u-ticketable-list.js +0 -6122
- package/dist/components/u-ticketable-list.js.map +0 -1
- package/dist/components/unidy-store.js +0 -37
- package/dist/components/unidy-store.js.map +0 -1
- package/dist/esm/app-globals-CPU9ZcqZ.js +0 -8
- package/dist/esm/app-globals-CPU9ZcqZ.js.map +0 -1
- package/dist/esm/auth-B0RIcDM-.js +0 -580
- package/dist/esm/auth-B0RIcDM-.js.map +0 -1
- package/dist/esm/auth-store-BGMYm_jK.js +0 -178
- package/dist/esm/auth-store-BGMYm_jK.js.map +0 -1
- package/dist/esm/component-utils-D1lzXl_Z.js +0 -32
- package/dist/esm/component-utils-D1lzXl_Z.js.map +0 -1
- package/dist/esm/flash-store-CEvWSG0c.js +0 -47
- package/dist/esm/flash-store-CEvWSG0c.js.map +0 -1
- package/dist/esm/helpers-BqFCd65h.js +0 -9
- package/dist/esm/helpers-BqFCd65h.js.map +0 -1
- package/dist/esm/helpers-DUHc_Cx7.js +0 -9
- package/dist/esm/helpers-DUHc_Cx7.js.map +0 -1
- package/dist/esm/i18n-CLdWzy5J.js +0 -3233
- package/dist/esm/i18n-CLdWzy5J.js.map +0 -1
- package/dist/esm/index-Bjp1XO-f.js +0 -212
- package/dist/esm/index-Bjp1XO-f.js.map +0 -1
- package/dist/esm/index-Ci3aTmzp.js +0 -12007
- package/dist/esm/index-Ci3aTmzp.js.map +0 -1
- package/dist/esm/index-DSDkaHWI.js +0 -5254
- package/dist/esm/index-DSDkaHWI.js.map +0 -1
- package/dist/esm/index.js +0 -40
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -12
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/newsletter-helpers-CONtbKYi.js +0 -278
- package/dist/esm/newsletter-helpers-CONtbKYi.js.map +0 -1
- package/dist/esm/newsletter-store-DBL1A203.js +0 -34
- package/dist/esm/newsletter-store-DBL1A203.js.map +0 -1
- package/dist/esm/pagination-store-DzdJOp-n.js +0 -14
- package/dist/esm/pagination-store-DzdJOp-n.js.map +0 -1
- package/dist/esm/profile-helpers-CglNd6Nw.js +0 -36
- package/dist/esm/profile-helpers-CglNd6Nw.js.map +0 -1
- package/dist/esm/profile-store-RmZB2PTc.js +0 -18
- package/dist/esm/profile-store-RmZB2PTc.js.map +0 -1
- package/dist/esm/sdk.js +0 -22
- package/dist/esm/sdk.js.map +0 -1
- package/dist/esm/u-conditional-render.entry.js +0 -101
- package/dist/esm/u-conditional-render.entry.js.map +0 -1
- package/dist/esm/u-config.entry.js +0 -85
- package/dist/esm/u-config.entry.js.map +0 -1
- package/dist/esm/u-email-field.entry.js +0 -75
- package/dist/esm/u-email-field.entry.js.map +0 -1
- package/dist/esm/u-error-message.entry.js +0 -80
- package/dist/esm/u-error-message.entry.js.map +0 -1
- package/dist/esm/u-field.u-raw-field.entry.js.map +0 -1
- package/dist/esm/u-field_2.entry.js +0 -372
- package/dist/esm/u-flash-message.entry.js +0 -35
- package/dist/esm/u-flash-message.entry.js.map +0 -1
- package/dist/esm/u-full-profile.entry.js +0 -35
- package/dist/esm/u-full-profile.entry.js.map +0 -1
- package/dist/esm/u-logout-button.entry.js +0 -36
- package/dist/esm/u-logout-button.entry.js.map +0 -1
- package/dist/esm/u-magic-code-field.entry.js +0 -89
- package/dist/esm/u-magic-code-field.entry.js.map +0 -1
- package/dist/esm/u-missing-field.entry.js +0 -20
- package/dist/esm/u-missing-field.entry.js.map +0 -1
- package/dist/esm/u-missing-fields-submit-button.entry.js +0 -44
- package/dist/esm/u-missing-fields-submit-button.entry.js.map +0 -1
- package/dist/esm/u-newsletter-checkbox.entry.js +0 -61
- package/dist/esm/u-newsletter-checkbox.entry.js.map +0 -1
- package/dist/esm/u-newsletter-logout-button.entry.js +0 -34
- package/dist/esm/u-newsletter-logout-button.entry.js.map +0 -1
- package/dist/esm/u-newsletter-preference-checkbox.entry.js +0 -104
- package/dist/esm/u-newsletter-preference-checkbox.entry.js.map +0 -1
- package/dist/esm/u-newsletter-resend-doi-button.entry.js +0 -47
- package/dist/esm/u-newsletter-resend-doi-button.entry.js.map +0 -1
- package/dist/esm/u-newsletter-root.entry.js +0 -70
- package/dist/esm/u-newsletter-root.entry.js.map +0 -1
- package/dist/esm/u-newsletter-toggle-subscription-button.entry.js +0 -71
- package/dist/esm/u-newsletter-toggle-subscription-button.entry.js.map +0 -1
- package/dist/esm/u-pagination-button.entry.js +0 -61
- package/dist/esm/u-pagination-button.entry.js.map +0 -1
- package/dist/esm/u-pagination-page.entry.js +0 -42
- package/dist/esm/u-pagination-page.entry.js.map +0 -1
- package/dist/esm/u-passkey.entry.js +0 -45
- package/dist/esm/u-passkey.entry.js.map +0 -1
- package/dist/esm/u-password-field.entry.js +0 -102
- package/dist/esm/u-password-field.entry.js.map +0 -1
- package/dist/esm/u-profile.u-submit-button.entry.js.map +0 -1
- package/dist/esm/u-profile_2.entry.js +0 -324
- package/dist/esm/u-registration-button.entry.js +0 -46
- package/dist/esm/u-registration-button.entry.js.map +0 -1
- package/dist/esm/u-reset-password-button.entry.js +0 -45
- package/dist/esm/u-reset-password-button.entry.js.map +0 -1
- package/dist/esm/u-send-magic-code-button.entry.js +0 -66
- package/dist/esm/u-send-magic-code-button.entry.js.map +0 -1
- package/dist/esm/u-signed-in.entry.js +0 -23
- package/dist/esm/u-signed-in.entry.js.map +0 -1
- package/dist/esm/u-signin-root.entry.js +0 -41
- package/dist/esm/u-signin-root.entry.js.map +0 -1
- package/dist/esm/u-signin-step.entry.js +0 -64
- package/dist/esm/u-signin-step.entry.js.map +0 -1
- package/dist/esm/u-signin-strategy.entry.js +0 -28
- package/dist/esm/u-signin-strategy.entry.js.map +0 -1
- package/dist/esm/u-social-login-button.entry.js +0 -98
- package/dist/esm/u-social-login-button.entry.js.map +0 -1
- package/dist/esm/u-spinner.entry.js +0 -16
- package/dist/esm/u-spinner.entry.js.map +0 -1
- package/dist/esm/u-ticketable-list.entry.js +0 -6085
- package/dist/esm/u-ticketable-list.entry.js.map +0 -1
- package/dist/esm/unidy-store-BldTAtO0.js +0 -37
- package/dist/esm/unidy-store-BldTAtO0.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/sdk/auth-BopPjv7G.js.map +0 -1
- package/dist/sdk/auth-C0vldOq6.js.map +0 -1
- package/dist/sdk/auth-store-DQaam_Qh.js.map +0 -1
- package/dist/sdk/auth-store-sOmplc4z.js.map +0 -1
- package/dist/sdk/component-utils-D1lzXl_Z.js.map +0 -1
- package/dist/sdk/flash-store-Cgu7WoSN.js.map +0 -1
- package/dist/sdk/flash-store-DNcSEn2p.js.map +0 -1
- package/dist/sdk/helpers-BqFCd65h.js.map +0 -1
- package/dist/sdk/helpers-DUHc_Cx7.js.map +0 -1
- package/dist/sdk/i18n-B6rRU-m3.js.map +0 -1
- package/dist/sdk/i18n-CZii1E-s.js.map +0 -1
- package/dist/sdk/index-B1aDcaWd.js.map +0 -1
- package/dist/sdk/index-BnBstyfp.js.map +0 -1
- package/dist/sdk/index-BqL27K_R.js.map +0 -1
- package/dist/sdk/index-C5jZjlU8.js.map +0 -1
- package/dist/sdk/index-Df-7P3r0.js.map +0 -1
- package/dist/sdk/index-Eu7hg2ii.js.map +0 -1
- package/dist/sdk/index-Iulyfmzq.js.map +0 -1
- package/dist/sdk/index-O6h7SI7-.js.map +0 -1
- package/dist/sdk/index.esm.js +0 -2
- package/dist/sdk/index.esm.js.map +0 -1
- package/dist/sdk/loader.esm.js.map +0 -1
- package/dist/sdk/locales/de.json +0 -133
- package/dist/sdk/locales/en.json +0 -133
- package/dist/sdk/locales/fr.json +0 -133
- package/dist/sdk/locales/it.json +0 -133
- package/dist/sdk/locales/nl_be.json +0 -133
- package/dist/sdk/locales/ro.json +0 -133
- package/dist/sdk/newsletter-helpers-8ByV38YW.js.map +0 -1
- package/dist/sdk/newsletter-helpers-B-Md6T9k.js.map +0 -1
- package/dist/sdk/newsletter-store-CqD-GcDC.js.map +0 -1
- package/dist/sdk/newsletter-store-CvULKmsu.js.map +0 -1
- package/dist/sdk/p-08ff2de2.entry.js +0 -2
- package/dist/sdk/p-08ff2de2.entry.js.map +0 -1
- package/dist/sdk/p-1ea49938.entry.js +0 -2
- package/dist/sdk/p-1ea49938.entry.js.map +0 -1
- package/dist/sdk/p-2a65bcbb.entry.js +0 -2
- package/dist/sdk/p-2a65bcbb.entry.js.map +0 -1
- package/dist/sdk/p-2af8b45f.entry.js +0 -2
- package/dist/sdk/p-2af8b45f.entry.js.map +0 -1
- package/dist/sdk/p-3411c743.entry.js +0 -2
- package/dist/sdk/p-3411c743.entry.js.map +0 -1
- package/dist/sdk/p-467c7304.entry.js +0 -2
- package/dist/sdk/p-467c7304.entry.js.map +0 -1
- package/dist/sdk/p-56abb377.entry.js +0 -2
- package/dist/sdk/p-56abb377.entry.js.map +0 -1
- package/dist/sdk/p-5703102b.entry.js +0 -2
- package/dist/sdk/p-5703102b.entry.js.map +0 -1
- package/dist/sdk/p-593c6dde.entry.js +0 -2
- package/dist/sdk/p-593c6dde.entry.js.map +0 -1
- package/dist/sdk/p-5b627aea.entry.js +0 -2
- package/dist/sdk/p-5b627aea.entry.js.map +0 -1
- package/dist/sdk/p-5babee6b.entry.js +0 -2
- package/dist/sdk/p-5babee6b.entry.js.map +0 -1
- package/dist/sdk/p-5cc20a8b.entry.js +0 -2
- package/dist/sdk/p-5cc20a8b.entry.js.map +0 -1
- package/dist/sdk/p-628ccd68.entry.js +0 -2
- package/dist/sdk/p-628ccd68.entry.js.map +0 -1
- package/dist/sdk/p-675eb13d.entry.js +0 -2
- package/dist/sdk/p-675eb13d.entry.js.map +0 -1
- package/dist/sdk/p-6893d167.entry.js +0 -2
- package/dist/sdk/p-6893d167.entry.js.map +0 -1
- package/dist/sdk/p-6a642433.entry.js +0 -2
- package/dist/sdk/p-6a642433.entry.js.map +0 -1
- package/dist/sdk/p-73c2ec89.entry.js +0 -2
- package/dist/sdk/p-73c2ec89.entry.js.map +0 -1
- package/dist/sdk/p-7a0cefff.entry.js +0 -2
- package/dist/sdk/p-7a0cefff.entry.js.map +0 -1
- package/dist/sdk/p-91bb8b59.entry.js +0 -2
- package/dist/sdk/p-91bb8b59.entry.js.map +0 -1
- package/dist/sdk/p-9f59909b.entry.js +0 -2
- package/dist/sdk/p-9f59909b.entry.js.map +0 -1
- package/dist/sdk/p-BZ1kW_eK.js +0 -2
- package/dist/sdk/p-BZ1kW_eK.js.map +0 -1
- package/dist/sdk/p-BlAULXyw.js +0 -2
- package/dist/sdk/p-BlAULXyw.js.map +0 -1
- package/dist/sdk/p-BlOjABPD.js +0 -2
- package/dist/sdk/p-BlOjABPD.js.map +0 -1
- package/dist/sdk/p-BqFCd65h.js +0 -2
- package/dist/sdk/p-BqFCd65h.js.map +0 -1
- package/dist/sdk/p-C0feI0p8.js +0 -2
- package/dist/sdk/p-C0feI0p8.js.map +0 -1
- package/dist/sdk/p-C3fhudPT.js +0 -2
- package/dist/sdk/p-C3fhudPT.js.map +0 -1
- package/dist/sdk/p-CFiZLMAA.js +0 -2
- package/dist/sdk/p-CFiZLMAA.js.map +0 -1
- package/dist/sdk/p-CPPYdoIv.js +0 -2
- package/dist/sdk/p-CPPYdoIv.js.map +0 -1
- package/dist/sdk/p-CbRhHGU5.js +0 -2
- package/dist/sdk/p-CbRhHGU5.js.map +0 -1
- package/dist/sdk/p-Ce8zGAi1.js +0 -2
- package/dist/sdk/p-Ce8zGAi1.js.map +0 -1
- package/dist/sdk/p-Ci3aTmzp.js +0 -3
- package/dist/sdk/p-Ci3aTmzp.js.map +0 -1
- package/dist/sdk/p-D1lzXl_Z.js +0 -2
- package/dist/sdk/p-D1lzXl_Z.js.map +0 -1
- package/dist/sdk/p-DA84OuuU.js +0 -2
- package/dist/sdk/p-DA84OuuU.js.map +0 -1
- package/dist/sdk/p-DUHc_Cx7.js +0 -2
- package/dist/sdk/p-DUHc_Cx7.js.map +0 -1
- package/dist/sdk/p-DYtgart8.js +0 -2
- package/dist/sdk/p-DYtgart8.js.map +0 -1
- package/dist/sdk/p-DdUvQelg.js +0 -2
- package/dist/sdk/p-DdUvQelg.js.map +0 -1
- package/dist/sdk/p-S3-2d2Qd.js +0 -2
- package/dist/sdk/p-S3-2d2Qd.js.map +0 -1
- package/dist/sdk/p-a4b7ffd8.entry.js +0 -2
- package/dist/sdk/p-a4b7ffd8.entry.js.map +0 -1
- package/dist/sdk/p-a5db968f.entry.js +0 -2
- package/dist/sdk/p-a5db968f.entry.js.map +0 -1
- package/dist/sdk/p-a6393d19.entry.js +0 -2
- package/dist/sdk/p-a6393d19.entry.js.map +0 -1
- package/dist/sdk/p-c31dbbb4.entry.js +0 -2
- package/dist/sdk/p-c31dbbb4.entry.js.map +0 -1
- package/dist/sdk/p-c5bffd90.entry.js +0 -2
- package/dist/sdk/p-c5bffd90.entry.js.map +0 -1
- package/dist/sdk/p-da363474.entry.js +0 -2
- package/dist/sdk/p-da363474.entry.js.map +0 -1
- package/dist/sdk/p-e3611b71.entry.js +0 -2
- package/dist/sdk/p-e3611b71.entry.js.map +0 -1
- package/dist/sdk/p-e3f28800.entry.js +0 -2
- package/dist/sdk/p-e3f28800.entry.js.map +0 -1
- package/dist/sdk/p-effaf86b.entry.js +0 -2
- package/dist/sdk/p-effaf86b.entry.js.map +0 -1
- package/dist/sdk/p-f0598e42.entry.js +0 -2
- package/dist/sdk/p-f0598e42.entry.js.map +0 -1
- package/dist/sdk/p-f369a996.entry.js +0 -2
- package/dist/sdk/p-f369a996.entry.js.map +0 -1
- package/dist/sdk/p-ffac964c.entry.js +0 -2
- package/dist/sdk/p-ffac964c.entry.js.map +0 -1
- package/dist/sdk/profile-helpers-BDjk573F.js.map +0 -1
- package/dist/sdk/profile-helpers-b8Koj20a.js.map +0 -1
- package/dist/sdk/profile-store-BZKApsQm.js.map +0 -1
- package/dist/sdk/profile-store-DD6sq42i.js.map +0 -1
- package/dist/sdk/sdk.css +0 -39
- package/dist/sdk/sdk.esm.js +0 -2
- package/dist/sdk/sdk.esm.js.map +0 -1
- package/dist/sdk/u-conditional-render.entry.esm.js.map +0 -1
- package/dist/sdk/u-config.entry.esm.js.map +0 -1
- package/dist/sdk/u-email-field.entry.esm.js.map +0 -1
- package/dist/sdk/u-error-message.entry.esm.js.map +0 -1
- package/dist/sdk/u-field.u-raw-field.entry.esm.js.map +0 -1
- package/dist/sdk/u-flash-message.entry.esm.js.map +0 -1
- package/dist/sdk/u-full-profile.entry.esm.js.map +0 -1
- package/dist/sdk/u-logout-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-magic-code-field.entry.esm.js.map +0 -1
- package/dist/sdk/u-missing-field.entry.esm.js.map +0 -1
- package/dist/sdk/u-missing-fields-submit-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-newsletter-checkbox.entry.esm.js.map +0 -1
- package/dist/sdk/u-newsletter-logout-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-newsletter-preference-checkbox.entry.esm.js.map +0 -1
- package/dist/sdk/u-newsletter-resend-doi-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-newsletter-root.entry.esm.js.map +0 -1
- package/dist/sdk/u-newsletter-toggle-subscription-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-pagination-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-pagination-page.entry.esm.js.map +0 -1
- package/dist/sdk/u-passkey.entry.esm.js.map +0 -1
- package/dist/sdk/u-password-field.entry.esm.js.map +0 -1
- package/dist/sdk/u-password-field.entry.js +0 -104
- package/dist/sdk/u-profile.u-submit-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-registration-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-reset-password-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-reset-password-button.entry.js +0 -54
- package/dist/sdk/u-send-magic-code-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-signed-in.entry.esm.js.map +0 -1
- package/dist/sdk/u-signin-root.entry.esm.js.map +0 -1
- package/dist/sdk/u-signin-step.entry.esm.js.map +0 -1
- package/dist/sdk/u-signin-strategy.entry.esm.js.map +0 -1
- package/dist/sdk/u-social-login-button.entry.esm.js.map +0 -1
- package/dist/sdk/u-spinner.entry.esm.js.map +0 -1
- package/dist/sdk/u-ticketable-list.entry.esm.js.map +0 -1
- package/dist/sdk/unidy-store-BwZym11Y.js.map +0 -1
- package/dist/sdk/unidy-store-CtifvCkV.js.map +0 -1
- package/dist/types/api/client.d.ts +0 -32
- package/dist/types/api/index.d.ts +0 -22
- package/dist/types/api/shared.d.ts +0 -20
- package/dist/types/auth/api/auth.d.ts +0 -300
- package/dist/types/auth/auth-helpers.d.ts +0 -375
- package/dist/types/auth/auth.d.ts +0 -54
- package/dist/types/auth/components/helpers.d.ts +0 -1
- package/dist/types/auth/components/logout-button/logout-button.d.ts +0 -8
- package/dist/types/auth/components/magic-code-field/magic-code-field.d.ts +0 -10
- package/dist/types/auth/components/missing-field/missing-field.d.ts +0 -4
- package/dist/types/auth/components/missing-fields-submit-button/missing-fields-submit-button.d.ts +0 -5
- package/dist/types/auth/components/passkey/passkey.d.ts +0 -9
- package/dist/types/auth/components/password-field/password-field.d.ts +0 -15
- package/dist/types/auth/components/registration/registration-button.d.ts +0 -11
- package/dist/types/auth/components/reset-pass-button/reset-pass-button.d.ts +0 -7
- package/dist/types/auth/components/send-magic-code-button/send-magic-code-button.d.ts +0 -11
- package/dist/types/auth/components/signed-in/signed-in.d.ts +0 -5
- package/dist/types/auth/components/signin-root/signin-root.d.ts +0 -14
- package/dist/types/auth/components/signin-step/signin-step.d.ts +0 -8
- package/dist/types/auth/components/signin-strategy/signin-strategy.d.ts +0 -5
- package/dist/types/auth/components/social-logins/logos/apple.d.ts +0 -4
- package/dist/types/auth/components/social-logins/logos/discord.d.ts +0 -4
- package/dist/types/auth/components/social-logins/logos/facebook.d.ts +0 -4
- package/dist/types/auth/components/social-logins/logos/google.d.ts +0 -4
- package/dist/types/auth/components/social-logins/logos/linkedin.d.ts +0 -4
- package/dist/types/auth/components/social-logins/social-login-button.d.ts +0 -24
- package/dist/types/auth/components/submit-button/auth-submit-button.d.ts +0 -3
- package/dist/types/auth/error-definitions.d.ts +0 -23
- package/dist/types/auth/index.d.ts +0 -16
- package/dist/types/auth/passkey-auth.d.ts +0 -2
- package/dist/types/auth/store/auth-store.d.ts +0 -56
- package/dist/types/components.d.ts +0 -1246
- package/dist/types/globalScript.d.ts +0 -1
- package/dist/types/i18n.d.ts +0 -3
- package/dist/types/index.d.ts +0 -16
- package/dist/types/logger.d.ts +0 -55
- package/dist/types/newsletter/api/newsletters.d.ts +0 -198
- package/dist/types/newsletter/components/helpers.d.ts +0 -1
- package/dist/types/newsletter/components/logout-button/logout-button.d.ts +0 -6
- package/dist/types/newsletter/components/newsletter-checkbox/newsletter-checkbox.d.ts +0 -10
- package/dist/types/newsletter/components/newsletter-root/newsletter-root.d.ts +0 -11
- package/dist/types/newsletter/components/preference-checkbox/preference-checkbox.d.ts +0 -23
- package/dist/types/newsletter/components/resend-doi-button/resend-doi-button.d.ts +0 -8
- package/dist/types/newsletter/components/submit-button/newsletter-submit-button.d.ts +0 -3
- package/dist/types/newsletter/components/toggle-subscription-button/toggle-subscription-button.d.ts +0 -12
- package/dist/types/newsletter/index.d.ts +0 -10
- package/dist/types/newsletter/newsletter-helpers.d.ts +0 -15
- package/dist/types/newsletter/store/newsletter-store.d.ts +0 -25
- package/dist/types/profile/api/profile.d.ts +0 -238
- package/dist/types/profile/components/field/field.d.ts +0 -40
- package/dist/types/profile/components/full-profile/full-profile.d.ts +0 -6
- package/dist/types/profile/components/profile/profile.d.ts +0 -27
- package/dist/types/profile/components/raw-field/raw-field.d.ts +0 -45
- package/dist/types/profile/components/raw-input-fields/Input.d.ts +0 -17
- package/dist/types/profile/components/raw-input-fields/MultiSelect.d.ts +0 -28
- package/dist/types/profile/components/raw-input-fields/RadioGroup.d.ts +0 -30
- package/dist/types/profile/components/raw-input-fields/Select.d.ts +0 -24
- package/dist/types/profile/components/raw-input-fields/Textarea.d.ts +0 -17
- package/dist/types/profile/components/submit-button/profile-submit-button.d.ts +0 -2
- package/dist/types/profile/index.d.ts +0 -13
- package/dist/types/profile/profile-helpers.d.ts +0 -7
- package/dist/types/profile/store/profile-store.d.ts +0 -39
- package/dist/types/shared/component-utils.d.ts +0 -9
- package/dist/types/shared/components/conditional-render/conditional-render.d.ts +0 -11
- package/dist/types/shared/components/config/config.d.ts +0 -31
- package/dist/types/shared/components/email-field/email-field.d.ts +0 -13
- package/dist/types/shared/components/error-message/error-message.d.ts +0 -15
- package/dist/types/shared/components/flash-message/close-icon.d.ts +0 -1
- package/dist/types/shared/components/flash-message/flash-message.d.ts +0 -6
- package/dist/types/shared/components/spinner/spinner.d.ts +0 -3
- package/dist/types/shared/components/submit-button/context.d.ts +0 -9
- package/dist/types/shared/components/submit-button/submit-button.d.ts +0 -20
- package/dist/types/shared/store/flash-store.d.ts +0 -29
- package/dist/types/shared/store/unidy-store.d.ts +0 -12
- package/dist/types/stencil-public-runtime.d.ts +0 -1756
- package/dist/types/ticketable/api/get-with-schema.d.ts +0 -3
- package/dist/types/ticketable/api/schemas.d.ts +0 -18
- package/dist/types/ticketable/api/subscriptions.d.ts +0 -84
- package/dist/types/ticketable/api/tickets.d.ts +0 -86
- package/dist/types/ticketable/components/pagination/pagination-button.d.ts +0 -14
- package/dist/types/ticketable/components/pagination/pagination-page.d.ts +0 -12
- package/dist/types/ticketable/components/ticketable-list/skeleton-helpers.d.ts +0 -13
- package/dist/types/ticketable/components/ticketable-list/ticketable-list.d.ts +0 -41
- package/dist/types/ticketable/index.d.ts +0 -12
- package/dist/types/ticketable/store/pagination-store.d.ts +0 -10
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-B_N5xKgH.js');
|
|
4
|
-
var i18n = require('./i18n-BoDZ8kd2.js');
|
|
5
|
-
var profileStore = require('./profile-store-P_BcYkef.js');
|
|
6
|
-
require('./unidy-store-7AbWnZ6g.js');
|
|
7
|
-
require('./index-DLz3FT7T.js');
|
|
8
|
-
|
|
9
|
-
const fieldCss = "/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme{:host,:root{--u-font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--u-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--u-default-font-family:var(--u-font-sans);--u-default-mono-font-family:var(--u-font-mono);--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{font-family:var(--u-default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--u-default-font-feature-settings,normal);font-variation-settings:var(--u-default-font-variation-settings,normal);-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--u-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--u-default-mono-font-feature-settings,normal);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--u-default-mono-font-variation-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:currentColor;color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.u\\:flex{display:flex}.u\\:justify-end{justify-content:flex-end}} /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ring-offset-width:0px;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer base{}@layer components;@layer utilities{.block{display:block}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}:host{display:block}.field-error:focus{border-color:red;outline-color:red}.multi-select-readonly-container{list-style:none}.multi-select-readonly-container li{display:inline-block}[part=input]:disabled,[part=select]:disabled{cursor:not-allowed}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
|
|
10
|
-
|
|
11
|
-
const Field = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
}
|
|
15
|
-
field;
|
|
16
|
-
required = false;
|
|
17
|
-
readonlyPlaceholder = "No information";
|
|
18
|
-
countryCodeDisplayOption = "label";
|
|
19
|
-
invalidPhoneMessage = "Please enter a valid phone number.";
|
|
20
|
-
componentClassName;
|
|
21
|
-
emptyOption = true;
|
|
22
|
-
placeholder;
|
|
23
|
-
renderDefaultLabel = true;
|
|
24
|
-
pattern;
|
|
25
|
-
patternErrorMessage;
|
|
26
|
-
validationFunc;
|
|
27
|
-
get el() { return index.getElement(this); }
|
|
28
|
-
selected;
|
|
29
|
-
getFieldData() {
|
|
30
|
-
return this.field.startsWith("custom_attributes.")
|
|
31
|
-
? profileStore.state.data.custom_attributes?.[this.field.replace("custom_attributes.", "")]
|
|
32
|
-
: profileStore.state.data[this.field];
|
|
33
|
-
}
|
|
34
|
-
componentWillLoad() { }
|
|
35
|
-
componentDidRender() {
|
|
36
|
-
const fieldErrors = profileStore.state.errors;
|
|
37
|
-
if (Object.keys(fieldErrors)[0] === this.field) {
|
|
38
|
-
this.el.shadowRoot?.getElementById(this.field)?.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
39
|
-
this.el.shadowRoot
|
|
40
|
-
?.getElementById(this.field)
|
|
41
|
-
?.querySelector("input, select, textarea")
|
|
42
|
-
?.focus();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
createSpecificPartKey(fieldName) {
|
|
46
|
-
if (fieldName.startsWith("custom_attributes.")) {
|
|
47
|
-
return fieldName.replace(/[^\w-]/g, "-");
|
|
48
|
-
}
|
|
49
|
-
return fieldName;
|
|
50
|
-
}
|
|
51
|
-
// biome-ignore lint/suspicious/noExplicitAny: needed for dynamic fieldData
|
|
52
|
-
multiSelectLabel = (fieldData) => {
|
|
53
|
-
const multiselectMatches = [];
|
|
54
|
-
if (Array.isArray(fieldData.value)) {
|
|
55
|
-
for (const val of fieldData.value) {
|
|
56
|
-
// biome-ignore lint/suspicious/noExplicitAny: needed for dynamic option
|
|
57
|
-
const match = fieldData.options?.find((opt) => opt.value === val);
|
|
58
|
-
const optionTranslationKey = `fields.${this.field}.options.${val}`;
|
|
59
|
-
const translatedOptionLabel = i18n.t(optionTranslationKey);
|
|
60
|
-
const optionLabel = translatedOptionLabel !== optionTranslationKey ? translatedOptionLabel : match?.label;
|
|
61
|
-
multiselectMatches.push(optionLabel ?? val);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return multiselectMatches;
|
|
65
|
-
};
|
|
66
|
-
render() {
|
|
67
|
-
if (profileStore.state.loading) {
|
|
68
|
-
return index.h("u-spinner", null);
|
|
69
|
-
}
|
|
70
|
-
const fieldData = this.getFieldData();
|
|
71
|
-
if (!fieldData) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
const labelTranslationKey = `fields.${this.field}.label`;
|
|
75
|
-
const label = i18n.t(labelTranslationKey, { defaultValue: fieldData?.label });
|
|
76
|
-
const placeholderTranslationKey = `fields.${this.field}.placeholder`;
|
|
77
|
-
const placeholder = i18n.t(placeholderTranslationKey, { defaultValue: this.placeholder ? this.placeholder : "" });
|
|
78
|
-
const readonlyPlaceholderTranslationKey = `fields.${this.field}.readonlyPlaceholder`;
|
|
79
|
-
const readonlyPlaceholder = i18n.t(readonlyPlaceholderTranslationKey, {
|
|
80
|
-
defaultValue: this.readonlyPlaceholder ? this.readonlyPlaceholder : "",
|
|
81
|
-
});
|
|
82
|
-
const translatedOptions = (fieldData.options || []).map((opt) => {
|
|
83
|
-
const translationKey = `fields.${this.field}.options.${opt.value}`;
|
|
84
|
-
const label = i18n.t(translationKey, { defaultValue: opt.label });
|
|
85
|
-
return { ...opt, label };
|
|
86
|
-
});
|
|
87
|
-
const translatedRadioOptions = (fieldData.radio_options || []).map((opt) => {
|
|
88
|
-
const translationKey = `fields.${this.field}.options.${opt.value}`;
|
|
89
|
-
const label = i18n.t(translationKey, { defaultValue: opt.label });
|
|
90
|
-
return { ...opt, label };
|
|
91
|
-
});
|
|
92
|
-
const errorPrefix = i18n.t("errors.prefix", { defaultValue: "ERROR: " });
|
|
93
|
-
const isLocked = !!fieldData?.locked;
|
|
94
|
-
const lockedText = fieldData?.locked_text ? fieldData.locked_text : "";
|
|
95
|
-
const isReadonly = fieldData?.readonly === true;
|
|
96
|
-
const multiSelectReadonlyLabels = this.multiSelectLabel(fieldData);
|
|
97
|
-
return (index.h("div", { part: `field-container field-container--${this.createSpecificPartKey(this.field)}` }, index.h("slot", { name: "label" }), this.renderDefaultLabel && (index.h("label", { htmlFor: this.field, part: `field_label field_label--${this.createSpecificPartKey(this.field)}` }, label, fieldData?.required || this.required ? index.h("span", { part: "required-indicator" }, " *") : null)), isReadonly && fieldData?.type !== "checkbox" ? (index.h("span", { id: this.field, part: "readonly-indicator" }, fieldData?.value || readonlyPlaceholder)) : null, isReadonly && fieldData?.type === "checkbox" && (index.h("ul", { id: this.field, class: "multi-select-readonly-container", part: "multi-select-readonly-container" }, multiSelectReadonlyLabels.map((label) => (index.h("li", { key: label, part: "multi-select-readonly-field" }, label))))), !isReadonly && (index.h("u-raw-field", { id: this.field, field: this.field, type: fieldData.type, value: fieldData.value, options: fieldData.type === "select" ? translatedOptions : undefined, radioOptions: fieldData.type === "radio" ? translatedRadioOptions : undefined, multiSelectOptions: fieldData.type === "checkbox" ? translatedOptions : undefined, required: fieldData.required || this.required, disabled: isLocked, tooltip: isLocked ? lockedText : undefined, placeholder: placeholder, componentClassName: this.componentClassName, emptyOption: this.emptyOption, countryCodeDisplayOption: this.countryCodeDisplayOption, attrName: fieldData.attr_name, specificPartKey: this.createSpecificPartKey(this.field), ariaDescribedBy: profileStore.state.errors[this.field] ? `${this.field}-error` : undefined, pattern: this.pattern, patternErrorMessage: this.patternErrorMessage, validationFunc: this.validationFunc })), profileStore.state.errors[this.field] && (index.h("span", { id: `${this.field}-error`, part: "field-error-message", "aria-live": "assertive" }, errorPrefix, " ", profileStore.state.errors[this.field]))));
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
Field.style = fieldCss;
|
|
101
|
-
|
|
102
|
-
const RadioGroup = (props) => {
|
|
103
|
-
if (!("options" in props)) {
|
|
104
|
-
return (index.h("input", { type: props.type, name: props.name, required: props.required, value: String(props.value), checked: props.checked, disabled: props.disabled, title: props.title, class: props.componentClassName, onChange: () => props.onChange(String(props.value)), "aria-describedby": props.ariaDescribedBy || undefined }));
|
|
105
|
-
}
|
|
106
|
-
return (index.h("div", { part: `radio-group_field ${props.specificPartKey ? `radio-group_field--${props.specificPartKey}` : ""}`, title: props.title, "aria-describedby": props.ariaDescribedBy || undefined }, props.options.map((opt) => (index.h("label", { htmlFor: `${props.name}-${opt.value}`, key: String(opt.value), part: `radio-group-item_label ${props.specificPartKey ? `radio-group-item_label--${props.specificPartKey}` : ""} ${opt.checked ? "radio_checked" : ""}`, "data-checked": opt.checked ? "true" : "false" }, index.h("input", { id: `${props.name}-${opt.value}`, type: props.type, name: props.name, required: props.required, value: String(opt.value), checked: opt.checked, disabled: props.disabled, onChange: () => props.onChange(String(opt.value)), part: `radio-group-item_radio ${props.specificPartKey ? `radio-group-item_radio--${props.specificPartKey}` : ""}` }), opt.label)))));
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
const Textarea = (props) => (index.h("textarea", { id: props.id, value: props.value, name: props.name, class: props.componentClassName, required: props.required, part: `textarea_field ${props.specificPartKey ? `textarea_field--${props.specificPartKey}` : ""}`, disabled: props.disabled, title: props.title, onChange: (e) => props.onChange(e.target.value), onBlur: props.onBlur, "aria-describedby": props.ariaDescribedBy || undefined }));
|
|
110
|
-
|
|
111
|
-
const Input = (props) => (index.h("input", { id: props.id, type: props.type, value: props.value, class: props.componentClassName, disabled: props.disabled, required: props.required, part: `input_field ${props.specificPartKey ? `input_field--${props.specificPartKey}` : ""}`, title: props.title, placeholder: props.placeholder, onChange: (e) => props.onChange(e.target.value), onBlur: (e) => props.onBlur?.(e), "aria-describedby": props.ariaDescribedBy || undefined }));
|
|
112
|
-
|
|
113
|
-
const Select = (props) => {
|
|
114
|
-
const renderOptionLabel = (opt) => {
|
|
115
|
-
if (props.attr_name === "country_code" && props.countryCodeDisplayOption === "icon" && props.countryIcon) {
|
|
116
|
-
return props.countryIcon(opt.value);
|
|
117
|
-
}
|
|
118
|
-
return opt.label;
|
|
119
|
-
};
|
|
120
|
-
return (index.h("select", { id: props.id, name: props.name, class: props.componentClassName, "data-value": props.value, part: `select_field ${props.specificPartKey ? `select_field--${props.specificPartKey}` : ""}`, disabled: props.disabled, title: props.title, onChange: (e) => props.onChange(e.target.value), "aria-describedby": props.ariaDescribedBy || undefined }, props.emptyOption ? index.h("option", { value: "", selected: props.value === null || props.value === "" }) : null, props.options.map((opt) => (index.h("option", { key: opt.value, value: opt.value, "data-selected": opt.value === props.value ? "true" : "false", selected: opt.value === props.value, disabled: opt.value === "--" }, renderOptionLabel(opt))))));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
const MultiSelect = (props) => {
|
|
124
|
-
if (!("options" in props)) {
|
|
125
|
-
return (index.h("input", { id: props.id, type: props.type, name: props.name, value: props.value, checked: props.checked, disabled: props.disabled, title: props.title, class: props.componentClassName, onChange: (e) => props.onToggle(props.value, e.target.checked), "aria-describedby": props.ariaDescribedBy || undefined }));
|
|
126
|
-
}
|
|
127
|
-
return (index.h("div", { part: `multi-select-group_field ${props.specificPartKey ? `multi-select-group_field--${props.specificPartKey}` : ""}`, title: props.title, "aria-describedby": props.ariaDescribedBy || undefined }, props.options.map((opt) => (index.h("label", { key: opt.value, htmlFor: `${props.specificPartKey}-${opt.value}`, part: `multi-select-item_label ${props.specificPartKey ? `multi-select-item_label--${props.specificPartKey}` : ""}` }, index.h("input", { id: `${props.specificPartKey}-${opt.value}`, type: props.type, checked: Array.isArray(props.value) && props.value.includes(opt.value), disabled: props.disabled, title: props.title, onChange: (e) => props.onToggle(opt.value, e.target.checked), part: `multi-select-item_checkbox ${props.specificPartKey ? `multi-select-item_checkbox--${props.specificPartKey}` : ""}` }), opt.label)))));
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const RawField = class extends index.UnidyComponent {
|
|
131
|
-
constructor(hostRef) {
|
|
132
|
-
super();
|
|
133
|
-
index.registerInstance(this, hostRef);
|
|
134
|
-
}
|
|
135
|
-
required = false;
|
|
136
|
-
readonlyPlaceholder = "";
|
|
137
|
-
countryCodeDisplayOption = "label";
|
|
138
|
-
invalidPhoneMessage = "Please enter a valid phone number.";
|
|
139
|
-
componentClassName;
|
|
140
|
-
field;
|
|
141
|
-
value;
|
|
142
|
-
checked;
|
|
143
|
-
disabled;
|
|
144
|
-
tooltip;
|
|
145
|
-
type;
|
|
146
|
-
placeholder;
|
|
147
|
-
options;
|
|
148
|
-
emptyOption = false;
|
|
149
|
-
attrName;
|
|
150
|
-
radioOptions;
|
|
151
|
-
multiSelectOptions;
|
|
152
|
-
specificPartKey;
|
|
153
|
-
ariaDescribedBy = "";
|
|
154
|
-
pattern;
|
|
155
|
-
patternErrorMessage;
|
|
156
|
-
validationFunc;
|
|
157
|
-
get el() { return index.getElement(this); }
|
|
158
|
-
selected;
|
|
159
|
-
readStore(fieldName) {
|
|
160
|
-
if (!fieldName)
|
|
161
|
-
return;
|
|
162
|
-
const data = profileStore.state.data;
|
|
163
|
-
if (!data)
|
|
164
|
-
return;
|
|
165
|
-
let field;
|
|
166
|
-
if (fieldName.startsWith("custom_attributes.")) {
|
|
167
|
-
const key = fieldName.replace("custom_attributes.", "");
|
|
168
|
-
field = data.custom_attributes?.[key];
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
field = data[fieldName];
|
|
172
|
-
}
|
|
173
|
-
if (!field)
|
|
174
|
-
return;
|
|
175
|
-
if (field.radio_options) {
|
|
176
|
-
const checkedOption = field.radio_options.find((option) => option.checked);
|
|
177
|
-
const checkedValue = checkedOption?.value ?? field.value ?? "";
|
|
178
|
-
return String(checkedValue);
|
|
179
|
-
}
|
|
180
|
-
if (field.type === "checkbox") {
|
|
181
|
-
return Array.isArray(field.value) ? field.value : [];
|
|
182
|
-
}
|
|
183
|
-
return field.value;
|
|
184
|
-
}
|
|
185
|
-
writeStore(fieldName, value) {
|
|
186
|
-
if (!fieldName)
|
|
187
|
-
return;
|
|
188
|
-
const data = profileStore.state.data;
|
|
189
|
-
if (!data)
|
|
190
|
-
return;
|
|
191
|
-
const isCustomAttribute = fieldName.startsWith("custom_attributes.");
|
|
192
|
-
const key = isCustomAttribute ? fieldName.replace("custom_attributes.", "") : fieldName;
|
|
193
|
-
if (isCustomAttribute) {
|
|
194
|
-
const field = data.custom_attributes?.[key];
|
|
195
|
-
profileStore.state.data = {
|
|
196
|
-
...data,
|
|
197
|
-
custom_attributes: {
|
|
198
|
-
...data.custom_attributes,
|
|
199
|
-
[key]: { ...field, value },
|
|
200
|
-
},
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
const field = data[key];
|
|
205
|
-
profileStore.state.data = { ...data, [key]: { ...field, value } };
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
runExternalValidator(value) {
|
|
209
|
-
if (this.validationFunc) {
|
|
210
|
-
try {
|
|
211
|
-
return this.validationFunc(value);
|
|
212
|
-
}
|
|
213
|
-
catch (e) {
|
|
214
|
-
this.logger.error("External validator (validationFunc) threw an error:", e);
|
|
215
|
-
return null;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
validateValue(value) {
|
|
220
|
-
// TODO: We should validate this when the component is loading.
|
|
221
|
-
if (this.required) {
|
|
222
|
-
const empty = value === undefined || value === null || value === "";
|
|
223
|
-
if (empty) {
|
|
224
|
-
return { valid: false, message: "This field is required." };
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
if (this.pattern && typeof value === "string") {
|
|
228
|
-
const regex = new RegExp(this.pattern);
|
|
229
|
-
if (!regex.test(value)) {
|
|
230
|
-
return { valid: false, message: this.patternErrorMessage || "Invalid format." };
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
const externalResult = this.runExternalValidator(value);
|
|
234
|
-
if (externalResult && !externalResult.valid) {
|
|
235
|
-
return { valid: false, message: externalResult.message || "Invalid input." };
|
|
236
|
-
}
|
|
237
|
-
if (this.type === "tel") {
|
|
238
|
-
const phonePattern = /^(?=.{4,13}$)(\+\d+|\d+)$/;
|
|
239
|
-
if (typeof value === "string" && value !== "" && !phonePattern.test(value)) {
|
|
240
|
-
return { valid: false, message: this.invalidPhoneMessage };
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return { valid: true, message: "" };
|
|
244
|
-
}
|
|
245
|
-
getNormalizedOptions() {
|
|
246
|
-
if (Array.isArray(this.options))
|
|
247
|
-
return this.options;
|
|
248
|
-
// unidy-raw-field select-options prop can be a JSON string
|
|
249
|
-
if (typeof this.options === "string")
|
|
250
|
-
return JSON.parse(this.options);
|
|
251
|
-
return [];
|
|
252
|
-
}
|
|
253
|
-
countryIcon(countryCode, placeholder = "➖") {
|
|
254
|
-
if (!/^[A-Z]{2}$/.test(countryCode)) {
|
|
255
|
-
return placeholder;
|
|
256
|
-
}
|
|
257
|
-
return Array.from(countryCode)
|
|
258
|
-
.map((char) => String.fromCodePoint(0x1f1e6 + (char.charCodeAt(0) - "A".charCodeAt(0))))
|
|
259
|
-
.join("");
|
|
260
|
-
}
|
|
261
|
-
onMultiToggle = (optValue, checked) => {
|
|
262
|
-
const currentValues = Array.isArray(this.selected) ? this.selected : [];
|
|
263
|
-
let updatedValues;
|
|
264
|
-
if (checked) {
|
|
265
|
-
updatedValues = currentValues.includes(optValue) ? currentValues : [...currentValues, optValue];
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
updatedValues = currentValues.filter((v) => v !== optValue);
|
|
269
|
-
}
|
|
270
|
-
this.selected = updatedValues;
|
|
271
|
-
// TODO: validate multiselect if needed
|
|
272
|
-
this.writeStore(this.field, updatedValues);
|
|
273
|
-
};
|
|
274
|
-
onBlurFieldValidation = (e) => {
|
|
275
|
-
const input = e.target;
|
|
276
|
-
const val = input.value;
|
|
277
|
-
const result = this.validateValue(val);
|
|
278
|
-
const newErrors = { ...profileStore.state.errors };
|
|
279
|
-
if (result.valid) {
|
|
280
|
-
delete newErrors[this.field];
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
newErrors[this.field] = result.message;
|
|
284
|
-
}
|
|
285
|
-
profileStore.state.errors = newErrors;
|
|
286
|
-
};
|
|
287
|
-
onChangeFieldValidation = (newValue) => {
|
|
288
|
-
this.selected = newValue;
|
|
289
|
-
const result = this.validateValue(newValue);
|
|
290
|
-
const newErrors = { ...profileStore.state.errors };
|
|
291
|
-
if (result.valid) {
|
|
292
|
-
delete newErrors[this.field];
|
|
293
|
-
this.writeStore(this.field, newValue);
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
newErrors[this.field] = result.message;
|
|
297
|
-
}
|
|
298
|
-
profileStore.state.errors = newErrors;
|
|
299
|
-
};
|
|
300
|
-
componentWillLoad() {
|
|
301
|
-
if (!this.field)
|
|
302
|
-
throw new Error('u-raw-field: "field" is required.');
|
|
303
|
-
if (!this.type)
|
|
304
|
-
throw new Error('u-raw-field: "type" is required.');
|
|
305
|
-
const allowed = new Set(["text", "email", "tel", "password", "number", "date", "radio", "textarea", "select", "checkbox"]);
|
|
306
|
-
if (!allowed.has(this.type)) {
|
|
307
|
-
this.type = "text";
|
|
308
|
-
}
|
|
309
|
-
const current = this.readStore(this.field);
|
|
310
|
-
const isType = this.type === "text" ||
|
|
311
|
-
this.type === "email" ||
|
|
312
|
-
this.type === "tel" ||
|
|
313
|
-
this.type === "password" ||
|
|
314
|
-
this.type === "number" ||
|
|
315
|
-
this.type === "date" ||
|
|
316
|
-
this.type === "textarea" ||
|
|
317
|
-
this.type === "select";
|
|
318
|
-
if (isType && (current === undefined || current === null) && typeof this.value === "string") {
|
|
319
|
-
this.writeStore(this.field, this.value);
|
|
320
|
-
}
|
|
321
|
-
this.selected = current;
|
|
322
|
-
}
|
|
323
|
-
componentDidRender() {
|
|
324
|
-
const errs = profileStore.state.errors;
|
|
325
|
-
if (errs?.[this.field]) {
|
|
326
|
-
this.el.querySelector(`#${CSS.escape(this.field)}`)?.focus();
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
render() {
|
|
330
|
-
if (this.type === "radio") {
|
|
331
|
-
if (Array.isArray(this.radioOptions) && this.radioOptions.length) {
|
|
332
|
-
const checkedOptions = this.radioOptions.map((opt) => ({
|
|
333
|
-
...opt,
|
|
334
|
-
checked: String(opt.value) === this.selected,
|
|
335
|
-
}));
|
|
336
|
-
return (index.h(RadioGroup, { name: this.field, disabled: this.disabled, title: this.tooltip, type: "radio", onChange: this.onChangeFieldValidation, options: checkedOptions, specificPartKey: this.specificPartKey, "aria-describedby": this.ariaDescribedBy, required: this.required }));
|
|
337
|
-
}
|
|
338
|
-
if (typeof this.value === "string") {
|
|
339
|
-
const currentValue = this.readStore(this.field);
|
|
340
|
-
const isChecked = currentValue != null && String(currentValue) === this.value;
|
|
341
|
-
return (index.h(RadioGroup, { name: this.field, value: this.value, checked: isChecked, disabled: this.disabled, title: this.tooltip, componentClassName: this.componentClassName, type: "radio", specificPartKey: this.specificPartKey, onChange: this.onChangeFieldValidation, "aria-describedby": this.ariaDescribedBy, required: this.required }));
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
if (this.type === "checkbox") {
|
|
345
|
-
if (Array.isArray(this.multiSelectOptions) && this.multiSelectOptions.length) {
|
|
346
|
-
const selected = Array.isArray(this.selected) ? this.selected : [];
|
|
347
|
-
return (index.h(MultiSelect, { value: selected, options: this.multiSelectOptions, disabled: this.disabled, title: this.tooltip, type: "checkbox", specificPartKey: this.specificPartKey, onToggle: this.onMultiToggle, "aria-describedby": this.ariaDescribedBy }));
|
|
348
|
-
}
|
|
349
|
-
if (this.value) {
|
|
350
|
-
const currentValue = this.readStore(this.field) ?? [];
|
|
351
|
-
const isChecked = currentValue?.includes(this.value);
|
|
352
|
-
return (index.h(MultiSelect, { id: `${this.field}-${this.value}`, name: this.field, value: this.value, checked: isChecked, disabled: this.disabled, title: this.tooltip, componentClassName: this.componentClassName, type: "checkbox", onToggle: (val, checked) => {
|
|
353
|
-
const current = this.readStore(this.field);
|
|
354
|
-
const updated = checked ? [...current, val] : current.filter((v) => v !== val);
|
|
355
|
-
this.writeStore(this.field, updated);
|
|
356
|
-
}, "aria-describedby": this.ariaDescribedBy }));
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
if (this.type === "select") {
|
|
360
|
-
const currentValue = this.readStore(this.field) ?? "";
|
|
361
|
-
const option = this.getNormalizedOptions();
|
|
362
|
-
return (index.h(Select, { id: this.field, name: this.field, value: currentValue, options: option, disabled: this.disabled, title: this.tooltip, emptyOption: this.emptyOption, onChange: this.onChangeFieldValidation, componentClassName: this.componentClassName, countryCodeDisplayOption: this.countryCodeDisplayOption, countryIcon: this.countryIcon, attr_name: this.attrName, specificPartKey: this.specificPartKey, "aria-describedby": this.ariaDescribedBy }));
|
|
363
|
-
}
|
|
364
|
-
if (this.type === "textarea") {
|
|
365
|
-
const currentValue = this.readStore(this.field) || "";
|
|
366
|
-
return (index.h(Textarea, { id: this.field, value: currentValue, required: this.required, disabled: this.disabled, title: this.tooltip, componentClassName: this.componentClassName, specificPartKey: this.specificPartKey, onChange: this.onChangeFieldValidation, onBlur: this.onBlurFieldValidation, "aria-describedby": this.ariaDescribedBy }));
|
|
367
|
-
}
|
|
368
|
-
const currentValue = this.readStore(this.field) || "";
|
|
369
|
-
return (index.h(Input, { id: this.field, value: currentValue, required: this.required, disabled: this.disabled, title: this.tooltip, type: this.type, componentClassName: this.componentClassName, placeholder: this.placeholder, specificPartKey: this.specificPartKey, onChange: this.onChangeFieldValidation, onBlur: this.onBlurFieldValidation, "aria-describedby": this.ariaDescribedBy }));
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
exports.u_field = Field;
|
|
374
|
-
exports.u_raw_field = RawField;
|
|
375
|
-
//# sourceMappingURL=u-field.u-raw-field.entry.cjs.js.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-B_N5xKgH.js');
|
|
4
|
-
var flashStore = require('./flash-store-BuIBuQDx.js');
|
|
5
|
-
require('./index-DLz3FT7T.js');
|
|
6
|
-
|
|
7
|
-
const CloseIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("title", null, "Close"), index.h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })));
|
|
8
|
-
|
|
9
|
-
const flashMessageCss = "/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ring-offset-width:0px;--tw-border-style:solid;--tw-leading:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--u-font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--u-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--u-color-red-50:oklch(97.1% .013 17.38);--u-color-red-300:oklch(80.8% .114 19.571);--u-color-red-800:oklch(44.4% .177 26.899);--u-color-green-50:oklch(98.2% .018 155.826);--u-color-green-400:oklch(79.2% .209 151.711);--u-color-green-800:oklch(44.8% .119 151.328);--u-color-blue-50:oklch(97% .014 254.604);--u-color-blue-300:oklch(80.9% .105 251.813);--u-color-blue-800:oklch(42.4% .199 265.638);--u-spacing:.25rem;--u-container-lg:32rem;--u-default-font-family:var(--u-font-sans);--u-default-mono-font-family:var(--u-font-mono);--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{font-family:var(--u-default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--u-default-font-feature-settings,normal);font-variation-settings:var(--u-default-font-variation-settings,normal);-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--u-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--u-default-mono-font-feature-settings,normal);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--u-default-mono-font-variation-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:currentColor;color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.u\\:z-\\[500\\]{z-index:500}.u\\:flex{display:flex}.u\\:max-w-lg{max-width:var(--u-container-lg)}.u\\:min-w-64{min-width:calc(var(--u-spacing)*64)}.u\\:cursor-pointer{cursor:pointer}.u\\:flex-col{flex-direction:column}.u\\:items-start{align-items:flex-start}.u\\:justify-between{justify-content:space-between}.u\\:gap-2{gap:calc(var(--u-spacing)*2)}.u\\:gap-3{gap:calc(var(--u-spacing)*3)}.u\\:rounded{border-radius:.25rem}.u\\:border{border-style:var(--tw-border-style);border-width:1px}.u\\:border-blue-300{border-color:var(--u-color-blue-300)}.u\\:border-green-400{border-color:var(--u-color-green-400)}.u\\:border-red-300{border-color:var(--u-color-red-300)}.u\\:bg-blue-50{background-color:var(--u-color-blue-50)}.u\\:bg-green-50{background-color:var(--u-color-green-50)}.u\\:bg-red-50{background-color:var(--u-color-red-50)}.u\\:p-3{padding:calc(var(--u-spacing)*3)}.u\\:pt-1{padding-top:calc(var(--u-spacing)*1)}.u\\:leading-none{--tw-leading:1;line-height:1}.u\\:break-words{overflow-wrap:break-word}.u\\:text-blue-800{color:var(--u-color-blue-800)}.u\\:text-green-800{color:var(--u-color-green-800)}.u\\:text-red-800{color:var(--u-color-red-800)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}} /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}";
|
|
10
|
-
|
|
11
|
-
const variantClasses = {
|
|
12
|
-
error: "u:bg-red-50 u:border-red-300 u:text-red-800",
|
|
13
|
-
success: "u:bg-green-50 u:border-green-400 u:text-green-800",
|
|
14
|
-
info: "u:bg-blue-50 u:border-blue-300 u:text-blue-800",
|
|
15
|
-
};
|
|
16
|
-
const FlashMessage = class {
|
|
17
|
-
constructor(hostRef) {
|
|
18
|
-
index.registerInstance(this, hostRef);
|
|
19
|
-
}
|
|
20
|
-
componentClassName = "";
|
|
21
|
-
removeAfterSeconds = null;
|
|
22
|
-
componentWillLoad() {
|
|
23
|
-
if (this.removeAfterSeconds) {
|
|
24
|
-
flashStore.flashState.autoRemoveDelay = this.removeAfterSeconds * 1000;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
if (flashStore.flashState.messages.length === 0) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
return (index.h("div", { class: `u:flex u:flex-col u:gap-2 u:z-[500] u:min-w-64 u:max-w-lg ${this.componentClassName}` }, flashStore.flashState.messages.map((message) => (index.h("div", { key: message.id, class: `u:flex u:items-start u:justify-between u:gap-3 u:p-3 u:rounded u:border ${variantClasses[message.variant]}`, role: "alert", "aria-live": "polite" }, index.h("span", { class: "u:break-words" }, message.text), index.h("button", { type: "button", class: "u:cursor-pointer u:leading-none u:pt-1", onClick: () => flashStore.Flash.remove(message.id), "aria-label": "Close" }, index.h(CloseIcon, null)))))));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
FlashMessage.style = flashMessageCss;
|
|
35
|
-
|
|
36
|
-
exports.u_flash_message = FlashMessage;
|
|
37
|
-
//# sourceMappingURL=u-flash-message.entry.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"u-flash-message.entry.cjs.js","sources":["src/shared/components/flash-message/close-icon.tsx","src/shared/components/flash-message/flash-message.css?tag=u-flash-message","src/shared/components/flash-message/flash-message.tsx"],"sourcesContent":["import { h } from \"@stencil/core\";\n\nexport const CloseIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <title>Close</title>\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n </svg>\n);\n","","import { Component, Prop, h } from \"@stencil/core\";\nimport { flashState, Flash } from \"../../store/flash-store\";\nimport { CloseIcon } from \"./close-icon\";\n\nconst variantClasses = {\n error: \"u:bg-red-50 u:border-red-300 u:text-red-800\",\n success: \"u:bg-green-50 u:border-green-400 u:text-green-800\",\n info: \"u:bg-blue-50 u:border-blue-300 u:text-blue-800\",\n};\n\n@Component({\n tag: \"u-flash-message\",\n styleUrl: \"flash-message.css\",\n shadow: false,\n})\nexport class FlashMessage {\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop() removeAfterSeconds: number | null = null;\n\n componentWillLoad() {\n if (this.removeAfterSeconds) {\n flashState.autoRemoveDelay = this.removeAfterSeconds * 1000;\n }\n }\n\n render() {\n if (flashState.messages.length === 0) {\n return null;\n }\n\n return (\n <div class={`u:flex u:flex-col u:gap-2 u:z-[500] u:min-w-64 u:max-w-lg ${this.componentClassName}`}>\n {flashState.messages.map((message) => (\n <div\n key={message.id}\n class={`u:flex u:items-start u:justify-between u:gap-3 u:p-3 u:rounded u:border ${variantClasses[message.variant]}`}\n role=\"alert\"\n aria-live=\"polite\"\n >\n <span class=\"u:break-words\">{message.text}</span>\n <button\n type=\"button\"\n class=\"u:cursor-pointer u:leading-none u:pt-1\"\n onClick={() => Flash.remove(message.id)}\n aria-label=\"Close\"\n >\n <CloseIcon />\n </button>\n </div>\n ))}\n </div>\n );\n }\n}\n"],"names":["h","flashState","Flash"],"mappings":";;;;;;AAEO,MAAM,SAAS,GAAG,OACvBA,OACE,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EAAA,cAAA,EACR,GAAG,EACD,gBAAA,EAAA,OAAO,qBACN,OAAO,EAAA,EAEvBA,OAAoB,CAAA,OAAA,EAAA,IAAA,EAAA,OAAA,CAAA,EACpBA,OAAA,CAAA,MAAA,EAAA,EAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAG,CAAA,EACtCA,OAAA,CAAA,MAAA,EAAA,EAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAG,CAAA,CAClC,CACP;;AClBD,MAAM,eAAe,GAAG,g6QAAg6Q;;ACIx7Q,MAAM,cAAc,GAAG;AACrB,IAAA,KAAK,EAAE,6CAA6C;AACpD,IAAA,OAAO,EAAE,mDAAmD;AAC5D,IAAA,IAAI,EAAE,gDAAgD;CACvD;MAOY,YAAY,GAAA,MAAA;;;;IACY,kBAAkB,GAAG,EAAE;IAClD,kBAAkB,GAAkB,IAAI;IAEhD,iBAAiB,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,kBAAkB,EAAE;YAC3BC,qBAAU,CAAC,eAAe,GAAG,IAAI,CAAC,kBAAkB,GAAG,IAAI;;;IAI/D,MAAM,GAAA;QACJ,IAAIA,qBAAU,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;AACpC,YAAA,OAAO,IAAI;;QAGb,QACED,iBAAK,KAAK,EAAE,CAAA,0DAAA,EAA6D,IAAI,CAAC,kBAAkB,CAAA,CAAE,EAAA,EAC/FC,qBAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,MAC/BD,iBACE,GAAG,EAAE,OAAO,CAAC,EAAE,EACf,KAAK,EAAE,CAAA,wEAAA,EAA2E,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA,CAAE,EACnH,IAAI,EAAC,OAAO,eACF,QAAQ,EAAA,EAElBA,OAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,eAAe,IAAE,OAAO,CAAC,IAAI,CAAQ,EACjDA,OACE,CAAA,QAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,wCAAwC,EAC9C,OAAO,EAAE,MAAME,gBAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,EAAA,YAAA,EAC5B,OAAO,EAAA,EAElBF,OAAC,CAAA,SAAS,OAAG,CACN,CACL,CACP,CAAC,CACE;;;;;;;"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-B_N5xKgH.js');
|
|
4
|
-
var i18n = require('./i18n-BoDZ8kd2.js');
|
|
5
|
-
var profileStore = require('./profile-store-P_BcYkef.js');
|
|
6
|
-
require('./unidy-store-7AbWnZ6g.js');
|
|
7
|
-
require('./index-DLz3FT7T.js');
|
|
8
|
-
|
|
9
|
-
const fullProfileCss = "/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme{:host,:root{--u-font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--u-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--u-default-font-family:var(--u-font-sans);--u-default-mono-font-family:var(--u-font-mono);--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{font-family:var(--u-default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--u-default-font-feature-settings,normal);font-variation-settings:var(--u-default-font-variation-settings,normal);-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--u-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--u-default-mono-font-feature-settings,normal);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--u-default-mono-font-variation-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:currentColor;color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.u\\:flex{display:flex}.u\\:justify-end{justify-content:flex-end}} /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ring-offset-width:0px;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer base{}@layer components;@layer utilities{.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
|
|
10
|
-
|
|
11
|
-
const EXCLUDED_FIELDS = ['custom_attributes', 'email', 'preferred_language'];
|
|
12
|
-
const FullProfile = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
}
|
|
16
|
-
fields;
|
|
17
|
-
countryCodeDisplayOption = "label";
|
|
18
|
-
list() {
|
|
19
|
-
if (this.fields) {
|
|
20
|
-
return this.fields
|
|
21
|
-
.split(",")
|
|
22
|
-
.map((field) => field.trim())
|
|
23
|
-
.filter(Boolean);
|
|
24
|
-
}
|
|
25
|
-
return [
|
|
26
|
-
...Object.keys(profileStore.state.data || {}).filter((field) => !EXCLUDED_FIELDS.includes(field)),
|
|
27
|
-
...Object.keys(profileStore.state.data?.custom_attributes || {}).map((field) => `custom_attributes.${field}`),
|
|
28
|
-
];
|
|
29
|
-
}
|
|
30
|
-
render() {
|
|
31
|
-
return (index.h("u-profile", { key: 'e3e7e3d645c884f0fad805b4f40c6dd16319c33f' }, this.list().map((field) => (index.h("u-field", { key: field, field: field, countryCodeDisplayOption: this.countryCodeDisplayOption }))), index.h("div", { key: '81358b421d25d7c6fc77a8cce6c22af8121c73ff', class: "u:flex u:justify-end" }, index.h("u-submit-button", { key: '075a0b4531bfb34bfbe7a60cb61340aa95c8a5c5' }, i18n.t("buttons.submit")))));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
FullProfile.style = fullProfileCss;
|
|
35
|
-
|
|
36
|
-
exports.u_full_profile = FullProfile;
|
|
37
|
-
//# sourceMappingURL=u-full-profile.entry.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"u-full-profile.entry.cjs.js","sources":["src/profile/components/full-profile/full-profile.css?tag=u-full-profile","src/profile/components/full-profile/full-profile.tsx"],"sourcesContent":["","import { Component, h, Prop } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { state as profileState } from \"../../store/profile-store\";\n\nconst EXCLUDED_FIELDS = ['custom_attributes', 'email', 'preferred_language']\n\n@Component({\n tag: \"u-full-profile\",\n styleUrl: \"full-profile.css\",\n shadow: false,\n})\nexport class FullProfile {\n @Prop() fields?: string;\n @Prop() countryCodeDisplayOption?: \"icon\" | \"label\" = \"label\";\n\n private list() {\n if (this.fields) {\n return this.fields\n .split(\",\")\n .map((field) => field.trim())\n .filter(Boolean);\n }\n\n return [\n ...Object.keys(profileState.data || {}).filter((field) => !EXCLUDED_FIELDS.includes(field)),\n ...Object.keys(profileState.data?.custom_attributes || {}).map((field) => `custom_attributes.${field}`),\n ];\n }\n\n render() {\n return (\n <u-profile>\n {this.list().map((field) => (\n <u-field key={field} field={field} countryCodeDisplayOption={this.countryCodeDisplayOption} />\n ))}\n <div class=\"u:flex u:justify-end\">\n <u-submit-button>{t(\"buttons.submit\")}</u-submit-button>\n </div>\n </u-profile>\n );\n }\n}\n"],"names":["profileState","h","t"],"mappings":";;;;;;;;AAAA,MAAM,cAAc,GAAG,u7NAAu7N;;ACI98N,MAAM,eAAe,GAAG,CAAC,mBAAmB,EAAE,OAAO,EAAE,oBAAoB,CAAC;MAO/D,WAAW,GAAA,MAAA;;;;AACd,IAAA,MAAM;IACN,wBAAwB,GAAsB,OAAO;IAErD,IAAI,GAAA;AACV,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,IAAI,CAAC;iBACT,KAAK,CAAC,GAAG;iBACT,GAAG,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI,EAAE;iBAC3B,MAAM,CAAC,OAAO,CAAC;;QAGpB,OAAO;YACL,GAAG,MAAM,CAAC,IAAI,CAACA,kBAAY,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC3F,GAAG,MAAM,CAAC,IAAI,CAACA,kBAAY,CAAC,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK,CAAA,kBAAA,EAAqB,KAAK,CAAA,CAAE,CAAC;SACxG;;IAGH,MAAM,GAAA;AACJ,QAAA,QACEC,OAAA,CAAA,WAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACG,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,MACrBA,OAAS,CAAA,SAAA,EAAA,EAAA,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,CAAC,wBAAwB,EAAI,CAAA,CAC/F,CAAC,EACFA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,sBAAsB,EAAA,EAC/BA,OAAkB,CAAA,iBAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAAC,MAAC,CAAC,gBAAgB,CAAC,CAAmB,CACpD,CACI;;;;;;;"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-B_N5xKgH.js');
|
|
4
|
-
var auth = require('./auth-B83pzi0f.js');
|
|
5
|
-
var i18n = require('./i18n-BoDZ8kd2.js');
|
|
6
|
-
require('./index-R2MKLaem.js');
|
|
7
|
-
require('./profile-store-P_BcYkef.js');
|
|
8
|
-
require('./index-DLz3FT7T.js');
|
|
9
|
-
require('./unidy-store-7AbWnZ6g.js');
|
|
10
|
-
require('./auth-store-DPHWWmXf.js');
|
|
11
|
-
require('./component-utils-BpMyeVQo.js');
|
|
12
|
-
require('./flash-store-BuIBuQDx.js');
|
|
13
|
-
|
|
14
|
-
const LogoutButton = class {
|
|
15
|
-
constructor(hostRef) {
|
|
16
|
-
index.registerInstance(this, hostRef);
|
|
17
|
-
this.logout = index.createEvent(this, "logout");
|
|
18
|
-
}
|
|
19
|
-
componentClassName = "";
|
|
20
|
-
reloadOnSuccess = true;
|
|
21
|
-
logout;
|
|
22
|
-
handleLogout = async () => {
|
|
23
|
-
const authInstance = await auth.Auth.getInstance();
|
|
24
|
-
const result = await authInstance.logout();
|
|
25
|
-
if (result === true) {
|
|
26
|
-
this.logout.emit();
|
|
27
|
-
if (this.reloadOnSuccess) {
|
|
28
|
-
window.location.reload();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
render() {
|
|
33
|
-
return (index.h("button", { key: '88a2362402a6194c9dc685adbae55a9ac601e7d5', type: "button", class: this.componentClassName, onClick: this.handleLogout, "aria-live": "polite" }, i18n.t("buttons.logout")));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
exports.u_logout_button = LogoutButton;
|
|
38
|
-
//# sourceMappingURL=u-logout-button.entry.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"u-logout-button.entry.cjs.js","sources":["src/auth/components/logout-button/logout-button.tsx"],"sourcesContent":["import { Component, h, Prop, type EventEmitter, Event } from \"@stencil/core\";\nimport { Auth } from \"../../auth\";\nimport { t } from \"../../../i18n\";\n\n@Component({\n tag: \"u-logout-button\",\n shadow: false,\n})\nexport class LogoutButton {\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop() reloadOnSuccess = true;\n\n @Event() logout!: EventEmitter<void>;\n\n private handleLogout = async () => {\n const authInstance = await Auth.getInstance();\n\n const result = await authInstance.logout();\n\n if (result === true) {\n this.logout.emit();\n\n if (this.reloadOnSuccess) {\n window.location.reload();\n }\n }\n };\n\n render() {\n return (\n <button type=\"button\" class={this.componentClassName} onClick={this.handleLogout} aria-live=\"polite\">\n {t(\"buttons.logout\")}\n </button>\n );\n }\n}\n"],"names":["Auth","h","t"],"mappings":";;;;;;;;;;;;;MAQa,YAAY,GAAA,MAAA;;;;;IACY,kBAAkB,GAAG,EAAE;IAClD,eAAe,GAAG,IAAI;AAErB,IAAA,MAAM;IAEP,YAAY,GAAG,YAAW;AAChC,QAAA,MAAM,YAAY,GAAG,MAAMA,SAAI,CAAC,WAAW,EAAE;AAE7C,QAAA,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,MAAM,EAAE;AAE1C,QAAA,IAAI,MAAM,KAAK,IAAI,EAAE;AACnB,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;AAElB,YAAA,IAAI,IAAI,CAAC,eAAe,EAAE;AACxB,gBAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE;;;AAG9B,KAAC;IAED,MAAM,GAAA;AACJ,QAAA,QACEC,OAAQ,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,EAAA,WAAA,EAAY,QAAQ,EAAA,EACjGC,MAAC,CAAC,gBAAgB,CAAC,CACb;;;;;;"}
|