@bottlebooks/valid-values 1.2.4 → 1.3.0
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/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/main.js +3 -3
- package/dist/validValues/award.d.ts.map +1 -1
- package/dist/validValues/award.js +4 -4
- package/dist/validValues/designation.js +2 -2
- package/dist/validValues/utils/createValidValues.js +2 -2
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/validValues/award.ts +2 -22
- package/dist/validValues/types/Award.d.ts +0 -35
- package/dist/validValues/types/Award.d.ts.map +0 -1
- package/dist/validValues/types/Award.js +0 -5
- package/dist/validValues/types/Country.d.ts +0 -35
- package/dist/validValues/types/Country.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.3.0](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@1.2.4...@bottlebooks/valid-values@1.3.0) (2023-01-03)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- generate awards svg ([d616f18](https://github.com/bottlebooks/bottlebooks/commit/d616f18901db4b7fdb0f1572b3b83e305f99cc87))
|
|
11
|
+
|
|
6
12
|
## [1.2.4](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@1.2.3...@bottlebooks/valid-values@1.2.4) (2022-12-12)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,cAAc,eAAe,CAAC;AAC9B,eAAO,MAAM,mBAAmB,UAA6B,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
require("./style.css");
|
|
6
6
|
|
|
@@ -12,9 +12,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
12
12
|
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
14
|
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
15
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
16
|
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
17
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
18
|
|
|
19
19
|
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; }
|
|
20
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"award.d.ts","sourceRoot":"","sources":["../../src/validValues/award.ts"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;;;;;;;;;;;;;;;;;;;AAED,
|
|
1
|
+
{"version":3,"file":"award.d.ts","sourceRoot":"","sources":["../../src/validValues/award.ts"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;;;;;;;;;;;;;;;;;;;AAED,wBA08DG"}
|
|
@@ -165,7 +165,7 @@ var _default = (0, _createValidValues["default"])({
|
|
|
165
165
|
concoursmondial: {
|
|
166
166
|
key: 'concoursmondial',
|
|
167
167
|
title: 'Concours Mondial de Bruxelles',
|
|
168
|
-
medals: ['
|
|
168
|
+
medals: ['grand_gold', 'gold', 'silver']
|
|
169
169
|
},
|
|
170
170
|
concoursmondial_sauvignon: {
|
|
171
171
|
key: 'concoursmondial_sauvignon',
|
|
@@ -210,7 +210,7 @@ var _default = (0, _createValidValues["default"])({
|
|
|
210
210
|
de_dlg: {
|
|
211
211
|
key: 'de_dlg',
|
|
212
212
|
title: 'Deutsche Landwirtschaftsgesellschaft',
|
|
213
|
-
medals: ['
|
|
213
|
+
medals: ['de_gold_extra', 'gold', 'silver', 'bronze']
|
|
214
214
|
},
|
|
215
215
|
de_lwk_rheinpfalz: {
|
|
216
216
|
key: 'de_lwk_rheinpfalz',
|
|
@@ -410,7 +410,7 @@ var _default = (0, _createValidValues["default"])({
|
|
|
410
410
|
guiapenin_p: {
|
|
411
411
|
key: 'guiapenin_p',
|
|
412
412
|
title: 'Guia Penin',
|
|
413
|
-
medals: ['
|
|
413
|
+
medals: ['p_60', 'p_61', 'p_62', 'p_63', 'p_64', 'p_65', 'p_66', 'p_67', 'p_68', 'p_69', 'p_70', 'p_71', 'p_72', 'p_73', 'p_74', 'p_75', 'p_76', 'p_77', 'p_78', 'p_79', 'p_80', 'p_81', 'p_82', 'p_83', 'p_84'].concat(_award_p85_["default"])
|
|
414
414
|
},
|
|
415
415
|
guidehachette_p: {
|
|
416
416
|
key: 'guidehachette_p',
|
|
@@ -515,7 +515,7 @@ var _default = (0, _createValidValues["default"])({
|
|
|
515
515
|
jebdunnuck: {
|
|
516
516
|
key: 'jebdunnuck',
|
|
517
517
|
title: 'Jeb Dunnuck',
|
|
518
|
-
medals: ['
|
|
518
|
+
medals: ['p_60', 'p_61', 'p_62', 'p_63', 'p_64', 'p_65', 'p_66', 'p_67', 'p_68', 'p_69', 'p_70', 'p_71', 'p_72', 'p_73', 'p_74', 'p_75', 'p_76', 'p_77', 'p_78', 'p_79', 'p_80', 'p_81', 'p_82', 'p_83', 'p_84'].concat(_award_p85_["default"])
|
|
519
519
|
},
|
|
520
520
|
jp_sakura_womenwineaward: {
|
|
521
521
|
key: 'jp_sakura_womenwineaward',
|
|
@@ -7,9 +7,9 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _core = require("@lingui/core");
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
11
|
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
13
|
|
|
14
14
|
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; }
|
|
15
15
|
|
|
@@ -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);
|
|
12
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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 = arguments[i]
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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.
|
|
5
|
+
"version": "1.3.0",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"scripts": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@babel/core": "^7.15.5",
|
|
33
33
|
"@lingui/core": "^3.14.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "a73b060c2ebbaabc4b14190fc66d25b32113233c"
|
|
36
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { i18n, MessageDescriptor } from '@lingui/core';
|
|
2
2
|
import { allLocaleData } from './locales/locales.js';
|
|
3
3
|
export { translate } from './core/translate';
|
|
4
|
+
// This enables tree-shaking
|
|
4
5
|
export * from './validValues';
|
|
5
6
|
export const allSupportedLocales = Object.keys(allLocaleData);
|
package/src/validValues/award.ts
CHANGED
|
@@ -310,7 +310,7 @@ export default createValidValues<Award>({
|
|
|
310
310
|
key: 'concoursmondial',
|
|
311
311
|
title: 'Concours Mondial de Bruxelles',
|
|
312
312
|
|
|
313
|
-
medals: ['
|
|
313
|
+
medals: ['grand_gold', 'gold', 'silver'],
|
|
314
314
|
},
|
|
315
315
|
concoursmondial_sauvignon: {
|
|
316
316
|
key: 'concoursmondial_sauvignon',
|
|
@@ -376,7 +376,7 @@ export default createValidValues<Award>({
|
|
|
376
376
|
key: 'de_dlg',
|
|
377
377
|
title: 'Deutsche Landwirtschaftsgesellschaft',
|
|
378
378
|
|
|
379
|
-
medals: ['
|
|
379
|
+
medals: ['de_gold_extra', 'gold', 'silver', 'bronze'],
|
|
380
380
|
},
|
|
381
381
|
de_lwk_rheinpfalz: {
|
|
382
382
|
key: 'de_lwk_rheinpfalz',
|
|
@@ -727,16 +727,6 @@ export default createValidValues<Award>({
|
|
|
727
727
|
title: 'Guia Penin',
|
|
728
728
|
|
|
729
729
|
medals: [
|
|
730
|
-
'p_50',
|
|
731
|
-
'p_51',
|
|
732
|
-
'p_52',
|
|
733
|
-
'p_53',
|
|
734
|
-
'p_54',
|
|
735
|
-
'p_55',
|
|
736
|
-
'p_56',
|
|
737
|
-
'p_57',
|
|
738
|
-
'p_58',
|
|
739
|
-
'p_59',
|
|
740
730
|
'p_60',
|
|
741
731
|
'p_61',
|
|
742
732
|
'p_62',
|
|
@@ -939,16 +929,6 @@ export default createValidValues<Award>({
|
|
|
939
929
|
title: 'Jeb Dunnuck',
|
|
940
930
|
|
|
941
931
|
medals: [
|
|
942
|
-
'p_50',
|
|
943
|
-
'p_51',
|
|
944
|
-
'p_52',
|
|
945
|
-
'p_53',
|
|
946
|
-
'p_54',
|
|
947
|
-
'p_55',
|
|
948
|
-
'p_56',
|
|
949
|
-
'p_57',
|
|
950
|
-
'p_58',
|
|
951
|
-
'p_59',
|
|
952
932
|
'p_60',
|
|
953
933
|
'p_61',
|
|
954
934
|
'p_62',
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|