gunsmith-common 2.1.25 → 2.1.27
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/shared/types/firearm-series.mjs +4 -2
- package/esm2020/shared/types/index.mjs +2 -1
- package/esm2020/shared/types/mount-type.mjs +2 -1
- package/esm2020/shared/types/optic.mjs +2 -1
- package/esm2020/shared/types/shield-rms-options.mjs +6 -0
- package/esm2020/shared/types/sight-type.mjs +2 -1
- package/esm2020/shared/utils/enum-object.mjs +2 -2
- package/fesm2015/gunsmith-common.mjs +14 -3
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +14 -3
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/types/firearm-series.d.ts +3 -1
- package/shared/types/index.d.ts +1 -0
- package/shared/types/mount-type.d.ts +2 -1
- package/shared/types/optic.d.ts +1 -0
- package/shared/types/shield-rms-options.d.ts +4 -0
- package/shared/types/sight-type.d.ts +2 -1
|
@@ -20,7 +20,7 @@ function convertEnumToObjectArray(value) {
|
|
|
20
20
|
let enumObject = [];
|
|
21
21
|
for (let n in value) {
|
|
22
22
|
if (typeof value[n] === 'number') {
|
|
23
|
-
enumObject.push({ id: value[n], name: n.replace(/([A-Z])/g, ' $
|
|
23
|
+
enumObject.push({ id: value[n], name: n.replace(/([^A-Z])([A-Z])/g, '$1 $2').trim() });
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
return enumObject;
|
|
@@ -247,6 +247,7 @@ var WorkOrderAction;
|
|
|
247
247
|
|
|
248
248
|
class Optic {
|
|
249
249
|
constructor() {
|
|
250
|
+
this.isAvailable = false;
|
|
250
251
|
this.active = true;
|
|
251
252
|
}
|
|
252
253
|
}
|
|
@@ -282,12 +283,14 @@ var MountType;
|
|
|
282
283
|
MountType[MountType["Plate"] = 1] = "Plate";
|
|
283
284
|
MountType[MountType["DeltaPointPro"] = 2] = "DeltaPointPro";
|
|
284
285
|
MountType[MountType["ShieldRMS"] = 3] = "ShieldRMS";
|
|
286
|
+
MountType[MountType["PlateBUIS"] = 4] = "PlateBUIS";
|
|
285
287
|
})(MountType || (MountType = {}));
|
|
286
288
|
|
|
287
289
|
var SightType;
|
|
288
290
|
(function (SightType) {
|
|
289
291
|
SightType[SightType["Black"] = 0] = "Black";
|
|
290
292
|
SightType[SightType["Tritium"] = 1] = "Tritium";
|
|
293
|
+
SightType[SightType["FiberOptic"] = 2] = "FiberOptic";
|
|
291
294
|
})(SightType || (SightType = {}));
|
|
292
295
|
|
|
293
296
|
class MillingDetail {
|
|
@@ -306,7 +309,9 @@ var RearSightPosition;
|
|
|
306
309
|
class FirearmSeries {
|
|
307
310
|
constructor() {
|
|
308
311
|
this.active = true;
|
|
309
|
-
this.
|
|
312
|
+
this.blackFrontSights = false;
|
|
313
|
+
this.tritiumFrontSights = false;
|
|
314
|
+
this.fiberOpticFrontSights = false;
|
|
310
315
|
this.firearmSeriesOptics = [];
|
|
311
316
|
}
|
|
312
317
|
}
|
|
@@ -395,6 +400,12 @@ class JFile {
|
|
|
395
400
|
class GunPartOption {
|
|
396
401
|
}
|
|
397
402
|
|
|
403
|
+
var ShieldRMSOptions;
|
|
404
|
+
(function (ShieldRMSOptions) {
|
|
405
|
+
ShieldRMSOptions[ShieldRMSOptions["KeepBUIS"] = 0] = "KeepBUIS";
|
|
406
|
+
ShieldRMSOptions[ShieldRMSOptions["RemoveBUIS"] = 1] = "RemoveBUIS";
|
|
407
|
+
})(ShieldRMSOptions || (ShieldRMSOptions = {}));
|
|
408
|
+
|
|
398
409
|
function adjustHoliday(finishDate, holidays) {
|
|
399
410
|
while (holidays.map(h => new Date(h.holiday)).findIndex(h => DateTime.fromJSDate(h) === DateTime.fromJSDate(finishDate)) !== -1) {
|
|
400
411
|
do {
|
|
@@ -1803,5 +1814,5 @@ var NotificationType;
|
|
|
1803
1814
|
* Generated bundle index. Do not edit.
|
|
1804
1815
|
*/
|
|
1805
1816
|
|
|
1806
|
-
export { BundleItem, ChangeOrderStatus, Coating, CoatingService, CoatingValue, Configuration, ConfigurationService, CosmeticMilling, CosmeticMillingService, 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, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, RearSightPosition, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, SightType, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderHistory, WorkOrderRefinishItem, WorkOrderService, WorkOrderStatus, WorkOrderType, calculateFinishDate, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
1817
|
+
export { BundleItem, ChangeOrderStatus, Coating, CoatingService, CoatingValue, Configuration, ConfigurationService, CosmeticMilling, CosmeticMillingService, 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, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, RearSightPosition, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, SightType, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderHistory, WorkOrderRefinishItem, WorkOrderService, WorkOrderStatus, WorkOrderType, calculateFinishDate, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
1807
1818
|
//# sourceMappingURL=gunsmith-common.mjs.map
|