@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
128 lines • 5.2 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;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PageRowSettings = exports.Positioning = exports.Responsiveness = exports.GeneralRowSettings = void 0;
const ta_json_1 = require("ta-json");
let GeneralRowSettings = class GeneralRowSettings {
};
exports.GeneralRowSettings = GeneralRowSettings;
__decorate([
(0, ta_json_1.JsonProperty)("rowWidthType"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "rowWidthType", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("rowWidthValue"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "rowWidthValue", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("marginTop"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "marginTop", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("marginBottom"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "marginBottom", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("paddingTop"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "paddingTop", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("paddingBottom"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "paddingBottom", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("paddingLeft"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "paddingLeft", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("paddingRight"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "paddingRight", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("backgroundColor"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "backgroundColor", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("backgroundImage"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "backgroundImage", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("backgroundPosition"),
__metadata("design:type", String)
], GeneralRowSettings.prototype, "backgroundPosition", void 0);
exports.GeneralRowSettings = GeneralRowSettings = __decorate([
(0, ta_json_1.JsonObject)()
], GeneralRowSettings);
let Responsiveness = class Responsiveness {
};
exports.Responsiveness = Responsiveness;
__decorate([
(0, ta_json_1.JsonProperty)("lg"),
__metadata("design:type", Number)
], Responsiveness.prototype, "lg", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("md"),
__metadata("design:type", Number)
], Responsiveness.prototype, "md", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("sm"),
__metadata("design:type", Number)
], Responsiveness.prototype, "sm", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("xs"),
__metadata("design:type", Number)
], Responsiveness.prototype, "xs", void 0);
exports.Responsiveness = Responsiveness = __decorate([
(0, ta_json_1.JsonObject)()
], Responsiveness);
let Positioning = class Positioning {
};
exports.Positioning = Positioning;
__decorate([
(0, ta_json_1.JsonProperty)("direction"),
__metadata("design:type", String)
], Positioning.prototype, "direction", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("alignment"),
__metadata("design:type", String)
], Positioning.prototype, "alignment", void 0);
exports.Positioning = Positioning = __decorate([
(0, ta_json_1.JsonObject)()
], Positioning);
let PageRowSettings = class PageRowSettings {
constructor() {
this.responsiveness = [];
this.positioning = [];
}
};
exports.PageRowSettings = PageRowSettings;
__decorate([
(0, ta_json_1.JsonProperty)("layout"),
__metadata("design:type", String)
], PageRowSettings.prototype, "layout", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("general"),
__metadata("design:type", GeneralRowSettings)
], PageRowSettings.prototype, "general", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("responsiveness"),
(0, ta_json_1.JsonElementType)(Responsiveness),
__metadata("design:type", Array)
], PageRowSettings.prototype, "responsiveness", void 0);
__decorate([
(0, ta_json_1.JsonProperty)("positioning"),
(0, ta_json_1.JsonElementType)(Positioning),
__metadata("design:type", Array)
], PageRowSettings.prototype, "positioning", void 0);
exports.PageRowSettings = PageRowSettings = __decorate([
(0, ta_json_1.JsonObject)()
], PageRowSettings);
//# sourceMappingURL=page-row-settings.js.map