@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.
35 lines (34 loc) • 1.91 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 { DisplayName } from '@progress/sitefinity-widget-designers-sdk/decorators/display-name';
import { DataType } from '@progress/sitefinity-widget-designers-sdk/decorators/data-type';
import { Range } from '@progress/sitefinity-widget-designers-sdk/decorators/validations';
import { Category } from '@progress/sitefinity-widget-designers-sdk/decorators/category';
import { WidgetEntity } from '@progress/sitefinity-widget-designers-sdk/decorators/widget-entity';
import { LengthDependsOn } from '@progress/sitefinity-widget-designers-sdk/decorators/length-depends-on';
let FormSectionEntity = class FormSectionEntity {
ColumnsCount = 1;
CssSystemGridSize = 12;
ColumnProportionsInfo = null;
};
__decorate([
Range(1, 12, 'Column\u0027s count must be between 1 and 12.'),
Category('QuickEdit')
], FormSectionEntity.prototype, "ColumnsCount", void 0);
__decorate([
Category('QuickEdit')
], FormSectionEntity.prototype, "CssSystemGridSize", void 0);
__decorate([
Category('QuickEdit'),
DisplayName('Proportions'),
LengthDependsOn('ColumnsCount', 'Column', 'Column'),
DataType('enumerable', 'string')
], FormSectionEntity.prototype, "ColumnProportionsInfo", void 0);
FormSectionEntity = __decorate([
WidgetEntity('SitefinitySection', 'Section')
], FormSectionEntity);
export { FormSectionEntity };