UNPKG

@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

30 lines (29 loc) 1.37 kB
"use strict"; 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 { ChoiceValue = null; 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);