@dra2020/dra-types 1.8.146 → 1.8.149
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/dist/all.d.ts +2 -0
- package/dist/datasource.d.ts +13 -0
- package/dist/dra-types.js +71 -1
- package/dist/dra-types.js.map +1 -1
- package/lib/all.ts +2 -0
- package/lib/datasource.ts +74 -0
- package/package.json +2 -2
package/dist/all.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function dxBaseCycle(dx: string): string;
|
|
2
|
+
export declare function dxValid(dx: string): string;
|
|
3
|
+
export interface SupportMap {
|
|
4
|
+
dataset: boolean;
|
|
5
|
+
blockediting: boolean;
|
|
6
|
+
citypainting: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Support: {
|
|
9
|
+
[dx: string]: SupportMap;
|
|
10
|
+
};
|
|
11
|
+
export declare function dxSupportsDataset(dx: string): boolean;
|
|
12
|
+
export declare function dxSupportsBlockediting(dx: string): boolean;
|
|
13
|
+
export declare function dxSupportsCitypainting(dx: string): boolean;
|
package/dist/dra-types.js
CHANGED
|
@@ -1506,6 +1506,74 @@ function usesPrisonerAdjust(state, datasource, planType) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
1508
|
|
|
1509
|
+
/***/ }),
|
|
1510
|
+
|
|
1511
|
+
/***/ "./lib/datasource.ts":
|
|
1512
|
+
/*!***************************!*\
|
|
1513
|
+
!*** ./lib/datasource.ts ***!
|
|
1514
|
+
\***************************/
|
|
1515
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1519
|
+
exports.Support = void 0;
|
|
1520
|
+
exports.dxBaseCycle = dxBaseCycle;
|
|
1521
|
+
exports.dxValid = dxValid;
|
|
1522
|
+
exports.dxSupportsDataset = dxSupportsDataset;
|
|
1523
|
+
exports.dxSupportsBlockediting = dxSupportsBlockediting;
|
|
1524
|
+
exports.dxSupportsCitypainting = dxSupportsCitypainting;
|
|
1525
|
+
function dxBaseCycle(dx) {
|
|
1526
|
+
return dx === '2016_BG' ? '2010_VD' : dx;
|
|
1527
|
+
}
|
|
1528
|
+
function dxValid(dx) {
|
|
1529
|
+
switch (dx) {
|
|
1530
|
+
case '2010_VD':
|
|
1531
|
+
case '2016_BG':
|
|
1532
|
+
case '2020_VD':
|
|
1533
|
+
case '2030_VD':
|
|
1534
|
+
return dx;
|
|
1535
|
+
default:
|
|
1536
|
+
return '';
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
exports.Support = {
|
|
1540
|
+
['2010_VD']: {
|
|
1541
|
+
dataset: false,
|
|
1542
|
+
blockediting: false,
|
|
1543
|
+
citypainting: false,
|
|
1544
|
+
},
|
|
1545
|
+
['2016_BG']: {
|
|
1546
|
+
dataset: false,
|
|
1547
|
+
blockediting: false,
|
|
1548
|
+
citypainting: false,
|
|
1549
|
+
},
|
|
1550
|
+
['2020_VD']: {
|
|
1551
|
+
dataset: true,
|
|
1552
|
+
blockediting: true,
|
|
1553
|
+
citypainting: true,
|
|
1554
|
+
},
|
|
1555
|
+
['2030_VD']: {
|
|
1556
|
+
dataset: true,
|
|
1557
|
+
blockediting: true,
|
|
1558
|
+
citypainting: true,
|
|
1559
|
+
},
|
|
1560
|
+
['']: {
|
|
1561
|
+
dataset: false,
|
|
1562
|
+
blockediting: false,
|
|
1563
|
+
citypainting: false,
|
|
1564
|
+
},
|
|
1565
|
+
};
|
|
1566
|
+
function dxSupportsDataset(dx) {
|
|
1567
|
+
return exports.Support[dxValid(dx)].dataset;
|
|
1568
|
+
}
|
|
1569
|
+
function dxSupportsBlockediting(dx) {
|
|
1570
|
+
return exports.Support[dxValid(dx)].blockediting;
|
|
1571
|
+
}
|
|
1572
|
+
function dxSupportsCitypainting(dx) {
|
|
1573
|
+
return exports.Support[dxValid(dx)].citypainting;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
|
|
1509
1577
|
/***/ }),
|
|
1510
1578
|
|
|
1511
1579
|
/***/ "./lib/dra-types.ts":
|
|
@@ -2931,13 +2999,15 @@ var exports = __webpack_exports__;
|
|
|
2931
2999
|
\********************/
|
|
2932
3000
|
|
|
2933
3001
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2934
|
-
exports.CM = exports.PF = exports.DT = void 0;
|
|
3002
|
+
exports.DX = exports.CM = exports.PF = exports.DT = void 0;
|
|
2935
3003
|
const DT = __webpack_require__(/*! ./alldt */ "./lib/alldt.ts");
|
|
2936
3004
|
exports.DT = DT;
|
|
2937
3005
|
const PF = __webpack_require__(/*! ./packedfields */ "./lib/packedfields.ts");
|
|
2938
3006
|
exports.PF = PF;
|
|
2939
3007
|
const CM = __webpack_require__(/*! ./colormgr */ "./lib/colormgr.ts");
|
|
2940
3008
|
exports.CM = CM;
|
|
3009
|
+
const DX = __webpack_require__(/*! ./datasource */ "./lib/datasource.ts");
|
|
3010
|
+
exports.DX = DX;
|
|
2941
3011
|
|
|
2942
3012
|
})();
|
|
2943
3013
|
|