diff --git a/visual-kpi-docs/src/components/Table/JsonToTable.jsx b/visual-kpi-docs/src/components/Table/JsonToTable.jsx index 8830efef..d30d66fb 100644 --- a/visual-kpi-docs/src/components/Table/JsonToTable.jsx +++ b/visual-kpi-docs/src/components/Table/JsonToTable.jsx @@ -141,12 +141,14 @@ const JsonToTable = ({ jsonData }) => { - - - {headers} - - {rows} -
+
+ + + {headers} + + {rows} +
+
Showing {startIndex + 1} to {Math.min(endIndex, sortedData.length)} of {sortedData.length} entries diff --git a/visual-kpi-docs/src/css/table.css b/visual-kpi-docs/src/css/table.css index f22a7f1b..16366f83 100644 --- a/visual-kpi-docs/src/css/table.css +++ b/visual-kpi-docs/src/css/table.css @@ -102,6 +102,12 @@ cursor: pointer; } +.table_container { + overflow-y: auto; + max-height: 600px; + position: relative; +} + table { width: 100% !important; margin-bottom: var(--ifm-spacing-vertical); @@ -126,6 +132,9 @@ table thead th { font-weight: 700; line-height: 18px; /* width: 50%; */ + position: sticky; + top: 0; + /* z-index: 1; */ } table tr td { diff --git a/visual-kpi-docs/static/data/tables/functions/methods/DateAndTime.json b/visual-kpi-docs/static/data/tables/functions/methods/DateAndTime.json new file mode 100644 index 00000000..2de14c0e --- /dev/null +++ b/visual-kpi-docs/static/data/tables/functions/methods/DateAndTime.json @@ -0,0 +1,146 @@ +[ + { + "Method": "NOW()", + "Return Type": "DateTime", + "Description": "Current date and time according to the setting of your computer\u00e2\u20ac\u2122s system date and time.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "TODAY()", + "Return Type": "DateTime", + "Description": "Current date. Time part of the day is zero (midnight).", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "YEAR(date)", + "Return Type": "int", + "Description": "Number representing the year.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "MONTH(date)", + "Return Type": "int", + "Description": "Number between 1 and 12, inclusive, representing the month of the year.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "DAY(date)", + "Return Type": "int", + "Description": "Number between 1 and 31, inclusive, representing the day of the month.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "WEEKDAY(date)", + "Return Type": "DayOfWeek enumeration", + "Description": "Number representing the day of the week.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "HOUR(date)", + "Return Type": "int", + "Description": "Number between 0 and 23, inclusive, representing the hour of the day.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "MINUTE(date)", + "Return Type": "int", + "Description": "Number between 0 and 59, inclusive, representing the minute of the hour.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "SECOND(date)", + "Return Type": "int", + "Description": "Number between 0 and 59, inclusive, representing the second of the minute.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "DATEADD(interval, double number, DateTime date)", + "Return Type": "DateTime", + "Description": "Number between 0 and 59, inclusive, representing the minute of the hour.", + "Parameters": "interval: DateInterval enumeration value or string expression representing the time interval you want to add. The intervalargument can have one of the settings listed here.
number: The number of intervals you want to add. It can be positive (to get dates in the future) or negative (to get dates in the past). Any fractional part of number is ignored.
date: date to which the interval is added.", + "Remarks": "", + "Example": "The following expressions are equivalent:
DateAdd(dtMonth, 1, #2005-12-31#) DateAdd(“m”, 1, #2005-12-31#) DateAdd(2, 1, #2005-12-31#)In this example, DateAdd returns #2006-01-31#.", + "Return Value": "" + }, + { + "Method": "DATEDIFF(interval, DateTime date1, DateTime date2 [, firstdayofweek\n [,firstweekofyear]])", + "Return Type": "System.Int64", + "Description": "Returns the number of intervals between two dates.", + "Parameters": "interval: DateInterval enumeration value or string expression representing the time interval\n you want to use as the unit of difference between date1 and date2. The interval argument can have one of the\n settings listed here. date1, date2: Date expressions. Two dates you want to use in the calculation.\n firstdayofweek: Optional. A value chosen from the FirstDayOfWeek enumeration that specifies the day of the week.\n If not specified, Sunday is assumed. firstweekofyear: Optional. A value chosen from the FirstWeekOfYear\n enumeration that specifies the first week of the year. If not specified, the first week is assumed to be the\n week in which January 1 occurs.", + "Remarks": "If Date1 represents a later date and time than Date2, DATEDIFF returns a negative number.
If Interval is set to DateInterval.Year, DateInterval.Quarter, or DateInterval.Month the return value is the number of date and time boundaries crossed between Date1 and Date2.
Note When comparing December 31 to January 1 of the following year, DATEDIFF returns 1 for DateInterval.Year, DateInterval.Quarter, or DateInterval.Month, even though only one day has elapsed.", + "Example": "The following expressions are equivalent:
DateDiff(dtYear, #2005-12-31#, #1995-12-31#) DateDiff(“yyyy”, #2005-12-31#, #1995-12-31#) DateDiff(0, #2005-12-31#, #1995-12-31#)In this example, DateDiff returns -10.", + "Return Value": "" + }, + { + "Method": "DATEPART(interval, DateTime date [, firstdayofweek [,firstweekofyear]])", + "Return Type": "System.Int32", + "Description": "Returns an Integer value containing the specified component of a given Date value.", + "Parameters": "interval: DateInterval enumeration value or string expression representing the part of the\n date/time value you want to return. The interval argument can have one of the settings listed here. date:\n Date expression you want to evaluate. firstdayofweek: Optional. A value chosen from the FirstDayOfWeek\n enumeration that specifies the day of the week. If not specified, Sunday is assumed. firstweekofyear:\n Optional. A value chosen from the FirstWeekOfYear enumeration that specifies the first week of the year. If not\n specified, the first week is assumed to be the week in which January 1 occurs.", + "Remarks": "", + "Example": "The following expressions are equivalent:
DatePart(dtQuarter, #2005-12-31#) DatePart(“q”, #2005-12-31#) DatePart(1, #2005-12-31#)In this example, DatePart returns 4.", + "Return Value": "" + }, + { + "Method": "DATE(int year, int month, int day [, int hour, int minute, int second])", + "Return Type": "DateTime", + "Description": "A Date value representing a specified year, month, day, hour, minute, and second.", + "Parameters": "year: The year (1 through 9999). month: The month (1 through 12). day: The day (1\n through the number of days in month). hour: Optional. The hours (0 through 23). minute: Optional. The\n minutes (0 through 59). second: Optional. The seconds (0 through 59).", + "Remarks": "", + "Example": "", + "Return Value": "A Date value representing a specified year, month, day, hour, minute, and second." + }, + { + "Method": "MIN(DateTime date1, DateTime date2, \u00e2\u20ac\u00a6) MIN(DateTime[ ] date)", + "Return Type": "DateTime", + "Description": "Returns the smallest date in a set of date values.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "MAX(DateTime date1, DateTime date2, \u00e2\u20ac\u00a6) MAX(DateTime[ ] date)", + "Return Type": "DateTime", + "Description": "Returns the largest date in a set of date values.", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + }, + { + "Method": "FORMAT(DateTime, string style)", + "Return Type": "string", + "Description": "Returns a string expression formatted according to instructions contained in a format string\n expression. For information on how to create the style argument, see the appropriate topic at MSDN:\n Predefined Date Formats User-Defined Date Formats", + "Parameters": "", + "Remarks": "", + "Example": "", + "Return Value": "" + } +] \ No newline at end of file diff --git a/visual-kpi-docs/static/data/tables/functions/methods/Logical.json b/visual-kpi-docs/static/data/tables/functions/methods/Logical.json new file mode 100644 index 00000000..b8e6cc2b --- /dev/null +++ b/visual-kpi-docs/static/data/tables/functions/methods/Logical.json @@ -0,0 +1,47 @@ +[ + { + "Method": "IIF(bool condition, expression1, expression2) IF(bool condition, expression1,\n expression2)", + "Return Type": "any", + "Description": "If condition evaluates to TRUE, expression1 is returned. If conditionevaluates to FALSE,\n expression2 is returned. This function accepts any type for its second and third parameters as long as they\n are both of the same type." + }, + { + "Method": "AND(boolean, boolean, \u00e2\u20ac\u00a6)", + "Return Type": "boolean", + "Description": "Returns true if all its arguments are true; returns false if any argument is false" + }, + { + "Method": "OR(boolean, boolean, \u00e2\u20ac\u00a6)", + "Return Type": "boolean", + "Description": "Returns true if any argument is true; returns false if all arguments are false" + }, + { + "Method": "IsNull(object) IsDBNull(object)", + "Return Type": "boolean", + "Description": "Determines whether or not a given expression is a DBNull value" + }, + { + "Method": "IsNumeric(object)", + "Return Type": "boolean", + "Description": "Determines whether or not a given expression is a Numeric Numeric value" + }, + { + "Method": "IsBetween(object,low,high)", + "Return Type": "boolean", + "Description": "Determines whether or not a given NUMERIC expression is between a low and high value" + }, + { + "Method": "IsEqualTo(object, value)", + "Return Type": "boolean", + "Description": "Determines whether or not a given NUMERIC expression is equal to a value" + }, + { + "Method": "IsGreaterThan(object, value)", + "Return Type": "boolean", + "Description": "Determines whether or not a given NUMERIC expression is greater than a value" + }, + { + "Method": "IsLessThan(object, value)", + "Return Type": "boolean", + "Description": "Determines whether or not a given NUMERIC expression is less than a value" + } +] \ No newline at end of file diff --git a/visual-kpi-docs/static/data/tables/functions/methods/Lookup.json b/visual-kpi-docs/static/data/tables/functions/methods/Lookup.json new file mode 100644 index 00000000..6cfa0057 --- /dev/null +++ b/visual-kpi-docs/static/data/tables/functions/methods/Lookup.json @@ -0,0 +1,7 @@ +[ + { + "Method": "IN(string ItemToFind, string ListItem1, string ListItem2, \u00e2\u20ac\u00a6) IN(string\n ItemToFind,\n string[] ListItem)", + "Return Type": "boolean", + "Description": "Looks for ItemToFind in the specified list of items. Returns true if item is found in the\n list, false otherwise." + } +] \ No newline at end of file diff --git a/visual-kpi-docs/static/data/tables/functions/methods/MathStat.json b/visual-kpi-docs/static/data/tables/functions/methods/MathStat.json new file mode 100644 index 00000000..b16c5991 --- /dev/null +++ b/visual-kpi-docs/static/data/tables/functions/methods/MathStat.json @@ -0,0 +1,290 @@ +[ + { + "Method": "ABS(double)", + "Return Type": "double", + "Description": "Absolute value", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "ACOS(double)", + "Return Type": "double", + "Description": "Arccosine", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "ACOT(double)", + "Return Type": "double", + "Description": "Arccotangent", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "ACSC(double)", + "Return Type": "double", + "Description": "Arccosecant", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "ASEC(double)", + "Return Type": "double", + "Description": "Arcsecant", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "ASIN(double)", + "Return Type": "double", + "Description": "Arcsine", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "ATAN(double)", + "Return Type": "double", + "Description": "Arctangent", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "AVERAGE(double, double, ...)", + "Return Type": "double", + "Description": "Returns the average (arithmetic mean) of the arguments.", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "CEIL(double)", + "Return Type": "double", + "Description": "The smallest integer greater than or equal to the specified number.", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "COS(double)", + "Return Type": "double", + "Description": "The cosine of the given angle (in radians).", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "COSH(double)", + "Return Type": "double", + "Description": "Hyperbolic cosine", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "COT(double)", + "Return Type": "double", + "Description": "Cotangent", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "COTH(double)", + "Return Type": "double", + "Description": "Hyperbolic cotangent", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "COUNT(double, double, ...) COUNT(double[ ])", + "Return Type": "double", + "Description": "Total count of parameters passed", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "CSC(double)", + "Return Type": "double", + "Description": "Cosecant", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "CSCH(double)", + "Return Type": "double", + "Description": "Hyperbolic cosecant", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "EXP(double)", + "Return Type": "double", + "Description": "E (the base of natural logarithms) raised to the specified power", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "FLOOR(double) INT(double)", + "Return Type": "double", + "Description": "The greatest integer less than or equal to the specified number", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "FORMAT(double, string style)", + "Return Type": "String", + "Description": "Returns a string expression formatted according to instructions contained in a format string\n expression. For information on how to create the style argument, see the appropriate topic at MSDN:\n Predefined Numeric Formats User-Defined Numeric Formats", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "LN(double)", + "Return Type": "double", + "Description": "Natural logarithm", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "LOG(double, double base)", + "Return Type": "double", + "Description": "Logarithm to the specified base", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "LOG10(double)", + "Return Type": "double", + "Description": "Logarithm to base 10", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "MAX(double, double, ...) MAX(double[ ])", + "Return Type": "double", + "Description": "Maximum", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "MIN(double, double, ...) MIN(double[ ])", + "Return Type": "double", + "Description": "Minimum", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "NEG(double)", + "Return Type": "double", + "Description": "Negation", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "POWER(double, double power)", + "Return Type": "double", + "Description": "The specified number raised to the specified power", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "RAND([double max])", + "Return Type": "double", + "Description": "Random number between 0 and max. If max is undefined then RAND() returns random number\n between 0 and 1.", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "ROUND(double d, [int decimals])", + "Return Type": "double", + "Description": "Returns the number with the specified precision nearest the specified value.", + "Parameters": "d: A number to be rounded. decimals: The number of significant fractional digits\n (precision) in the return value. Ranges from 0 to 28.", + "Return Value": "The number nearest d with precision equal to decimals. If d is halfway between two numbers,\n one of which is even and the other odd, then the even number is returned. If the precision of d is less than\n decimals, then d is returned unchanged.", + "Remarks": "The decimals parameter specifies the number of significant fractional digits in the return\n value and ranges from 0 to 28. If decimals is zero, then a whole number is returned. This kind of rounding is\n sometimes called rounding to nearest, or banker's rounding." + }, + { + "Method": "SEC(double)", + "Return Type": "double", + "Description": "Secant", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "SECH(double)", + "Return Type": "double", + "Description": "Hyperbolic secant", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "SIN(double)", + "Return Type": "double", + "Description": "The sine of the given angle (in radians).", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "SINH(double)", + "Return Type": "double", + "Description": "Hyperbolic sine", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "SQRT(double)", + "Return Type": "double", + "Description": "Square root", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "SUM(double, double, ...) SUM(double[ ]) ", + "Return Type": "double", + "Description": "Sum of the specified numbers", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "TAN(double)", + "Return Type": "double", + "Description": "Tangent", + "Parameters": "", + "Return Value": "", + "Remarks": "" + }, + { + "Method": "TANH(double)", + "Return Type": "double", + "Description": "Hyperbolic tangent", + "Parameters": "", + "Return Value": "", + "Remarks": "" + } +] \ No newline at end of file diff --git a/visual-kpi-docs/static/data/tables/functions/methods/Text.json b/visual-kpi-docs/static/data/tables/functions/methods/Text.json new file mode 100644 index 00000000..125be6b7 --- /dev/null +++ b/visual-kpi-docs/static/data/tables/functions/methods/Text.json @@ -0,0 +1,52 @@ +[ + { + "Method": "Concat(object1, object2, \u00e2\u20ac\u00a6 objectN)", + "Return Type": "string", + "Description": "Returns a single concatenated string from a list of strings. doubles, ints, booleans." + }, + { + "Method": "ConcatSep(object1, object2, \u00e2\u20ac\u00a6 objectN, string delimiter)", + "Return Type": "string", + "Description": "Returns a single concatenated and delimited string from a list of strings. doubles, ints,\n booleans" + }, + { + "Method": "Find(string textToFind, string textToSearch, int startIndex)", + "Return Type": "int", + "Description": "Returns the zero-based index of the first occurrence of a textToFind, within a textToSearch\n string. The search starts at a specified character position (zero-based)." + }, + { + "Method": "Left(string, int nCount)", + "Return Type": "string", + "Description": "Returns the first (leftmost) nCount characters from a string." + }, + { + "Method": "Len(string)", + "Return Type": "int", + "Description": "Returns the number of characters in a string" + }, + { + "Method": "Lower(string)", + "Return Type": "string", + "Description": "Converts all uppercase letters in a text string to lowercase." + }, + { + "Method": "Mid(string, int nFirst, int nCount)", + "Return Type": "string", + "Description": "Returns a substring of length nCount characters from a string, starting at position nFirst\n (zero-based)." + }, + { + "Method": "Substitute(string text, string oldText, string newText)", + "Return Type": "string", + "Description": "Substitutes newText for oldText in a text string." + }, + { + "Method": "Trim(string)", + "Return Type": "string", + "Description": "Removes all occurrences of white space characters from the beginning and end of a string.\n " + }, + { + "Method": "Upper(string)", + "Return Type": "string", + "Description": "Converts all lowercase letters in a text string to uppercase." + } +] \ No newline at end of file