@bottlebooks/valid-values 1.2.1 → 1.2.3

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.
Files changed (111) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/locales/po/bg.d.ts.map +1 -1
  3. package/dist/locales/po/bg.js +2410 -2410
  4. package/dist/locales/po/de.d.ts.map +1 -1
  5. package/dist/locales/po/de.js +2410 -2410
  6. package/dist/locales/po/ee.d.ts.map +1 -1
  7. package/dist/locales/po/ee.js +2410 -2410
  8. package/dist/locales/po/es.d.ts.map +1 -1
  9. package/dist/locales/po/es.js +2410 -2410
  10. package/dist/locales/po/fi.d.ts.map +1 -1
  11. package/dist/locales/po/fi.js +2410 -2410
  12. package/dist/locales/po/fr.d.ts.map +1 -1
  13. package/dist/locales/po/fr.js +2410 -2410
  14. package/dist/locales/po/hr.d.ts.map +1 -1
  15. package/dist/locales/po/hr.js +2410 -2410
  16. package/dist/locales/po/hu.d.ts.map +1 -1
  17. package/dist/locales/po/hu.js +2410 -2410
  18. package/dist/locales/po/it.d.ts.map +1 -1
  19. package/dist/locales/po/it.js +2410 -2410
  20. package/dist/locales/po/lt.d.ts.map +1 -1
  21. package/dist/locales/po/lt.js +2410 -2410
  22. package/dist/locales/po/lv.d.ts.map +1 -1
  23. package/dist/locales/po/lv.js +2410 -2410
  24. package/dist/locales/po/mt.d.ts.map +1 -1
  25. package/dist/locales/po/mt.js +2410 -2410
  26. package/dist/locales/po/nl.d.ts.map +1 -1
  27. package/dist/locales/po/nl.js +2410 -2410
  28. package/dist/locales/po/pl.d.ts.map +1 -1
  29. package/dist/locales/po/pl.js +2410 -2410
  30. package/dist/locales/po/pt.d.ts.map +1 -1
  31. package/dist/locales/po/pt.js +2410 -2410
  32. package/dist/locales/po/ro.d.ts.map +1 -1
  33. package/dist/locales/po/ro.js +2410 -2410
  34. package/dist/locales/po/se.d.ts.map +1 -1
  35. package/dist/locales/po/se.js +2411 -2411
  36. package/dist/locales/po/si.d.ts.map +1 -1
  37. package/dist/locales/po/si.js +2410 -2410
  38. package/dist/locales/po/sk.d.ts.map +1 -1
  39. package/dist/locales/po/sk.js +2458 -2458
  40. package/dist/main.js +3 -3
  41. package/dist/validValues/designation.js +2 -2
  42. package/dist/validValues/utils/createValidValues.js +2 -2
  43. package/lingui.config.ts +3 -0
  44. package/package.json +2 -2
  45. package/src/locales/json/bg.json +1 -1
  46. package/src/locales/json/cz.json +1 -1
  47. package/src/locales/json/de.json +1 -1
  48. package/src/locales/json/dk.json +1 -1
  49. package/src/locales/json/ee.json +1 -1
  50. package/src/locales/json/en.json +1 -1
  51. package/src/locales/json/es.json +1 -1
  52. package/src/locales/json/fi.json +1 -1
  53. package/src/locales/json/fr.json +1 -1
  54. package/src/locales/json/gr.json +1 -1
  55. package/src/locales/json/hr.json +1 -1
  56. package/src/locales/json/hu.json +1 -1
  57. package/src/locales/json/ie.json +1 -1
  58. package/src/locales/json/it.json +1 -1
  59. package/src/locales/json/json.json +1 -1
  60. package/src/locales/json/lt.json +1 -1
  61. package/src/locales/json/lv.json +1 -1
  62. package/src/locales/json/mt.json +1 -1
  63. package/src/locales/json/nl.json +1 -1
  64. package/src/locales/json/pl.json +1 -1
  65. package/src/locales/json/props.json +1 -1
  66. package/src/locales/json/pt.json +1 -1
  67. package/src/locales/json/ro.json +1 -1
  68. package/src/locales/json/se.json +1 -1
  69. package/src/locales/json/si.json +1 -1
  70. package/src/locales/json/sk.json +1 -1
  71. package/src/locales/po/bg.ts +1 -1
  72. package/src/locales/po/de.ts +1 -1
  73. package/src/locales/po/ee.ts +1 -1
  74. package/src/locales/po/es.ts +1 -1
  75. package/src/locales/po/fi.ts +1 -1
  76. package/src/locales/po/fr.ts +1 -1
  77. package/src/locales/po/hr.ts +1 -1
  78. package/src/locales/po/hu.ts +1 -1
  79. package/src/locales/po/it.ts +1 -1
  80. package/src/locales/po/lt.ts +1 -1
  81. package/src/locales/po/lv.ts +1 -1
  82. package/src/locales/po/mt.ts +1 -1
  83. package/src/locales/po/nl.ts +1 -1
  84. package/src/locales/po/pl.ts +1 -1
  85. package/src/locales/po/pt.ts +1 -1
  86. package/src/locales/po/ro.ts +1 -1
  87. package/src/locales/po/se.ts +1 -1
  88. package/src/locales/po/si.ts +1 -1
  89. package/src/locales/po/sk.po +1 -1
  90. package/src/locales/po/sk.ts +1 -1
  91. package/src/scripts/README.md +5 -4
  92. package/src/validValues/json/awards.js +2487 -3193
  93. package/src/validValues/json/awardsMedals.js +1408 -1409
  94. package/src/validValues/json/beerStyle.js +598 -599
  95. package/src/validValues/json/country.js +1841 -2038
  96. package/src/validValues/json/designation.js +93 -94
  97. package/src/validValues/json/eLabelCertification.js +246 -301
  98. package/src/validValues/json/packagingCertification.js +39 -48
  99. package/src/validValues/json/packagingCertifications.js +43 -52
  100. package/src/validValues/json/productionMethod.js +75 -76
  101. package/src/validValues/json/responsibleConsumptionLogo.js +35 -36
  102. package/src/validValues/json/responsibleConsumptionLogos.js +35 -36
  103. package/src/validValues/json/subregion.js +8350 -8351
  104. package/src/validValues/json/varietyName.js +9745 -9746
  105. package/src/validValues/json/wineColor.js +27 -28
  106. package/src/validValues/json/wineType.js +27 -28
  107. package/dist/validValues/types/Award.d.ts +0 -35
  108. package/dist/validValues/types/Award.d.ts.map +0 -1
  109. package/dist/validValues/types/Award.js +0 -5
  110. package/dist/validValues/types/Country.d.ts +0 -35
  111. package/dist/validValues/types/Country.d.ts.map +0 -1
