@jjlmoya/utils-babies 1.11.0 → 1.12.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/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-babies",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
7
7
  "exports": {
8
8
  ".": "./src/index.ts",
9
- "./data": "./src/data.ts"
9
+ "./data": "./src/data.ts",
10
+ "./entries": "./src/entries.ts"
10
11
  },
11
12
  "files": [
12
13
  "src"
@@ -1,10 +1,10 @@
1
1
  import type { BabiesCategoryEntry } from '../types';
2
- import { babyFeedingCalculator } from '../tool/baby-feeding-calculator';
3
- import { babySizeConverter } from '../tool/baby-size-converter';
4
- import { vaccinationCalendar } from '../tool/vaccination-calendar';
5
- import { fertileDaysEstimator } from '../tool/fertile-days-estimator';
6
- import { babyPercentileCalculator } from '../tool/baby-percentile-calculator';
7
- import { pregnancyCalculator } from '../tool/pregnancy-calculator';
2
+ import { babyFeedingCalculator } from '../tool/baby-feeding-calculator/entry';
3
+ import { babySizeConverter } from '../tool/baby-size-converter/entry';
4
+ import { vaccinationCalendar } from '../tool/vaccination-calendar/entry';
5
+ import { fertileDaysEstimator } from '../tool/fertile-days-estimator/entry';
6
+ import { babyPercentileCalculator } from '../tool/baby-percentile-calculator/entry';
7
+ import { pregnancyCalculator } from '../tool/pregnancy-calculator/entry';
8
8
 
9
9
  export const babiesCategory: BabiesCategoryEntry = {
10
10
  icon: 'mdi:baby-carriage',
package/src/entries.ts ADDED
@@ -0,0 +1,20 @@
1
+ export { babyFeedingCalculator } from './tool/baby-feeding-calculator/entry';
2
+ export type { BabyFeedingCalculatorUI, BabyFeedingCalculatorLocaleContent } from './tool/baby-feeding-calculator/entry';
3
+ export { babyPercentileCalculator } from './tool/baby-percentile-calculator/entry';
4
+ export type { BabyPercentileCalculatorUI, BabyPercentileCalculatorLocaleContent } from './tool/baby-percentile-calculator/entry';
5
+ export { babySizeConverter } from './tool/baby-size-converter/entry';
6
+ export type { BabySizeConverterUI, BabySizeConverterLocaleContent } from './tool/baby-size-converter/entry';
7
+ export { fertileDaysEstimator } from './tool/fertile-days-estimator/entry';
8
+ export type { FertileDaysEstimatorUI, FertileDaysEstimatorLocaleContent } from './tool/fertile-days-estimator/entry';
9
+ export { pregnancyCalculator } from './tool/pregnancy-calculator/entry';
10
+ export type { MilestoneI18n, PregnancyCalculatorUI, PregnancyCalculatorLocaleContent } from './tool/pregnancy-calculator/entry';
11
+ export { vaccinationCalendar } from './tool/vaccination-calendar/entry';
12
+ export type { VaccinationCalendarUI, VaccinationCalendarLocaleContent } from './tool/vaccination-calendar/entry';
13
+ export { babiesCategory } from './category';
14
+ import { babyFeedingCalculator } from './tool/baby-feeding-calculator/entry';
15
+ import { babyPercentileCalculator } from './tool/baby-percentile-calculator/entry';
16
+ import { babySizeConverter } from './tool/baby-size-converter/entry';
17
+ import { fertileDaysEstimator } from './tool/fertile-days-estimator/entry';
18
+ import { pregnancyCalculator } from './tool/pregnancy-calculator/entry';
19
+ import { vaccinationCalendar } from './tool/vaccination-calendar/entry';
20
+ export const ALL_ENTRIES = [babyFeedingCalculator, babyPercentileCalculator, babySizeConverter, fertileDaysEstimator, pregnancyCalculator, vaccinationCalendar];
@@ -0,0 +1,47 @@
1
+ import type { BabiesToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface BabyFeedingCalculatorUI {
4
+ [key: string]: string;
5
+ labelConfig: string;
6
+ labelPlan: string;
7
+ unitDays: string;
8
+ unitWeeks: string;
9
+ unitMonths: string;
10
+ labelWeight: string;
11
+ labelFeedType: string;
12
+ feedBreast: string;
13
+ feedMixed: string;
14
+ feedFormula: string;
15
+ labelFreeDemand: string;
16
+ labelMlPerFeed: string;
17
+ labelFeedsCount: string;
18
+ labelDailyTotal: string;
19
+ labelHunger: string;
20
+ labelFullness: string;
21
+ faqTitle: string;
22
+ bibliographyTitle: string;
23
+ }
24
+
25
+ export type BabyFeedingCalculatorLocaleContent = ToolLocaleContent<BabyFeedingCalculatorUI>;
26
+
27
+ export const babyFeedingCalculator: BabiesToolEntry<BabyFeedingCalculatorUI> = {
28
+ id: 'baby-feeding-calculator',
29
+ icons: { bg: 'mdi:baby-bottle', fg: 'mdi:baby-bottle-outline' },
30
+ i18n: {
31
+ es: () => import('./i18n/es').then((m) => m.content),
32
+ en: () => import('./i18n/en').then((m) => m.content),
33
+ de: () => import('./i18n/de').then((m) => m.content),
34
+ fr: () => import('./i18n/fr').then((m) => m.content),
35
+ it: () => import('./i18n/it').then((m) => m.content),
36
+ pt: () => import('./i18n/pt').then((m) => m.content),
37
+ nl: () => import('./i18n/nl').then((m) => m.content),
38
+ pl: () => import('./i18n/pl').then((m) => m.content),
39
+ ru: () => import('./i18n/ru').then((m) => m.content),
40
+ tr: () => import('./i18n/tr').then((m) => m.content),
41
+ sv: () => import('./i18n/sv').then((m) => m.content),
42
+ id: () => import('./i18n/id').then((m) => m.content),
43
+ ja: () => import('./i18n/ja').then((m) => m.content),
44
+ ko: () => import('./i18n/ko').then((m) => m.content),
45
+ zh: () => import('./i18n/zh').then((m) => m.content),
46
+ },
47
+ };
@@ -1,52 +1,5 @@
1
- import type { BabiesToolEntry, ToolDefinition, ToolLocaleContent } from '../../types';
2
-
3
- export interface BabyFeedingCalculatorUI {
4
- [key: string]: string;
5
- labelConfig: string;
6
- labelPlan: string;
7
- unitDays: string;
8
- unitWeeks: string;
9
- unitMonths: string;
10
- labelWeight: string;
11
- labelFeedType: string;
12
- feedBreast: string;
13
- feedMixed: string;
14
- feedFormula: string;
15
- labelFreeDemand: string;
16
- labelMlPerFeed: string;
17
- labelFeedsCount: string;
18
- labelDailyTotal: string;
19
- labelHunger: string;
20
- labelFullness: string;
21
- faqTitle: string;
22
- bibliographyTitle: string;
23
- }
24
-
25
- export type BabyFeedingCalculatorLocaleContent = ToolLocaleContent<BabyFeedingCalculatorUI>;
26
-
27
- export const babyFeedingCalculator: BabiesToolEntry<BabyFeedingCalculatorUI> = {
28
- id: 'baby-feeding-calculator',
29
- icons: { bg: 'mdi:baby-bottle', fg: 'mdi:baby-bottle-outline' },
30
- i18n: {
31
- es: () => import('./i18n/es').then((m) => m.content),
32
- en: () => import('./i18n/en').then((m) => m.content),
33
- de: () => import('./i18n/de').then((m) => m.content),
34
- fr: () => import('./i18n/fr').then((m) => m.content),
35
- it: () => import('./i18n/it').then((m) => m.content),
36
- pt: () => import('./i18n/pt').then((m) => m.content),
37
- nl: () => import('./i18n/nl').then((m) => m.content),
38
- pl: () => import('./i18n/pl').then((m) => m.content),
39
- ru: () => import('./i18n/ru').then((m) => m.content),
40
- tr: () => import('./i18n/tr').then((m) => m.content),
41
- sv: () => import('./i18n/sv').then((m) => m.content),
42
- id: () => import('./i18n/id').then((m) => m.content),
43
- ja: () => import('./i18n/ja').then((m) => m.content),
44
- ko: () => import('./i18n/ko').then((m) => m.content),
45
- zh: () => import('./i18n/zh').then((m) => m.content),
46
- },
47
- };
48
-
49
-
1
+ import { babyFeedingCalculator } from './entry';
2
+ export * from './entry';
50
3
  export const BABY_FEEDING_CALCULATOR_TOOL: ToolDefinition = {
51
4
  entry: babyFeedingCalculator,
52
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,55 @@
1
+ import type { BabiesToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface BabyPercentileCalculatorUI {
4
+ [key: string]: string;
5
+ labelMeasurements: string;
6
+ labelSex: string;
7
+ sexBoy: string;
8
+ sexGirl: string;
9
+ unitMonths: string;
10
+ unitYearsMonths: string;
11
+ labelWeight: string;
12
+ labelHeight: string;
13
+ btnAddHistory: string;
14
+ btnClearHistory: string;
15
+ labelDashboard: string;
16
+ labelWeight2: string;
17
+ labelHeight2: string;
18
+ labelBMI: string;
19
+ labelCalculating: string;
20
+ disclaimer: string;
21
+ labelLowRange: string;
22
+ labelLowNormal: string;
23
+ labelNormal: string;
24
+ labelHighNormal: string;
25
+ labelHighRange: string;
26
+ alertOutOfRange: string;
27
+ labelMonths: string;
28
+ labelYears: string;
29
+ faqTitle: string;
30
+ bibliographyTitle: string;
31
+ }
32
+
33
+ export type BabyPercentileCalculatorLocaleContent = ToolLocaleContent<BabyPercentileCalculatorUI>;
34
+
35
+ export const babyPercentileCalculator: BabiesToolEntry<BabyPercentileCalculatorUI> = {
36
+ id: 'baby-percentile-calculator',
37
+ icons: { bg: 'mdi:chart-bell-curve', fg: 'mdi:chart-bell-curve-cumulative' },
38
+ i18n: {
39
+ es: () => import('./i18n/es').then((m) => m.content),
40
+ en: () => import('./i18n/en').then((m) => m.content),
41
+ de: () => import('./i18n/de').then((m) => m.content),
42
+ fr: () => import('./i18n/fr').then((m) => m.content),
43
+ it: () => import('./i18n/it').then((m) => m.content),
44
+ pt: () => import('./i18n/pt').then((m) => m.content),
45
+ nl: () => import('./i18n/nl').then((m) => m.content),
46
+ pl: () => import('./i18n/pl').then((m) => m.content),
47
+ ru: () => import('./i18n/ru').then((m) => m.content),
48
+ tr: () => import('./i18n/tr').then((m) => m.content),
49
+ sv: () => import('./i18n/sv').then((m) => m.content),
50
+ id: () => import('./i18n/id').then((m) => m.content),
51
+ ja: () => import('./i18n/ja').then((m) => m.content),
52
+ ko: () => import('./i18n/ko').then((m) => m.content),
53
+ zh: () => import('./i18n/zh').then((m) => m.content),
54
+ },
55
+ };
@@ -1,60 +1,5 @@
1
- import type { BabiesToolEntry, ToolDefinition, ToolLocaleContent } from '../../types';
2
-
3
- export interface BabyPercentileCalculatorUI {
4
- [key: string]: string;
5
- labelMeasurements: string;
6
- labelSex: string;
7
- sexBoy: string;
8
- sexGirl: string;
9
- unitMonths: string;
10
- unitYearsMonths: string;
11
- labelWeight: string;
12
- labelHeight: string;
13
- btnAddHistory: string;
14
- btnClearHistory: string;
15
- labelDashboard: string;
16
- labelWeight2: string;
17
- labelHeight2: string;
18
- labelBMI: string;
19
- labelCalculating: string;
20
- disclaimer: string;
21
- labelLowRange: string;
22
- labelLowNormal: string;
23
- labelNormal: string;
24
- labelHighNormal: string;
25
- labelHighRange: string;
26
- alertOutOfRange: string;
27
- labelMonths: string;
28
- labelYears: string;
29
- faqTitle: string;
30
- bibliographyTitle: string;
31
- }
32
-
33
- export type BabyPercentileCalculatorLocaleContent = ToolLocaleContent<BabyPercentileCalculatorUI>;
34
-
35
- export const babyPercentileCalculator: BabiesToolEntry<BabyPercentileCalculatorUI> = {
36
- id: 'baby-percentile-calculator',
37
- icons: { bg: 'mdi:chart-bell-curve', fg: 'mdi:chart-bell-curve-cumulative' },
38
- i18n: {
39
- es: () => import('./i18n/es').then((m) => m.content),
40
- en: () => import('./i18n/en').then((m) => m.content),
41
- de: () => import('./i18n/de').then((m) => m.content),
42
- fr: () => import('./i18n/fr').then((m) => m.content),
43
- it: () => import('./i18n/it').then((m) => m.content),
44
- pt: () => import('./i18n/pt').then((m) => m.content),
45
- nl: () => import('./i18n/nl').then((m) => m.content),
46
- pl: () => import('./i18n/pl').then((m) => m.content),
47
- ru: () => import('./i18n/ru').then((m) => m.content),
48
- tr: () => import('./i18n/tr').then((m) => m.content),
49
- sv: () => import('./i18n/sv').then((m) => m.content),
50
- id: () => import('./i18n/id').then((m) => m.content),
51
- ja: () => import('./i18n/ja').then((m) => m.content),
52
- ko: () => import('./i18n/ko').then((m) => m.content),
53
- zh: () => import('./i18n/zh').then((m) => m.content),
54
- },
55
- };
56
-
57
-
1
+ import { babyPercentileCalculator } from './entry';
2
+ export * from './entry';
58
3
  export const BABY_PERCENTILE_CALCULATOR_TOOL: ToolDefinition = {
59
4
  entry: babyPercentileCalculator,
60
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,53 @@
1
+ import type { BabiesToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface BabySizeConverterUI {
4
+ [key: string]: string;
5
+ labelInput: string;
6
+ labelResults: string;
7
+ labelHeight: string;
8
+ labelWeight: string;
9
+ labelPresets: string;
10
+ unitMetric: string;
11
+ unitImperial: string;
12
+ labelCm: string;
13
+ labelKg: string;
14
+ labelIn: string;
15
+ labelLb: string;
16
+ labelBrandFit: string;
17
+ labelSuggested: string;
18
+ labelChest: string;
19
+ labelWaist: string;
20
+ labelGarmentMeasures: string;
21
+ fitRegular: string;
22
+ fitLarge: string;
23
+ fitSmall: string;
24
+ tipTitle: string;
25
+ tipText: string;
26
+ shareAriaLabel: string;
27
+ faqTitle: string;
28
+ bibliographyTitle: string;
29
+ }
30
+
31
+ export type BabySizeConverterLocaleContent = ToolLocaleContent<BabySizeConverterUI>;
32
+
33
+ export const babySizeConverter: BabiesToolEntry<BabySizeConverterUI> = {
34
+ id: 'baby-size-converter',
35
+ icons: { bg: 'mdi:tshirt-crew', fg: 'mdi:tshirt-crew-outline' },
36
+ i18n: {
37
+ es: () => import('./i18n/es').then((m) => m.content),
38
+ en: () => import('./i18n/en').then((m) => m.content),
39
+ de: () => import('./i18n/de').then((m) => m.content),
40
+ fr: () => import('./i18n/fr').then((m) => m.content),
41
+ it: () => import('./i18n/it').then((m) => m.content),
42
+ pt: () => import('./i18n/pt').then((m) => m.content),
43
+ nl: () => import('./i18n/nl').then((m) => m.content),
44
+ pl: () => import('./i18n/pl').then((m) => m.content),
45
+ ru: () => import('./i18n/ru').then((m) => m.content),
46
+ tr: () => import('./i18n/tr').then((m) => m.content),
47
+ sv: () => import('./i18n/sv').then((m) => m.content),
48
+ id: () => import('./i18n/id').then((m) => m.content),
49
+ ja: () => import('./i18n/ja').then((m) => m.content),
50
+ ko: () => import('./i18n/ko').then((m) => m.content),
51
+ zh: () => import('./i18n/zh').then((m) => m.content),
52
+ },
53
+ };
@@ -1,58 +1,5 @@
1
- import type { BabiesToolEntry, ToolDefinition, ToolLocaleContent } from '../../types';
2
-
3
- export interface BabySizeConverterUI {
4
- [key: string]: string;
5
- labelInput: string;
6
- labelResults: string;
7
- labelHeight: string;
8
- labelWeight: string;
9
- labelPresets: string;
10
- unitMetric: string;
11
- unitImperial: string;
12
- labelCm: string;
13
- labelKg: string;
14
- labelIn: string;
15
- labelLb: string;
16
- labelBrandFit: string;
17
- labelSuggested: string;
18
- labelChest: string;
19
- labelWaist: string;
20
- labelGarmentMeasures: string;
21
- fitRegular: string;
22
- fitLarge: string;
23
- fitSmall: string;
24
- tipTitle: string;
25
- tipText: string;
26
- shareAriaLabel: string;
27
- faqTitle: string;
28
- bibliographyTitle: string;
29
- }
30
-
31
- export type BabySizeConverterLocaleContent = ToolLocaleContent<BabySizeConverterUI>;
32
-
33
- export const babySizeConverter: BabiesToolEntry<BabySizeConverterUI> = {
34
- id: 'baby-size-converter',
35
- icons: { bg: 'mdi:tshirt-crew', fg: 'mdi:tshirt-crew-outline' },
36
- i18n: {
37
- es: () => import('./i18n/es').then((m) => m.content),
38
- en: () => import('./i18n/en').then((m) => m.content),
39
- de: () => import('./i18n/de').then((m) => m.content),
40
- fr: () => import('./i18n/fr').then((m) => m.content),
41
- it: () => import('./i18n/it').then((m) => m.content),
42
- pt: () => import('./i18n/pt').then((m) => m.content),
43
- nl: () => import('./i18n/nl').then((m) => m.content),
44
- pl: () => import('./i18n/pl').then((m) => m.content),
45
- ru: () => import('./i18n/ru').then((m) => m.content),
46
- tr: () => import('./i18n/tr').then((m) => m.content),
47
- sv: () => import('./i18n/sv').then((m) => m.content),
48
- id: () => import('./i18n/id').then((m) => m.content),
49
- ja: () => import('./i18n/ja').then((m) => m.content),
50
- ko: () => import('./i18n/ko').then((m) => m.content),
51
- zh: () => import('./i18n/zh').then((m) => m.content),
52
- },
53
- };
54
-
55
-
1
+ import { babySizeConverter } from './entry';
2
+ export * from './entry';
56
3
  export const BABY_SIZE_CONVERTER_TOOL: ToolDefinition = {
57
4
  entry: babySizeConverter,
58
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,47 @@
1
+ import type { BabiesToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface FertileDaysEstimatorUI {
4
+ [key: string]: string;
5
+ step1Title: string;
6
+ step1Desc: string;
7
+ pulseHint: string;
8
+ step1Indicator: string;
9
+ step2Indicator: string;
10
+ sidebarTitle: string;
11
+ sidebarDesc: string;
12
+ labelCycleLength: string;
13
+ unitDays: string;
14
+ labelOvulation: string;
15
+ labelFertileWindow: string;
16
+ labelNextPeriod: string;
17
+ legendSelection: string;
18
+ legendPeriod: string;
19
+ legendFertile: string;
20
+ legendOvulation: string;
21
+ faqTitle: string;
22
+ bibliographyTitle: string;
23
+ }
24
+
25
+ export type FertileDaysEstimatorLocaleContent = ToolLocaleContent<FertileDaysEstimatorUI>;
26
+
27
+ export const fertileDaysEstimator: BabiesToolEntry<FertileDaysEstimatorUI> = {
28
+ id: 'fertile-days-estimator',
29
+ icons: { bg: 'mdi:calendar-heart', fg: 'mdi:calendar-heart' },
30
+ i18n: {
31
+ es: () => import('./i18n/es').then((m) => m.content),
32
+ en: () => import('./i18n/en').then((m) => m.content),
33
+ de: () => import('./i18n/de').then((m) => m.content),
34
+ fr: () => import('./i18n/fr').then((m) => m.content),
35
+ it: () => import('./i18n/it').then((m) => m.content),
36
+ pt: () => import('./i18n/pt').then((m) => m.content),
37
+ nl: () => import('./i18n/nl').then((m) => m.content),
38
+ pl: () => import('./i18n/pl').then((m) => m.content),
39
+ ru: () => import('./i18n/ru').then((m) => m.content),
40
+ tr: () => import('./i18n/tr').then((m) => m.content),
41
+ sv: () => import('./i18n/sv').then((m) => m.content),
42
+ id: () => import('./i18n/id').then((m) => m.content),
43
+ ja: () => import('./i18n/ja').then((m) => m.content),
44
+ ko: () => import('./i18n/ko').then((m) => m.content),
45
+ zh: () => import('./i18n/zh').then((m) => m.content),
46
+ },
47
+ };
@@ -1,52 +1,5 @@
1
- import type { BabiesToolEntry, ToolDefinition, ToolLocaleContent } from '../../types';
2
-
3
- export interface FertileDaysEstimatorUI {
4
- [key: string]: string;
5
- step1Title: string;
6
- step1Desc: string;
7
- pulseHint: string;
8
- step1Indicator: string;
9
- step2Indicator: string;
10
- sidebarTitle: string;
11
- sidebarDesc: string;
12
- labelCycleLength: string;
13
- unitDays: string;
14
- labelOvulation: string;
15
- labelFertileWindow: string;
16
- labelNextPeriod: string;
17
- legendSelection: string;
18
- legendPeriod: string;
19
- legendFertile: string;
20
- legendOvulation: string;
21
- faqTitle: string;
22
- bibliographyTitle: string;
23
- }
24
-
25
- export type FertileDaysEstimatorLocaleContent = ToolLocaleContent<FertileDaysEstimatorUI>;
26
-
27
- export const fertileDaysEstimator: BabiesToolEntry<FertileDaysEstimatorUI> = {
28
- id: 'fertile-days-estimator',
29
- icons: { bg: 'mdi:calendar-heart', fg: 'mdi:calendar-heart' },
30
- i18n: {
31
- es: () => import('./i18n/es').then((m) => m.content),
32
- en: () => import('./i18n/en').then((m) => m.content),
33
- de: () => import('./i18n/de').then((m) => m.content),
34
- fr: () => import('./i18n/fr').then((m) => m.content),
35
- it: () => import('./i18n/it').then((m) => m.content),
36
- pt: () => import('./i18n/pt').then((m) => m.content),
37
- nl: () => import('./i18n/nl').then((m) => m.content),
38
- pl: () => import('./i18n/pl').then((m) => m.content),
39
- ru: () => import('./i18n/ru').then((m) => m.content),
40
- tr: () => import('./i18n/tr').then((m) => m.content),
41
- sv: () => import('./i18n/sv').then((m) => m.content),
42
- id: () => import('./i18n/id').then((m) => m.content),
43
- ja: () => import('./i18n/ja').then((m) => m.content),
44
- ko: () => import('./i18n/ko').then((m) => m.content),
45
- zh: () => import('./i18n/zh').then((m) => m.content),
46
- },
47
- };
48
-
49
-
1
+ import { fertileDaysEstimator } from './entry';
2
+ export * from './entry';
50
3
  export const FERTILE_DAYS_ESTIMATOR_TOOL: ToolDefinition = {
51
4
  entry: fertileDaysEstimator,
52
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,87 @@
1
+ import type { BabiesToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface MilestoneI18n {
4
+ analogies: { fruits: string; geek: string; sweets: string };
5
+ size: string;
6
+ biolook: string;
7
+ mom: string;
8
+ partner: string;
9
+ symptoms: string[];
10
+ alerts: string[];
11
+ wonder: string;
12
+ }
13
+
14
+ export interface PregnancyCalculatorUI {
15
+ [key: string]: string;
16
+ btnFUR: string;
17
+ btnConception: string;
18
+ labelPartnerMode: string;
19
+ labelFUR: string;
20
+ labelConception: string;
21
+ labelCycleLength: string;
22
+ unitDays: string;
23
+ labelWeeks: string;
24
+ labelTrimester: string;
25
+ labelEDD: string;
26
+ eddPlaceholder: string;
27
+ eddNote: string;
28
+ btnCalendar: string;
29
+ labelFruits: string;
30
+ labelGeek: string;
31
+ labelSweets: string;
32
+ labelBioLabel: string;
33
+ labelMomKey: string;
34
+ labelPartnerKey: string;
35
+ labelNormalMolestias: string;
36
+ labelAlert: string;
37
+ labelTimeline: string;
38
+ labelStartHere: string;
39
+ labelStartBody: string;
40
+ labelSem: string;
41
+ labelWeekBadge: string;
42
+ weeksFormat: string;
43
+ trimesterSuffix: string;
44
+ eggFutureTitle: string;
45
+ eggFutureBody: string;
46
+ eggTooOldTitle: string;
47
+ eggTooOldBody: string;
48
+ faqTitle: string;
49
+ bibliographyTitle: string;
50
+ dayLabel: string;
51
+ monthLabel: string;
52
+ yearLabel: string;
53
+ icsSummary: string;
54
+ icsDescription: string;
55
+ icsFilename: string;
56
+ monthsData: string;
57
+ milestonesData: string;
58
+ timelineLabelsData: string;
59
+ }
60
+
61
+ export type PregnancyCalculatorLocaleContent = ToolLocaleContent<PregnancyCalculatorUI>;
62
+
63
+
64
+
65
+
66
+
67
+ export const pregnancyCalculator: BabiesToolEntry<PregnancyCalculatorUI> = {
68
+ id: 'pregnancy-calculator',
69
+ icons: { bg: 'mdi:human-pregnant', fg: 'mdi:calendar-heart' },
70
+ i18n: {
71
+ de: () => import('./i18n/de').then((m) => m.content),
72
+ en: () => import('./i18n/en').then((m) => m.content),
73
+ es: () => import('./i18n/es').then((m) => m.content),
74
+ fr: () => import('./i18n/fr').then((m) => m.content),
75
+ id: () => import('./i18n/id').then((m) => m.content),
76
+ it: () => import('./i18n/it').then((m) => m.content),
77
+ ja: () => import('./i18n/ja').then((m) => m.content),
78
+ ko: () => import('./i18n/ko').then((m) => m.content),
79
+ nl: () => import('./i18n/nl').then((m) => m.content),
80
+ pl: () => import('./i18n/pl').then((m) => m.content),
81
+ pt: () => import('./i18n/pt').then((m) => m.content),
82
+ ru: () => import('./i18n/ru').then((m) => m.content),
83
+ sv: () => import('./i18n/sv').then((m) => m.content),
84
+ tr: () => import('./i18n/tr').then((m) => m.content),
85
+ zh: () => import('./i18n/zh').then((m) => m.content),
86
+ },
87
+ };
@@ -1,92 +1,5 @@
1
- import type { BabiesToolEntry, ToolDefinition, ToolLocaleContent } from '../../types';
2
-
3
- export interface MilestoneI18n {
4
- analogies: { fruits: string; geek: string; sweets: string };
5
- size: string;
6
- biolook: string;
7
- mom: string;
8
- partner: string;
9
- symptoms: string[];
10
- alerts: string[];
11
- wonder: string;
12
- }
13
-
14
- export interface PregnancyCalculatorUI {
15
- [key: string]: string;
16
- btnFUR: string;
17
- btnConception: string;
18
- labelPartnerMode: string;
19
- labelFUR: string;
20
- labelConception: string;
21
- labelCycleLength: string;
22
- unitDays: string;
23
- labelWeeks: string;
24
- labelTrimester: string;
25
- labelEDD: string;
26
- eddPlaceholder: string;
27
- eddNote: string;
28
- btnCalendar: string;
29
- labelFruits: string;
30
- labelGeek: string;
31
- labelSweets: string;
32
- labelBioLabel: string;
33
- labelMomKey: string;
34
- labelPartnerKey: string;
35
- labelNormalMolestias: string;
36
- labelAlert: string;
37
- labelTimeline: string;
38
- labelStartHere: string;
39
- labelStartBody: string;
40
- labelSem: string;
41
- labelWeekBadge: string;
42
- weeksFormat: string;
43
- trimesterSuffix: string;
44
- eggFutureTitle: string;
45
- eggFutureBody: string;
46
- eggTooOldTitle: string;
47
- eggTooOldBody: string;
48
- faqTitle: string;
49
- bibliographyTitle: string;
50
- dayLabel: string;
51
- monthLabel: string;
52
- yearLabel: string;
53
- icsSummary: string;
54
- icsDescription: string;
55
- icsFilename: string;
56
- monthsData: string;
57
- milestonesData: string;
58
- timelineLabelsData: string;
59
- }
60
-
61
- export type PregnancyCalculatorLocaleContent = ToolLocaleContent<PregnancyCalculatorUI>;
62
-
63
-
64
-
65
-
66
-
67
- export const pregnancyCalculator: BabiesToolEntry<PregnancyCalculatorUI> = {
68
- id: 'pregnancy-calculator',
69
- icons: { bg: 'mdi:human-pregnant', fg: 'mdi:calendar-heart' },
70
- i18n: {
71
- de: () => import('./i18n/de').then((m) => m.content),
72
- en: () => import('./i18n/en').then((m) => m.content),
73
- es: () => import('./i18n/es').then((m) => m.content),
74
- fr: () => import('./i18n/fr').then((m) => m.content),
75
- id: () => import('./i18n/id').then((m) => m.content),
76
- it: () => import('./i18n/it').then((m) => m.content),
77
- ja: () => import('./i18n/ja').then((m) => m.content),
78
- ko: () => import('./i18n/ko').then((m) => m.content),
79
- nl: () => import('./i18n/nl').then((m) => m.content),
80
- pl: () => import('./i18n/pl').then((m) => m.content),
81
- pt: () => import('./i18n/pt').then((m) => m.content),
82
- ru: () => import('./i18n/ru').then((m) => m.content),
83
- sv: () => import('./i18n/sv').then((m) => m.content),
84
- tr: () => import('./i18n/tr').then((m) => m.content),
85
- zh: () => import('./i18n/zh').then((m) => m.content),
86
- },
87
- };
88
-
89
-
1
+ import { pregnancyCalculator } from './entry';
2
+ export * from './entry';
90
3
  export const PREGNANCY_CALCULATOR_TOOL: ToolDefinition = {
91
4
  entry: pregnancyCalculator,
92
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,67 @@
1
+ import type { BabiesToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface VaccinationCalendarUI {
4
+ [key: string]: string;
5
+ labelBirthDate: string;
6
+ placeholderDD: string;
7
+ placeholderMM: string;
8
+ placeholderAAAA: string;
9
+ emptyMsg: string;
10
+ invalidMsg: string;
11
+ futureMsg: string;
12
+ labelNextAppointment: string;
13
+ btnAddReminder: string;
14
+ btnToday: string;
15
+ labelPassed: string;
16
+ labelFuture: string;
17
+ labelStatusOk: string;
18
+ labelStatusPending: string;
19
+ labelSource: string;
20
+ labelShare: string;
21
+ faqTitle: string;
22
+ bibliographyTitle: string;
23
+ labelMonth: string;
24
+ labelMonths: string;
25
+ labelYear: string;
26
+ labelYears: string;
27
+ labelDay: string;
28
+ labelDays: string;
29
+ labelAnd: string;
30
+ labelVaccination: string;
31
+ labelAppointment: string;
32
+ vac_hexavalente: string;
33
+ vac_neumococo: string;
34
+ vac_meningococo_b: string;
35
+ vac_rotavirus: string;
36
+ vac_meningococo_acwy: string;
37
+ vac_triple_virica: string;
38
+ vac_varicela: string;
39
+ vac_gripe: string;
40
+ vac_vph: string;
41
+ vac_tdpa: string;
42
+ vac_polio_booster: string;
43
+ }
44
+
45
+ export type VaccinationCalendarLocaleContent = ToolLocaleContent<VaccinationCalendarUI>;
46
+
47
+ export const vaccinationCalendar: BabiesToolEntry<VaccinationCalendarUI> = {
48
+ id: 'vaccination-calendar',
49
+ icons: { bg: 'mdi:needle', fg: 'mdi:needle' },
50
+ i18n: {
51
+ de: () => import('./i18n/de').then((m) => m.content),
52
+ en: () => import('./i18n/en').then((m) => m.content),
53
+ es: () => import('./i18n/es').then((m) => m.content),
54
+ fr: () => import('./i18n/fr').then((m) => m.content),
55
+ id: () => import('./i18n/id').then((m) => m.content),
56
+ it: () => import('./i18n/it').then((m) => m.content),
57
+ ja: () => import('./i18n/ja').then((m) => m.content),
58
+ ko: () => import('./i18n/ko').then((m) => m.content),
59
+ nl: () => import('./i18n/nl').then((m) => m.content),
60
+ pl: () => import('./i18n/pl').then((m) => m.content),
61
+ pt: () => import('./i18n/pt').then((m) => m.content),
62
+ ru: () => import('./i18n/ru').then((m) => m.content),
63
+ sv: () => import('./i18n/sv').then((m) => m.content),
64
+ tr: () => import('./i18n/tr').then((m) => m.content),
65
+ zh: () => import('./i18n/zh').then((m) => m.content),
66
+ },
67
+ };
@@ -1,72 +1,5 @@
1
- import type { BabiesToolEntry, ToolDefinition, ToolLocaleContent } from '../../types';
2
-
3
- export interface VaccinationCalendarUI {
4
- [key: string]: string;
5
- labelBirthDate: string;
6
- placeholderDD: string;
7
- placeholderMM: string;
8
- placeholderAAAA: string;
9
- emptyMsg: string;
10
- invalidMsg: string;
11
- futureMsg: string;
12
- labelNextAppointment: string;
13
- btnAddReminder: string;
14
- btnToday: string;
15
- labelPassed: string;
16
- labelFuture: string;
17
- labelStatusOk: string;
18
- labelStatusPending: string;
19
- labelSource: string;
20
- labelShare: string;
21
- faqTitle: string;
22
- bibliographyTitle: string;
23
- labelMonth: string;
24
- labelMonths: string;
25
- labelYear: string;
26
- labelYears: string;
27
- labelDay: string;
28
- labelDays: string;
29
- labelAnd: string;
30
- labelVaccination: string;
31
- labelAppointment: string;
32
- vac_hexavalente: string;
33
- vac_neumococo: string;
34
- vac_meningococo_b: string;
35
- vac_rotavirus: string;
36
- vac_meningococo_acwy: string;
37
- vac_triple_virica: string;
38
- vac_varicela: string;
39
- vac_gripe: string;
40
- vac_vph: string;
41
- vac_tdpa: string;
42
- vac_polio_booster: string;
43
- }
44
-
45
- export type VaccinationCalendarLocaleContent = ToolLocaleContent<VaccinationCalendarUI>;
46
-
47
- export const vaccinationCalendar: BabiesToolEntry<VaccinationCalendarUI> = {
48
- id: 'vaccination-calendar',
49
- icons: { bg: 'mdi:needle', fg: 'mdi:needle' },
50
- i18n: {
51
- de: () => import('./i18n/de').then((m) => m.content),
52
- en: () => import('./i18n/en').then((m) => m.content),
53
- es: () => import('./i18n/es').then((m) => m.content),
54
- fr: () => import('./i18n/fr').then((m) => m.content),
55
- id: () => import('./i18n/id').then((m) => m.content),
56
- it: () => import('./i18n/it').then((m) => m.content),
57
- ja: () => import('./i18n/ja').then((m) => m.content),
58
- ko: () => import('./i18n/ko').then((m) => m.content),
59
- nl: () => import('./i18n/nl').then((m) => m.content),
60
- pl: () => import('./i18n/pl').then((m) => m.content),
61
- pt: () => import('./i18n/pt').then((m) => m.content),
62
- ru: () => import('./i18n/ru').then((m) => m.content),
63
- sv: () => import('./i18n/sv').then((m) => m.content),
64
- tr: () => import('./i18n/tr').then((m) => m.content),
65
- zh: () => import('./i18n/zh').then((m) => m.content),
66
- },
67
- };
68
-
69
-
1
+ import { vaccinationCalendar } from './entry';
2
+ export * from './entry';
70
3
  export const VACCINATION_CALENDAR_TOOL: ToolDefinition = {
71
4
  entry: vaccinationCalendar,
72
5
  Component: () => import('./component.astro'),
package/src/tools.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { ALL_ENTRIES } from './entries';
1
2
  import type { ToolDefinition } from './types';
2
3
  import { BABY_FEEDING_CALCULATOR_TOOL } from './tool/baby-feeding-calculator/index';
3
4
  import { BABY_SIZE_CONVERTER_TOOL } from './tool/baby-size-converter/index';
@@ -16,4 +17,3 @@ export const ALL_TOOLS: ToolDefinition[] = [
16
17
  ];
17
18
 
18
19
 
19
- export const ALL_ENTRIES = ALL_TOOLS.map(t => t.entry);