@aurigma/design-atoms-model
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
70 lines • 2.85 kB
JavaScript
import { EventObject } from "../../EventObject";
var BarcodePermissions = /** @class */ (function () {
function BarcodePermissions() {
this._allowChangeBarcodeType = true;
this._allowChangeBarcodeContent = true;
this._allowChangeBarcodeColor = true;
this.propertyChanged = new EventObject();
}
Object.defineProperty(BarcodePermissions.prototype, "allowChangeBarcodeType", {
get: function () {
return this._allowChangeBarcodeType;
},
set: function (value) {
if (this._allowChangeBarcodeType === value)
return;
this._allowChangeBarcodeType = value;
this.propertyChanged.notify();
},
enumerable: true,
configurable: true
});
Object.defineProperty(BarcodePermissions.prototype, "allowChangeBarcodeContent", {
get: function () {
return this._allowChangeBarcodeContent;
},
set: function (value) {
if (this._allowChangeBarcodeContent === value)
return;
this._allowChangeBarcodeContent = value;
this.propertyChanged.fire();
},
enumerable: true,
configurable: true
});
Object.defineProperty(BarcodePermissions.prototype, "allowChangeBarcodeColor", {
get: function () {
return this._allowChangeBarcodeColor;
},
set: function (value) {
if (this._allowChangeBarcodeColor === value)
return;
this._allowChangeBarcodeColor = value;
this.propertyChanged.notify();
},
enumerable: true,
configurable: true
});
BarcodePermissions.prototype.getSimplifiedObject = function () {
var result = {};
result["allowChangeBarcodeType"] = this.allowChangeBarcodeType;
result["allowChangeBarcodeContent"] = this.allowChangeBarcodeContent;
result["allowChangeBarcodeColor"] = this.allowChangeBarcodeColor;
return result;
};
BarcodePermissions.prototype.clone = function () {
var clone = new BarcodePermissions();
clone.allowChangeBarcodeType = this.allowChangeBarcodeType;
clone.allowChangeBarcodeContent = this.allowChangeBarcodeContent;
clone.allowChangeBarcodeColor = this.allowChangeBarcodeColor;
return clone;
};
BarcodePermissions.prototype.equals = function (p) {
return this.allowChangeBarcodeColor === p.allowChangeBarcodeColor &&
this.allowChangeBarcodeContent === p.allowChangeBarcodeContent &&
this.allowChangeBarcodeType === p.allowChangeBarcodeType;
};
return BarcodePermissions;
}());
export { BarcodePermissions };
//# sourceMappingURL=BarcodePermissions.js.map