@@ -1,36 +1,35 @@
1
1
  import { defineMessage } from '@lingui/macro';
2
- const validValues =
3
- {
4
- "orange": {
5
- "key": "orange",
6
- "title": defineMessage({
7
- "id": "validValues.wineColor.orange",
8
- "message": "Orange"
2
+ const validValues = {
3
+ orange: {
4
+ key: 'orange',
5
+ title: defineMessage({
6
+ id: 'validValues.wineColor.orange',
7
+ message: 'Orange',
9
8
  }),
10
- "form": {}
9
+ form: {},
11
10
  },
12
- "red": {
13
- "key": "red",
14
- "title": defineMessage({
15
- "id": "validValues.wineColor.red",
16
- "message": "Red"
11
+ red: {
12
+ key: 'red',
13
+ title: defineMessage({
14
+ id: 'validValues.wineColor.red',
15
+ message: 'Red',
17
16
  }),
18
- "form": {}
17
+ form: {},
19
18
  },
20
- "rose": {
21
- "key": "rose",
22
- "title": defineMessage({
23
- "id": "validValues.wineColor.rose",
24
- "message": "Rosé"
19
+ rose: {
20
+ key: 'rose',
21
+ title: defineMessage({
22
+ id: 'validValues.wineColor.rose',
23
+ message: 'Rosé',
25
24
  }),
26
- "form": {}
25
+ form: {},
27
26
  },
28
- "white": {
29
- "key": "white",
30
- "title": defineMessage({
31
- "id": "validValues.wineColor.white",
32
- "message": "White"
27
+ white: {
28
+ key: 'white',
29
+ title: defineMessage({
30
+ id: 'validValues.wineColor.white',
31
+ message: 'White',
33
32
  }),
34
- "form": {}
35
- }
36
- }
33
+ form: {},
34
+ },
35
+ };
@@ -1,36 +1,35 @@
1
1
  import { defineMessage } from '@lingui/macro';
2
- const validValues =
3
- {
4
- "fortified": {
5
- "key": "fortified",
6
- "title": defineMessage({
7
- "id": "validValues.wineType.fortified",
8
- "message": "Fortified"
2
+ const validValues = {
3
+ fortified: {
4
+ key: 'fortified',
5
+ title: defineMessage({
6
+ id: 'validValues.wineType.fortified',
7
+ message: 'Fortified',
9
8
  }),
10
- "form": {}
9
+ form: {},
11
10
  },
12
- "pearlwine": {
13
- "key": "pearlwine",
14
- "title": defineMessage({
15
- "id": "validValues.wineType.pearlwine",
16
- "message": "Pearl wine"
11
+ pearlwine: {
12
+ key: 'pearlwine',
13
+ title: defineMessage({
14
+ id: 'validValues.wineType.pearlwine',
15
+ message: 'Pearl wine',
17
16
  }),
18
- "form": {}
17
+ form: {},
19
18
  },
20
- "sparkling": {
21
- "key": "sparkling",
22
- "title": defineMessage({
23
- "id": "validValues.wineType.sparkling",
24
- "message": "Sparkling wine"
19
+ sparkling: {
20
+ key: 'sparkling',
21
+ title: defineMessage({
22
+ id: 'validValues.wineType.sparkling',
23
+ message: 'Sparkling wine',
25
24
  }),
26
- "form": {}
25
+ form: {},
27
26
  },
28
- "wine": {
29
- "key": "wine",
30
- "title": defineMessage({
31
- "id": "validValues.wineType.wine",
32
- "message": "Still wine"
27
+ wine: {
28
+ key: 'wine',
29
+ title: defineMessage({
30
+ id: 'validValues.wineType.wine',
31
+ message: 'Still wine',
33
32
  }),
34
- "form": {}
35
- }
36
- }
33
+ form: {},
34
+ },
35
+ };
@@ -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,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -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"}