@progress/sitefinity-widget-designers-sdk
Version:
This package aims to create a parity for widget designer generation similar to the [autogenerated widget designers](https://www.progress.com/documentation/sitefinity-cms/autogenerated-field-types) in Sitefinity. Due to some limitations in Typescript and J
32 lines (31 loc) • 1.42 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;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChoiceWithText = void 0;
const data_type_decorator_1 = require("../decorators/property-decorators/data-type.decorator");
const widget_entity_decorator_1 = require("../decorators/widget-entity.decorator");
/**
* @ignore
* @hidden
*/
let ChoiceWithText = class ChoiceWithText {
constructor() {
this.ChoiceValue = null;
this.TextValue = null;
}
};
exports.ChoiceWithText = ChoiceWithText;
__decorate([
(0, data_type_decorator_1.DataType)('number')
], ChoiceWithText.prototype, "ChoiceValue", void 0);
__decorate([
(0, data_type_decorator_1.DataType)('string')
], ChoiceWithText.prototype, "TextValue", void 0);
exports.ChoiceWithText = ChoiceWithText = __decorate([
(0, widget_entity_decorator_1.Model)()
], ChoiceWithText);