Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joseconstela/faa697658e76f757bea683caf48ebf60 to your computer and use it in GitHub Desktop.
Save joseconstela/faa697658e76f757bea683caf48ebf60 to your computer and use it in GitHub Desktop.
Tiempo de siembra - crop composition addon for MeteorJS collections
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// COMPOSITION
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
composition: {
type: Object,
label: 'Composición (cada 100gr)',
optional: true
},
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// COMPOSITION - FRESCO
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
'composition.fresh': {
type: Object,
label: 'Fresco',
optional: true
},
'composition.fresh.energy': {
optional: true,
type: Object,
label: 'Energía (kcal)'
},
'composition.fresh.energy.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.energy.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.lipids': {
optional: true,
type: Object,
label: 'Lípidos (g)'
},
'composition.fresh.lipids.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.lipids.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fibers': {
optional: true,
type: Object,
label: 'Fibras (g)'
},
'composition.fresh.fibers.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fibers.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.proteins': {
optional: true,
type: Object,
label: 'Proteínas (kcal)'
},
'composition.fresh.proteins.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.proteins.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.carbohydrates': {
optional: true,
type: Object,
label: 'Carbohidratos (g)'
},
'composition.fresh.carbohydrates.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.carbohydrates.to': {
optional: true,
type: Number,
label: 'A'
},
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// COMPOSITION - ÁCIDOS GRASOS
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
'composition.fresh.fattyAcids': {
optional: true,
type: Object,
label: 'Ácidos grasos'
},
'composition.fresh.fattyAcids.saturated': {
optional: true,
type: Object,
label: 'Saturados (g)'
},
'composition.fresh.fattyAcids.saturated.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fattyAcids.saturated.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fattyAcids.monoins': {
optional: true,
type: Object,
label: 'Monoinsat (g)'
},
'composition.fresh.fattyAcids.monoins.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fattyAcids.monoins.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fattyAcids.poliinsaturated': {
optional: true,
type: Object,
label: 'Poliinsat (g)'
},
'composition.fresh.fattyAcids.poliinsaturated.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fattyAcids.poliinsaturated.to': {
optional: true,
type: Number,
label: 'A'
},
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// COMPOSITION - MINERALES
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
'composition.fresh.minerals': {
optional: true,
type: Object,
label: 'Minerales'
},
'composition.fresh.minerals.calcium': {
optional: true,
type: Object,
label: 'Calcio (mg)'
},
'composition.fresh.minerals.calcium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.calcium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.zinc': {
optional: true,
type: Object,
label: 'Cinc (mg)'
},
'composition.fresh.minerals.zinc.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.zinc.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.chlorine': {
optional: true,
type: Object,
label: 'Cloro (mg)'
},
'composition.fresh.minerals.chlorine.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.chlorine.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.phosphorus': {
optional: true,
type: Object,
label: 'Fósforo (mg)'
},
'composition.fresh.minerals.phosphorus.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.phosphorus.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.iron': {
optional: true,
type: Object,
label: 'Hierro (mg)'
},
'composition.fresh.minerals.iron.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.iron.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.magnesium': {
optional: true,
type: Object,
label: 'Magnesio (mg)'
},
'composition.fresh.minerals.magnesium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.magnesium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.manganese': {
optional: true,
type: Object,
label: 'Manganeso (mg)'
},
'composition.fresh.minerals.manganese.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.manganese.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.potassium': {
optional: true,
type: Object,
label: 'Potasio (mg)'
},
'composition.fresh.minerals.potassium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.potassium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.selenium': {
optional: true,
type: Object,
label: 'Selenio (µg)'
},
'composition.fresh.minerals.selenium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.selenium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.sodium': {
optional: true,
type: Object,
label: 'Sodio (mg)'
},
'composition.fresh.minerals.sodium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.sodium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.minerals.iodo': {
optional: true,
type: Object,
label: 'Yodo (µg)'
},
'composition.fresh.minerals.iodo.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.minerals.iodo.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin': {
optional: true,
type: Object,
label: 'Vitaminas Liposolubles'
},
'composition.fresh.fatsolubleVitamin.AReti': {
optional: true,
type: Object,
label: 'A Retinol (µg)'
},
'composition.fresh.fatsolubleVitamin.AReti.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.AReti.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.ACarot': {
optional: true,
type: Object,
label: 'A Carotenoides (µg)'
},
'composition.fresh.fatsolubleVitamin.ACarot.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.ACarot.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.EToco': {
optional: true,
type: Object,
label: 'E o Tocoferol (mg)'
},
'composition.fresh.fatsolubleVitamin.EToco.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.EToco.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.KFilo': {
optional: true,
type: Object,
label: 'K o Filoquinona (µg)'
},
'composition.fresh.fatsolubleVitamin.KFilo.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.KFilo.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.B1Tia': {
optional: true,
type: Object,
label: 'B1 o Tiamina (mg)'
},
'composition.fresh.fatsolubleVitamin.B1Tia.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.B1Tia.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.B2Ribo': {
optional: true,
type: Object,
label: 'B2 o Riboflavina (mg)'
},
'composition.fresh.fatsolubleVitamin.B2Ribo.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.B2Ribo.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.B3Nia': {
optional: true,
type: Object,
label: 'B3 o Niacina (mg)'
},
'composition.fresh.fatsolubleVitamin.B3Nia.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.B3Nia.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.B5Pan': {
optional: true,
type: Object,
label: 'B5 o Ác. Pantoténico (mg)'
},
'composition.fresh.fatsolubleVitamin.B5Pan.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.B5Pan.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.B6Piri': {
optional: true,
type: Object,
label: 'B6 o Piridoxina (mg)'
},
'composition.fresh.fatsolubleVitamin.B6Piri.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.B6Piri.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.B9Afo': {
optional: true,
type: Object,
label: 'B9 o Ácido Fólico (mg)'
},
'composition.fresh.fatsolubleVitamin.B9Afo.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.B9Afo.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.fresh.fatsolubleVitamin.CAsc': {
optional: true,
type: Object,
label: 'C o Ác. Ascórbico (mg)'
},
'composition.fresh.fatsolubleVitamin.CAsc.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.fresh.fatsolubleVitamin.CAsc.to': {
optional: true,
type: Number,
label: 'A'
},
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// COMPOSITION - HERVIDO
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
'composition.boiled': {
type: Object,
label: 'Hervido',
optional: true
},
'composition.boiled.energy': {
optional: true,
type: Object,
label: 'Energía (kcal)'
},
'composition.boiled.energy.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.energy.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.lipids': {
optional: true,
type: Object,
label: 'Lípidos (g)'
},
'composition.boiled.lipids.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.lipids.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fibers': {
optional: true,
type: Object,
label: 'Fibras (g)'
},
'composition.boiled.fibers.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fibers.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.proteins': {
optional: true,
type: Object,
label: 'Proteínas (kcal)'
},
'composition.boiled.proteins.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.proteins.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.carbohydrates': {
optional: true,
type: Object,
label: 'Carbohidratos (g)'
},
'composition.boiled.carbohydrates.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.carbohydrates.to': {
optional: true,
type: Number,
label: 'A'
},
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// COMPOSITION - ÁCIDOS GRASOS
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
'composition.boiled.fattyAcids': {
optional: true,
type: Object,
label: 'Ácidos grasos'
},
'composition.boiled.fattyAcids.saturated': {
optional: true,
type: Object,
label: 'Saturados (g)'
},
'composition.boiled.fattyAcids.saturated.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fattyAcids.saturated.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fattyAcids.monoins': {
optional: true,
type: Object,
label: 'Monoinsat (g)'
},
'composition.boiled.fattyAcids.monoins.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fattyAcids.monoins.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fattyAcids.poliinsaturated': {
optional: true,
type: Object,
label: 'Poliinsat (g)'
},
'composition.boiled.fattyAcids.poliinsaturated.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fattyAcids.poliinsaturated.to': {
optional: true,
type: Number,
label: 'A'
},
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// COMPOSITION - MINERALES
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
'composition.boiled.minerals': {
optional: true,
type: Object,
label: 'Minerales'
},
'composition.boiled.minerals.calcium': {
optional: true,
type: Object,
label: 'Calcio (mg)'
},
'composition.boiled.minerals.calcium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.calcium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.zinc': {
optional: true,
type: Object,
label: 'Cinc (mg)'
},
'composition.boiled.minerals.zinc.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.zinc.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.chlorine': {
optional: true,
type: Object,
label: 'Cloro (mg)'
},
'composition.boiled.minerals.chlorine.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.chlorine.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.phosphorus': {
optional: true,
type: Object,
label: 'Fósforo (mg)'
},
'composition.boiled.minerals.phosphorus.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.phosphorus.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.iron': {
optional: true,
type: Object,
label: 'Hierro (mg)'
},
'composition.boiled.minerals.iron.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.iron.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.magnesium': {
optional: true,
type: Object,
label: 'Magnesio (mg)'
},
'composition.boiled.minerals.magnesium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.magnesium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.manganese': {
optional: true,
type: Object,
label: 'Manganeso (mg)'
},
'composition.boiled.minerals.manganese.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.manganese.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.potassium': {
optional: true,
type: Object,
label: 'Potasio (mg)'
},
'composition.boiled.minerals.potassium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.potassium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.selenium': {
optional: true,
type: Object,
label: 'Selenio (µg)'
},
'composition.boiled.minerals.selenium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.selenium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.sodium': {
optional: true,
type: Object,
label: 'Sodio (mg)'
},
'composition.boiled.minerals.sodium.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.sodium.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.minerals.iodo': {
optional: true,
type: Object,
label: 'Yodo (µg)'
},
'composition.boiled.minerals.iodo.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.minerals.iodo.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin': {
optional: true,
type: Object,
label: 'Vitaminas Liposolubles'
},
'composition.boiled.fatsolubleVitamin.AReti': {
optional: true,
type: Object,
label: 'A Retinol (µg)'
},
'composition.boiled.fatsolubleVitamin.AReti.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.AReti.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.ACarot': {
optional: true,
type: Object,
label: 'A Carotenoides (µg)'
},
'composition.boiled.fatsolubleVitamin.ACarot.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.ACarot.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.EToco': {
optional: true,
type: Object,
label: 'E o Tocoferol (mg)'
},
'composition.boiled.fatsolubleVitamin.EToco.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.EToco.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.KFilo': {
optional: true,
type: Object,
label: 'K o Filoquinona (µg)'
},
'composition.boiled.fatsolubleVitamin.KFilo.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.KFilo.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.B1Tia': {
optional: true,
type: Object,
label: 'B1 o Tiamina (mg)'
},
'composition.boiled.fatsolubleVitamin.B1Tia.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.B1Tia.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.B2Ribo': {
optional: true,
type: Object,
label: 'B2 o Riboflavina (mg)'
},
'composition.boiled.fatsolubleVitamin.B2Ribo.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.B2Ribo.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.B3Nia': {
optional: true,
type: Object,
label: 'B3 o Niacina (mg)'
},
'composition.boiled.fatsolubleVitamin.B3Nia.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.B3Nia.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.B5Pan': {
optional: true,
type: Object,
label: 'B5 o Ác. Pantoténico (mg)'
},
'composition.boiled.fatsolubleVitamin.B5Pan.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.B5Pan.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.B6Piri': {
optional: true,
type: Object,
label: 'B6 o Piridoxina (mg)'
},
'composition.boiled.fatsolubleVitamin.B6Piri.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.B6Piri.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.B9Afo': {
optional: true,
type: Object,
label: 'B9 o Ácido Fólico (mg)'
},
'composition.boiled.fatsolubleVitamin.B9Afo.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.B9Afo.to': {
optional: true,
type: Number,
label: 'A'
},
'composition.boiled.fatsolubleVitamin.CAsc': {
optional: true,
type: Object,
label: 'C o Ác. Ascórbico (mg)'
},
'composition.boiled.fatsolubleVitamin.CAsc.from': {
optional: true,
type: Number,
label: 'De'
},
'composition.boiled.fatsolubleVitamin.CAsc.to': {
optional: true,
type: Number,
label: 'A'
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment