gunsmith-common 2.2.16 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/notification/notification-bar/notification-bar.component.mjs +3 -3
- package/esm2020/public_api.mjs +3 -1
- package/esm2020/shared/controls/form-error-message/form-error-message.component.mjs +17 -0
- package/esm2020/shared/controls/modal-header/modal-header.component.mjs +25 -0
- package/esm2020/shared/services/base.service.mjs +4 -1
- package/esm2020/shared/services/coating-value.service.mjs +25 -0
- package/esm2020/shared/services/coating.service.mjs +31 -29
- package/esm2020/shared/services/configuration.service.mjs +4 -1
- package/esm2020/shared/services/firearm-optic.service.mjs +25 -0
- package/esm2020/shared/services/firearm-sight.service.mjs +25 -0
- package/esm2020/shared/services/firearm.service.mjs +4 -1
- package/esm2020/shared/services/index.mjs +11 -1
- package/esm2020/shared/services/milling-type.service.mjs +9 -37
- package/esm2020/shared/services/mount-type.service.mjs +25 -0
- package/esm2020/shared/services/package-optional-item.service.mjs +25 -0
- package/esm2020/shared/services/package-variation.service.mjs +25 -0
- package/esm2020/shared/services/sight-material.service.mjs +25 -0
- package/esm2020/shared/services/sight-type.service.mjs +25 -0
- package/esm2020/shared/services/sight.service.mjs +25 -0
- package/esm2020/shared/services/slide-addon.service.mjs +25 -0
- package/esm2020/shared/services/waitlist-customer.service.mjs +4 -1
- package/esm2020/shared/shared.module.mjs +18 -21
- package/esm2020/shared/types/coating-value.mjs +1 -1
- package/esm2020/shared/types/coating.mjs +1 -1
- package/esm2020/shared/types/firearm-optic.mjs +9 -0
- package/esm2020/shared/types/firearm-series-optic.mjs +1 -1
- package/esm2020/shared/types/gun-part.mjs +1 -1
- package/esm2020/shared/types/index.mjs +9 -2
- package/esm2020/shared/types/inventory-item.mjs +2 -1
- package/esm2020/shared/types/milling-detail.mjs +1 -1
- package/esm2020/shared/types/milling-type.mjs +5 -1
- package/esm2020/shared/types/mount-type.mjs +6 -9
- package/esm2020/shared/types/optic-sight.mjs +4 -0
- package/esm2020/shared/types/optic.mjs +1 -1
- package/esm2020/shared/types/package-optional-item.mjs +5 -1
- package/esm2020/shared/types/package-variation-option.mjs +1 -1
- package/esm2020/shared/types/package.mjs +2 -1
- package/esm2020/shared/types/sight-material-type.mjs +6 -0
- package/esm2020/shared/types/sight-type-enum.mjs +7 -0
- package/esm2020/shared/types/sight-type.mjs +6 -7
- package/esm2020/shared/types/sight.mjs +6 -0
- package/esm2020/shared/types/simple-type.mjs +2 -0
- package/esm2020/shared/types/slide-addon.mjs +7 -0
- package/esm2020/shared/types/waitlist-gun.mjs +3 -1
- package/esm2020/shared/types/waitlist-status.mjs +2 -1
- package/fesm2015/gunsmith-common.mjs +419 -138
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +399 -138
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.0.tgz +0 -0
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/shared/controls/form-error-message/form-error-message.component.d.ts +8 -0
- package/shared/controls/modal-header/modal-header.component.d.ts +11 -0
- package/shared/services/base.service.d.ts +1 -0
- package/shared/services/coating-value.service.d.ts +11 -0
- package/shared/services/coating.service.d.ts +4 -8
- package/shared/services/configuration.service.d.ts +1 -0
- package/shared/services/firearm-optic.service.d.ts +11 -0
- package/shared/services/firearm-sight.service.d.ts +11 -0
- package/shared/services/firearm.service.d.ts +2 -1
- package/shared/services/index.d.ts +10 -0
- package/shared/services/milling-type.service.d.ts +4 -11
- package/shared/services/mount-type.service.d.ts +11 -0
- package/shared/services/package-optional-item.service.d.ts +11 -0
- package/shared/services/package-variation.service.d.ts +11 -0
- package/shared/services/sight-material.service.d.ts +11 -0
- package/shared/services/sight-type.service.d.ts +11 -0
- package/shared/services/sight.service.d.ts +11 -0
- package/shared/services/slide-addon.service.d.ts +11 -0
- package/shared/services/waitlist-customer.service.d.ts +1 -0
- package/shared/shared.module.d.ts +6 -4
- package/shared/types/coating-value.d.ts +1 -0
- package/shared/types/coating.d.ts +3 -0
- package/shared/types/firearm-optic.d.ts +19 -0
- package/shared/types/firearm-series-optic.d.ts +1 -2
- package/shared/types/gun-part.d.ts +1 -0
- package/shared/types/index.d.ts +8 -1
- package/shared/types/inventory-item.d.ts +2 -0
- package/shared/types/milling-detail.d.ts +5 -2
- package/shared/types/milling-type.d.ts +4 -0
- package/shared/types/mount-type.d.ts +7 -6
- package/shared/types/optic-sight.d.ts +8 -0
- package/shared/types/optic.d.ts +3 -0
- package/shared/types/package-optional-item.d.ts +10 -0
- package/shared/types/package-variation-option.d.ts +1 -0
- package/shared/types/package.d.ts +2 -0
- package/shared/types/sight-material-type.d.ts +6 -0
- package/shared/types/sight-type-enum.d.ts +5 -0
- package/shared/types/sight-type.d.ts +7 -4
- package/shared/types/sight.d.ts +15 -0
- package/shared/types/simple-type.d.ts +6 -0
- package/shared/types/slide-addon.d.ts +20 -0
- package/shared/types/waitlist-gun.d.ts +4 -0
- package/shared/types/waitlist-status.d.ts +2 -1
- package/gunsmith-common-2.2.16.tgz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, Inject, Pipe, Directive, Input, Component, NgModule } from '@angular/core';
|
|
3
|
+
import { Injectable, Inject, Pipe, Directive, Input, Component, EventEmitter, Output, NgModule } from '@angular/core';
|
|
4
4
|
import * as i1 from '@angular/common/http';
|
|
5
5
|
import { of, switchMap as switchMap$1, Subject } from 'rxjs';
|
|
6
6
|
import { switchMap } from 'rxjs/operators';
|
|
@@ -144,6 +144,8 @@ class WaitlistGun {
|
|
|
144
144
|
this.milling = false;
|
|
145
145
|
this.specialOrder = false;
|
|
146
146
|
this.shippingLabel = false;
|
|
147
|
+
this.sights = [];
|
|
148
|
+
this.slideAddons = [];
|
|
147
149
|
this.refinishDetails = [];
|
|
148
150
|
}
|
|
149
151
|
}
|
|
@@ -164,6 +166,7 @@ var WaitlistStatus;
|
|
|
164
166
|
WaitlistStatus[WaitlistStatus["Cancelled"] = 8] = "Cancelled";
|
|
165
167
|
WaitlistStatus[WaitlistStatus["OnHold"] = 9] = "OnHold";
|
|
166
168
|
WaitlistStatus[WaitlistStatus["Voided"] = 10] = "Voided";
|
|
169
|
+
WaitlistStatus[WaitlistStatus["Pending"] = 11] = "Pending";
|
|
167
170
|
})(WaitlistStatus || (WaitlistStatus = {}));
|
|
168
171
|
|
|
169
172
|
var WorkOrderType;
|
|
@@ -282,21 +285,18 @@ var ChangeOrderStatus;
|
|
|
282
285
|
ChangeOrderStatus[ChangeOrderStatus["Unconfirmed"] = 4] = "Unconfirmed";
|
|
283
286
|
})(ChangeOrderStatus || (ChangeOrderStatus = {}));
|
|
284
287
|
|
|
285
|
-
|
|
286
|
-
(
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
SightType[SightType["Tritium"] = 1] = "Tritium";
|
|
298
|
-
SightType[SightType["FiberOptic"] = 2] = "FiberOptic";
|
|
299
|
-
})(SightType || (SightType = {}));
|
|
288
|
+
class MountType {
|
|
289
|
+
constructor() {
|
|
290
|
+
this.active = true;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
var SightTypeEnum;
|
|
295
|
+
(function (SightTypeEnum) {
|
|
296
|
+
SightTypeEnum[SightTypeEnum["Black"] = 0] = "Black";
|
|
297
|
+
SightTypeEnum[SightTypeEnum["Tritium"] = 1] = "Tritium";
|
|
298
|
+
SightTypeEnum[SightTypeEnum["FiberOptic"] = 2] = "FiberOptic";
|
|
299
|
+
})(SightTypeEnum || (SightTypeEnum = {}));
|
|
300
300
|
|
|
301
301
|
class MillingDetail {
|
|
302
302
|
constructor() {
|
|
@@ -341,6 +341,10 @@ var FrameMaterial;
|
|
|
341
341
|
|
|
342
342
|
class MillingType {
|
|
343
343
|
constructor() {
|
|
344
|
+
this.price = 0.00;
|
|
345
|
+
this.isCosmetic = false;
|
|
346
|
+
this.mustRefinish = false;
|
|
347
|
+
this.firearms = [];
|
|
344
348
|
this.active = true;
|
|
345
349
|
}
|
|
346
350
|
}
|
|
@@ -393,6 +397,7 @@ class TotalItem {
|
|
|
393
397
|
|
|
394
398
|
class InventoryItem {
|
|
395
399
|
constructor() {
|
|
400
|
+
this.imageOverride = false;
|
|
396
401
|
this.price = 0;
|
|
397
402
|
this.count = 0;
|
|
398
403
|
this.orderPoint = 0;
|
|
@@ -420,6 +425,7 @@ class PackageItem {
|
|
|
420
425
|
class Package {
|
|
421
426
|
constructor() {
|
|
422
427
|
this.price = 0.00;
|
|
428
|
+
this.imageOverride = false;
|
|
423
429
|
this.active = true;
|
|
424
430
|
this.gunsmithOnly = false;
|
|
425
431
|
this.firearms = [];
|
|
@@ -430,6 +436,10 @@ class Package {
|
|
|
430
436
|
}
|
|
431
437
|
|
|
432
438
|
class PackageOptionalItem {
|
|
439
|
+
constructor() {
|
|
440
|
+
this.subItems = [];
|
|
441
|
+
this.active = true;
|
|
442
|
+
}
|
|
433
443
|
}
|
|
434
444
|
|
|
435
445
|
class PackageVariation {
|
|
@@ -489,6 +499,43 @@ class ChangeOrderPackageDetail {
|
|
|
489
499
|
}
|
|
490
500
|
}
|
|
491
501
|
|
|
502
|
+
class Sight {
|
|
503
|
+
constructor() {
|
|
504
|
+
this.active = true;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
class SightType {
|
|
509
|
+
constructor() {
|
|
510
|
+
this.active = true;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
class SightMaterialType {
|
|
515
|
+
constructor() {
|
|
516
|
+
this.active = true;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
class FirearmOptic {
|
|
521
|
+
constructor() {
|
|
522
|
+
this.frontSights = [];
|
|
523
|
+
this.rearSights = [];
|
|
524
|
+
this.keepDovetail = false;
|
|
525
|
+
this.removeDovetail = false;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
class OpticSight extends Sight {
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
class SlideAddon {
|
|
533
|
+
constructor() {
|
|
534
|
+
this.subItems = [];
|
|
535
|
+
this.active = true;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
|
|
492
539
|
function adjustHoliday(finishDate, holidays) {
|
|
493
540
|
while (holidays.map(h => new Date(h.holiday)).findIndex(h => DateTime.fromJSDate(h) === DateTime.fromJSDate(finishDate)) !== -1) {
|
|
494
541
|
do {
|
|
@@ -593,6 +640,9 @@ class FirearmService {
|
|
|
593
640
|
readFirearmMaterial(firearmId) {
|
|
594
641
|
return this.http.get(`${this.url}/${firearmId}/material`);
|
|
595
642
|
}
|
|
643
|
+
readFirearmCosmetics(firearmId) {
|
|
644
|
+
return this.http.get(`${this.url}/${firearmId}/cosmetics`);
|
|
645
|
+
}
|
|
596
646
|
}
|
|
597
647
|
FirearmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
598
648
|
FirearmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, providedIn: 'root' });
|
|
@@ -1165,6 +1215,9 @@ class ConfigurationService {
|
|
|
1165
1215
|
updateConfigs(configuration) {
|
|
1166
1216
|
return this.http.put(`${this.url}/1`, configuration);
|
|
1167
1217
|
}
|
|
1218
|
+
syncWooCommerce() {
|
|
1219
|
+
return this.http.post(`${this.url}/sync-woocommerce`, null);
|
|
1220
|
+
}
|
|
1168
1221
|
}
|
|
1169
1222
|
ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1170
1223
|
ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
|
|
@@ -1201,6 +1254,9 @@ class WaitlistCustomerService {
|
|
|
1201
1254
|
params: { token: token }
|
|
1202
1255
|
});
|
|
1203
1256
|
}
|
|
1257
|
+
createWaitlistItem(waitlistItem) {
|
|
1258
|
+
return this.http.post(this.url, waitlistItem);
|
|
1259
|
+
}
|
|
1204
1260
|
}
|
|
1205
1261
|
WaitlistCustomerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1206
1262
|
WaitlistCustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, providedIn: 'root' });
|
|
@@ -1329,89 +1385,103 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1329
1385
|
}] }];
|
|
1330
1386
|
} });
|
|
1331
1387
|
|
|
1332
|
-
class
|
|
1333
|
-
constructor(http
|
|
1388
|
+
class BaseService {
|
|
1389
|
+
constructor(http) {
|
|
1334
1390
|
this.http = http;
|
|
1335
|
-
this.env = env;
|
|
1336
|
-
this.url = this.env.baseUrl + 'api/milling-types';
|
|
1337
1391
|
}
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
params[
|
|
1392
|
+
getUrl(...params) {
|
|
1393
|
+
let baseUrl = this.urlSegments[0];
|
|
1394
|
+
for (let i = 0; i < params.length; i++) {
|
|
1395
|
+
baseUrl += `/${params[i]}`;
|
|
1396
|
+
if (this.urlSegments.length > i + 1) {
|
|
1397
|
+
baseUrl += `/${this.urlSegments[i + 1]}`;
|
|
1398
|
+
}
|
|
1342
1399
|
}
|
|
1343
|
-
return
|
|
1344
|
-
params: params
|
|
1345
|
-
});
|
|
1400
|
+
return baseUrl;
|
|
1346
1401
|
}
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
if (includeInactive) {
|
|
1350
|
-
params['includeInactive'] = includeInactive.toString();
|
|
1351
|
-
}
|
|
1352
|
-
return this.http.get(`${this.url}/cosmetics`, {
|
|
1353
|
-
params: params
|
|
1354
|
-
});
|
|
1402
|
+
getAll(...params) {
|
|
1403
|
+
return this.http.get(this.getUrl(...params));
|
|
1355
1404
|
}
|
|
1356
|
-
|
|
1357
|
-
return this.http.get(
|
|
1405
|
+
getAllWithParams(queryParams, ...params) {
|
|
1406
|
+
return this.http.get(this.getUrl(...params), { params: queryParams });
|
|
1358
1407
|
}
|
|
1359
|
-
|
|
1360
|
-
return this.http.
|
|
1408
|
+
get(...params) {
|
|
1409
|
+
return this.http.get(this.getUrl(...params));
|
|
1410
|
+
}
|
|
1411
|
+
create(item, ...params) {
|
|
1412
|
+
return this.http.post(this.getUrl(...params), item);
|
|
1361
1413
|
}
|
|
1362
|
-
|
|
1363
|
-
return this.http.put(
|
|
1414
|
+
update(item, ...params) {
|
|
1415
|
+
return this.http.put(this.getUrl(...params), item);
|
|
1364
1416
|
}
|
|
1365
|
-
|
|
1366
|
-
return this.http.delete(
|
|
1417
|
+
delete(...params) {
|
|
1418
|
+
return this.http.delete(this.getUrl(...params));
|
|
1367
1419
|
}
|
|
1368
1420
|
}
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
1421
|
+
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1422
|
+
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
1423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
|
|
1372
1424
|
type: Injectable,
|
|
1373
1425
|
args: [{
|
|
1374
1426
|
providedIn: 'root'
|
|
1375
1427
|
}]
|
|
1428
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
1429
|
+
|
|
1430
|
+
class MillingTypeService extends BaseService {
|
|
1431
|
+
constructor(http, env) {
|
|
1432
|
+
super(http);
|
|
1433
|
+
this.http = http;
|
|
1434
|
+
this.env = env;
|
|
1435
|
+
this.urlSegments = [`${this.env.baseUrl}api/milling-types`];
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
MillingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1439
|
+
MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: "root" });
|
|
1440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
|
|
1441
|
+
type: Injectable,
|
|
1442
|
+
args: [{
|
|
1443
|
+
providedIn: "root",
|
|
1444
|
+
}]
|
|
1376
1445
|
}], ctorParameters: function () {
|
|
1377
1446
|
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1378
1447
|
type: Inject,
|
|
1379
|
-
args: [
|
|
1448
|
+
args: ["env"]
|
|
1380
1449
|
}] }];
|
|
1381
1450
|
} });
|
|
1382
1451
|
|
|
1383
|
-
class CoatingService {
|
|
1452
|
+
class CoatingService extends BaseService {
|
|
1384
1453
|
constructor(http, env) {
|
|
1454
|
+
super(http);
|
|
1385
1455
|
this.http = http;
|
|
1386
1456
|
this.env = env;
|
|
1387
|
-
this.
|
|
1388
|
-
}
|
|
1389
|
-
readCoatings(includeInactive = false) {
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
}
|
|
1397
|
-
readCoating(id) {
|
|
1398
|
-
|
|
1399
|
-
}
|
|
1400
|
-
createCoating(coating) {
|
|
1401
|
-
|
|
1402
|
-
}
|
|
1403
|
-
updateCoating(id, coating) {
|
|
1404
|
-
|
|
1405
|
-
}
|
|
1406
|
-
deleteCoating(id) {
|
|
1407
|
-
|
|
1408
|
-
}
|
|
1457
|
+
this.urlSegments = [`${this.env.baseUrl}api/coatings`];
|
|
1458
|
+
}
|
|
1459
|
+
// readCoatings(includeInactive = false): Observable<Coating[]> {
|
|
1460
|
+
// const params = {
|
|
1461
|
+
// includeInactive: includeInactive.toString(),
|
|
1462
|
+
// };
|
|
1463
|
+
// return this.http.get<Coating[]>(this.url, {
|
|
1464
|
+
// params: params,
|
|
1465
|
+
// });
|
|
1466
|
+
// }
|
|
1467
|
+
// readCoating(id: number): Observable<Coating> {
|
|
1468
|
+
// return this.http.get<Coating>(`${this.url}/${id}`);
|
|
1469
|
+
// }
|
|
1470
|
+
// createCoating(coating: Coating): Observable<Coating> {
|
|
1471
|
+
// return this.http.post<Coating>(this.url, coating);
|
|
1472
|
+
// }
|
|
1473
|
+
// updateCoating(id: number, coating: Coating): Observable<Coating> {
|
|
1474
|
+
// return this.http.put<Coating>(`${this.url}/${id}`, coating);
|
|
1475
|
+
// }
|
|
1476
|
+
// deleteCoating(id: number): Observable<any> {
|
|
1477
|
+
// return this.http.delete(`${this.url}/${id}`);
|
|
1478
|
+
// }
|
|
1409
1479
|
// Coating Values
|
|
1410
1480
|
readCoatingValues(coatingId, includeInactive = false) {
|
|
1411
1481
|
return this.http.get(`${this.url}/${coatingId}/coating-values`, {
|
|
1412
1482
|
params: {
|
|
1413
|
-
includeInactive: includeInactive.toString()
|
|
1414
|
-
}
|
|
1483
|
+
includeInactive: includeInactive.toString(),
|
|
1484
|
+
},
|
|
1415
1485
|
});
|
|
1416
1486
|
}
|
|
1417
1487
|
readCoatingValue(coatingId, coatingValueId) {
|
|
@@ -1427,17 +1497,17 @@ class CoatingService {
|
|
|
1427
1497
|
return this.http.delete(`${this.url}/${coatingId}/coating-values/${coatingValueId}`);
|
|
1428
1498
|
}
|
|
1429
1499
|
}
|
|
1430
|
-
CoatingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, deps: [{ token: i1.HttpClient }, { token:
|
|
1431
|
-
CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn:
|
|
1500
|
+
CoatingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1501
|
+
CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: "root" });
|
|
1432
1502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, decorators: [{
|
|
1433
1503
|
type: Injectable,
|
|
1434
1504
|
args: [{
|
|
1435
|
-
providedIn:
|
|
1505
|
+
providedIn: "root",
|
|
1436
1506
|
}]
|
|
1437
1507
|
}], ctorParameters: function () {
|
|
1438
1508
|
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1439
1509
|
type: Inject,
|
|
1440
|
-
args: [
|
|
1510
|
+
args: ["env"]
|
|
1441
1511
|
}] }];
|
|
1442
1512
|
} });
|
|
1443
1513
|
|
|
@@ -1767,45 +1837,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1767
1837
|
}] }];
|
|
1768
1838
|
} });
|
|
1769
1839
|
|
|
1770
|
-
class BaseService {
|
|
1771
|
-
constructor(http) {
|
|
1772
|
-
this.http = http;
|
|
1773
|
-
}
|
|
1774
|
-
getUrl(...params) {
|
|
1775
|
-
let baseUrl = this.urlSegments[0];
|
|
1776
|
-
for (let i = 0; i < params.length; i++) {
|
|
1777
|
-
baseUrl += `/${params[i]}`;
|
|
1778
|
-
if (this.urlSegments.length > i + 1) {
|
|
1779
|
-
baseUrl += `/${this.urlSegments[i + 1]}`;
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
return baseUrl;
|
|
1783
|
-
}
|
|
1784
|
-
getAll(...params) {
|
|
1785
|
-
return this.http.get(this.getUrl(...params));
|
|
1786
|
-
}
|
|
1787
|
-
get(...params) {
|
|
1788
|
-
return this.http.get(this.getUrl(...params));
|
|
1789
|
-
}
|
|
1790
|
-
create(item, ...params) {
|
|
1791
|
-
return this.http.post(this.getUrl(...params), item);
|
|
1792
|
-
}
|
|
1793
|
-
update(item, ...params) {
|
|
1794
|
-
return this.http.put(this.getUrl(...params), item);
|
|
1795
|
-
}
|
|
1796
|
-
delete(...params) {
|
|
1797
|
-
return this.http.delete(this.getUrl(...params));
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1801
|
-
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
1802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
|
|
1803
|
-
type: Injectable,
|
|
1804
|
-
args: [{
|
|
1805
|
-
providedIn: 'root'
|
|
1806
|
-
}]
|
|
1807
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
1808
|
-
|
|
1809
1840
|
class WorkOrderShippingItemService extends BaseService {
|
|
1810
1841
|
constructor(http, env) {
|
|
1811
1842
|
super(http);
|
|
@@ -1899,6 +1930,226 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1899
1930
|
}] }];
|
|
1900
1931
|
} });
|
|
1901
1932
|
|
|
1933
|
+
class MountTypeService extends BaseService {
|
|
1934
|
+
constructor(http, env) {
|
|
1935
|
+
super(http);
|
|
1936
|
+
this.http = http;
|
|
1937
|
+
this.env = env;
|
|
1938
|
+
this.urlSegments = [`${this.env.baseUrl}api/mount-types`];
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
MountTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1942
|
+
MountTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, providedIn: "root" });
|
|
1943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, decorators: [{
|
|
1944
|
+
type: Injectable,
|
|
1945
|
+
args: [{
|
|
1946
|
+
providedIn: "root",
|
|
1947
|
+
}]
|
|
1948
|
+
}], ctorParameters: function () {
|
|
1949
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1950
|
+
type: Inject,
|
|
1951
|
+
args: ["env"]
|
|
1952
|
+
}] }];
|
|
1953
|
+
} });
|
|
1954
|
+
|
|
1955
|
+
class SightService extends BaseService {
|
|
1956
|
+
constructor(http, env) {
|
|
1957
|
+
super(http);
|
|
1958
|
+
this.http = http;
|
|
1959
|
+
this.env = env;
|
|
1960
|
+
this.urlSegments = [`${this.env.baseUrl}api/sights`];
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
SightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1964
|
+
SightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, providedIn: 'root' });
|
|
1965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, decorators: [{
|
|
1966
|
+
type: Injectable,
|
|
1967
|
+
args: [{
|
|
1968
|
+
providedIn: 'root'
|
|
1969
|
+
}]
|
|
1970
|
+
}], ctorParameters: function () {
|
|
1971
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1972
|
+
type: Inject,
|
|
1973
|
+
args: ["env"]
|
|
1974
|
+
}] }];
|
|
1975
|
+
} });
|
|
1976
|
+
|
|
1977
|
+
class SightTypeService extends BaseService {
|
|
1978
|
+
constructor(http, env) {
|
|
1979
|
+
super(http);
|
|
1980
|
+
this.http = http;
|
|
1981
|
+
this.env = env;
|
|
1982
|
+
this.urlSegments = [`${this.env.baseUrl}api/sight-types`];
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
SightTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1986
|
+
SightTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, providedIn: 'root' });
|
|
1987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, decorators: [{
|
|
1988
|
+
type: Injectable,
|
|
1989
|
+
args: [{
|
|
1990
|
+
providedIn: 'root'
|
|
1991
|
+
}]
|
|
1992
|
+
}], ctorParameters: function () {
|
|
1993
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1994
|
+
type: Inject,
|
|
1995
|
+
args: ["env"]
|
|
1996
|
+
}] }];
|
|
1997
|
+
} });
|
|
1998
|
+
|
|
1999
|
+
class SightMaterialService extends BaseService {
|
|
2000
|
+
constructor(http, env) {
|
|
2001
|
+
super(http);
|
|
2002
|
+
this.http = http;
|
|
2003
|
+
this.env = env;
|
|
2004
|
+
this.urlSegments = [`${this.env.baseUrl}api/sight-materials`];
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
SightMaterialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2008
|
+
SightMaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, providedIn: "root" });
|
|
2009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, decorators: [{
|
|
2010
|
+
type: Injectable,
|
|
2011
|
+
args: [{
|
|
2012
|
+
providedIn: "root",
|
|
2013
|
+
}]
|
|
2014
|
+
}], ctorParameters: function () {
|
|
2015
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2016
|
+
type: Inject,
|
|
2017
|
+
args: ["env"]
|
|
2018
|
+
}] }];
|
|
2019
|
+
} });
|
|
2020
|
+
|
|
2021
|
+
class FirearmOpticService extends BaseService {
|
|
2022
|
+
constructor(http, env) {
|
|
2023
|
+
super(http);
|
|
2024
|
+
this.http = http;
|
|
2025
|
+
this.env = env;
|
|
2026
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
FirearmOpticService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2030
|
+
FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });
|
|
2031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, decorators: [{
|
|
2032
|
+
type: Injectable,
|
|
2033
|
+
args: [{
|
|
2034
|
+
providedIn: "root",
|
|
2035
|
+
}]
|
|
2036
|
+
}], ctorParameters: function () {
|
|
2037
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2038
|
+
type: Inject,
|
|
2039
|
+
args: ["env"]
|
|
2040
|
+
}] }];
|
|
2041
|
+
} });
|
|
2042
|
+
|
|
2043
|
+
class FirearmSightService extends BaseService {
|
|
2044
|
+
constructor(http, env) {
|
|
2045
|
+
super(http);
|
|
2046
|
+
this.http = http;
|
|
2047
|
+
this.env = env;
|
|
2048
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "sights"];
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
FirearmSightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2052
|
+
FirearmSightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, providedIn: "root" });
|
|
2053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, decorators: [{
|
|
2054
|
+
type: Injectable,
|
|
2055
|
+
args: [{
|
|
2056
|
+
providedIn: "root",
|
|
2057
|
+
}]
|
|
2058
|
+
}], ctorParameters: function () {
|
|
2059
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2060
|
+
type: Inject,
|
|
2061
|
+
args: ["env"]
|
|
2062
|
+
}] }];
|
|
2063
|
+
} });
|
|
2064
|
+
|
|
2065
|
+
class PackageOptionalItemService extends BaseService {
|
|
2066
|
+
constructor(http, env) {
|
|
2067
|
+
super(http);
|
|
2068
|
+
this.http = http;
|
|
2069
|
+
this.env = env;
|
|
2070
|
+
this.urlSegments = [`${this.env.baseUrl}api/packages`, "optional-items"];
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
PackageOptionalItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2074
|
+
PackageOptionalItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, providedIn: "root" });
|
|
2075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, decorators: [{
|
|
2076
|
+
type: Injectable,
|
|
2077
|
+
args: [{
|
|
2078
|
+
providedIn: "root",
|
|
2079
|
+
}]
|
|
2080
|
+
}], ctorParameters: function () {
|
|
2081
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2082
|
+
type: Inject,
|
|
2083
|
+
args: ["env"]
|
|
2084
|
+
}] }];
|
|
2085
|
+
} });
|
|
2086
|
+
|
|
2087
|
+
class PackageVariationService extends BaseService {
|
|
2088
|
+
constructor(http, env) {
|
|
2089
|
+
super(http);
|
|
2090
|
+
this.http = http;
|
|
2091
|
+
this.env = env;
|
|
2092
|
+
this.urlSegments = [`${this.env.baseUrl}api/packages`, "variations"];
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
PackageVariationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2096
|
+
PackageVariationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, providedIn: "root" });
|
|
2097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, decorators: [{
|
|
2098
|
+
type: Injectable,
|
|
2099
|
+
args: [{
|
|
2100
|
+
providedIn: "root",
|
|
2101
|
+
}]
|
|
2102
|
+
}], ctorParameters: function () {
|
|
2103
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2104
|
+
type: Inject,
|
|
2105
|
+
args: ["env"]
|
|
2106
|
+
}] }];
|
|
2107
|
+
} });
|
|
2108
|
+
|
|
2109
|
+
class SlideAddonService extends BaseService {
|
|
2110
|
+
constructor(http, env) {
|
|
2111
|
+
super(http);
|
|
2112
|
+
this.http = http;
|
|
2113
|
+
this.env = env;
|
|
2114
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "slide-addons"];
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
SlideAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2118
|
+
SlideAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, providedIn: "root" });
|
|
2119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, decorators: [{
|
|
2120
|
+
type: Injectable,
|
|
2121
|
+
args: [{
|
|
2122
|
+
providedIn: "root",
|
|
2123
|
+
}]
|
|
2124
|
+
}], ctorParameters: function () {
|
|
2125
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2126
|
+
type: Inject,
|
|
2127
|
+
args: ["env"]
|
|
2128
|
+
}] }];
|
|
2129
|
+
} });
|
|
2130
|
+
|
|
2131
|
+
class CoatingValueService extends BaseService {
|
|
2132
|
+
constructor(http, env) {
|
|
2133
|
+
super(http);
|
|
2134
|
+
this.http = http;
|
|
2135
|
+
this.env = env;
|
|
2136
|
+
this.urlSegments = [`${this.env.baseUrl}api/coatings`, "coating-values"];
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
CoatingValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2140
|
+
CoatingValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, providedIn: "root" });
|
|
2141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, decorators: [{
|
|
2142
|
+
type: Injectable,
|
|
2143
|
+
args: [{
|
|
2144
|
+
providedIn: "root",
|
|
2145
|
+
}]
|
|
2146
|
+
}], ctorParameters: function () {
|
|
2147
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2148
|
+
type: Inject,
|
|
2149
|
+
args: ["env"]
|
|
2150
|
+
}] }];
|
|
2151
|
+
} });
|
|
2152
|
+
|
|
1902
2153
|
class PhonePipe {
|
|
1903
2154
|
transform(value, args) {
|
|
1904
2155
|
if (value && value.length >= 10) {
|
|
@@ -2227,6 +2478,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2227
2478
|
type: Input
|
|
2228
2479
|
}] } });
|
|
2229
2480
|
|
|
2481
|
+
class FormErrorMessageComponent {
|
|
2482
|
+
}
|
|
2483
|
+
FormErrorMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2484
|
+
FormErrorMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormErrorMessageComponent, selector: "cgw-error-message", inputs: { control: "control", controlName: "controlName" }, ngImport: i0, template: "<div *ngIf=\"control.invalid && (control.dirty || control.touched)\" class=\"error-container text-danger\">\n <div *ngIf=\"control.errors.required\">\n {{controlName}} is required.\n </div>\n</div>\n", styles: [""], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, decorators: [{
|
|
2486
|
+
type: Component,
|
|
2487
|
+
args: [{ selector: 'cgw-error-message', template: "<div *ngIf=\"control.invalid && (control.dirty || control.touched)\" class=\"error-container text-danger\">\n <div *ngIf=\"control.errors.required\">\n {{controlName}} is required.\n </div>\n</div>\n", styles: [""] }]
|
|
2488
|
+
}], propDecorators: { control: [{
|
|
2489
|
+
type: Input
|
|
2490
|
+
}], controlName: [{
|
|
2491
|
+
type: Input
|
|
2492
|
+
}] } });
|
|
2493
|
+
|
|
2494
|
+
class ModalHeaderComponent {
|
|
2495
|
+
constructor() {
|
|
2496
|
+
this.close = new EventEmitter();
|
|
2497
|
+
}
|
|
2498
|
+
onCloseClick(e) {
|
|
2499
|
+
e.preventDefault();
|
|
2500
|
+
this.close.emit(e);
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2504
|
+
ModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ModalHeaderComponent, selector: "cgw-modal-header", inputs: { headerTitle: "headerTitle", form: "form" }, outputs: { close: "close" }, ngImport: i0, template: "<div class=\"modal-header\">\n <div class=\"modal-title\">\n <a href=\"#\" (click)=\"onCloseClick($event)\" title=\"Close\"><i class=\"fas fa-arrow-left text-white\"></i></a>\n <span class=\"ms-2\">{{headerTitle}}</span>\n </div>\n <button class=\"btn btn-primary btn-sm float-end\"\n type=\"submit\"\n title=\"Save\"\n [class.btn-warning]=\"form.dirty\"\n [class.btn-primary]=\"!form.dirty\"\n [disabled]=\"form.invalid\">\n <i class=\"fa-fw far fa-save\"></i>\n </button>\n </div>\n", styles: [""] });
|
|
2505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, decorators: [{
|
|
2506
|
+
type: Component,
|
|
2507
|
+
args: [{ selector: 'cgw-modal-header', template: "<div class=\"modal-header\">\n <div class=\"modal-title\">\n <a href=\"#\" (click)=\"onCloseClick($event)\" title=\"Close\"><i class=\"fas fa-arrow-left text-white\"></i></a>\n <span class=\"ms-2\">{{headerTitle}}</span>\n </div>\n <button class=\"btn btn-primary btn-sm float-end\"\n type=\"submit\"\n title=\"Save\"\n [class.btn-warning]=\"form.dirty\"\n [class.btn-primary]=\"!form.dirty\"\n [disabled]=\"form.invalid\">\n <i class=\"fa-fw far fa-save\"></i>\n </button>\n </div>\n", styles: [""] }]
|
|
2508
|
+
}], propDecorators: { headerTitle: [{
|
|
2509
|
+
type: Input
|
|
2510
|
+
}], form: [{
|
|
2511
|
+
type: Input
|
|
2512
|
+
}], close: [{
|
|
2513
|
+
type: Output
|
|
2514
|
+
}] } });
|
|
2515
|
+
|
|
2230
2516
|
class SharedModule {
|
|
2231
2517
|
}
|
|
2232
2518
|
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2236,22 +2522,18 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
2236
2522
|
DisableControlDirective,
|
|
2237
2523
|
NewLinePipe,
|
|
2238
2524
|
FrameMaterialPipe,
|
|
2239
|
-
PackageSelectorComponent
|
|
2240
|
-
|
|
2241
|
-
FormsModule,
|
|
2242
|
-
ReactiveFormsModule], exports: [PhonePipe,
|
|
2525
|
+
PackageSelectorComponent,
|
|
2526
|
+
FormErrorMessageComponent,
|
|
2527
|
+
ModalHeaderComponent], imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule], exports: [PhonePipe,
|
|
2243
2528
|
FileNamePipe,
|
|
2244
2529
|
EnumPipe,
|
|
2245
2530
|
NewLinePipe,
|
|
2246
2531
|
DisableControlDirective,
|
|
2247
2532
|
FrameMaterialPipe,
|
|
2248
|
-
PackageSelectorComponent
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
FormsModule,
|
|
2253
|
-
ReactiveFormsModule
|
|
2254
|
-
]] });
|
|
2533
|
+
PackageSelectorComponent,
|
|
2534
|
+
FormErrorMessageComponent,
|
|
2535
|
+
ModalHeaderComponent] });
|
|
2536
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule]] });
|
|
2255
2537
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
2256
2538
|
type: NgModule,
|
|
2257
2539
|
args: [{
|
|
@@ -2262,14 +2544,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2262
2544
|
DisableControlDirective,
|
|
2263
2545
|
NewLinePipe,
|
|
2264
2546
|
FrameMaterialPipe,
|
|
2265
|
-
PackageSelectorComponent
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
CommonModule,
|
|
2269
|
-
DropDownsModule,
|
|
2270
|
-
FormsModule,
|
|
2271
|
-
ReactiveFormsModule
|
|
2547
|
+
PackageSelectorComponent,
|
|
2548
|
+
FormErrorMessageComponent,
|
|
2549
|
+
ModalHeaderComponent
|
|
2272
2550
|
],
|
|
2551
|
+
imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule],
|
|
2273
2552
|
exports: [
|
|
2274
2553
|
PhonePipe,
|
|
2275
2554
|
FileNamePipe,
|
|
@@ -2277,8 +2556,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2277
2556
|
NewLinePipe,
|
|
2278
2557
|
DisableControlDirective,
|
|
2279
2558
|
FrameMaterialPipe,
|
|
2280
|
-
PackageSelectorComponent
|
|
2281
|
-
|
|
2559
|
+
PackageSelectorComponent,
|
|
2560
|
+
FormErrorMessageComponent,
|
|
2561
|
+
ModalHeaderComponent
|
|
2562
|
+
],
|
|
2282
2563
|
}]
|
|
2283
2564
|
}] });
|
|
2284
2565
|
|
|
@@ -2340,10 +2621,10 @@ class NotificationBarComponent {
|
|
|
2340
2621
|
}
|
|
2341
2622
|
}
|
|
2342
2623
|
NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2343
|
-
NotificationBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationBarComponent, selector: "app-notification-bar", ngImport: i0, template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:
|
|
2624
|
+
NotificationBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationBarComponent, selector: "app-notification-bar", ngImport: i0, template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:1000001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [fadeOutAnimation] });
|
|
2344
2625
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
|
|
2345
2626
|
type: Component,
|
|
2346
|
-
args: [{ selector: 'app-notification-bar', animations: [fadeOutAnimation], template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:
|
|
2627
|
+
args: [{ selector: 'app-notification-bar', animations: [fadeOutAnimation], template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:1000001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"] }]
|
|
2347
2628
|
}], ctorParameters: function () { return [{ type: NotificationService }]; } });
|
|
2348
2629
|
|
|
2349
2630
|
class NotificationModule {
|
|
@@ -2382,5 +2663,5 @@ var NotificationType;
|
|
|
2382
2663
|
* Generated bundle index. Do not edit.
|
|
2383
2664
|
*/
|
|
2384
2665
|
|
|
2385
|
-
export { BaseService, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, Firearm, FirearmSeries, FirearmSeriesOptic, FirearmSeriesService, FirearmService, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeService, MountType, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, SightType, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderType, calculateFinishDate, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2666
|
+
export { BaseService, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, CoatingValueService, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, Firearm, FirearmOptic, FirearmOpticService, FirearmSeries, FirearmSeriesOptic, FirearmSeriesService, FirearmService, FirearmSightService, FormErrorMessageComponent, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeService, ModalHeaderComponent, MountType, MountTypeService, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticSight, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageOptionalItemService, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PackageVariationService, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, Sight, SightMaterialService, SightMaterialType, SightService, SightType, SightTypeEnum, SightTypeService, SlideAddon, SlideAddonService, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderType, calculateFinishDate, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2386
2667
|
//# sourceMappingURL=gunsmith-common.mjs.map
|