UNPKG

@firestitch/address

Version:
73 lines 2.87 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; }; 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 }); var core_1 = require("@angular/core"); var FsAddressFormatComponent = (function () { function FsAddressFormatComponent() { this.config = {}; this._address = {}; } Object.defineProperty(FsAddressFormatComponent.prototype, "address", { get: function () { return this._address; }, set: function (address) { this._address = address; }, enumerable: true, configurable: true }); FsAddressFormatComponent.prototype.ngOnInit = function () { this.initAddress(); this.initConfig(); }; FsAddressFormatComponent.prototype.initAddress = function () { this.address = Object.assign({ name: void 0, country: void 0, region: void 0, city: void 0, street: void 0, zip: void 0, lat: null, lng: null, }, this.address); }; FsAddressFormatComponent.prototype.initConfig = function () { this.config = Object.assign({ country: true, region: true, city: true, street: true, zip: true, }, this.config); }; __decorate([ core_1.Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], FsAddressFormatComponent.prototype, "address", null); __decorate([ core_1.Input(), __metadata("design:type", Object) ], FsAddressFormatComponent.prototype, "config", void 0); FsAddressFormatComponent = __decorate([ core_1.Component({ selector: 'fs-address-format', templateUrl: './fs-address-format.component.html', styleUrls: ['./fs-address-format.component.css'] }), __metadata("design:paramtypes", []) ], FsAddressFormatComponent); return FsAddressFormatComponent; }()); exports.FsAddressFormatComponent = FsAddressFormatComponent; //# sourceMappingURL=fs-address-format.component.js.map