UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

191 lines (190 loc) 8.95 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import { RestSdkTypes } from '../../rest-sdk/rest-client'; import { KnownFieldTypes } from '@progress/sitefinity-widget-designers-sdk/common'; import { ContentSection } from '@progress/sitefinity-widget-designers-sdk/decorators/content-section'; import { Description } from '@progress/sitefinity-widget-designers-sdk/decorators/description'; import { DisplayName } from '@progress/sitefinity-widget-designers-sdk/decorators/display-name'; import { DataModel, DataType } from '@progress/sitefinity-widget-designers-sdk/decorators/data-type'; import { Category, PropertyCategory } from '@progress/sitefinity-widget-designers-sdk/decorators/category'; import { WidgetEntity } from '@progress/sitefinity-widget-designers-sdk/decorators/widget-entity'; import { ViewSelector } from '@progress/sitefinity-widget-designers-sdk/decorators/view-selector'; import { WidgetLabel } from '@progress/sitefinity-widget-designers-sdk/decorators/widget-label'; import { KeysValues } from '@progress/sitefinity-widget-designers-sdk/decorators/attributes'; import { Content } from '@progress/sitefinity-widget-designers-sdk/decorators/content'; import { Margins } from '@progress/sitefinity-widget-designers-sdk/decorators/margins'; import { LengthDependsOn } from '@progress/sitefinity-widget-designers-sdk/decorators/length-depends-on'; let ResetPasswordEntity = class ResetPasswordEntity { LoginPage; RegistrationPage; SfViewName = 'Default'; Margins; // Advanced SfWidgetLabel = 'Reset password'; CssClass; MembershipProviderName; ResetPasswordHeader = 'Reset password'; NewPasswordLabel = 'New password'; RepeatNewPasswordLabel = 'Repeat new password'; SecurityQuestionLabel = 'Secret question:'; SaveButtonLabel = 'Save'; SuccessMessage = 'Your password is successfully changed.'; ErrorMessage = 'You are unable to reset password. Contact your administrator for assistance.'; BackLinkLabel = 'Back to login'; AllFieldsAreRequiredErrorMessage = 'All fields are required.'; PasswordsMismatchErrorMessage = 'New password and repeat password don\u0027t match.'; ForgottenPasswordHeader = 'Forgot your password?'; ForgottenPasswordLabel = 'Enter your login email address and you will receive an email with a link to reset your password.'; EmailLabel = 'Email'; SendButtonLabel = 'Send'; ForgottenPasswordSubmitMessage = 'You sent a request to reset your password to'; ForgottenPasswordLinkMessage = 'Use the link provided in your email to reset the password for your account.'; InvalidEmailFormatMessage = 'Invalid email format.'; FieldIsRequiredMessage = 'Field is required.'; Attributes; }; __decorate([ Content({ Type: RestSdkTypes.Pages, AllowMultipleItemsSelection: false }), ContentSection('Select pages', 1), DisplayName('Login page'), Description('This is the page where you have dropped login form widget.') ], ResetPasswordEntity.prototype, "LoginPage", void 0); __decorate([ Content({ Type: RestSdkTypes.Pages, AllowMultipleItemsSelection: false }), ContentSection('Select pages', 1), DisplayName('Registration page'), Description('This is the page where you have dropped registration widget.') ], ResetPasswordEntity.prototype, "RegistrationPage", void 0); __decorate([ ContentSection('Display settings', 1), DisplayName('Reset password template'), ViewSelector([{ Value: 'Default' }]) ], ResetPasswordEntity.prototype, "SfViewName", void 0); __decorate([ ContentSection('Display settings', 1), Margins('Reset password') ], ResetPasswordEntity.prototype, "Margins", void 0); __decorate([ Category(PropertyCategory.Advanced), WidgetLabel() ], ResetPasswordEntity.prototype, "SfWidgetLabel", void 0); __decorate([ DisplayName('CSS class'), Category(PropertyCategory.Advanced) ], ResetPasswordEntity.prototype, "CssClass", void 0); __decorate([ DisplayName('Membership Provider'), Category(PropertyCategory.Advanced) ], ResetPasswordEntity.prototype, "MembershipProviderName", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Reset password header') ], ResetPasswordEntity.prototype, "ResetPasswordHeader", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Password field label') ], ResetPasswordEntity.prototype, "NewPasswordLabel", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Repeat password field label') ], ResetPasswordEntity.prototype, "RepeatNewPasswordLabel", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Security question field label') ], ResetPasswordEntity.prototype, "SecurityQuestionLabel", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Save button') ], ResetPasswordEntity.prototype, "SaveButtonLabel", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Success message') ], ResetPasswordEntity.prototype, "SuccessMessage", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Error message') ], ResetPasswordEntity.prototype, "ErrorMessage", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Back link') ], ResetPasswordEntity.prototype, "BackLinkLabel", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Required fields error message.') ], ResetPasswordEntity.prototype, "AllFieldsAreRequiredErrorMessage", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Passwords mismatch error message.') ], ResetPasswordEntity.prototype, "PasswordsMismatchErrorMessage", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Forgotten password header') ], ResetPasswordEntity.prototype, "ForgottenPasswordHeader", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Forgotten password label') ], ResetPasswordEntity.prototype, "ForgottenPasswordLabel", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Email field label') ], ResetPasswordEntity.prototype, "EmailLabel", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Send button') ], ResetPasswordEntity.prototype, "SendButtonLabel", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Forgotten password submit message') ], ResetPasswordEntity.prototype, "ForgottenPasswordSubmitMessage", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Forgotten password link message') ], ResetPasswordEntity.prototype, "ForgottenPasswordLinkMessage", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Invalid email format message') ], ResetPasswordEntity.prototype, "InvalidEmailFormatMessage", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Labels and messages', 0), DisplayName('Field is required message') ], ResetPasswordEntity.prototype, "FieldIsRequiredMessage", void 0); __decorate([ Category(PropertyCategory.Advanced), ContentSection('Attributes'), DisplayName('Attributes for...'), DataType(KnownFieldTypes.Attributes), DataModel(KeysValues), LengthDependsOn(null, '', ' ', '[{"Name": "ResetPassword", "Title": "Reset password"}]') ], ResetPasswordEntity.prototype, "Attributes", void 0); ResetPasswordEntity = __decorate([ WidgetEntity('SitefinityResetPassword', 'Reset password') ], ResetPasswordEntity); export { ResetPasswordEntity };