UNPKG

nhb-toolbox

Version:

A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.

146 lines (145 loc) 5.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SEASON_PRESETS = exports.ETHIOPIA_SEASONS = exports.AUSTRALIA_SEASONS = exports.JAPAN_SEASONS = exports.US_ACADEMIC_SEASONS = exports.PHILIPPINES_SEASONS = exports.INDIA_TAMIL_SEASONS = exports.INDIA_VEDIC_SEASONS = exports.INDIA_IMD_SEASONS = exports.BANGLADESH_SEASONS = exports.DEFAULT_SEASONS = void 0; exports.DEFAULT_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Spring', boundary: { startMonth: 2, endMonth: 4 } }, { name: 'Summer', boundary: { startMonth: 5, endMonth: 7 } }, { name: 'Autumn', boundary: { startMonth: 8, endMonth: 10 } }, { name: 'Winter', boundary: { startMonth: 11, endMonth: 1 } }, ]); exports.BANGLADESH_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Grisma (Summer)', boundary: { startDate: '04-15', endDate: '06-14' }, }, { name: 'Barsa (Monsoon)', boundary: { startDate: '06-15', endDate: '08-14' }, }, { name: 'Sarat (Autumn)', boundary: { startDate: '08-15', endDate: '10-14' }, }, { name: 'Hemanta (Late-Autumn)', boundary: { startDate: '10-15', endDate: '12-14' }, }, { name: 'Shhit (Winter)', boundary: { startDate: '12-15', endDate: '02-14' }, }, { name: 'Basanta (Spring)', boundary: { startDate: '02-15', endDate: '04-14' }, }, ]); exports.INDIA_IMD_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Winter', boundary: { startMonth: 0, endMonth: 1 } }, { name: 'Pre-Monsoon', boundary: { startMonth: 2, endMonth: 4 } }, { name: 'Monsoon', boundary: { startMonth: 5, endMonth: 8 } }, { name: 'Post-Monsoon', boundary: { startMonth: 9, endMonth: 10 } }, { name: 'Cool Season', boundary: { startMonth: 11, endMonth: 11 } }, ]); exports.INDIA_VEDIC_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Shishir (Winter)', boundary: { startDate: '12-15', endDate: '02-14' }, }, { name: 'Vasanta (Spring)', boundary: { startDate: '02-15', endDate: '04-14' }, }, { name: 'Grishma (Summer)', boundary: { startDate: '04-15', endDate: '06-14' }, }, { name: 'Varsha (Monsoon)', boundary: { startDate: '06-15', endDate: '08-14' }, }, { name: 'Sharad (Autumn)', boundary: { startDate: '08-15', endDate: '10-14' }, }, { name: 'Hemant (Late-Autumn)', boundary: { startDate: '10-15', endDate: '12-14' }, }, ]); exports.INDIA_TAMIL_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Ilavenil (Mid-Summer)', boundary: { startMonth: 4, endMonth: 5 } }, { name: 'Mutuvenil (Peak-Summer)', boundary: { startMonth: 6, endMonth: 7 }, }, { name: 'Kaar (Monsoon)', boundary: { startMonth: 7, endMonth: 9 } }, { name: 'Koothir (Autumn)', boundary: { startMonth: 9, endMonth: 10 } }, { name: 'Munpani (Early-Winter)', boundary: { startMonth: 10, endMonth: 0 }, }, { name: 'Pinpani (Late-Winter)', boundary: { startMonth: 0, endMonth: 2 } }, ]); exports.PHILIPPINES_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Dry Season', boundary: { startMonth: 11, endMonth: 4 } }, { name: 'Wet Season', boundary: { startMonth: 5, endMonth: 10 } }, ]); exports.US_ACADEMIC_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Spring', boundary: { startDate: '01-10', endDate: '05-15' }, }, { name: 'Summer', boundary: { startDate: '05-16', endDate: '08-15' }, }, { name: 'Fall', boundary: { startDate: '08-16', endDate: '12-20' }, }, { name: 'Winter Break', boundary: { startDate: '12-21', endDate: '01-09' }, }, ]); exports.JAPAN_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Haru (Spring)', boundary: { startDate: '03-01', endDate: '05-31' }, }, { name: 'Natsu (Summer)', boundary: { startDate: '06-01', endDate: '08-31' }, }, { name: 'Aki (Autumn)', boundary: { startDate: '09-01', endDate: '11-30' }, }, { name: 'Fuyu (Winter)', boundary: { startDate: '12-01', endDate: '02-28' }, }, ]); exports.AUSTRALIA_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Summer', boundary: { startMonth: 11, endMonth: 1 } }, { name: 'Autumn', boundary: { startMonth: 2, endMonth: 4 } }, { name: 'Winter', boundary: { startMonth: 5, endMonth: 7 } }, { name: 'Spring', boundary: { startMonth: 8, endMonth: 10 } }, ]); exports.ETHIOPIA_SEASONS = /* @__PURE__ */ Object.freeze([ { name: 'Bega (Dry)', boundary: { startMonth: 10, endMonth: 1 } }, { name: 'Belg (Short Rain)', boundary: { startMonth: 2, endMonth: 4 } }, { name: 'Kiremt (Main Rain)', boundary: { startMonth: 5, endMonth: 9 } }, ]); exports.SEASON_PRESETS = /* @__PURE__ */ Object.freeze({ default: exports.DEFAULT_SEASONS, bangladesh: exports.BANGLADESH_SEASONS, india: exports.INDIA_IMD_SEASONS, tamil: exports.INDIA_TAMIL_SEASONS, vedic: exports.INDIA_VEDIC_SEASONS, philippines: exports.PHILIPPINES_SEASONS, academic_us: exports.US_ACADEMIC_SEASONS, japan: exports.JAPAN_SEASONS, australia: exports.AUSTRALIA_SEASONS, ethiopia: exports.ETHIOPIA_SEASONS, });