123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- var __extends = (this && this.__extends) || function (d, b) {
- for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
- 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 BABYLON;
- (function (BABYLON) {
- var Address = (function (_super) {
- __extends(Address, _super);
- function Address() {
- _super.apply(this, arguments);
- }
- Object.defineProperty(Address.prototype, "street", {
- get: function () {
- return this._street;
- },
- set: function (value) {
- if (value === this._street) {
- return;
- }
- var old = this._street;
- this._street = value;
- this.onPropertyChanged("street", old, value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(Address.prototype, "city", {
- get: function () {
- return this._city;
- },
- set: function (value) {
- if (value === this._city) {
- return;
- }
- var old = this._city;
- this._city = value;
- this.onPropertyChanged("city", old, value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(Address.prototype, "postalCode", {
- get: function () {
- return this._postalCode;
- },
- set: function (value) {
- if (value === this._postalCode) {
- return;
- }
- var old = this._postalCode;
- this._postalCode = value;
- this.onPropertyChanged("postalCode", old, value);
- },
- enumerable: true,
- configurable: true
- });
- Address = __decorate([
- BABYLON.className("Address")
- ], Address);
- return Address;
- }(BABYLON.PropertyChangedBase));
- BABYLON.Address = Address;
- var Customer = (function (_super) {
- __extends(Customer, _super);
- function Customer() {
- _super.apply(this, arguments);
- }
- Object.defineProperty(Customer.prototype, "firstName", {
- /**
- * Customer First Name
- **/
- get: function () {
- return this._firstName;
- },
- set: function (value) {
- if (value === this._firstName) {
- return;
- }
- var old = this._firstName;
- this._firstName = value;
- this.onPropertyChanged("firstName", old, value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(Customer.prototype, "lastName", {
- /**
- * Customer Last Name
- **/
- get: function () {
- return this._lastName;
- },
- set: function (value) {
- if (value === this._lastName) {
- return;
- }
- var old = this._lastName;
- this._lastName = value;
- this.onPropertyChanged("lastName", old, value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(Customer.prototype, "mainAddress", {
- /**
- * Customer Main Address
- **/
- get: function () {
- if (!this._mainAddress) {
- this._mainAddress = new Address();
- }
- return this._mainAddress;
- },
- set: function (value) {
- if (value === this._mainAddress) {
- return;
- }
- var old = this._mainAddress;
- this._mainAddress = value;
- this.onPropertyChanged("mainAddress", old, value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(Customer.prototype, "age", {
- get: function () {
- return this._age;
- },
- set: function (value) {
- if (value === this._age) {
- return;
- }
- var old = this._age;
- this._age = value;
- this.onPropertyChanged("age", old, value);
- },
- enumerable: true,
- configurable: true
- });
- Customer = __decorate([
- BABYLON.className("Customer")
- ], Customer);
- return Customer;
- }(BABYLON.PropertyChangedBase));
- BABYLON.Customer = Customer;
- var CustomerViewModel = (function (_super) {
- __extends(CustomerViewModel, _super);
- function CustomerViewModel() {
- _super.call(this);
- }
- Object.defineProperty(CustomerViewModel.prototype, "age", {
- get: function () {
- return this._age;
- },
- set: function (value) {
- this._age = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(CustomerViewModel.prototype, "city", {
- get: function () {
- return this._city;
- },
- set: function (value) {
- this._city = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(CustomerViewModel.prototype, "firstName", {
- get: function () {
- return this._firstName;
- },
- set: function (value) {
- this._firstName = value;
- },
- enumerable: true,
- configurable: true
- });
- __decorate([
- BABYLON.dependencyProperty(0, function (pi) { return CustomerViewModel.ageProperty = pi; })
- ], CustomerViewModel.prototype, "age", null);
- __decorate([
- BABYLON.dependencyProperty(1, function (pi) { return CustomerViewModel.cityProperty = pi; })
- ], CustomerViewModel.prototype, "city", null);
- __decorate([
- BABYLON.dependencyProperty(2, function (pi) { return CustomerViewModel.firstNameProperty = pi; }, BABYLON.Binding.MODE_ONETIME)
- ], CustomerViewModel.prototype, "firstName", null);
- CustomerViewModel = __decorate([
- BABYLON.className("CustomerViewModel")
- ], CustomerViewModel);
- return CustomerViewModel;
- }(BABYLON.SmartPropertyBase));
- BABYLON.CustomerViewModel = CustomerViewModel;
- })(BABYLON || (BABYLON = {}));
- //# sourceMappingURL=testclasses.js.map
|