-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
701 lines (566 loc) · 41.4 KB
/
main.js
File metadata and controls
701 lines (566 loc) · 41.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ "./src/$$_lazy_route_resource lazy recursive":
/*!**********************************************************!*\
!*** ./src/$$_lazy_route_resource lazy namespace object ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncaught exception popping up in devtools
return Promise.resolve().then(function() {
var e = new Error('Cannot find module "' + req + '".');
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";
/***/ }),
/***/ "./src/app/app-routing.module.ts":
/*!***************************************!*\
!*** ./src/app/app-routing.module.ts ***!
\***************************************/
/*! exports provided: AppRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function() { return AppRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dashboard/dashboard.component */ "./src/app/dashboard/dashboard.component.ts");
/* harmony import */ var _stores_stores_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stores/stores.component */ "./src/app/stores/stores.component.ts");
/* harmony import */ var _store_detail_store_detail_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./store-detail/store-detail.component */ "./src/app/store-detail/store-detail.component.ts");
var __decorate = (undefined && undefined.__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 routes = [
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' },
{ path: 'dashboard', component: _dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_2__["DashboardComponent"] },
{ path: 'detail/:id', component: _store_detail_store_detail_component__WEBPACK_IMPORTED_MODULE_4__["StoreDetailComponent"] },
{ path: 'stores', component: _stores_stores_component__WEBPACK_IMPORTED_MODULE_3__["StoresComponent"] }
];
var AppRoutingModule = /** @class */ (function () {
function AppRoutingModule() {
}
AppRoutingModule = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forRoot(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
})
], AppRoutingModule);
return AppRoutingModule;
}());
/***/ }),
/***/ "./src/app/app.component.css":
/*!***********************************!*\
!*** ./src/app/app.component.css ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/* AppComponent's private CSS styles */\nh1 {\n margin: 1em 0 .5em; \n\t line-height: 1.25;\n color: #198cbf;\n font-size: 2em;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\nh2 {\n margin-top: 0;\n padding-top: 0;\n font-size: 1.5em;\n line-height: 1.25;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\nh3 {\n margin-top: 0;\n padding-top: 0;\n font-size: 1.2;\n line-height: 1.25;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n}\nnav a {\n padding: 5px 10px;\n text-decoration: none;\n margin-top: 10px;\n display: inline-block;\n background-color: #eee;\n border-radius: 4px;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\nnav a:visited, a:link {\n color: rgb(11, 42, 58);\n }\nnav a:hover {\n color: #039be5;\n background-color: #CFD8DC;\n }\nnav a.active {\n color: #039be5;\n }\np, figure {\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\nli {\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\na {\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\n \n"
/***/ }),
/***/ "./src/app/app.component.html":
/*!************************************!*\
!*** ./src/app/app.component.html ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<nav aria-label=\"va11yS\"><a href=\"https://ibma.github.io/Va11yS/\">Back to Va11yS</a></nav>\n<main>\n <h1>\n {{ title }}\n </h1>\n <p>These Angular 6 examples are included in an application that is deployed on GitHub. \n It was created using the <a href=\"https://cli.angular.io/\">Angular CLI</a> and the <a href=\"https://angular.io/tutorial\">Angular Tour of Heroes tutorial</a>. Accessibility test results \n are included at the bottom of the page.\n </p>\n <p>To improve accessibility, the following have been added to the application:</p>\n <ul>\n <li>W3C WAI ARIA Landmarks.</li>\n <li>Styles to improve color contrast.</li>\n </ul>\n\n <hr>\n <h2>Top 10 Stores</h2>\n <nav aria-label=\"store navigation\">\n <a routerLink=\"/dashboard\">Dashboard</a>\n <a routerLink=\"/stores\">Stores</a>\n </nav>\n <router-outlet></router-outlet>\n <app-messages></app-messages>\n</main>\n<footer role=\"contentinfo\">\n <hr>\n <h3>Tested on:</h3>\n <div>\n <ul>\n <li>Mac OS Sierra 10.13.4, Chrome browser and VoiceOver are based on the Mac OS version.</li>\n <ul>\n <li>Results - VoiceOver announces:</li>\n <ul>\n <li>All headings as \"Heading level xx. You are currently on a heading level xx\".</li>\n <li>Navigation. You are currently in a navigation.</li>\n <li>All links in the navigation and indicates if is a visited link.</li>\n <li>End of navigation. You are currently in a navigation.\n <li>All links in the main content.</li>\n <li>All button labels are announced and, \"To click this button press Control-Option-Space\".</li>\n <li>Store services. Fetch stores. You are currently on a text element.</li>\n <li>End of main. You are currently on a main inside web content. To exit this web area, press\n Control-Option-Shift-Up Arrow.\n </li>\n </ul>\n </ul>\n </ul>\n </div>\n</footer>\n\n"
/***/ }),
/***/ "./src/app/app.component.ts":
/*!**********************************!*\
!*** ./src/app/app.component.ts ***!
\**********************************/
/*! exports provided: AppComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__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 AppComponent = /** @class */ (function () {
function AppComponent() {
this.title = 'Angular 6 Examples';
}
AppComponent = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
selector: 'app-root',
template: __webpack_require__(/*! ./app.component.html */ "./src/app/app.component.html"),
styles: [__webpack_require__(/*! ./app.component.css */ "./src/app/app.component.css")]
})
], AppComponent);
return AppComponent;
}());
/***/ }),
/***/ "./src/app/app.module.ts":
/*!*******************************!*\
!*** ./src/app/app.module.ts ***!
\*******************************/
/*! exports provided: AppModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
/* harmony import */ var _stores_stores_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./stores/stores.component */ "./src/app/stores/stores.component.ts");
/* harmony import */ var _store_detail_store_detail_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./store-detail/store-detail.component */ "./src/app/store-detail/store-detail.component.ts");
/* harmony import */ var _messages_messages_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./messages/messages.component */ "./src/app/messages/messages.component.ts");
/* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! .//app-routing.module */ "./src/app/app-routing.module.ts");
/* harmony import */ var _dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./dashboard/dashboard.component */ "./src/app/dashboard/dashboard.component.ts");
var __decorate = (undefined && undefined.__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 AppModule = /** @class */ (function () {
function AppModule() {
}
AppModule = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
declarations: [
_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"],
_stores_stores_component__WEBPACK_IMPORTED_MODULE_4__["StoresComponent"],
_store_detail_store_detail_component__WEBPACK_IMPORTED_MODULE_5__["StoreDetailComponent"],
_messages_messages_component__WEBPACK_IMPORTED_MODULE_6__["MessagesComponent"],
_dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_8__["DashboardComponent"]
],
imports: [
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"],
_app_routing_module__WEBPACK_IMPORTED_MODULE_7__["AppRoutingModule"]
],
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"]]
})
], AppModule);
return AppModule;
}());
/***/ }),
/***/ "./src/app/dashboard/dashboard.component.css":
/*!***************************************************!*\
!*** ./src/app/dashboard/dashboard.component.css ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/* DashboardComponent's private CSS styles */\n[class*='col-'] {\n float: left;\n padding-right: 20px;\n padding-bottom: 20px;\n}\n[class*='col-']:last-of-type {\n padding-right: 0;\n}\na {\n text-decoration: none;\n}\n*, *:after, *:before {\n box-sizing: border-box;\n}\nh3 {\n text-align: center; margin-bottom: 0;\n font-size: 1.2;\n line-height: 1.25;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n}\nh4 {\n position: relative;\n font-size:1.0;\n line-height: 1.25;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n}\n.grid {\n margin: 0;\n}\n.col-1-4 {\n width: 25%;\n}\n.module {\n padding: 20px;\n text-align: center;\n color: #eee;\n max-height: 120px;\n min-width: 120px;\n background-color: rgb(20, 63, 85);\n border-radius: 2px;\n}\n.module:hover {\n background-color: #EEE;\n cursor: pointer;\n color:rgb(11, 42, 58);;\n}\n.grid-pad {\n padding: 10px 0;\n}\n.grid-pad > [class*='col-']:last-of-type {\n padding-right: 20px;\n}\n@media (max-width: 600px) {\n .module {\n font-size: 10px;\n max-height: 75px; }\n}\n@media (max-width: 1024px) {\n .grid {\n margin: 0;\n }\n .module {\n min-width: 60px;\n }\n}"
/***/ }),
/***/ "./src/app/dashboard/dashboard.component.html":
/*!****************************************************!*\
!*** ./src/app/dashboard/dashboard.component.html ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<h3>Top Stores</h3>\n<div class=\"grid grid-pad\">\n <a *ngFor=\"let store of stores\" class=\"col-1-4\"\n routerLink=\"/detail/{{store.id}}\">\n <div class=\"module store\">\n <h4>{{store.name}}</h4>\n <h3>Rated# {{store.id}}</h3>\n </div>\n </a>\n\n\n"
/***/ }),
/***/ "./src/app/dashboard/dashboard.component.ts":
/*!**************************************************!*\
!*** ./src/app/dashboard/dashboard.component.ts ***!
\**************************************************/
/*! exports provided: DashboardComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardComponent", function() { return DashboardComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _store_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../store.service */ "./src/app/store.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var DashboardComponent = /** @class */ (function () {
function DashboardComponent(storeService) {
this.storeService = storeService;
this.stores = [];
}
DashboardComponent.prototype.ngOnInit = function () {
this.getStores();
};
DashboardComponent.prototype.getStores = function () {
var _this = this;
this.storeService.getStores()
.subscribe(function (stores) { return _this.stores = stores.slice(1, 5); });
};
DashboardComponent = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
selector: 'app-dashboard',
template: __webpack_require__(/*! ./dashboard.component.html */ "./src/app/dashboard/dashboard.component.html"),
styles: [__webpack_require__(/*! ./dashboard.component.css */ "./src/app/dashboard/dashboard.component.css")]
}),
__metadata("design:paramtypes", [_store_service__WEBPACK_IMPORTED_MODULE_1__["StoreService"]])
], DashboardComponent);
return DashboardComponent;
}());
/***/ }),
/***/ "./src/app/message.service.ts":
/*!************************************!*\
!*** ./src/app/message.service.ts ***!
\************************************/
/*! exports provided: MessageService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageService", function() { return MessageService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__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 MessageService = /** @class */ (function () {
function MessageService() {
this.messages = [];
}
MessageService.prototype.add = function (message) {
this.messages.push(message);
};
MessageService.prototype.clear = function () {
this.messages = [];
};
MessageService = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
providedIn: 'root'
})
], MessageService);
return MessageService;
}());
/***/ }),
/***/ "./src/app/messages/messages.component.css":
/*!*************************************************!*\
!*** ./src/app/messages/messages.component.css ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/* MessagesComponent's private CSS styles */\nh2 {\n color: red;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n font-weight: lighter;\n font-size: 1.2;\n line-height: 1.25;\n }\nbody {\n margin: 2em;\n }\nbody, input[text], button {\n color: crimson;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\nbutton.clear {\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n background-color: #eee;\n border: none;\n padding: 5px 10px;\n border-radius: 4px;\n cursor: pointer;\n cursor: hand;\n }\nbutton:hover {\n background-color: #cfd8dc;\n }\nbutton:disabled {\n background-color: #eee;\n color: #aaa;\n cursor: auto;\n }\nbutton.clear {\n color: rgb(11, 42, 58);\n margin-bottom: 12px;\n }\ndiv{\n font-family: monospace;\n }"
/***/ }),
/***/ "./src/app/messages/messages.component.html":
/*!**************************************************!*\
!*** ./src/app/messages/messages.component.html ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<div *ngIf=\"messageService.messages.length\">\n\n <h2>Messages</h2>\n <button class=\"clear\"\n (click)=\"messageService.clear()\">Clear Messages</button>\n <div *ngFor='let message of messageService.messages'> {{message}} </div>\n\n</div>\n"
/***/ }),
/***/ "./src/app/messages/messages.component.ts":
/*!************************************************!*\
!*** ./src/app/messages/messages.component.ts ***!
\************************************************/
/*! exports provided: MessagesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessagesComponent", function() { return MessagesComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../message.service */ "./src/app/message.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var MessagesComponent = /** @class */ (function () {
function MessagesComponent(messageService) {
this.messageService = messageService;
}
MessagesComponent.prototype.ngOnInit = function () {
};
MessagesComponent = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
selector: 'app-messages',
template: __webpack_require__(/*! ./messages.component.html */ "./src/app/messages/messages.component.html"),
styles: [__webpack_require__(/*! ./messages.component.css */ "./src/app/messages/messages.component.css")]
}),
__metadata("design:paramtypes", [_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"]])
], MessagesComponent);
return MessagesComponent;
}());
/***/ }),
/***/ "./src/app/store-detail/store-detail.component.css":
/*!*********************************************************!*\
!*** ./src/app/store-detail/store-detail.component.css ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "label {\n display: inline-block;\n width: 8em;\n margin: .5em 0;\n color: black;\n font-weight: bold;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\n input {\n height: 2em;\n font-size: 1em;\n padding: 5px 10px;\n width: 200%;\n }\n button {\n margin-top: 20px;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n background-color: #eee;\n border: none;\n padding: 5px 10px;\n border-radius: 4px;\n cursor: pointer; cursor: hand;\n }\n button:hover {\n background-color: #cfd8dc;\n }\n button:disabled {\n background-color: #eee;\n color: #ccc;\n cursor: auto;\n }\n span{font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }\n h2 {\n text-align: left; margin-bottom: 0;\n font-size: 1.2;\n line-height: 1.25;\n font-family: \"HelveticaNeue-Light\", \"Helvetica Neue Light\", \"Helvetica Neue\", \"HelvNeueLightforIBM\", Arial, sans-serif;\n }"
/***/ }),
/***/ "./src/app/store-detail/store-detail.component.html":
/*!**********************************************************!*\
!*** ./src/app/store-detail/store-detail.component.html ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<div *ngIf=\"store\">\n\n <h2>{{ store.name | uppercase }} DETAILS</h2>\n <br>\n <div><span><strong>Rating Number:</strong></span> {{store.id}}</div>\n <div>\n <label>Store Name:\n <input [(ngModel)]=\"store.name\" placeholder=\"name\"/>\n </label>\n </div>\n <div>\n <label>Store Address:\n <input [(ngModel)]=\"store.address\" placeholder=\"address\"/>\n </label>\n </div>\n <button (click)=\"goBack()\">Go Back</button>\n</div>\n"
/***/ }),
/***/ "./src/app/store-detail/store-detail.component.ts":
/*!********************************************************!*\
!*** ./src/app/store-detail/store-detail.component.ts ***!
\********************************************************/
/*! exports provided: StoreDetailComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StoreDetailComponent", function() { return StoreDetailComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../store */ "./src/app/store.ts");
/* harmony import */ var _store_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../store.service */ "./src/app/store.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var StoreDetailComponent = /** @class */ (function () {
function StoreDetailComponent(route, storeService, location) {
this.route = route;
this.storeService = storeService;
this.location = location;
}
StoreDetailComponent.prototype.ngOnInit = function () {
this.getStore();
};
StoreDetailComponent.prototype.getStore = function () {
var _this = this;
var id = +this.route.snapshot.paramMap.get('id');
this.storeService.getStore(id)
.subscribe(function (store) { return _this.store = store; });
};
StoreDetailComponent.prototype.goBack = function () {
this.location.back();
};
__decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
__metadata("design:type", _store__WEBPACK_IMPORTED_MODULE_3__["Store"])
], StoreDetailComponent.prototype, "store", void 0);
StoreDetailComponent = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
selector: 'app-store-detail',
template: __webpack_require__(/*! ./store-detail.component.html */ "./src/app/store-detail/store-detail.component.html"),
styles: [__webpack_require__(/*! ./store-detail.component.css */ "./src/app/store-detail/store-detail.component.css")]
}),
__metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
_store_service__WEBPACK_IMPORTED_MODULE_4__["StoreService"],
_angular_common__WEBPACK_IMPORTED_MODULE_2__["Location"]])
], StoreDetailComponent);
return StoreDetailComponent;
}());
/***/ }),
/***/ "./src/app/store-list.ts":
/*!*******************************!*\
!*** ./src/app/store-list.ts ***!
\*******************************/
/*! exports provided: STORES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STORES", function() { return STORES; });
var STORES = [
{ id: 0, name: '', address: '' },
{ id: 1, name: 'Zippy Stop', address: '123 Happy St. Lemon, AL' },
{ id: 2, name: 'Speedy Store', address: '345 Cheers St. Avocado, CA' },
{ id: 3, name: 'On the Go Mart', address: '678 Shady St. Orange, FL' },
{ id: 4, name: 'Best Mini Mart', address: '910 Front Ave. Pear, NY' },
{ id: 5, name: 'On the Way', address: '987 Back St. Peach, TX' },
{ id: 6, name: 'Pick and Save', address: '654 Side Ave. Apple, WA' },
{ id: 7, name: 'Pay and Pack', address: '321 Square Blvd. Tomato, UT' },
{ id: 8, name: 'Super Thrifty', address: '234 Round Rd. Lime, GA' },
{ id: 9, name: 'Smart Mart', address: '456 Smart Rd. Apricot, PA' },
{ id: 10, name: 'Shop and Go', address: '564 Doubt Lane, Melon, CO' }
];
/***/ }),
/***/ "./src/app/store.service.ts":
/*!**********************************!*\
!*** ./src/app/store.service.ts ***!
\**********************************/
/*! exports provided: StoreService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StoreService", function() { return StoreService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _store_list__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./store-list */ "./src/app/store-list.ts");
/* harmony import */ var _message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./message.service */ "./src/app/message.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var StoreService = /** @class */ (function () {
function StoreService(messageService) {
this.messageService = messageService;
}
StoreService.prototype.getStores = function () {
// TODO: send the message _after_ fetching the stores
this.messageService.add('StoreService: fetched stores');
return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(_store_list__WEBPACK_IMPORTED_MODULE_2__["STORES"]);
};
StoreService.prototype.getStore = function (id) {
// TODO: send the message _after_ fetching the store
this.messageService.add("StoreService: fetched store id=" + id);
return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(_store_list__WEBPACK_IMPORTED_MODULE_2__["STORES"].find(function (store) { return store.id === id; }));
};
StoreService = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
providedIn: 'root',
}),
__metadata("design:paramtypes", [_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
], StoreService);
return StoreService;
}());
/***/ }),
/***/ "./src/app/store.ts":
/*!**************************!*\
!*** ./src/app/store.ts ***!
\**************************/
/*! exports provided: Store */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Store", function() { return Store; });
var Store = /** @class */ (function () {
function Store() {
}
return Store;
}());
/***/ }),
/***/ "./src/app/stores/stores.component.css":
/*!*********************************************!*\
!*** ./src/app/stores/stores.component.css ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n.stores {\n margin: 0 0 2em 0;\n list-style-type: none;\n padding: 0;\n width: 15em;\n}\n.stores li {\n position: relative;\n cursor: pointer;\n background-color: #EEE;\n margin: .5em;\n padding: .3em 0;\n height: 1.6em;\n border-radius: 4px;\n}\n.stores li:hover {\n color: #607D8B;\n background-color: #DDD;\n left: .1em;\n}\n.stores a {\n color: rgb(56, 53, 53);\n text-decoration: none;\n position: relative;\n display: block;\n width: 250px;\n}\n.stores a:hover {\n color:#607D8B;\n}\n.stores .badge {\n display: inline-block;\n font-size: small;\n color: white;\n padding: 0.8em 0.7em 0 0.7em;\n background-color: rgb(19, 87, 124);\n line-height: 1em;\n position: relative;\n left: -1px;\n top: -4px;\n height: 1.8em;\n min-width: 16px;\n text-align: right;\n margin-right: .8em;\n border-radius: 4px 0 0 4px;\n \n}"
/***/ }),
/***/ "./src/app/stores/stores.component.html":
/*!**********************************************!*\
!*** ./src/app/stores/stores.component.html ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<h2>Stores</h2>\n<ul class=\"stores\">\n <li *ngFor=\"let store of stores\">\n <a routerLink=\"/detail/{{store.id}}\">\n <span class=\"badge\">{{store.id}}</span> {{store.name}}\n </a>\n </li>\n</ul>"
/***/ }),
/***/ "./src/app/stores/stores.component.ts":
/*!********************************************!*\
!*** ./src/app/stores/stores.component.ts ***!
\********************************************/
/*! exports provided: StoresComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StoresComponent", function() { return StoresComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _store_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../store.service */ "./src/app/store.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var StoresComponent = /** @class */ (function () {
function StoresComponent(storeService) {
this.storeService = storeService;
}
StoresComponent.prototype.ngOnInit = function () {
this.getStores();
};
StoresComponent.prototype.getStores = function () {
var _this = this;
this.storeService.getStores()
.subscribe(function (stores) { return _this.stores = stores; });
};
StoresComponent = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
selector: 'app-stores',
template: __webpack_require__(/*! ./stores.component.html */ "./src/app/stores/stores.component.html"),
styles: [__webpack_require__(/*! ./stores.component.css */ "./src/app/stores/stores.component.css")]
}),
__metadata("design:paramtypes", [_store_service__WEBPACK_IMPORTED_MODULE_1__["StoreService"]])
], StoresComponent);
return StoresComponent;
}());
/***/ }),
/***/ "./src/environments/environment.ts":
/*!*****************************************!*\
!*** ./src/environments/environment.ts ***!
\*****************************************/
/*! exports provided: environment */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
var environment = {
production: false
};
/*
* In development mode, to ignore zone related error stack frames such as
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
* import the following file, but please comment it out in production mode
* because it will have performance impact when throw error
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
/***/ }),
/***/ "./src/main.ts":
/*!*********************!*\
!*** ./src/main.ts ***!
\*********************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js");
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) {
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
}
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])
.catch(function (err) { return console.log(err); });
/***/ }),
/***/ 0:
/*!***************************!*\
!*** multi ./src/main.ts ***!
\***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! /Users/snidersd/Documents/GitHub/accessible-angular/src/main.ts */"./src/main.ts");
/***/ })
},[[0,"runtime","vendor"]]]);
//# sourceMappingURL=main.js.map