@bottlebooks/valid-values 1.3.0 → 1.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/CHANGELOG.md +6 -0
- package/dist/main.js +3 -3
- package/dist/validValues/capsuleMaterial.d.ts +26 -0
- package/dist/validValues/capsuleMaterial.d.ts.map +1 -0
- package/dist/validValues/capsuleMaterial.js +117 -0
- package/dist/validValues/caseMaterial.d.ts +26 -0
- package/dist/validValues/caseMaterial.d.ts.map +1 -0
- package/dist/validValues/caseMaterial.js +37 -0
- package/dist/validValues/closureType.d.ts +26 -0
- package/dist/validValues/closureType.d.ts.map +1 -0
- package/dist/validValues/closureType.js +137 -0
- package/dist/validValues/containerColor.d.ts +23 -0
- package/dist/validValues/containerColor.d.ts.map +1 -0
- package/dist/validValues/containerColor.js +97 -0
- package/dist/validValues/containerType.d.ts +23 -0
- package/dist/validValues/containerType.d.ts.map +1 -0
- package/dist/validValues/containerType.js +67 -0
- package/dist/validValues/designation.js +2 -2
- package/dist/validValues/giftPackagingMaterial.d.ts +26 -0
- package/dist/validValues/giftPackagingMaterial.d.ts.map +1 -0
- package/dist/validValues/giftPackagingMaterial.js +37 -0
- package/dist/validValues/json/capsuleMaterial.d.ts +2 -0
- package/dist/validValues/json/capsuleMaterial.d.ts.map +1 -0
- package/dist/validValues/json/caseMaterial.d.ts +2 -0
- package/dist/validValues/json/caseMaterial.d.ts.map +1 -0
- package/dist/validValues/json/closureType.d.ts +2 -0
- package/dist/validValues/json/closureType.d.ts.map +1 -0
- package/dist/validValues/json/containerColor.d.ts +2 -0
- package/dist/validValues/json/containerColor.d.ts.map +1 -0
- package/dist/validValues/json/containerType.d.ts +2 -0
- package/dist/validValues/json/containerType.d.ts.map +1 -0
- package/dist/validValues/json/giftPackagingMaterial.d.ts +2 -0
- package/dist/validValues/json/giftPackagingMaterial.d.ts.map +1 -0
- package/dist/validValues/json/labelMaterial.d.ts +2 -0
- package/dist/validValues/json/labelMaterial.d.ts.map +1 -0
- package/dist/validValues/json/packagingMaterialType.d.ts +2 -0
- package/dist/validValues/json/packagingMaterialType.d.ts.map +1 -0
- package/dist/validValues/labelMaterial.d.ts +26 -0
- package/dist/validValues/labelMaterial.d.ts.map +1 -0
- package/dist/validValues/labelMaterial.js +47 -0
- package/dist/validValues/packagingMaterialType.d.ts +33 -0
- package/dist/validValues/packagingMaterialType.d.ts.map +1 -0
- package/dist/validValues/packagingMaterialType.js +752 -0
- package/dist/validValues/types/Award.d.ts +35 -0
- package/dist/validValues/types/Award.d.ts.map +1 -0
- package/dist/validValues/types/Award.js +5 -0
- package/dist/validValues/types/Country.d.ts +35 -0
- package/dist/validValues/types/Country.d.ts.map +1 -0
- package/dist/validValues/utils/createValidValues.js +2 -2
- package/package.json +5 -5
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { MessageDescriptor } from '@lingui/core';
|
|
2
|
+
interface ValidValueEnabledFor {
|
|
3
|
+
field: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Award {
|
|
7
|
+
key: string;
|
|
8
|
+
enabledFor?: ValidValueEnabledFor[];
|
|
9
|
+
/**
|
|
10
|
+
* The translatable title of the valid value.
|
|
11
|
+
*
|
|
12
|
+
* Define it using `defineMessage()` from @lingui/macro.
|
|
13
|
+
*/
|
|
14
|
+
title?: string | MessageDescriptor;
|
|
15
|
+
/**
|
|
16
|
+
* Fields that will never be stored in the database,
|
|
17
|
+
* because they are not relevant to the frontend rendering.
|
|
18
|
+
* They are only used for the form, like grouping values for easier entry.
|
|
19
|
+
*/
|
|
20
|
+
form?: {};
|
|
21
|
+
medals?: string[];
|
|
22
|
+
/**
|
|
23
|
+
* Fields that are stored in the database together with each lookup value,
|
|
24
|
+
* because they affect the frontend rendering.
|
|
25
|
+
* They are also included in the hash values to detect breaking changes.
|
|
26
|
+
*
|
|
27
|
+
* We should try to avoid them if possible because if false positives:
|
|
28
|
+
* Any change in one of those fields would lead to
|
|
29
|
+
* eLabels that are marked as incompatible,
|
|
30
|
+
* although there might be no user-visible changes.
|
|
31
|
+
*/
|
|
32
|
+
frontend?: {};
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=Award.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Award.d.ts","sourceRoot":"","sources":["../../../src/validValues/types/Award.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACpC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,EAKN,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,CAAC;CACf"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { MessageDescriptor } from '@lingui/core';
|
|
2
|
+
interface ValidValueEnabledFor {
|
|
3
|
+
field: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Country {
|
|
7
|
+
key: string;
|
|
8
|
+
enabledFor?: ValidValueEnabledFor[];
|
|
9
|
+
/**
|
|
10
|
+
* The translatable title of the valid value.
|
|
11
|
+
*
|
|
12
|
+
* Define it using `defineMessage()` from @lingui/macro.
|
|
13
|
+
*/
|
|
14
|
+
title?: string | MessageDescriptor;
|
|
15
|
+
/**
|
|
16
|
+
* Fields that will never be stored in the database,
|
|
17
|
+
* because they are not relevant to the frontend rendering.
|
|
18
|
+
* They are only used for the form, like grouping values for easier entry.
|
|
19
|
+
*/
|
|
20
|
+
form?: {};
|
|
21
|
+
regions?: string[];
|
|
22
|
+
/**
|
|
23
|
+
* Fields that are stored in the database together with each lookup value,
|
|
24
|
+
* because they affect the frontend rendering.
|
|
25
|
+
* They are also included in the hash values to detect breaking changes.
|
|
26
|
+
*
|
|
27
|
+
* We should try to avoid them if possible because if false positives:
|
|
28
|
+
* Any change in one of those fields would lead to
|
|
29
|
+
* eLabels that are marked as incompatible,
|
|
30
|
+
* although there might be no user-visible changes.
|
|
31
|
+
*/
|
|
32
|
+
frontend?: {};
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=Country.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Country.d.ts","sourceRoot":"","sources":["../../../src/validValues/types/Country.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACpC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,EAKN,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,CAAC;CACf"}
|
|
@@ -9,9 +9,9 @@ var _core = require("@lingui/core");
|
|
|
9
9
|
|
|
10
10
|
var _locales = require("../../locales/locales.js");
|
|
11
11
|
|
|
12
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly
|
|
12
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
13
13
|
|
|
14
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source =
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
15
15
|
|
|
16
16
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
17
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@bottlebooks/valid-values",
|
|
3
3
|
"description": "The Bottlebooks lookup values, defined globally.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.3.
|
|
5
|
+
"version": "1.3.1",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"scripts": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"compile": "lingui compile"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@lingui/cli": "^3.
|
|
21
|
-
"@lingui/macro": "^3.
|
|
20
|
+
"@lingui/cli": "^3.15.0",
|
|
21
|
+
"@lingui/macro": "^3.15.0",
|
|
22
22
|
"@typescript-eslint/eslint-plugin": "^4.15.2",
|
|
23
23
|
"@typescript-eslint/parser": "^4.15.2",
|
|
24
24
|
"babel-plugin-macros": "^2.5.1",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/cli": "^7.18.10",
|
|
32
32
|
"@babel/core": "^7.15.5",
|
|
33
|
-
"@lingui/core": "^3.
|
|
33
|
+
"@lingui/core": "^3.15.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "757711c23861768f80924dac00ec66e904a3b074"
|
|
36
36
|
}
|