@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.
70 lines (69 loc) • 3.54 kB
JavaScript
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 { ContentSectionTitles, KnownFieldTypes } from '@progress/sitefinity-widget-designers-sdk/common';
import { ContentSection } from '@progress/sitefinity-widget-designers-sdk/decorators/content-section';
import { DefaultValue } from '@progress/sitefinity-widget-designers-sdk/decorators/default-value';
import { DisplayName } from '@progress/sitefinity-widget-designers-sdk/decorators/display-name';
import { DataType } from '@progress/sitefinity-widget-designers-sdk/decorators/data-type';
import { Choice } from '@progress/sitefinity-widget-designers-sdk/decorators/choice';
import { ConditionalVisibility } from '@progress/sitefinity-widget-designers-sdk/decorators/conditional-visibility';
import { Category } 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 { Browsable } from '@progress/sitefinity-widget-designers-sdk/decorators/browsable';
let FormPageEntity = class FormPageEntity {
PageLabel = 'Step';
ButtonLabel = 'Next';
AllowStepBackward = true;
BackLinkLabel = 'Back';
SfViewName = 'Default';
CssClass = null;
SfFieldType;
SfFieldName;
};
__decorate([
DisplayName('Page label'),
DefaultValue('Step'),
ContentSection(ContentSectionTitles.LabelsAndContent)
], FormPageEntity.prototype, "PageLabel", void 0);
__decorate([
DisplayName('Button label'),
DefaultValue('Next'),
ContentSection(ContentSectionTitles.LabelsAndContent)
], FormPageEntity.prototype, "ButtonLabel", void 0);
__decorate([
DisplayName('Allow users to step backward'),
DefaultValue(true),
ContentSection(ContentSectionTitles.LabelsAndContent),
DataType(KnownFieldTypes.ChipChoice),
Choice('[{"Title":"Yes","Name":"Yes","Value":true,"Icon":null},{"Title":"No","Name":"No","Value":false,"Icon":null}]')
], FormPageEntity.prototype, "AllowStepBackward", void 0);
__decorate([
DisplayName('Back link label'),
DefaultValue('Back'),
ContentSection(ContentSectionTitles.LabelsAndContent),
ConditionalVisibility('{"conditions":[{"fieldName":"AllowStepBackward","operator":"Equals","value":true}]}')
], FormPageEntity.prototype, "BackLinkLabel", void 0);
__decorate([
ContentSection(ContentSectionTitles.DisplaySettings),
DisplayName('Template'),
ViewSelector([{ Value: 'Default' }])
], FormPageEntity.prototype, "SfViewName", void 0);
__decorate([
Category('Advanced'),
DisplayName('CSS class')
], FormPageEntity.prototype, "CssClass", void 0);
__decorate([
Browsable(false)
], FormPageEntity.prototype, "SfFieldType", void 0);
__decorate([
Browsable(false)
], FormPageEntity.prototype, "SfFieldName", void 0);
FormPageEntity = __decorate([
WidgetEntity('SitefinityFormPage', 'Form page')
], FormPageEntity);
export { FormPageEntity };