autoql-fe-utils 1.6.24 → 1.6.26
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/dist/index.d.ts +122 -2
- package/dist/index.global.js +160 -9
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +164 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1440,49 +1440,169 @@ declare const ORDERBY_DIRECTIONS: {
|
|
|
1440
1440
|
value: string;
|
|
1441
1441
|
label: string;
|
|
1442
1442
|
}[];
|
|
1443
|
-
declare const
|
|
1443
|
+
declare const ROWS_RANGE: {
|
|
1444
|
+
value: string;
|
|
1445
|
+
label: string;
|
|
1446
|
+
}[];
|
|
1447
|
+
declare const ROWS_RANGE_OPTIONS: ({
|
|
1448
|
+
value: string;
|
|
1449
|
+
label: string;
|
|
1450
|
+
canPrecedeWith: string[];
|
|
1451
|
+
canFollowWith: string[];
|
|
1452
|
+
hasNValue: boolean;
|
|
1453
|
+
canStartWith: boolean;
|
|
1454
|
+
canEndWith: boolean;
|
|
1455
|
+
canUseBefore?: undefined;
|
|
1456
|
+
canUseAfter?: undefined;
|
|
1457
|
+
} | {
|
|
1458
|
+
value: string;
|
|
1459
|
+
label: string;
|
|
1460
|
+
canUseBefore: any[];
|
|
1461
|
+
canUseAfter: string[];
|
|
1462
|
+
hasNValue: boolean;
|
|
1463
|
+
canStartWith: boolean;
|
|
1464
|
+
canEndWith: boolean;
|
|
1465
|
+
canPrecedeWith?: undefined;
|
|
1466
|
+
canFollowWith?: undefined;
|
|
1467
|
+
} | {
|
|
1468
|
+
value: string;
|
|
1469
|
+
label: string;
|
|
1470
|
+
canUseBefore: string[];
|
|
1471
|
+
canUseAfter: any[];
|
|
1472
|
+
hasNValue: boolean;
|
|
1473
|
+
canStartWith: boolean;
|
|
1474
|
+
canEndWith: boolean;
|
|
1475
|
+
canPrecedeWith?: undefined;
|
|
1476
|
+
canFollowWith?: undefined;
|
|
1477
|
+
})[];
|
|
1444
1478
|
declare const WINDOW_FUNCTIONS: {
|
|
1445
1479
|
AVG: {
|
|
1446
1480
|
value: string;
|
|
1447
1481
|
label: string;
|
|
1448
1482
|
nextSelector: string;
|
|
1449
1483
|
orderable: boolean;
|
|
1484
|
+
requiredCols: string[];
|
|
1485
|
+
rowsOrRange: boolean;
|
|
1450
1486
|
};
|
|
1451
1487
|
COUNT: {
|
|
1452
1488
|
value: string;
|
|
1453
1489
|
label: string;
|
|
1454
1490
|
nextSelector: string;
|
|
1455
1491
|
orderable: boolean;
|
|
1492
|
+
requiredCols: string[];
|
|
1493
|
+
rowsOrRange: boolean;
|
|
1494
|
+
};
|
|
1495
|
+
CUME_DIST: {
|
|
1496
|
+
value: string;
|
|
1497
|
+
label: string;
|
|
1498
|
+
nextSelector: any;
|
|
1499
|
+
orderable: boolean;
|
|
1500
|
+
requiredCols: string[];
|
|
1501
|
+
rowsOrRange: boolean;
|
|
1456
1502
|
};
|
|
1457
1503
|
DENSE_RANK: {
|
|
1458
1504
|
value: string;
|
|
1459
1505
|
label: string;
|
|
1460
1506
|
nextSelector: any;
|
|
1461
1507
|
orderable: boolean;
|
|
1508
|
+
requiredCols: string[];
|
|
1509
|
+
rowsOrRange: boolean;
|
|
1510
|
+
};
|
|
1511
|
+
FIRST_VALUE: {
|
|
1512
|
+
value: string;
|
|
1513
|
+
label: string;
|
|
1514
|
+
nextSelector: string;
|
|
1515
|
+
orderable: boolean;
|
|
1516
|
+
requiredCols: string[];
|
|
1517
|
+
rowsOrRange: boolean;
|
|
1518
|
+
};
|
|
1519
|
+
LAG: {
|
|
1520
|
+
value: string;
|
|
1521
|
+
label: string;
|
|
1522
|
+
nextSelector: string;
|
|
1523
|
+
orderable: boolean;
|
|
1524
|
+
requiredCols: string[];
|
|
1525
|
+
rowsOrRange: boolean;
|
|
1526
|
+
};
|
|
1527
|
+
LAST_VALUE: {
|
|
1528
|
+
value: string;
|
|
1529
|
+
label: string;
|
|
1530
|
+
nextSelector: string;
|
|
1531
|
+
orderable: boolean;
|
|
1532
|
+
requiredCols: string[];
|
|
1533
|
+
rowsOrRange: boolean;
|
|
1534
|
+
};
|
|
1535
|
+
LEAD: {
|
|
1536
|
+
value: string;
|
|
1537
|
+
label: string;
|
|
1538
|
+
nextSelector: string;
|
|
1539
|
+
orderable: boolean;
|
|
1540
|
+
requiredCols: string[];
|
|
1541
|
+
rowsOrRange: boolean;
|
|
1542
|
+
};
|
|
1543
|
+
MAX: {
|
|
1544
|
+
value: string;
|
|
1545
|
+
label: string;
|
|
1546
|
+
nextSelector: string;
|
|
1547
|
+
orderable: boolean;
|
|
1548
|
+
requiredCols: string[];
|
|
1549
|
+
rowsOrRange: boolean;
|
|
1550
|
+
};
|
|
1551
|
+
MIN: {
|
|
1552
|
+
value: string;
|
|
1553
|
+
label: string;
|
|
1554
|
+
nextSelector: string;
|
|
1555
|
+
orderable: boolean;
|
|
1556
|
+
requiredCols: string[];
|
|
1557
|
+
rowsOrRange: boolean;
|
|
1462
1558
|
};
|
|
1463
1559
|
NTILE: {
|
|
1464
1560
|
value: string;
|
|
1465
1561
|
label: string;
|
|
1466
1562
|
nextSelector: string;
|
|
1467
1563
|
orderable: boolean;
|
|
1564
|
+
requiredCols: string[];
|
|
1565
|
+
rowsOrRange: boolean;
|
|
1566
|
+
};
|
|
1567
|
+
PERCENT_RANK: {
|
|
1568
|
+
value: string;
|
|
1569
|
+
label: string;
|
|
1570
|
+
nextSelector: any;
|
|
1571
|
+
orderable: boolean;
|
|
1572
|
+
requiredCols: string[];
|
|
1573
|
+
rowsOrRange: boolean;
|
|
1468
1574
|
};
|
|
1469
1575
|
RANK: {
|
|
1470
1576
|
value: string;
|
|
1471
1577
|
label: string;
|
|
1472
1578
|
nextSelector: any;
|
|
1473
1579
|
orderable: boolean;
|
|
1580
|
+
requiredCols: string[];
|
|
1581
|
+
rowsOrRange: boolean;
|
|
1474
1582
|
};
|
|
1475
1583
|
ROW_NUMBER: {
|
|
1476
1584
|
value: string;
|
|
1477
1585
|
label: string;
|
|
1478
1586
|
nextSelector: any;
|
|
1479
1587
|
orderable: boolean;
|
|
1588
|
+
requiredCols: string[];
|
|
1589
|
+
rowsOrRange: boolean;
|
|
1480
1590
|
};
|
|
1481
1591
|
SUM: {
|
|
1482
1592
|
value: string;
|
|
1483
1593
|
label: string;
|
|
1484
1594
|
nextSelector: string;
|
|
1485
1595
|
orderable: boolean;
|
|
1596
|
+
requiredCols: string[];
|
|
1597
|
+
rowsOrRange: boolean;
|
|
1598
|
+
};
|
|
1599
|
+
PERCENT_TOTAL: {
|
|
1600
|
+
value: string;
|
|
1601
|
+
label: string;
|
|
1602
|
+
nextSelector: string;
|
|
1603
|
+
orderable: boolean;
|
|
1604
|
+
requiredCols: string[];
|
|
1605
|
+
rowsOrRange: boolean;
|
|
1486
1606
|
};
|
|
1487
1607
|
};
|
|
1488
1608
|
declare const isValueEmpty: (value: any) => boolean;
|
|
@@ -2571,4 +2691,4 @@ declare function color(): {
|
|
|
2571
2691
|
on(): any;
|
|
2572
2692
|
};
|
|
2573
2693
|
|
|
2574
|
-
export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AdditionalSelect, AggType, AggTypeParams, AggTypes, Authentication, AutoQLJWT, AvailableSelect, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column, Column$1 as ColumnObj, ColumnSelect, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_COLUMN_NAME, DEFAULT_CSS_PREFIX, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DISABLED_CLASS, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectFilter, DataExplorerSubjectGroups, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateStringPrecisionTypes, DateUTC, DisplayOverride, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FORMULA_CLASS, FUNCTION_OPERATOR, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GLOBAL_OPERATORS, GROUP_TERM_TYPE, GeneralErrorTypes, HIGHLIGHTED_CLASS, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_CHART_ELEMENTS, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MAX_RECENT_SEARCHES, MAX_ROWS_FOR_PIE_CHART, MINIMUM_INNER_HEIGHT, MINIMUM_INNER_WIDTH, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, OPERATORS,
|
|
2694
|
+
export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AdditionalSelect, AggType, AggTypeParams, AggTypes, Authentication, AutoQLJWT, AvailableSelect, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column, Column$1 as ColumnObj, ColumnSelect, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_COLUMN_NAME, DEFAULT_CSS_PREFIX, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DISABLED_CLASS, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectFilter, DataExplorerSubjectGroups, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateStringPrecisionTypes, DateUTC, DisplayOverride, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FORMULA_CLASS, FUNCTION_OPERATOR, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GLOBAL_OPERATORS, GROUP_TERM_TYPE, GeneralErrorTypes, HIGHLIGHTED_CLASS, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_CHART_ELEMENTS, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MAX_RECENT_SEARCHES, MAX_ROWS_FOR_PIE_CHART, MINIMUM_INNER_HEIGHT, MINIMUM_INNER_WIDTH, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, OPERATORS, ORDERBY_DIRECTIONS, Operators, PATH_SMOOTHING, PERIODIC_TYPE, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QUERY_TIMEOUT_ERROR, QueryData, QueryErrorTypes, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, ROWS_RANGE, ROWS_RANGE_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, SampleQueryReplacementTypes, Scale, SubjectSuggestion, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, Theme, ThemeType, TransformedAxiosResponse, TransformedQueryResponse, TranslationTypes, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, ValueLabelSuggestion, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, WINDOW_FUNCTIONS, addSubjectToRecentSearches, addUserToProjectRule, adjustBottomTitleToFit, adjustMinAndMaxForScaleRatio, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, aggregateOtherCategory, animateInputText, applyLegendTitleStyles, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, assignLabelToManagementDataAlert, authenticationDefault, autoQLConfigDefault, bezierCommand, buildPlainColumnArrayFn, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToFunctionStr, convertToNumber, countDecimals, createDataAlert, createManagementDataAlert, createMutatorFn, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteAllNotifications, deleteDataAlert, deleteMultipleNotifications, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSampleQueries, fetchDataExplorerSuggestions, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotification, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSubjectListV2, fetchSubscribedDataAlerts, fetchSuggestions, fetchTopics, fetchTopicsForVL, fetchVLAutocomplete, filterDataByColumn, formatAdditionalSelectColumn, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAllDataAlertsLabels, getAllDataAlertsLabelsByProject, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinData, getBinLinearScale, getBubbleObj, getChartColorVars, getChartScaleRatio, getCleanColumnName, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getCurrentTimezone, getDataAlertsByLabel, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayOfTheMonthFromTimestamp, getDayOfTheMonthSuffix, getDayjsObjForStringType, getDefaultBucketConfig, getDefaultDisplayType, getDefaultJoinColumnAndDisplayNameAndJoinColumnsIndices, getDefaultJoinColumns, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getFnSummary, getFormattedTimestamp, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHeatmapRectObj, getHiddenColumns, getHistogramColumnObj, getHistogramScale, getInitialBucketSize, getInitialSelections, getKey, getKeyByValue, getLabelsBBox, getLegendLabels, getLegendLabelsForGroupbyQuery, getLegendLabelsForMultiSeries, getLegendLabelsForSingleColumn, getLegendLocation, getLegendScale, getLegendTitleFromColumns, getLineVertexObj, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxLegendHeight, getMaxLegendSectionWidth, getMaxTickLabelWidth, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNotLabeledDataAlerts, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getNumericalColumns, getObjSize, getOpacityScale, getOperators, getPadding, getPieChartData, getPivotColumnIndexConfig, getPlainTextList, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryFn, getQueryParams, getQueryRequestParams, getQuerySelectableJoinColumns, getQueryValidationQueryText, getRadiusScale, getRangeForAxis, getRecentSearchesFromLocalStorage, getRecentSelectionID, getRowNumberListForPopover, getSVGBase64, getSampleQueryRegex, getSampleQueryText, getScheduleFrequencyObject, getSelectableColumns, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringColumns, getStringFromSource, getSuggestionLists, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTitleCase, getTodaysDayOfTheMonth, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, initializeQueryValidationOptions, isAggSeed, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isInitialSelectionValid, isListQuery, isNumber, isObject, isOperatorJs, isSingleValueResponse, isTableType, isValueEmpty, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, numberSortFn, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, parseJwt, potentiallySupportsDatePivot, potentiallySupportsPivot, previewDataAlert, previewManagementDataAlert, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, sendTrainingData, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setRecentSearchesInLocalStorage, setSorterFunction, setTickSize, setTickValues, shouldDisableChartScale, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByAlphabet, sortDataByColumn, sortDataByDate, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, updateManagementDataAlert, updateStartAndEndIndexes, usePivotDataForChart, uuidv4, validateExpression };
|
package/dist/index.global.js
CHANGED
|
@@ -20447,49 +20447,200 @@
|
|
|
20447
20447
|
label: "DESCENDING"
|
|
20448
20448
|
}
|
|
20449
20449
|
];
|
|
20450
|
-
var
|
|
20450
|
+
var ROWS_RANGE = [
|
|
20451
|
+
{
|
|
20452
|
+
value: "ROWS",
|
|
20453
|
+
label: "ROWS"
|
|
20454
|
+
},
|
|
20455
|
+
{
|
|
20456
|
+
value: "RANGE",
|
|
20457
|
+
label: "RANGE"
|
|
20458
|
+
},
|
|
20459
|
+
{
|
|
20460
|
+
value: null,
|
|
20461
|
+
label: "None"
|
|
20462
|
+
}
|
|
20463
|
+
];
|
|
20464
|
+
var ROWS_RANGE_OPTIONS = [
|
|
20465
|
+
{
|
|
20466
|
+
value: "CURRENT ROW",
|
|
20467
|
+
// is used to specify the current row.
|
|
20468
|
+
label: "CURRENT ROW",
|
|
20469
|
+
canPrecedeWith: ["FOLLOWING", "UNBOUNDED FOLLOWING"],
|
|
20470
|
+
canFollowWith: ["PRECEDING", "UNBOUNDED PRECEDING"],
|
|
20471
|
+
hasNValue: false,
|
|
20472
|
+
canStartWith: true,
|
|
20473
|
+
canEndWith: true
|
|
20474
|
+
},
|
|
20475
|
+
{
|
|
20476
|
+
value: "PRECEDING",
|
|
20477
|
+
// is a keyword you use to specify the N rows that will be included in the calculation along with the current row. For example 3 PRECEDING means 3 rows preceding the current row.
|
|
20478
|
+
label: "N PRECEDING",
|
|
20479
|
+
canUseBefore: [],
|
|
20480
|
+
canUseAfter: ["CURRENT ROW", "FOLLOWING", "UNBOUNDED FOLLOWING"],
|
|
20481
|
+
hasNValue: true,
|
|
20482
|
+
canStartWith: true,
|
|
20483
|
+
canEndWith: false
|
|
20484
|
+
},
|
|
20485
|
+
{
|
|
20486
|
+
value: "FOLLOWING",
|
|
20487
|
+
// works like N PRECEDING excepts that it works in an opposite manner. N FOLLOWING specifies the numbers of row after the current row.
|
|
20488
|
+
label: "N FOLLOWING",
|
|
20489
|
+
canUseBefore: ["CURRENT ROW", "PRECEDING", "UNBOUNDED PRECEDING"],
|
|
20490
|
+
canUseAfter: [],
|
|
20491
|
+
hasNValue: true,
|
|
20492
|
+
canStartWith: false,
|
|
20493
|
+
canEndWith: true
|
|
20494
|
+
},
|
|
20495
|
+
{
|
|
20496
|
+
value: "UNBOUNDED PRECEDING",
|
|
20497
|
+
// means all rows before the current row.
|
|
20498
|
+
label: "UNBOUNDED PRECEDING",
|
|
20499
|
+
canUseBefore: [],
|
|
20500
|
+
canUseAfter: ["CURRENT ROW", "FOLLOWING", "UNBOUNDED FOLLOWING"],
|
|
20501
|
+
hasNValue: false,
|
|
20502
|
+
canStartWith: true,
|
|
20503
|
+
canEndWith: false
|
|
20504
|
+
},
|
|
20505
|
+
{
|
|
20506
|
+
value: "UNBOUNDED FOLLOWING",
|
|
20507
|
+
// means all rows after the current row.
|
|
20508
|
+
label: "UNBOUNDED FOLLOWING",
|
|
20509
|
+
canUseBefore: ["CURRENT ROW", "PRECEDING", "UNBOUNDED PRECEDING"],
|
|
20510
|
+
canUseAfter: [],
|
|
20511
|
+
hasNValue: false,
|
|
20512
|
+
canStartWith: false,
|
|
20513
|
+
canEndWith: true
|
|
20514
|
+
}
|
|
20515
|
+
];
|
|
20451
20516
|
var WINDOW_FUNCTIONS = {
|
|
20452
20517
|
AVG: {
|
|
20453
20518
|
value: "AVG",
|
|
20454
20519
|
label: "AVERAGE",
|
|
20455
20520
|
nextSelector: "column",
|
|
20456
|
-
orderable: true
|
|
20521
|
+
orderable: true,
|
|
20522
|
+
requiredCols: ["selectedFnColumn"],
|
|
20523
|
+
rowsOrRange: true
|
|
20457
20524
|
},
|
|
20458
20525
|
COUNT: {
|
|
20459
20526
|
value: "COUNT",
|
|
20460
20527
|
label: "COUNT",
|
|
20461
20528
|
nextSelector: "column",
|
|
20462
|
-
orderable: true
|
|
20529
|
+
orderable: true,
|
|
20530
|
+
requiredCols: ["selectedFnColumn"],
|
|
20531
|
+
rowsOrRange: true
|
|
20532
|
+
},
|
|
20533
|
+
CUME_DIST: {
|
|
20534
|
+
value: "CUME_DIST",
|
|
20535
|
+
label: "CUME DIST",
|
|
20536
|
+
nextSelector: null,
|
|
20537
|
+
orderable: true,
|
|
20538
|
+
requiredCols: ["selectedFnOrderBy"],
|
|
20539
|
+
rowsOrRange: false
|
|
20463
20540
|
},
|
|
20464
20541
|
DENSE_RANK: {
|
|
20465
20542
|
value: "DENSE_RANK",
|
|
20466
20543
|
label: "DENSE RANK",
|
|
20467
20544
|
nextSelector: null,
|
|
20468
|
-
orderable: true
|
|
20545
|
+
orderable: true,
|
|
20546
|
+
requiredCols: ["selectedFnOrderBy"],
|
|
20547
|
+
rowsOrRange: false
|
|
20548
|
+
},
|
|
20549
|
+
FIRST_VALUE: {
|
|
20550
|
+
value: "FIRST_VALUE",
|
|
20551
|
+
label: "FIRST VALUE",
|
|
20552
|
+
nextSelector: "column",
|
|
20553
|
+
orderable: true,
|
|
20554
|
+
requiredCols: ["selectedFnColumn", "selectedFnOrderBy"],
|
|
20555
|
+
rowsOrRange: true
|
|
20556
|
+
},
|
|
20557
|
+
LAG: {
|
|
20558
|
+
value: "LAG",
|
|
20559
|
+
label: "LAG",
|
|
20560
|
+
nextSelector: "column",
|
|
20561
|
+
orderable: true,
|
|
20562
|
+
requiredCols: ["selectedFnColumn", "selectedFnOrderBy"],
|
|
20563
|
+
rowsOrRange: false
|
|
20564
|
+
},
|
|
20565
|
+
LAST_VALUE: {
|
|
20566
|
+
value: "LAST_VALUE",
|
|
20567
|
+
label: "LAST VALUE",
|
|
20568
|
+
nextSelector: "column",
|
|
20569
|
+
orderable: true,
|
|
20570
|
+
requiredCols: ["selectedFnColumn", "selectedFnOrderBy"],
|
|
20571
|
+
rowsOrRange: true
|
|
20572
|
+
},
|
|
20573
|
+
LEAD: {
|
|
20574
|
+
value: "LEAD",
|
|
20575
|
+
label: "LEAD",
|
|
20576
|
+
nextSelector: "column",
|
|
20577
|
+
orderable: true,
|
|
20578
|
+
requiredCols: ["selectedFnColumn", "selectedFnOrderBy"],
|
|
20579
|
+
rowsOrRange: false
|
|
20580
|
+
},
|
|
20581
|
+
MAX: {
|
|
20582
|
+
value: "MAX",
|
|
20583
|
+
label: "MAX",
|
|
20584
|
+
nextSelector: "column",
|
|
20585
|
+
orderable: true,
|
|
20586
|
+
requiredCols: ["selectedFnColumn"],
|
|
20587
|
+
rowsOrRange: false
|
|
20588
|
+
},
|
|
20589
|
+
MIN: {
|
|
20590
|
+
value: "MIN",
|
|
20591
|
+
label: "MIN",
|
|
20592
|
+
nextSelector: "column",
|
|
20593
|
+
orderable: true,
|
|
20594
|
+
requiredCols: ["selectedFnColumn"],
|
|
20595
|
+
rowsOrRange: false
|
|
20469
20596
|
},
|
|
20470
20597
|
NTILE: {
|
|
20471
20598
|
value: "NTILE",
|
|
20472
20599
|
label: "NTILE",
|
|
20473
20600
|
nextSelector: "number",
|
|
20474
|
-
orderable: true
|
|
20601
|
+
orderable: true,
|
|
20602
|
+
requiredCols: ["selectedFnNTileNumber", "selectedFnOrderBy"],
|
|
20603
|
+
rowsOrRange: false
|
|
20604
|
+
},
|
|
20605
|
+
PERCENT_RANK: {
|
|
20606
|
+
value: "PERCENT_RANK",
|
|
20607
|
+
label: "PERCENT RANK",
|
|
20608
|
+
nextSelector: null,
|
|
20609
|
+
orderable: true,
|
|
20610
|
+
requiredCols: ["selectedFnOrderBy"],
|
|
20611
|
+
rowsOrRange: false
|
|
20475
20612
|
},
|
|
20476
20613
|
RANK: {
|
|
20477
20614
|
value: "RANK",
|
|
20478
20615
|
label: "RANK",
|
|
20479
20616
|
nextSelector: null,
|
|
20480
|
-
orderable: true
|
|
20617
|
+
orderable: true,
|
|
20618
|
+
requiredCols: ["selectedFnOrderBy"],
|
|
20619
|
+
rowsOrRange: false
|
|
20481
20620
|
},
|
|
20482
20621
|
ROW_NUMBER: {
|
|
20483
20622
|
value: "ROW_NUMBER",
|
|
20484
|
-
label: "ROW
|
|
20623
|
+
label: "ROW NUMBER",
|
|
20485
20624
|
nextSelector: null,
|
|
20486
|
-
orderable: true
|
|
20625
|
+
orderable: true,
|
|
20626
|
+
requiredCols: ["selectedFnOrderBy"],
|
|
20627
|
+
rowsOrRange: false
|
|
20487
20628
|
},
|
|
20488
20629
|
SUM: {
|
|
20489
20630
|
value: "SUM",
|
|
20490
20631
|
label: "SUM",
|
|
20491
20632
|
nextSelector: "column",
|
|
20492
|
-
orderable: true
|
|
20633
|
+
orderable: true,
|
|
20634
|
+
requiredCols: ["selectedFnColumn"],
|
|
20635
|
+
rowsOrRange: true
|
|
20636
|
+
},
|
|
20637
|
+
PERCENT_TOTAL: {
|
|
20638
|
+
value: "PERCENT_TOTAL",
|
|
20639
|
+
label: "PERCENT OF TOTAL",
|
|
20640
|
+
nextSelector: "sum",
|
|
20641
|
+
orderable: false,
|
|
20642
|
+
requiredCols: ["selectedFnSum"],
|
|
20643
|
+
rowsOrRange: false
|
|
20493
20644
|
}
|
|
20494
20645
|
};
|
|
20495
20646
|
var CHATA_ERROR = "ChataError";
|