Members
SHEETJS_COL :string
Internal excel file column name read by sheetjs. This column contains strings following the pattern "municipalityName (provinceName)"
- Source:
Type:
-
string
dataRowStart :number
SheetJS array index number translated from the Excel headers row count before elements containing "municipalityName (provinceName)" data
- Source:
Type:
-
number
forecastDate :string|null
Weather forecast date
- Source:
Type:
-
string
|null
Methods
arrayToString(arrayOfText) → {string}
Converts an Array of strings (text) into a single comma-separated string
- Source:
Parameters:
Name | Type | Description |
---|---|---|
arrayOfText |
Array.<String>
|
Array containing String items |
Returns:
- Type:
-
string
Comma-separated text
capitalizeText(text) → {string}
Capitalizes the first letter of words in a text
- Source:
Parameters:
Name | Type | Description |
---|---|---|
text |
string
|
String text |
Returns:
- Type:
-
string
Capitalized text
formatDisplay(municipalitiesGroup) → {Object}
Formats municipality names for logging. Attaches municipalities count and total count to the return data.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
municipalitiesGroup |
Object
|
Object that have province names as keys, each containing a String[] of municipalities |
Returns:
- Type:
-
Object
{ total, data }
- total: {Number} total municipalities count
- data: {Object} mutated municipalitiesGroup. Contains the String[] municipalities array and the number of municipalities per province.
isObject(item) → {boolean}
Checks if a variable is a true JavaScript Object
- Source:
Parameters:
Name | Type | Description |
---|---|---|
item |
Object
|
JavaScript Object |
Returns:
- Type:
-
boolean
true|false
(async) selectDataSource() → {ExcelHandler}
Prompts user to download a new excel file or use the static local excel file as data source
- Source:
Returns:
- Type:
-
ExcelHandler