gunsmith-common 2.2.17 → 2.3.1
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/index.mjs +11 -1
- package/esm2020/shared/services/milling-type.service.mjs +9 -28
- 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/services/waitlist.service.mjs +5 -2
- 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-item.mjs +1 -1
- package/esm2020/shared/types/waitlist-status.mjs +3 -1
- package/fesm2015/gunsmith-common.mjs +422 -131
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +402 -131
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.1.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/index.d.ts +10 -0
- package/shared/services/milling-type.service.d.ts +4 -10
- 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/services/waitlist.service.d.ts +1 -1
- 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 +1 -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-item.d.ts +2 -0
- package/shared/types/waitlist-status.d.ts +3 -1
- package/gunsmith-common-2.2.17.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,8 @@ 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";
|
|
170
|
+
WaitlistStatus[WaitlistStatus["Rejected"] = 12] = "Rejected";
|
|
167
171
|
})(WaitlistStatus || (WaitlistStatus = {}));
|
|
168
172
|
|
|
169
173
|
var WorkOrderType;
|
|
@@ -282,21 +286,18 @@ var ChangeOrderStatus;
|
|
|
282
286
|
ChangeOrderStatus[ChangeOrderStatus["Unconfirmed"] = 4] = "Unconfirmed";
|
|
283
287
|
})(ChangeOrderStatus || (ChangeOrderStatus = {}));
|
|
284
288
|
|
|
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 = {}));
|
|
289
|
+
class MountType {
|
|
290
|
+
constructor() {
|
|
291
|
+
this.active = true;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
var SightTypeEnum;
|
|
296
|
+
(function (SightTypeEnum) {
|
|
297
|
+
SightTypeEnum[SightTypeEnum["Black"] = 0] = "Black";
|
|
298
|
+
SightTypeEnum[SightTypeEnum["Tritium"] = 1] = "Tritium";
|
|
299
|
+
SightTypeEnum[SightTypeEnum["FiberOptic"] = 2] = "FiberOptic";
|
|
300
|
+
})(SightTypeEnum || (SightTypeEnum = {}));
|
|
300
301
|
|
|
301
302
|
class MillingDetail {
|
|
302
303
|
constructor() {
|
|
@@ -341,6 +342,10 @@ var FrameMaterial;
|
|
|
341
342
|
|
|
342
343
|
class MillingType {
|
|
343
344
|
constructor() {
|
|
345
|
+
this.price = 0.00;
|
|
346
|
+
this.isCosmetic = false;
|
|
347
|
+
this.mustRefinish = false;
|
|
348
|
+
this.firearms = [];
|
|
344
349
|
this.active = true;
|
|
345
350
|
}
|
|
346
351
|
}
|
|
@@ -393,6 +398,7 @@ class TotalItem {
|
|
|
393
398
|
|
|
394
399
|
class InventoryItem {
|
|
395
400
|
constructor() {
|
|
401
|
+
this.imageOverride = false;
|
|
396
402
|
this.price = 0;
|
|
397
403
|
this.count = 0;
|
|
398
404
|
this.orderPoint = 0;
|
|
@@ -420,6 +426,7 @@ class PackageItem {
|
|
|
420
426
|
class Package {
|
|
421
427
|
constructor() {
|
|
422
428
|
this.price = 0.00;
|
|
429
|
+
this.imageOverride = false;
|
|
423
430
|
this.active = true;
|
|
424
431
|
this.gunsmithOnly = false;
|
|
425
432
|
this.firearms = [];
|
|
@@ -430,6 +437,10 @@ class Package {
|
|
|
430
437
|
}
|
|
431
438
|
|
|
432
439
|
class PackageOptionalItem {
|
|
440
|
+
constructor() {
|
|
441
|
+
this.subItems = [];
|
|
442
|
+
this.active = true;
|
|
443
|
+
}
|
|
433
444
|
}
|
|
434
445
|
|
|
435
446
|
class PackageVariation {
|
|
@@ -489,6 +500,43 @@ class ChangeOrderPackageDetail {
|
|
|
489
500
|
}
|
|
490
501
|
}
|
|
491
502
|
|
|
503
|
+
class Sight {
|
|
504
|
+
constructor() {
|
|
505
|
+
this.active = true;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
class SightType {
|
|
510
|
+
constructor() {
|
|
511
|
+
this.active = true;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
class SightMaterialType {
|
|
516
|
+
constructor() {
|
|
517
|
+
this.active = true;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
class FirearmOptic {
|
|
522
|
+
constructor() {
|
|
523
|
+
this.frontSights = [];
|
|
524
|
+
this.rearSights = [];
|
|
525
|
+
this.keepDovetail = false;
|
|
526
|
+
this.removeDovetail = false;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
class OpticSight extends Sight {
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
class SlideAddon {
|
|
534
|
+
constructor() {
|
|
535
|
+
this.subItems = [];
|
|
536
|
+
this.active = true;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
492
540
|
function adjustHoliday(finishDate, holidays) {
|
|
493
541
|
while (holidays.map(h => new Date(h.holiday)).findIndex(h => DateTime.fromJSDate(h) === DateTime.fromJSDate(finishDate)) !== -1) {
|
|
494
542
|
do {
|
|
@@ -1114,7 +1162,10 @@ class WaitlistService {
|
|
|
1114
1162
|
deleteWaitlistItem(id) {
|
|
1115
1163
|
return this.http.delete(`${this.url}/${id}`);
|
|
1116
1164
|
}
|
|
1117
|
-
doWaitlistAction(id, actionId) {
|
|
1165
|
+
doWaitlistAction(id, actionId, reason = null) {
|
|
1166
|
+
if (reason) {
|
|
1167
|
+
return this.http.get(`${this.url}/${id}/actions/${actionId}?reason=${reason}`);
|
|
1168
|
+
}
|
|
1118
1169
|
return this.http.get(`${this.url}/${id}/actions/${actionId}`);
|
|
1119
1170
|
}
|
|
1120
1171
|
retrieveProjectPdf(id, projectId) {
|
|
@@ -1168,6 +1219,9 @@ class ConfigurationService {
|
|
|
1168
1219
|
updateConfigs(configuration) {
|
|
1169
1220
|
return this.http.put(`${this.url}/1`, configuration);
|
|
1170
1221
|
}
|
|
1222
|
+
syncWooCommerce() {
|
|
1223
|
+
return this.http.post(`${this.url}/sync-woocommerce`, null);
|
|
1224
|
+
}
|
|
1171
1225
|
}
|
|
1172
1226
|
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 });
|
|
1173
1227
|
ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
|
|
@@ -1204,6 +1258,9 @@ class WaitlistCustomerService {
|
|
|
1204
1258
|
params: { token: token }
|
|
1205
1259
|
});
|
|
1206
1260
|
}
|
|
1261
|
+
createWaitlistItem(waitlistItem) {
|
|
1262
|
+
return this.http.post(this.url, waitlistItem);
|
|
1263
|
+
}
|
|
1207
1264
|
}
|
|
1208
1265
|
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 });
|
|
1209
1266
|
WaitlistCustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, providedIn: 'root' });
|
|
@@ -1332,80 +1389,103 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1332
1389
|
}] }];
|
|
1333
1390
|
} });
|
|
1334
1391
|
|
|
1335
|
-
class
|
|
1336
|
-
constructor(http
|
|
1392
|
+
class BaseService {
|
|
1393
|
+
constructor(http) {
|
|
1337
1394
|
this.http = http;
|
|
1338
|
-
this.env = env;
|
|
1339
|
-
this.url = this.env.baseUrl + 'api/milling-types';
|
|
1340
1395
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
params[
|
|
1396
|
+
getUrl(...params) {
|
|
1397
|
+
let baseUrl = this.urlSegments[0];
|
|
1398
|
+
for (let i = 0; i < params.length; i++) {
|
|
1399
|
+
baseUrl += `/${params[i]}`;
|
|
1400
|
+
if (this.urlSegments.length > i + 1) {
|
|
1401
|
+
baseUrl += `/${this.urlSegments[i + 1]}`;
|
|
1402
|
+
}
|
|
1345
1403
|
}
|
|
1346
|
-
return
|
|
1347
|
-
params: params
|
|
1348
|
-
});
|
|
1404
|
+
return baseUrl;
|
|
1349
1405
|
}
|
|
1350
|
-
|
|
1351
|
-
return this.http.get(
|
|
1406
|
+
getAll(...params) {
|
|
1407
|
+
return this.http.get(this.getUrl(...params));
|
|
1352
1408
|
}
|
|
1353
|
-
|
|
1354
|
-
return this.http.
|
|
1409
|
+
getAllWithParams(queryParams, ...params) {
|
|
1410
|
+
return this.http.get(this.getUrl(...params), { params: queryParams });
|
|
1355
1411
|
}
|
|
1356
|
-
|
|
1357
|
-
return this.http.
|
|
1412
|
+
get(...params) {
|
|
1413
|
+
return this.http.get(this.getUrl(...params));
|
|
1358
1414
|
}
|
|
1359
|
-
|
|
1360
|
-
return this.http.
|
|
1415
|
+
create(item, ...params) {
|
|
1416
|
+
return this.http.post(this.getUrl(...params), item);
|
|
1417
|
+
}
|
|
1418
|
+
update(item, ...params) {
|
|
1419
|
+
return this.http.put(this.getUrl(...params), item);
|
|
1420
|
+
}
|
|
1421
|
+
delete(...params) {
|
|
1422
|
+
return this.http.delete(this.getUrl(...params));
|
|
1361
1423
|
}
|
|
1362
1424
|
}
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
1425
|
+
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1426
|
+
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
1427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
|
|
1366
1428
|
type: Injectable,
|
|
1367
1429
|
args: [{
|
|
1368
1430
|
providedIn: 'root'
|
|
1369
1431
|
}]
|
|
1432
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
1433
|
+
|
|
1434
|
+
class MillingTypeService extends BaseService {
|
|
1435
|
+
constructor(http, env) {
|
|
1436
|
+
super(http);
|
|
1437
|
+
this.http = http;
|
|
1438
|
+
this.env = env;
|
|
1439
|
+
this.urlSegments = [`${this.env.baseUrl}api/milling-types`];
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
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 });
|
|
1443
|
+
MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: "root" });
|
|
1444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
|
|
1445
|
+
type: Injectable,
|
|
1446
|
+
args: [{
|
|
1447
|
+
providedIn: "root",
|
|
1448
|
+
}]
|
|
1370
1449
|
}], ctorParameters: function () {
|
|
1371
1450
|
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1372
1451
|
type: Inject,
|
|
1373
|
-
args: [
|
|
1452
|
+
args: ["env"]
|
|
1374
1453
|
}] }];
|
|
1375
1454
|
} });
|
|
1376
1455
|
|
|
1377
|
-
class CoatingService {
|
|
1456
|
+
class CoatingService extends BaseService {
|
|
1378
1457
|
constructor(http, env) {
|
|
1458
|
+
super(http);
|
|
1379
1459
|
this.http = http;
|
|
1380
1460
|
this.env = env;
|
|
1381
|
-
this.
|
|
1382
|
-
}
|
|
1383
|
-
readCoatings(includeInactive = false) {
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
}
|
|
1391
|
-
readCoating(id) {
|
|
1392
|
-
|
|
1393
|
-
}
|
|
1394
|
-
createCoating(coating) {
|
|
1395
|
-
|
|
1396
|
-
}
|
|
1397
|
-
updateCoating(id, coating) {
|
|
1398
|
-
|
|
1399
|
-
}
|
|
1400
|
-
deleteCoating(id) {
|
|
1401
|
-
|
|
1402
|
-
}
|
|
1461
|
+
this.urlSegments = [`${this.env.baseUrl}api/coatings`];
|
|
1462
|
+
}
|
|
1463
|
+
// readCoatings(includeInactive = false): Observable<Coating[]> {
|
|
1464
|
+
// const params = {
|
|
1465
|
+
// includeInactive: includeInactive.toString(),
|
|
1466
|
+
// };
|
|
1467
|
+
// return this.http.get<Coating[]>(this.url, {
|
|
1468
|
+
// params: params,
|
|
1469
|
+
// });
|
|
1470
|
+
// }
|
|
1471
|
+
// readCoating(id: number): Observable<Coating> {
|
|
1472
|
+
// return this.http.get<Coating>(`${this.url}/${id}`);
|
|
1473
|
+
// }
|
|
1474
|
+
// createCoating(coating: Coating): Observable<Coating> {
|
|
1475
|
+
// return this.http.post<Coating>(this.url, coating);
|
|
1476
|
+
// }
|
|
1477
|
+
// updateCoating(id: number, coating: Coating): Observable<Coating> {
|
|
1478
|
+
// return this.http.put<Coating>(`${this.url}/${id}`, coating);
|
|
1479
|
+
// }
|
|
1480
|
+
// deleteCoating(id: number): Observable<any> {
|
|
1481
|
+
// return this.http.delete(`${this.url}/${id}`);
|
|
1482
|
+
// }
|
|
1403
1483
|
// Coating Values
|
|
1404
1484
|
readCoatingValues(coatingId, includeInactive = false) {
|
|
1405
1485
|
return this.http.get(`${this.url}/${coatingId}/coating-values`, {
|
|
1406
1486
|
params: {
|
|
1407
|
-
includeInactive: includeInactive.toString()
|
|
1408
|
-
}
|
|
1487
|
+
includeInactive: includeInactive.toString(),
|
|
1488
|
+
},
|
|
1409
1489
|
});
|
|
1410
1490
|
}
|
|
1411
1491
|
readCoatingValue(coatingId, coatingValueId) {
|
|
@@ -1421,17 +1501,17 @@ class CoatingService {
|
|
|
1421
1501
|
return this.http.delete(`${this.url}/${coatingId}/coating-values/${coatingValueId}`);
|
|
1422
1502
|
}
|
|
1423
1503
|
}
|
|
1424
|
-
CoatingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, deps: [{ token: i1.HttpClient }, { token:
|
|
1425
|
-
CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn:
|
|
1504
|
+
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 });
|
|
1505
|
+
CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: "root" });
|
|
1426
1506
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, decorators: [{
|
|
1427
1507
|
type: Injectable,
|
|
1428
1508
|
args: [{
|
|
1429
|
-
providedIn:
|
|
1509
|
+
providedIn: "root",
|
|
1430
1510
|
}]
|
|
1431
1511
|
}], ctorParameters: function () {
|
|
1432
1512
|
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1433
1513
|
type: Inject,
|
|
1434
|
-
args: [
|
|
1514
|
+
args: ["env"]
|
|
1435
1515
|
}] }];
|
|
1436
1516
|
} });
|
|
1437
1517
|
|
|
@@ -1761,45 +1841,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1761
1841
|
}] }];
|
|
1762
1842
|
} });
|
|
1763
1843
|
|
|
1764
|
-
class BaseService {
|
|
1765
|
-
constructor(http) {
|
|
1766
|
-
this.http = http;
|
|
1767
|
-
}
|
|
1768
|
-
getUrl(...params) {
|
|
1769
|
-
let baseUrl = this.urlSegments[0];
|
|
1770
|
-
for (let i = 0; i < params.length; i++) {
|
|
1771
|
-
baseUrl += `/${params[i]}`;
|
|
1772
|
-
if (this.urlSegments.length > i + 1) {
|
|
1773
|
-
baseUrl += `/${this.urlSegments[i + 1]}`;
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
|
-
return baseUrl;
|
|
1777
|
-
}
|
|
1778
|
-
getAll(...params) {
|
|
1779
|
-
return this.http.get(this.getUrl(...params));
|
|
1780
|
-
}
|
|
1781
|
-
get(...params) {
|
|
1782
|
-
return this.http.get(this.getUrl(...params));
|
|
1783
|
-
}
|
|
1784
|
-
create(item, ...params) {
|
|
1785
|
-
return this.http.post(this.getUrl(...params), item);
|
|
1786
|
-
}
|
|
1787
|
-
update(item, ...params) {
|
|
1788
|
-
return this.http.put(this.getUrl(...params), item);
|
|
1789
|
-
}
|
|
1790
|
-
delete(...params) {
|
|
1791
|
-
return this.http.delete(this.getUrl(...params));
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1795
|
-
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
1796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
|
|
1797
|
-
type: Injectable,
|
|
1798
|
-
args: [{
|
|
1799
|
-
providedIn: 'root'
|
|
1800
|
-
}]
|
|
1801
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
1802
|
-
|
|
1803
1844
|
class WorkOrderShippingItemService extends BaseService {
|
|
1804
1845
|
constructor(http, env) {
|
|
1805
1846
|
super(http);
|
|
@@ -1893,6 +1934,226 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1893
1934
|
}] }];
|
|
1894
1935
|
} });
|
|
1895
1936
|
|
|
1937
|
+
class MountTypeService extends BaseService {
|
|
1938
|
+
constructor(http, env) {
|
|
1939
|
+
super(http);
|
|
1940
|
+
this.http = http;
|
|
1941
|
+
this.env = env;
|
|
1942
|
+
this.urlSegments = [`${this.env.baseUrl}api/mount-types`];
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
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 });
|
|
1946
|
+
MountTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, providedIn: "root" });
|
|
1947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, decorators: [{
|
|
1948
|
+
type: Injectable,
|
|
1949
|
+
args: [{
|
|
1950
|
+
providedIn: "root",
|
|
1951
|
+
}]
|
|
1952
|
+
}], ctorParameters: function () {
|
|
1953
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1954
|
+
type: Inject,
|
|
1955
|
+
args: ["env"]
|
|
1956
|
+
}] }];
|
|
1957
|
+
} });
|
|
1958
|
+
|
|
1959
|
+
class SightService extends BaseService {
|
|
1960
|
+
constructor(http, env) {
|
|
1961
|
+
super(http);
|
|
1962
|
+
this.http = http;
|
|
1963
|
+
this.env = env;
|
|
1964
|
+
this.urlSegments = [`${this.env.baseUrl}api/sights`];
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
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 });
|
|
1968
|
+
SightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, providedIn: 'root' });
|
|
1969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, decorators: [{
|
|
1970
|
+
type: Injectable,
|
|
1971
|
+
args: [{
|
|
1972
|
+
providedIn: 'root'
|
|
1973
|
+
}]
|
|
1974
|
+
}], ctorParameters: function () {
|
|
1975
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1976
|
+
type: Inject,
|
|
1977
|
+
args: ["env"]
|
|
1978
|
+
}] }];
|
|
1979
|
+
} });
|
|
1980
|
+
|
|
1981
|
+
class SightTypeService extends BaseService {
|
|
1982
|
+
constructor(http, env) {
|
|
1983
|
+
super(http);
|
|
1984
|
+
this.http = http;
|
|
1985
|
+
this.env = env;
|
|
1986
|
+
this.urlSegments = [`${this.env.baseUrl}api/sight-types`];
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
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 });
|
|
1990
|
+
SightTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, providedIn: 'root' });
|
|
1991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, decorators: [{
|
|
1992
|
+
type: Injectable,
|
|
1993
|
+
args: [{
|
|
1994
|
+
providedIn: 'root'
|
|
1995
|
+
}]
|
|
1996
|
+
}], ctorParameters: function () {
|
|
1997
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1998
|
+
type: Inject,
|
|
1999
|
+
args: ["env"]
|
|
2000
|
+
}] }];
|
|
2001
|
+
} });
|
|
2002
|
+
|
|
2003
|
+
class SightMaterialService extends BaseService {
|
|
2004
|
+
constructor(http, env) {
|
|
2005
|
+
super(http);
|
|
2006
|
+
this.http = http;
|
|
2007
|
+
this.env = env;
|
|
2008
|
+
this.urlSegments = [`${this.env.baseUrl}api/sight-materials`];
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
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 });
|
|
2012
|
+
SightMaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, providedIn: "root" });
|
|
2013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, decorators: [{
|
|
2014
|
+
type: Injectable,
|
|
2015
|
+
args: [{
|
|
2016
|
+
providedIn: "root",
|
|
2017
|
+
}]
|
|
2018
|
+
}], ctorParameters: function () {
|
|
2019
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2020
|
+
type: Inject,
|
|
2021
|
+
args: ["env"]
|
|
2022
|
+
}] }];
|
|
2023
|
+
} });
|
|
2024
|
+
|
|
2025
|
+
class FirearmOpticService extends BaseService {
|
|
2026
|
+
constructor(http, env) {
|
|
2027
|
+
super(http);
|
|
2028
|
+
this.http = http;
|
|
2029
|
+
this.env = env;
|
|
2030
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
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 });
|
|
2034
|
+
FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, decorators: [{
|
|
2036
|
+
type: Injectable,
|
|
2037
|
+
args: [{
|
|
2038
|
+
providedIn: "root",
|
|
2039
|
+
}]
|
|
2040
|
+
}], ctorParameters: function () {
|
|
2041
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2042
|
+
type: Inject,
|
|
2043
|
+
args: ["env"]
|
|
2044
|
+
}] }];
|
|
2045
|
+
} });
|
|
2046
|
+
|
|
2047
|
+
class FirearmSightService extends BaseService {
|
|
2048
|
+
constructor(http, env) {
|
|
2049
|
+
super(http);
|
|
2050
|
+
this.http = http;
|
|
2051
|
+
this.env = env;
|
|
2052
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "sights"];
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
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 });
|
|
2056
|
+
FirearmSightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, providedIn: "root" });
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, decorators: [{
|
|
2058
|
+
type: Injectable,
|
|
2059
|
+
args: [{
|
|
2060
|
+
providedIn: "root",
|
|
2061
|
+
}]
|
|
2062
|
+
}], ctorParameters: function () {
|
|
2063
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2064
|
+
type: Inject,
|
|
2065
|
+
args: ["env"]
|
|
2066
|
+
}] }];
|
|
2067
|
+
} });
|
|
2068
|
+
|
|
2069
|
+
class PackageOptionalItemService extends BaseService {
|
|
2070
|
+
constructor(http, env) {
|
|
2071
|
+
super(http);
|
|
2072
|
+
this.http = http;
|
|
2073
|
+
this.env = env;
|
|
2074
|
+
this.urlSegments = [`${this.env.baseUrl}api/packages`, "optional-items"];
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
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 });
|
|
2078
|
+
PackageOptionalItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, providedIn: "root" });
|
|
2079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, decorators: [{
|
|
2080
|
+
type: Injectable,
|
|
2081
|
+
args: [{
|
|
2082
|
+
providedIn: "root",
|
|
2083
|
+
}]
|
|
2084
|
+
}], ctorParameters: function () {
|
|
2085
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2086
|
+
type: Inject,
|
|
2087
|
+
args: ["env"]
|
|
2088
|
+
}] }];
|
|
2089
|
+
} });
|
|
2090
|
+
|
|
2091
|
+
class PackageVariationService extends BaseService {
|
|
2092
|
+
constructor(http, env) {
|
|
2093
|
+
super(http);
|
|
2094
|
+
this.http = http;
|
|
2095
|
+
this.env = env;
|
|
2096
|
+
this.urlSegments = [`${this.env.baseUrl}api/packages`, "variations"];
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
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 });
|
|
2100
|
+
PackageVariationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, providedIn: "root" });
|
|
2101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, decorators: [{
|
|
2102
|
+
type: Injectable,
|
|
2103
|
+
args: [{
|
|
2104
|
+
providedIn: "root",
|
|
2105
|
+
}]
|
|
2106
|
+
}], ctorParameters: function () {
|
|
2107
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2108
|
+
type: Inject,
|
|
2109
|
+
args: ["env"]
|
|
2110
|
+
}] }];
|
|
2111
|
+
} });
|
|
2112
|
+
|
|
2113
|
+
class SlideAddonService extends BaseService {
|
|
2114
|
+
constructor(http, env) {
|
|
2115
|
+
super(http);
|
|
2116
|
+
this.http = http;
|
|
2117
|
+
this.env = env;
|
|
2118
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "slide-addons"];
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
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 });
|
|
2122
|
+
SlideAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, providedIn: "root" });
|
|
2123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, decorators: [{
|
|
2124
|
+
type: Injectable,
|
|
2125
|
+
args: [{
|
|
2126
|
+
providedIn: "root",
|
|
2127
|
+
}]
|
|
2128
|
+
}], ctorParameters: function () {
|
|
2129
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2130
|
+
type: Inject,
|
|
2131
|
+
args: ["env"]
|
|
2132
|
+
}] }];
|
|
2133
|
+
} });
|
|
2134
|
+
|
|
2135
|
+
class CoatingValueService extends BaseService {
|
|
2136
|
+
constructor(http, env) {
|
|
2137
|
+
super(http);
|
|
2138
|
+
this.http = http;
|
|
2139
|
+
this.env = env;
|
|
2140
|
+
this.urlSegments = [`${this.env.baseUrl}api/coatings`, "coating-values"];
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
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 });
|
|
2144
|
+
CoatingValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, providedIn: "root" });
|
|
2145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, decorators: [{
|
|
2146
|
+
type: Injectable,
|
|
2147
|
+
args: [{
|
|
2148
|
+
providedIn: "root",
|
|
2149
|
+
}]
|
|
2150
|
+
}], ctorParameters: function () {
|
|
2151
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2152
|
+
type: Inject,
|
|
2153
|
+
args: ["env"]
|
|
2154
|
+
}] }];
|
|
2155
|
+
} });
|
|
2156
|
+
|
|
1896
2157
|
class PhonePipe {
|
|
1897
2158
|
transform(value, args) {
|
|
1898
2159
|
if (value && value.length >= 10) {
|
|
@@ -2221,6 +2482,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2221
2482
|
type: Input
|
|
2222
2483
|
}] } });
|
|
2223
2484
|
|
|
2485
|
+
class FormErrorMessageComponent {
|
|
2486
|
+
}
|
|
2487
|
+
FormErrorMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2488
|
+
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"] }] });
|
|
2489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, decorators: [{
|
|
2490
|
+
type: Component,
|
|
2491
|
+
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: [""] }]
|
|
2492
|
+
}], propDecorators: { control: [{
|
|
2493
|
+
type: Input
|
|
2494
|
+
}], controlName: [{
|
|
2495
|
+
type: Input
|
|
2496
|
+
}] } });
|
|
2497
|
+
|
|
2498
|
+
class ModalHeaderComponent {
|
|
2499
|
+
constructor() {
|
|
2500
|
+
this.close = new EventEmitter();
|
|
2501
|
+
}
|
|
2502
|
+
onCloseClick(e) {
|
|
2503
|
+
e.preventDefault();
|
|
2504
|
+
this.close.emit(e);
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2508
|
+
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: [""] });
|
|
2509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, decorators: [{
|
|
2510
|
+
type: Component,
|
|
2511
|
+
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: [""] }]
|
|
2512
|
+
}], propDecorators: { headerTitle: [{
|
|
2513
|
+
type: Input
|
|
2514
|
+
}], form: [{
|
|
2515
|
+
type: Input
|
|
2516
|
+
}], close: [{
|
|
2517
|
+
type: Output
|
|
2518
|
+
}] } });
|
|
2519
|
+
|
|
2224
2520
|
class SharedModule {
|
|
2225
2521
|
}
|
|
2226
2522
|
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2230,22 +2526,18 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
2230
2526
|
DisableControlDirective,
|
|
2231
2527
|
NewLinePipe,
|
|
2232
2528
|
FrameMaterialPipe,
|
|
2233
|
-
PackageSelectorComponent
|
|
2234
|
-
|
|
2235
|
-
FormsModule,
|
|
2236
|
-
ReactiveFormsModule], exports: [PhonePipe,
|
|
2529
|
+
PackageSelectorComponent,
|
|
2530
|
+
FormErrorMessageComponent,
|
|
2531
|
+
ModalHeaderComponent], imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule], exports: [PhonePipe,
|
|
2237
2532
|
FileNamePipe,
|
|
2238
2533
|
EnumPipe,
|
|
2239
2534
|
NewLinePipe,
|
|
2240
2535
|
DisableControlDirective,
|
|
2241
2536
|
FrameMaterialPipe,
|
|
2242
|
-
PackageSelectorComponent
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
FormsModule,
|
|
2247
|
-
ReactiveFormsModule
|
|
2248
|
-
]] });
|
|
2537
|
+
PackageSelectorComponent,
|
|
2538
|
+
FormErrorMessageComponent,
|
|
2539
|
+
ModalHeaderComponent] });
|
|
2540
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule]] });
|
|
2249
2541
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
2250
2542
|
type: NgModule,
|
|
2251
2543
|
args: [{
|
|
@@ -2256,14 +2548,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2256
2548
|
DisableControlDirective,
|
|
2257
2549
|
NewLinePipe,
|
|
2258
2550
|
FrameMaterialPipe,
|
|
2259
|
-
PackageSelectorComponent
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
CommonModule,
|
|
2263
|
-
DropDownsModule,
|
|
2264
|
-
FormsModule,
|
|
2265
|
-
ReactiveFormsModule
|
|
2551
|
+
PackageSelectorComponent,
|
|
2552
|
+
FormErrorMessageComponent,
|
|
2553
|
+
ModalHeaderComponent
|
|
2266
2554
|
],
|
|
2555
|
+
imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule],
|
|
2267
2556
|
exports: [
|
|
2268
2557
|
PhonePipe,
|
|
2269
2558
|
FileNamePipe,
|
|
@@ -2271,8 +2560,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2271
2560
|
NewLinePipe,
|
|
2272
2561
|
DisableControlDirective,
|
|
2273
2562
|
FrameMaterialPipe,
|
|
2274
|
-
PackageSelectorComponent
|
|
2275
|
-
|
|
2563
|
+
PackageSelectorComponent,
|
|
2564
|
+
FormErrorMessageComponent,
|
|
2565
|
+
ModalHeaderComponent
|
|
2566
|
+
],
|
|
2276
2567
|
}]
|
|
2277
2568
|
}] });
|
|
2278
2569
|
|
|
@@ -2334,10 +2625,10 @@ class NotificationBarComponent {
|
|
|
2334
2625
|
}
|
|
2335
2626
|
}
|
|
2336
2627
|
NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2337
|
-
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:
|
|
2628
|
+
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] });
|
|
2338
2629
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
|
|
2339
2630
|
type: Component,
|
|
2340
|
-
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:
|
|
2631
|
+
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"] }]
|
|
2341
2632
|
}], ctorParameters: function () { return [{ type: NotificationService }]; } });
|
|
2342
2633
|
|
|
2343
2634
|
class NotificationModule {
|
|
@@ -2376,5 +2667,5 @@ var NotificationType;
|
|
|
2376
2667
|
* Generated bundle index. Do not edit.
|
|
2377
2668
|
*/
|
|
2378
2669
|
|
|
2379
|
-
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 };
|
|
2670
|
+
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 };
|
|
2380
2671
|
//# sourceMappingURL=gunsmith-common.mjs.map
|