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 {
|
|
@@ -1094,7 +1142,10 @@ class WaitlistService {
|
|
|
1094
1142
|
deleteWaitlistItem(id) {
|
|
1095
1143
|
return this.http.delete(`${this.url}/${id}`);
|
|
1096
1144
|
}
|
|
1097
|
-
doWaitlistAction(id, actionId) {
|
|
1145
|
+
doWaitlistAction(id, actionId, reason = null) {
|
|
1146
|
+
if (reason) {
|
|
1147
|
+
return this.http.get(`${this.url}/${id}/actions/${actionId}?reason=${reason}`);
|
|
1148
|
+
}
|
|
1098
1149
|
return this.http.get(`${this.url}/${id}/actions/${actionId}`);
|
|
1099
1150
|
}
|
|
1100
1151
|
retrieveProjectPdf(id, projectId) {
|
|
@@ -1146,6 +1197,9 @@ class ConfigurationService {
|
|
|
1146
1197
|
updateConfigs(configuration) {
|
|
1147
1198
|
return this.http.put(`${this.url}/1`, configuration);
|
|
1148
1199
|
}
|
|
1200
|
+
syncWooCommerce() {
|
|
1201
|
+
return this.http.post(`${this.url}/sync-woocommerce`, null);
|
|
1202
|
+
}
|
|
1149
1203
|
}
|
|
1150
1204
|
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 });
|
|
1151
1205
|
ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
|
|
@@ -1180,6 +1234,9 @@ class WaitlistCustomerService {
|
|
|
1180
1234
|
params: { token: token }
|
|
1181
1235
|
});
|
|
1182
1236
|
}
|
|
1237
|
+
createWaitlistItem(waitlistItem) {
|
|
1238
|
+
return this.http.post(this.url, waitlistItem);
|
|
1239
|
+
}
|
|
1183
1240
|
}
|
|
1184
1241
|
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 });
|
|
1185
1242
|
WaitlistCustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, providedIn: 'root' });
|
|
@@ -1300,78 +1357,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1300
1357
|
args: ['env']
|
|
1301
1358
|
}] }]; } });
|
|
1302
1359
|
|
|
1303
|
-
class
|
|
1304
|
-
constructor(http
|
|
1360
|
+
class BaseService {
|
|
1361
|
+
constructor(http) {
|
|
1305
1362
|
this.http = http;
|
|
1306
|
-
this.env = env;
|
|
1307
|
-
this.url = this.env.baseUrl + 'api/milling-types';
|
|
1308
1363
|
}
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
params[
|
|
1364
|
+
getUrl(...params) {
|
|
1365
|
+
let baseUrl = this.urlSegments[0];
|
|
1366
|
+
for (let i = 0; i < params.length; i++) {
|
|
1367
|
+
baseUrl += `/${params[i]}`;
|
|
1368
|
+
if (this.urlSegments.length > i + 1) {
|
|
1369
|
+
baseUrl += `/${this.urlSegments[i + 1]}`;
|
|
1370
|
+
}
|
|
1313
1371
|
}
|
|
1314
|
-
return
|
|
1315
|
-
params: params
|
|
1316
|
-
});
|
|
1372
|
+
return baseUrl;
|
|
1317
1373
|
}
|
|
1318
|
-
|
|
1319
|
-
return this.http.get(
|
|
1374
|
+
getAll(...params) {
|
|
1375
|
+
return this.http.get(this.getUrl(...params));
|
|
1320
1376
|
}
|
|
1321
|
-
|
|
1322
|
-
return this.http.
|
|
1377
|
+
getAllWithParams(queryParams, ...params) {
|
|
1378
|
+
return this.http.get(this.getUrl(...params), { params: queryParams });
|
|
1323
1379
|
}
|
|
1324
|
-
|
|
1325
|
-
return this.http.
|
|
1380
|
+
get(...params) {
|
|
1381
|
+
return this.http.get(this.getUrl(...params));
|
|
1326
1382
|
}
|
|
1327
|
-
|
|
1328
|
-
return this.http.
|
|
1383
|
+
create(item, ...params) {
|
|
1384
|
+
return this.http.post(this.getUrl(...params), item);
|
|
1385
|
+
}
|
|
1386
|
+
update(item, ...params) {
|
|
1387
|
+
return this.http.put(this.getUrl(...params), item);
|
|
1388
|
+
}
|
|
1389
|
+
delete(...params) {
|
|
1390
|
+
return this.http.delete(this.getUrl(...params));
|
|
1329
1391
|
}
|
|
1330
1392
|
}
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
1393
|
+
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1394
|
+
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
1395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
|
|
1334
1396
|
type: Injectable,
|
|
1335
1397
|
args: [{
|
|
1336
1398
|
providedIn: 'root'
|
|
1337
1399
|
}]
|
|
1400
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
1401
|
+
|
|
1402
|
+
class MillingTypeService extends BaseService {
|
|
1403
|
+
constructor(http, env) {
|
|
1404
|
+
super(http);
|
|
1405
|
+
this.http = http;
|
|
1406
|
+
this.env = env;
|
|
1407
|
+
this.urlSegments = [`${this.env.baseUrl}api/milling-types`];
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
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 });
|
|
1411
|
+
MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: "root" });
|
|
1412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
|
|
1413
|
+
type: Injectable,
|
|
1414
|
+
args: [{
|
|
1415
|
+
providedIn: "root",
|
|
1416
|
+
}]
|
|
1338
1417
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1339
1418
|
type: Inject,
|
|
1340
|
-
args: [
|
|
1419
|
+
args: ["env"]
|
|
1341
1420
|
}] }]; } });
|
|
1342
1421
|
|
|
1343
|
-
class CoatingService {
|
|
1422
|
+
class CoatingService extends BaseService {
|
|
1344
1423
|
constructor(http, env) {
|
|
1424
|
+
super(http);
|
|
1345
1425
|
this.http = http;
|
|
1346
1426
|
this.env = env;
|
|
1347
|
-
this.
|
|
1348
|
-
}
|
|
1349
|
-
readCoatings(includeInactive = false) {
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
}
|
|
1357
|
-
readCoating(id) {
|
|
1358
|
-
|
|
1359
|
-
}
|
|
1360
|
-
createCoating(coating) {
|
|
1361
|
-
|
|
1362
|
-
}
|
|
1363
|
-
updateCoating(id, coating) {
|
|
1364
|
-
|
|
1365
|
-
}
|
|
1366
|
-
deleteCoating(id) {
|
|
1367
|
-
|
|
1368
|
-
}
|
|
1427
|
+
this.urlSegments = [`${this.env.baseUrl}api/coatings`];
|
|
1428
|
+
}
|
|
1429
|
+
// readCoatings(includeInactive = false): Observable<Coating[]> {
|
|
1430
|
+
// const params = {
|
|
1431
|
+
// includeInactive: includeInactive.toString(),
|
|
1432
|
+
// };
|
|
1433
|
+
// return this.http.get<Coating[]>(this.url, {
|
|
1434
|
+
// params: params,
|
|
1435
|
+
// });
|
|
1436
|
+
// }
|
|
1437
|
+
// readCoating(id: number): Observable<Coating> {
|
|
1438
|
+
// return this.http.get<Coating>(`${this.url}/${id}`);
|
|
1439
|
+
// }
|
|
1440
|
+
// createCoating(coating: Coating): Observable<Coating> {
|
|
1441
|
+
// return this.http.post<Coating>(this.url, coating);
|
|
1442
|
+
// }
|
|
1443
|
+
// updateCoating(id: number, coating: Coating): Observable<Coating> {
|
|
1444
|
+
// return this.http.put<Coating>(`${this.url}/${id}`, coating);
|
|
1445
|
+
// }
|
|
1446
|
+
// deleteCoating(id: number): Observable<any> {
|
|
1447
|
+
// return this.http.delete(`${this.url}/${id}`);
|
|
1448
|
+
// }
|
|
1369
1449
|
// Coating Values
|
|
1370
1450
|
readCoatingValues(coatingId, includeInactive = false) {
|
|
1371
1451
|
return this.http.get(`${this.url}/${coatingId}/coating-values`, {
|
|
1372
1452
|
params: {
|
|
1373
|
-
includeInactive: includeInactive.toString()
|
|
1374
|
-
}
|
|
1453
|
+
includeInactive: includeInactive.toString(),
|
|
1454
|
+
},
|
|
1375
1455
|
});
|
|
1376
1456
|
}
|
|
1377
1457
|
readCoatingValue(coatingId, coatingValueId) {
|
|
@@ -1387,16 +1467,16 @@ class CoatingService {
|
|
|
1387
1467
|
return this.http.delete(`${this.url}/${coatingId}/coating-values/${coatingValueId}`);
|
|
1388
1468
|
}
|
|
1389
1469
|
}
|
|
1390
|
-
CoatingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, deps: [{ token: i1.HttpClient }, { token:
|
|
1391
|
-
CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn:
|
|
1470
|
+
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 });
|
|
1471
|
+
CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: "root" });
|
|
1392
1472
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, decorators: [{
|
|
1393
1473
|
type: Injectable,
|
|
1394
1474
|
args: [{
|
|
1395
|
-
providedIn:
|
|
1475
|
+
providedIn: "root",
|
|
1396
1476
|
}]
|
|
1397
1477
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1398
1478
|
type: Inject,
|
|
1399
|
-
args: [
|
|
1479
|
+
args: ["env"]
|
|
1400
1480
|
}] }]; } });
|
|
1401
1481
|
|
|
1402
1482
|
class MaterialService {
|
|
@@ -1709,45 +1789,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1709
1789
|
args: ['env']
|
|
1710
1790
|
}] }]; } });
|
|
1711
1791
|
|
|
1712
|
-
class BaseService {
|
|
1713
|
-
constructor(http) {
|
|
1714
|
-
this.http = http;
|
|
1715
|
-
}
|
|
1716
|
-
getUrl(...params) {
|
|
1717
|
-
let baseUrl = this.urlSegments[0];
|
|
1718
|
-
for (let i = 0; i < params.length; i++) {
|
|
1719
|
-
baseUrl += `/${params[i]}`;
|
|
1720
|
-
if (this.urlSegments.length > i + 1) {
|
|
1721
|
-
baseUrl += `/${this.urlSegments[i + 1]}`;
|
|
1722
|
-
}
|
|
1723
|
-
}
|
|
1724
|
-
return baseUrl;
|
|
1725
|
-
}
|
|
1726
|
-
getAll(...params) {
|
|
1727
|
-
return this.http.get(this.getUrl(...params));
|
|
1728
|
-
}
|
|
1729
|
-
get(...params) {
|
|
1730
|
-
return this.http.get(this.getUrl(...params));
|
|
1731
|
-
}
|
|
1732
|
-
create(item, ...params) {
|
|
1733
|
-
return this.http.post(this.getUrl(...params), item);
|
|
1734
|
-
}
|
|
1735
|
-
update(item, ...params) {
|
|
1736
|
-
return this.http.put(this.getUrl(...params), item);
|
|
1737
|
-
}
|
|
1738
|
-
delete(...params) {
|
|
1739
|
-
return this.http.delete(this.getUrl(...params));
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1743
|
-
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
1744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
|
|
1745
|
-
type: Injectable,
|
|
1746
|
-
args: [{
|
|
1747
|
-
providedIn: 'root'
|
|
1748
|
-
}]
|
|
1749
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
1750
|
-
|
|
1751
1792
|
class WorkOrderShippingItemService extends BaseService {
|
|
1752
1793
|
constructor(http, env) {
|
|
1753
1794
|
super(http);
|
|
@@ -1833,6 +1874,206 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1833
1874
|
args: ['env']
|
|
1834
1875
|
}] }]; } });
|
|
1835
1876
|
|
|
1877
|
+
class MountTypeService extends BaseService {
|
|
1878
|
+
constructor(http, env) {
|
|
1879
|
+
super(http);
|
|
1880
|
+
this.http = http;
|
|
1881
|
+
this.env = env;
|
|
1882
|
+
this.urlSegments = [`${this.env.baseUrl}api/mount-types`];
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
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 });
|
|
1886
|
+
MountTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, providedIn: "root" });
|
|
1887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, decorators: [{
|
|
1888
|
+
type: Injectable,
|
|
1889
|
+
args: [{
|
|
1890
|
+
providedIn: "root",
|
|
1891
|
+
}]
|
|
1892
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1893
|
+
type: Inject,
|
|
1894
|
+
args: ["env"]
|
|
1895
|
+
}] }]; } });
|
|
1896
|
+
|
|
1897
|
+
class SightService extends BaseService {
|
|
1898
|
+
constructor(http, env) {
|
|
1899
|
+
super(http);
|
|
1900
|
+
this.http = http;
|
|
1901
|
+
this.env = env;
|
|
1902
|
+
this.urlSegments = [`${this.env.baseUrl}api/sights`];
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
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 });
|
|
1906
|
+
SightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, providedIn: 'root' });
|
|
1907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, decorators: [{
|
|
1908
|
+
type: Injectable,
|
|
1909
|
+
args: [{
|
|
1910
|
+
providedIn: 'root'
|
|
1911
|
+
}]
|
|
1912
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1913
|
+
type: Inject,
|
|
1914
|
+
args: ["env"]
|
|
1915
|
+
}] }]; } });
|
|
1916
|
+
|
|
1917
|
+
class SightTypeService extends BaseService {
|
|
1918
|
+
constructor(http, env) {
|
|
1919
|
+
super(http);
|
|
1920
|
+
this.http = http;
|
|
1921
|
+
this.env = env;
|
|
1922
|
+
this.urlSegments = [`${this.env.baseUrl}api/sight-types`];
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
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 });
|
|
1926
|
+
SightTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, providedIn: 'root' });
|
|
1927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, decorators: [{
|
|
1928
|
+
type: Injectable,
|
|
1929
|
+
args: [{
|
|
1930
|
+
providedIn: 'root'
|
|
1931
|
+
}]
|
|
1932
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1933
|
+
type: Inject,
|
|
1934
|
+
args: ["env"]
|
|
1935
|
+
}] }]; } });
|
|
1936
|
+
|
|
1937
|
+
class SightMaterialService extends BaseService {
|
|
1938
|
+
constructor(http, env) {
|
|
1939
|
+
super(http);
|
|
1940
|
+
this.http = http;
|
|
1941
|
+
this.env = env;
|
|
1942
|
+
this.urlSegments = [`${this.env.baseUrl}api/sight-materials`];
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
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 });
|
|
1946
|
+
SightMaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, providedIn: "root" });
|
|
1947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, decorators: [{
|
|
1948
|
+
type: Injectable,
|
|
1949
|
+
args: [{
|
|
1950
|
+
providedIn: "root",
|
|
1951
|
+
}]
|
|
1952
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1953
|
+
type: Inject,
|
|
1954
|
+
args: ["env"]
|
|
1955
|
+
}] }]; } });
|
|
1956
|
+
|
|
1957
|
+
class FirearmOpticService extends BaseService {
|
|
1958
|
+
constructor(http, env) {
|
|
1959
|
+
super(http);
|
|
1960
|
+
this.http = http;
|
|
1961
|
+
this.env = env;
|
|
1962
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
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 });
|
|
1966
|
+
FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });
|
|
1967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, decorators: [{
|
|
1968
|
+
type: Injectable,
|
|
1969
|
+
args: [{
|
|
1970
|
+
providedIn: "root",
|
|
1971
|
+
}]
|
|
1972
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1973
|
+
type: Inject,
|
|
1974
|
+
args: ["env"]
|
|
1975
|
+
}] }]; } });
|
|
1976
|
+
|
|
1977
|
+
class FirearmSightService extends BaseService {
|
|
1978
|
+
constructor(http, env) {
|
|
1979
|
+
super(http);
|
|
1980
|
+
this.http = http;
|
|
1981
|
+
this.env = env;
|
|
1982
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "sights"];
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
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 });
|
|
1986
|
+
FirearmSightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, providedIn: "root" });
|
|
1987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, decorators: [{
|
|
1988
|
+
type: Injectable,
|
|
1989
|
+
args: [{
|
|
1990
|
+
providedIn: "root",
|
|
1991
|
+
}]
|
|
1992
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1993
|
+
type: Inject,
|
|
1994
|
+
args: ["env"]
|
|
1995
|
+
}] }]; } });
|
|
1996
|
+
|
|
1997
|
+
class PackageOptionalItemService extends BaseService {
|
|
1998
|
+
constructor(http, env) {
|
|
1999
|
+
super(http);
|
|
2000
|
+
this.http = http;
|
|
2001
|
+
this.env = env;
|
|
2002
|
+
this.urlSegments = [`${this.env.baseUrl}api/packages`, "optional-items"];
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
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 });
|
|
2006
|
+
PackageOptionalItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, providedIn: "root" });
|
|
2007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, decorators: [{
|
|
2008
|
+
type: Injectable,
|
|
2009
|
+
args: [{
|
|
2010
|
+
providedIn: "root",
|
|
2011
|
+
}]
|
|
2012
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2013
|
+
type: Inject,
|
|
2014
|
+
args: ["env"]
|
|
2015
|
+
}] }]; } });
|
|
2016
|
+
|
|
2017
|
+
class PackageVariationService extends BaseService {
|
|
2018
|
+
constructor(http, env) {
|
|
2019
|
+
super(http);
|
|
2020
|
+
this.http = http;
|
|
2021
|
+
this.env = env;
|
|
2022
|
+
this.urlSegments = [`${this.env.baseUrl}api/packages`, "variations"];
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
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 });
|
|
2026
|
+
PackageVariationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, providedIn: "root" });
|
|
2027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, decorators: [{
|
|
2028
|
+
type: Injectable,
|
|
2029
|
+
args: [{
|
|
2030
|
+
providedIn: "root",
|
|
2031
|
+
}]
|
|
2032
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2033
|
+
type: Inject,
|
|
2034
|
+
args: ["env"]
|
|
2035
|
+
}] }]; } });
|
|
2036
|
+
|
|
2037
|
+
class SlideAddonService extends BaseService {
|
|
2038
|
+
constructor(http, env) {
|
|
2039
|
+
super(http);
|
|
2040
|
+
this.http = http;
|
|
2041
|
+
this.env = env;
|
|
2042
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "slide-addons"];
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
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 });
|
|
2046
|
+
SlideAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, providedIn: "root" });
|
|
2047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, decorators: [{
|
|
2048
|
+
type: Injectable,
|
|
2049
|
+
args: [{
|
|
2050
|
+
providedIn: "root",
|
|
2051
|
+
}]
|
|
2052
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2053
|
+
type: Inject,
|
|
2054
|
+
args: ["env"]
|
|
2055
|
+
}] }]; } });
|
|
2056
|
+
|
|
2057
|
+
class CoatingValueService extends BaseService {
|
|
2058
|
+
constructor(http, env) {
|
|
2059
|
+
super(http);
|
|
2060
|
+
this.http = http;
|
|
2061
|
+
this.env = env;
|
|
2062
|
+
this.urlSegments = [`${this.env.baseUrl}api/coatings`, "coating-values"];
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
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 });
|
|
2066
|
+
CoatingValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, providedIn: "root" });
|
|
2067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, decorators: [{
|
|
2068
|
+
type: Injectable,
|
|
2069
|
+
args: [{
|
|
2070
|
+
providedIn: "root",
|
|
2071
|
+
}]
|
|
2072
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2073
|
+
type: Inject,
|
|
2074
|
+
args: ["env"]
|
|
2075
|
+
}] }]; } });
|
|
2076
|
+
|
|
1836
2077
|
class PhonePipe {
|
|
1837
2078
|
transform(value, args) {
|
|
1838
2079
|
if (value && value.length >= 10) {
|
|
@@ -2160,6 +2401,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2160
2401
|
type: Input
|
|
2161
2402
|
}] } });
|
|
2162
2403
|
|
|
2404
|
+
class FormErrorMessageComponent {
|
|
2405
|
+
}
|
|
2406
|
+
FormErrorMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2407
|
+
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"] }] });
|
|
2408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, decorators: [{
|
|
2409
|
+
type: Component,
|
|
2410
|
+
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: [""] }]
|
|
2411
|
+
}], propDecorators: { control: [{
|
|
2412
|
+
type: Input
|
|
2413
|
+
}], controlName: [{
|
|
2414
|
+
type: Input
|
|
2415
|
+
}] } });
|
|
2416
|
+
|
|
2417
|
+
class ModalHeaderComponent {
|
|
2418
|
+
constructor() {
|
|
2419
|
+
this.close = new EventEmitter();
|
|
2420
|
+
}
|
|
2421
|
+
onCloseClick(e) {
|
|
2422
|
+
e.preventDefault();
|
|
2423
|
+
this.close.emit(e);
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2427
|
+
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: [""] });
|
|
2428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, decorators: [{
|
|
2429
|
+
type: Component,
|
|
2430
|
+
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: [""] }]
|
|
2431
|
+
}], propDecorators: { headerTitle: [{
|
|
2432
|
+
type: Input
|
|
2433
|
+
}], form: [{
|
|
2434
|
+
type: Input
|
|
2435
|
+
}], close: [{
|
|
2436
|
+
type: Output
|
|
2437
|
+
}] } });
|
|
2438
|
+
|
|
2163
2439
|
class SharedModule {
|
|
2164
2440
|
}
|
|
2165
2441
|
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2169,22 +2445,18 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
2169
2445
|
DisableControlDirective,
|
|
2170
2446
|
NewLinePipe,
|
|
2171
2447
|
FrameMaterialPipe,
|
|
2172
|
-
PackageSelectorComponent
|
|
2173
|
-
|
|
2174
|
-
FormsModule,
|
|
2175
|
-
ReactiveFormsModule], exports: [PhonePipe,
|
|
2448
|
+
PackageSelectorComponent,
|
|
2449
|
+
FormErrorMessageComponent,
|
|
2450
|
+
ModalHeaderComponent], imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule], exports: [PhonePipe,
|
|
2176
2451
|
FileNamePipe,
|
|
2177
2452
|
EnumPipe,
|
|
2178
2453
|
NewLinePipe,
|
|
2179
2454
|
DisableControlDirective,
|
|
2180
2455
|
FrameMaterialPipe,
|
|
2181
|
-
PackageSelectorComponent
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
FormsModule,
|
|
2186
|
-
ReactiveFormsModule
|
|
2187
|
-
]] });
|
|
2456
|
+
PackageSelectorComponent,
|
|
2457
|
+
FormErrorMessageComponent,
|
|
2458
|
+
ModalHeaderComponent] });
|
|
2459
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule]] });
|
|
2188
2460
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
2189
2461
|
type: NgModule,
|
|
2190
2462
|
args: [{
|
|
@@ -2195,14 +2467,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2195
2467
|
DisableControlDirective,
|
|
2196
2468
|
NewLinePipe,
|
|
2197
2469
|
FrameMaterialPipe,
|
|
2198
|
-
PackageSelectorComponent
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
CommonModule,
|
|
2202
|
-
DropDownsModule,
|
|
2203
|
-
FormsModule,
|
|
2204
|
-
ReactiveFormsModule
|
|
2470
|
+
PackageSelectorComponent,
|
|
2471
|
+
FormErrorMessageComponent,
|
|
2472
|
+
ModalHeaderComponent
|
|
2205
2473
|
],
|
|
2474
|
+
imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule],
|
|
2206
2475
|
exports: [
|
|
2207
2476
|
PhonePipe,
|
|
2208
2477
|
FileNamePipe,
|
|
@@ -2210,8 +2479,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2210
2479
|
NewLinePipe,
|
|
2211
2480
|
DisableControlDirective,
|
|
2212
2481
|
FrameMaterialPipe,
|
|
2213
|
-
PackageSelectorComponent
|
|
2214
|
-
|
|
2482
|
+
PackageSelectorComponent,
|
|
2483
|
+
FormErrorMessageComponent,
|
|
2484
|
+
ModalHeaderComponent
|
|
2485
|
+
],
|
|
2215
2486
|
}]
|
|
2216
2487
|
}] });
|
|
2217
2488
|
|
|
@@ -2273,10 +2544,10 @@ class NotificationBarComponent {
|
|
|
2273
2544
|
}
|
|
2274
2545
|
}
|
|
2275
2546
|
NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2276
|
-
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:
|
|
2547
|
+
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] });
|
|
2277
2548
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
|
|
2278
2549
|
type: Component,
|
|
2279
|
-
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:
|
|
2550
|
+
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"] }]
|
|
2280
2551
|
}], ctorParameters: function () { return [{ type: NotificationService }]; } });
|
|
2281
2552
|
|
|
2282
2553
|
class NotificationModule {
|
|
@@ -2315,5 +2586,5 @@ var NotificationType;
|
|
|
2315
2586
|
* Generated bundle index. Do not edit.
|
|
2316
2587
|
*/
|
|
2317
2588
|
|
|
2318
|
-
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 };
|
|
2589
|
+
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 };
|
|
2319
2590
|
//# sourceMappingURL=gunsmith-common.mjs.map
|