UNPKG

@pilotlab/lux-attributes

Version:

A luxurious user experience framework, developed by your friends at Pilot.

34 lines 1.4 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var lux_is_1 = require("@pilotlab/lux-is"); var attributeBase_1 = require("./attributeBase"); var attributeFactory_1 = require("./attributeFactory"); var Attribute = (function (_super) { __extends(Attribute, _super); function Attribute(key, value, dataType, label) { return _super.call(this, Attribute.create, key, value, dataType, label, false, true) || this; } Object.defineProperty(Attribute, "create", { get: function () { if (lux_is_1.default.empty(this._factory)) this._factory = new attributeFactory_1.default(); return this._factory; }, enumerable: true, configurable: true }); return Attribute; }(attributeBase_1.default)); exports.Attribute = Attribute; exports.default = Attribute; //# sourceMappingURL=attribute.js.map