@quillsql/react 2.10.29 → 2.10.31
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/package.json +1 -1
- package/dist/cjs/BarList.d.ts +0 -22
- package/dist/cjs/BarList.d.ts.map +0 -1
- package/dist/cjs/BarList.js +0 -286
- package/dist/cjs/Chart.d.ts +0 -42
- package/dist/cjs/Chart.d.ts.map +0 -1
- package/dist/cjs/Chart.js +0 -360
- package/dist/cjs/ChartBuilder.d.ts +0 -46
- package/dist/cjs/ChartBuilder.d.ts.map +0 -1
- package/dist/cjs/ChartBuilder.js +0 -703
- package/dist/cjs/ChartEditor.d.ts +0 -27
- package/dist/cjs/ChartEditor.d.ts.map +0 -1
- package/dist/cjs/ChartEditor.js +0 -78
- package/dist/cjs/Context.d.ts +0 -36
- package/dist/cjs/Context.d.ts.map +0 -1
- package/dist/cjs/Context.js +0 -230
- package/dist/cjs/Dashboard.d.ts +0 -178
- package/dist/cjs/Dashboard.d.ts.map +0 -1
- package/dist/cjs/Dashboard.js +0 -498
- package/dist/cjs/DateRangePicker/Calendar.d.ts +0 -17
- package/dist/cjs/DateRangePicker/Calendar.d.ts.map +0 -1
- package/dist/cjs/DateRangePicker/Calendar.js +0 -171
- package/dist/cjs/DateRangePicker/DateRangePicker.d.ts +0 -39
- package/dist/cjs/DateRangePicker/DateRangePicker.d.ts.map +0 -1
- package/dist/cjs/DateRangePicker/DateRangePicker.js +0 -150
- package/dist/cjs/DateRangePicker/DateRangePickerButton.d.ts +0 -23
- package/dist/cjs/DateRangePicker/DateRangePickerButton.d.ts.map +0 -1
- package/dist/cjs/DateRangePicker/DateRangePickerButton.js +0 -138
- package/dist/cjs/DateRangePicker/QuillDateRangePicker.d.ts +0 -3
- package/dist/cjs/DateRangePicker/QuillDateRangePicker.d.ts.map +0 -1
- package/dist/cjs/DateRangePicker/QuillDateRangePicker.js +0 -260
- package/dist/cjs/DateRangePicker/dateRangePickerUtils.d.ts +0 -80
- package/dist/cjs/DateRangePicker/dateRangePickerUtils.d.ts.map +0 -1
- package/dist/cjs/DateRangePicker/dateRangePickerUtils.js +0 -549
- package/dist/cjs/DateRangePicker/index.d.ts +0 -3
- package/dist/cjs/DateRangePicker/index.d.ts.map +0 -1
- package/dist/cjs/DateRangePicker/index.js +0 -9
- package/dist/cjs/PieChart.d.ts +0 -59
- package/dist/cjs/PieChart.d.ts.map +0 -1
- package/dist/cjs/PieChart.js +0 -567
- package/dist/cjs/QuillProvider.d.ts +0 -58
- package/dist/cjs/QuillProvider.d.ts.map +0 -1
- package/dist/cjs/QuillProvider.js +0 -34
- package/dist/cjs/ReportBuilder.d.ts +0 -41
- package/dist/cjs/ReportBuilder.d.ts.map +0 -1
- package/dist/cjs/ReportBuilder.js +0 -1004
- package/dist/cjs/SQLEditor.d.ts +0 -54
- package/dist/cjs/SQLEditor.d.ts.map +0 -1
- package/dist/cjs/SQLEditor.js +0 -503
- package/dist/cjs/TableChart.d.ts +0 -15
- package/dist/cjs/TableChart.d.ts.map +0 -1
- package/dist/cjs/TableChart.js +0 -317
- package/dist/cjs/assets/ArrowDownHeadIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowDownHeadIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowDownHeadIcon.js +0 -5
- package/dist/cjs/assets/ArrowDownIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowDownIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowDownIcon.js +0 -5
- package/dist/cjs/assets/ArrowDownRightIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowDownRightIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowDownRightIcon.js +0 -5
- package/dist/cjs/assets/ArrowLeftHeadIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowLeftHeadIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowLeftHeadIcon.js +0 -5
- package/dist/cjs/assets/ArrowRightHeadIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowRightHeadIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowRightHeadIcon.js +0 -5
- package/dist/cjs/assets/ArrowRightIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowRightIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowRightIcon.js +0 -5
- package/dist/cjs/assets/ArrowUpHeadIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowUpHeadIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowUpHeadIcon.js +0 -5
- package/dist/cjs/assets/ArrowUpIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowUpIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowUpIcon.js +0 -5
- package/dist/cjs/assets/ArrowUpRightIcon.d.ts +0 -5
- package/dist/cjs/assets/ArrowUpRightIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ArrowUpRightIcon.js +0 -5
- package/dist/cjs/assets/CalendarIcon.d.ts +0 -5
- package/dist/cjs/assets/CalendarIcon.d.ts.map +0 -1
- package/dist/cjs/assets/CalendarIcon.js +0 -5
- package/dist/cjs/assets/CalendarNormalIcon.d.ts +0 -5
- package/dist/cjs/assets/CalendarNormalIcon.d.ts.map +0 -1
- package/dist/cjs/assets/CalendarNormalIcon.js +0 -5
- package/dist/cjs/assets/DoubleArrowLeftHeadIcon.d.ts +0 -5
- package/dist/cjs/assets/DoubleArrowLeftHeadIcon.d.ts.map +0 -1
- package/dist/cjs/assets/DoubleArrowLeftHeadIcon.js +0 -5
- package/dist/cjs/assets/DoubleArrowRightHeadIcon.d.ts +0 -5
- package/dist/cjs/assets/DoubleArrowRightHeadIcon.d.ts.map +0 -1
- package/dist/cjs/assets/DoubleArrowRightHeadIcon.js +0 -5
- package/dist/cjs/assets/ExclamationFilledIcon.d.ts +0 -5
- package/dist/cjs/assets/ExclamationFilledIcon.d.ts.map +0 -1
- package/dist/cjs/assets/ExclamationFilledIcon.js +0 -5
- package/dist/cjs/assets/FilterIcon.d.ts +0 -5
- package/dist/cjs/assets/FilterIcon.d.ts.map +0 -1
- package/dist/cjs/assets/FilterIcon.js +0 -5
- package/dist/cjs/assets/LoadingSpinner.d.ts +0 -5
- package/dist/cjs/assets/LoadingSpinner.d.ts.map +0 -1
- package/dist/cjs/assets/LoadingSpinner.js +0 -5
- package/dist/cjs/assets/RefreshIcon.d.ts +0 -5
- package/dist/cjs/assets/RefreshIcon.d.ts.map +0 -1
- package/dist/cjs/assets/RefreshIcon.js +0 -5
- package/dist/cjs/assets/SearchIcon.d.ts +0 -5
- package/dist/cjs/assets/SearchIcon.d.ts.map +0 -1
- package/dist/cjs/assets/SearchIcon.js +0 -5
- package/dist/cjs/assets/UpLeftArrowsIcon.d.ts +0 -5
- package/dist/cjs/assets/UpLeftArrowsIcon.d.ts.map +0 -1
- package/dist/cjs/assets/UpLeftArrowsIcon.js +0 -5
- package/dist/cjs/assets/XCircleIcon.d.ts +0 -5
- package/dist/cjs/assets/XCircleIcon.d.ts.map +0 -1
- package/dist/cjs/assets/XCircleIcon.js +0 -5
- package/dist/cjs/assets/XIcon.d.ts +0 -5
- package/dist/cjs/assets/XIcon.d.ts.map +0 -1
- package/dist/cjs/assets/XIcon.js +0 -5
- package/dist/cjs/assets/index.d.ts +0 -22
- package/dist/cjs/assets/index.d.ts.map +0 -1
- package/dist/cjs/assets/index.js +0 -48
- package/dist/cjs/components/Banner/index.d.ts +0 -3
- package/dist/cjs/components/Banner/index.d.ts.map +0 -1
- package/dist/cjs/components/Banner/index.js +0 -27
- package/dist/cjs/components/BigModal/BigModal.d.ts +0 -15
- package/dist/cjs/components/BigModal/BigModal.d.ts.map +0 -1
- package/dist/cjs/components/BigModal/BigModal.js +0 -87
- package/dist/cjs/components/Chart/BarChart.d.ts +0 -18
- package/dist/cjs/components/Chart/BarChart.d.ts.map +0 -1
- package/dist/cjs/components/Chart/BarChart.js +0 -81
- package/dist/cjs/components/Chart/ChartError.d.ts +0 -3
- package/dist/cjs/components/Chart/ChartError.d.ts.map +0 -1
- package/dist/cjs/components/Chart/ChartError.js +0 -29
- package/dist/cjs/components/Chart/ChartSkeleton.d.ts +0 -6
- package/dist/cjs/components/Chart/ChartSkeleton.d.ts.map +0 -1
- package/dist/cjs/components/Chart/ChartSkeleton.js +0 -20
- package/dist/cjs/components/Chart/ChartTooltip.d.ts +0 -29
- package/dist/cjs/components/Chart/ChartTooltip.d.ts.map +0 -1
- package/dist/cjs/components/Chart/ChartTooltip.js +0 -235
- package/dist/cjs/components/Chart/ChartTooltipFrame.d.ts +0 -6
- package/dist/cjs/components/Chart/ChartTooltipFrame.d.ts.map +0 -1
- package/dist/cjs/components/Chart/ChartTooltipFrame.js +0 -16
- package/dist/cjs/components/Chart/ChartTooltipGroup.d.ts +0 -11
- package/dist/cjs/components/Chart/ChartTooltipGroup.d.ts.map +0 -1
- package/dist/cjs/components/Chart/ChartTooltipGroup.js +0 -29
- package/dist/cjs/components/Chart/ChartTooltipRow.d.ts +0 -8
- package/dist/cjs/components/Chart/ChartTooltipRow.d.ts.map +0 -1
- package/dist/cjs/components/Chart/ChartTooltipRow.js +0 -44
- package/dist/cjs/components/Chart/LineChart.d.ts +0 -16
- package/dist/cjs/components/Chart/LineChart.d.ts.map +0 -1
- package/dist/cjs/components/Chart/LineChart.js +0 -97
- package/dist/cjs/components/Dashboard/ChartComponent.d.ts +0 -3
- package/dist/cjs/components/Dashboard/ChartComponent.d.ts.map +0 -1
- package/dist/cjs/components/Dashboard/ChartComponent.js +0 -64
- package/dist/cjs/components/Dashboard/DashboardSection.d.ts +0 -3
- package/dist/cjs/components/Dashboard/DashboardSection.d.ts.map +0 -1
- package/dist/cjs/components/Dashboard/DashboardSection.js +0 -17
- package/dist/cjs/components/Dashboard/DashboardSectionContainer.d.ts +0 -3
- package/dist/cjs/components/Dashboard/DashboardSectionContainer.d.ts.map +0 -1
- package/dist/cjs/components/Dashboard/DashboardSectionContainer.js +0 -13
- package/dist/cjs/components/Dashboard/DataLoader.d.ts +0 -3
- package/dist/cjs/components/Dashboard/DataLoader.d.ts.map +0 -1
- package/dist/cjs/components/Dashboard/DataLoader.js +0 -74
- package/dist/cjs/components/Dashboard/MetricComponent.d.ts +0 -3
- package/dist/cjs/components/Dashboard/MetricComponent.d.ts.map +0 -1
- package/dist/cjs/components/Dashboard/MetricComponent.js +0 -65
- package/dist/cjs/components/Dashboard/TableComponent.d.ts +0 -3
- package/dist/cjs/components/Dashboard/TableComponent.d.ts.map +0 -1
- package/dist/cjs/components/Dashboard/TableComponent.js +0 -35
- package/dist/cjs/components/Dropdown/Dropdown.d.ts +0 -14
- package/dist/cjs/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/cjs/components/Dropdown/Dropdown.js +0 -99
- package/dist/cjs/components/Dropdown/DropdownItem.d.ts +0 -11
- package/dist/cjs/components/Dropdown/DropdownItem.d.ts.map +0 -1
- package/dist/cjs/components/Dropdown/DropdownItem.js +0 -67
- package/dist/cjs/components/Dropdown/index.d.ts +0 -3
- package/dist/cjs/components/Dropdown/index.d.ts.map +0 -1
- package/dist/cjs/components/Dropdown/index.js +0 -10
- package/dist/cjs/components/Modal/Modal.d.ts +0 -15
- package/dist/cjs/components/Modal/Modal.d.ts.map +0 -1
- package/dist/cjs/components/Modal/Modal.js +0 -90
- package/dist/cjs/components/Modal/index.d.ts +0 -2
- package/dist/cjs/components/Modal/index.d.ts.map +0 -1
- package/dist/cjs/components/Modal/index.js +0 -8
- package/dist/cjs/components/QuillCard.d.ts +0 -14
- package/dist/cjs/components/QuillCard.d.ts.map +0 -1
- package/dist/cjs/components/QuillCard.js +0 -56
- package/dist/cjs/components/QuillSelect.d.ts +0 -3
- package/dist/cjs/components/QuillSelect.d.ts.map +0 -1
- package/dist/cjs/components/QuillSelect.js +0 -128
- package/dist/cjs/components/QuillTable.d.ts +0 -3
- package/dist/cjs/components/QuillTable.d.ts.map +0 -1
- package/dist/cjs/components/QuillTable.js +0 -255
- package/dist/cjs/components/UiComponents.d.ts +0 -130
- package/dist/cjs/components/UiComponents.d.ts.map +0 -1
- package/dist/cjs/components/UiComponents.js +0 -262
- package/dist/cjs/components/selectUtils.d.ts +0 -10
- package/dist/cjs/components/selectUtils.d.ts.map +0 -1
- package/dist/cjs/components/selectUtils.js +0 -47
- package/dist/cjs/contexts/BaseColorContext.d.ts +0 -4
- package/dist/cjs/contexts/BaseColorContext.d.ts.map +0 -1
- package/dist/cjs/contexts/BaseColorContext.js +0 -5
- package/dist/cjs/contexts/HoveredValueContext.d.ts +0 -8
- package/dist/cjs/contexts/HoveredValueContext.d.ts.map +0 -1
- package/dist/cjs/contexts/HoveredValueContext.js +0 -7
- package/dist/cjs/contexts/RootStylesContext.d.ts +0 -4
- package/dist/cjs/contexts/RootStylesContext.d.ts.map +0 -1
- package/dist/cjs/contexts/RootStylesContext.js +0 -5
- package/dist/cjs/contexts/SelectedValueContext.d.ts +0 -8
- package/dist/cjs/contexts/SelectedValueContext.d.ts.map +0 -1
- package/dist/cjs/contexts/SelectedValueContext.js +0 -8
- package/dist/cjs/contexts/index.d.ts +0 -5
- package/dist/cjs/contexts/index.d.ts.map +0 -1
- package/dist/cjs/contexts/index.js +0 -14
- package/dist/cjs/hooks/index.d.ts +0 -5
- package/dist/cjs/hooks/index.d.ts.map +0 -1
- package/dist/cjs/hooks/index.js +0 -14
- package/dist/cjs/hooks/useDashboard.d.ts +0 -7
- package/dist/cjs/hooks/useDashboard.d.ts.map +0 -1
- package/dist/cjs/hooks/useDashboard.js +0 -54
- package/dist/cjs/hooks/useExport.d.ts +0 -15
- package/dist/cjs/hooks/useExport.d.ts.map +0 -1
- package/dist/cjs/hooks/useExport.js +0 -31
- package/dist/cjs/hooks/useFormat.d.ts +0 -6
- package/dist/cjs/hooks/useFormat.d.ts.map +0 -1
- package/dist/cjs/hooks/useFormat.js +0 -25
- package/dist/cjs/hooks/useInternalState.d.ts +0 -4
- package/dist/cjs/hooks/useInternalState.d.ts.map +0 -1
- package/dist/cjs/hooks/useInternalState.js +0 -16
- package/dist/cjs/hooks/useOnClickOutside.d.ts +0 -3
- package/dist/cjs/hooks/useOnClickOutside.d.ts.map +0 -1
- package/dist/cjs/hooks/useOnClickOutside.js +0 -20
- package/dist/cjs/hooks/useOnWindowResize.d.ts +0 -5
- package/dist/cjs/hooks/useOnWindowResize.d.ts.map +0 -1
- package/dist/cjs/hooks/useOnWindowResize.js +0 -16
- package/dist/cjs/hooks/useQuill.d.ts +0 -46
- package/dist/cjs/hooks/useQuill.d.ts.map +0 -1
- package/dist/cjs/hooks/useQuill.js +0 -94
- package/dist/cjs/hooks/useSelectOnKeyDown.d.ts +0 -3
- package/dist/cjs/hooks/useSelectOnKeyDown.d.ts.map +0 -1
- package/dist/cjs/hooks/useSelectOnKeyDown.js +0 -65
- package/dist/cjs/index.d.ts +0 -19
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -38
- package/dist/cjs/internals/ReportBuilder/PivotList.d.ts +0 -34
- package/dist/cjs/internals/ReportBuilder/PivotList.d.ts.map +0 -1
- package/dist/cjs/internals/ReportBuilder/PivotList.js +0 -61
- package/dist/cjs/internals/ReportBuilder/PivotModal.d.ts +0 -62
- package/dist/cjs/internals/ReportBuilder/PivotModal.d.ts.map +0 -1
- package/dist/cjs/internals/ReportBuilder/PivotModal.js +0 -916
- package/dist/cjs/internals/ReportBuilder/PivotModal.spec.d.ts +0 -2
- package/dist/cjs/internals/ReportBuilder/PivotModal.spec.d.ts.map +0 -1
- package/dist/cjs/internals/ReportBuilder/PivotModal.spec.js +0 -213
- package/dist/cjs/lib/font.d.ts +0 -14
- package/dist/cjs/lib/font.d.ts.map +0 -1
- package/dist/cjs/lib/font.js +0 -16
- package/dist/cjs/lib/index.d.ts +0 -4
- package/dist/cjs/lib/index.d.ts.map +0 -1
- package/dist/cjs/lib/index.js +0 -19
- package/dist/cjs/lib/inputTypes.d.ts +0 -21
- package/dist/cjs/lib/inputTypes.d.ts.map +0 -1
- package/dist/cjs/lib/inputTypes.js +0 -56
- package/dist/cjs/lib/utils.d.ts +0 -10
- package/dist/cjs/lib/utils.d.ts.map +0 -1
- package/dist/cjs/lib/utils.js +0 -45
- package/dist/cjs/utils/aggregate.d.ts +0 -4
- package/dist/cjs/utils/aggregate.d.ts.map +0 -1
- package/dist/cjs/utils/aggregate.js +0 -429
- package/dist/cjs/utils/axisFormatter.d.ts +0 -20
- package/dist/cjs/utils/axisFormatter.d.ts.map +0 -1
- package/dist/cjs/utils/axisFormatter.js +0 -194
- package/dist/cjs/utils/color.d.ts +0 -13
- package/dist/cjs/utils/color.d.ts.map +0 -1
- package/dist/cjs/utils/color.js +0 -251
- package/dist/cjs/utils/crypto.d.ts +0 -2
- package/dist/cjs/utils/crypto.d.ts.map +0 -1
- package/dist/cjs/utils/crypto.js +0 -10
- package/dist/cjs/utils/csv.d.ts +0 -6
- package/dist/cjs/utils/csv.d.ts.map +0 -1
- package/dist/cjs/utils/csv.js +0 -80
- package/dist/cjs/utils/dashboard.d.ts +0 -12
- package/dist/cjs/utils/dashboard.d.ts.map +0 -1
- package/dist/cjs/utils/dashboard.js +0 -174
- package/dist/cjs/utils/dataFetcher.d.ts +0 -3
- package/dist/cjs/utils/dataFetcher.d.ts.map +0 -1
- package/dist/cjs/utils/dataFetcher.js +0 -71
- package/dist/cjs/utils/dates.d.ts +0 -10
- package/dist/cjs/utils/dates.d.ts.map +0 -1
- package/dist/cjs/utils/dates.js +0 -37
- package/dist/cjs/utils/getDomain.d.ts +0 -8
- package/dist/cjs/utils/getDomain.d.ts.map +0 -1
- package/dist/cjs/utils/getDomain.js +0 -31
- package/dist/cjs/utils/merge.d.ts +0 -2
- package/dist/cjs/utils/merge.d.ts.map +0 -1
- package/dist/cjs/utils/merge.js +0 -49
- package/dist/cjs/utils/styles.d.ts +0 -17
- package/dist/cjs/utils/styles.d.ts.map +0 -1
- package/dist/cjs/utils/styles.js +0 -20
- package/dist/cjs/utils/valueFormatter.d.ts +0 -27
- package/dist/cjs/utils/valueFormatter.d.ts.map +0 -1
- package/dist/cjs/utils/valueFormatter.js +0 -252
- package/dist/cjs/utils/valueFormatterCSV.d.ts +0 -17
- package/dist/cjs/utils/valueFormatterCSV.d.ts.map +0 -1
- package/dist/cjs/utils/valueFormatterCSV.js +0 -99
- package/dist/esm/BarList.d.ts +0 -22
- package/dist/esm/BarList.d.ts.map +0 -1
- package/dist/esm/BarList.js +0 -279
- package/dist/esm/Chart.d.ts +0 -42
- package/dist/esm/Chart.d.ts.map +0 -1
- package/dist/esm/Chart.js +0 -353
- package/dist/esm/ChartBuilder.d.ts +0 -46
- package/dist/esm/ChartBuilder.d.ts.map +0 -1
- package/dist/esm/ChartBuilder.js +0 -695
- package/dist/esm/ChartEditor.d.ts +0 -27
- package/dist/esm/ChartEditor.d.ts.map +0 -1
- package/dist/esm/ChartEditor.js +0 -72
- package/dist/esm/Context.d.ts +0 -36
- package/dist/esm/Context.d.ts.map +0 -1
- package/dist/esm/Context.js +0 -223
- package/dist/esm/Dashboard.d.ts +0 -178
- package/dist/esm/Dashboard.d.ts.map +0 -1
- package/dist/esm/Dashboard.js +0 -490
- package/dist/esm/DateRangePicker/Calendar.d.ts +0 -17
- package/dist/esm/DateRangePicker/Calendar.d.ts.map +0 -1
- package/dist/esm/DateRangePicker/Calendar.js +0 -167
- package/dist/esm/DateRangePicker/DateRangePicker.d.ts +0 -39
- package/dist/esm/DateRangePicker/DateRangePicker.d.ts.map +0 -1
- package/dist/esm/DateRangePicker/DateRangePicker.js +0 -122
- package/dist/esm/DateRangePicker/DateRangePickerButton.d.ts +0 -23
- package/dist/esm/DateRangePicker/DateRangePickerButton.d.ts.map +0 -1
- package/dist/esm/DateRangePicker/DateRangePickerButton.js +0 -136
- package/dist/esm/DateRangePicker/QuillDateRangePicker.d.ts +0 -3
- package/dist/esm/DateRangePicker/QuillDateRangePicker.d.ts.map +0 -1
- package/dist/esm/DateRangePicker/QuillDateRangePicker.js +0 -256
- package/dist/esm/DateRangePicker/dateRangePickerUtils.d.ts +0 -80
- package/dist/esm/DateRangePicker/dateRangePickerUtils.d.ts.map +0 -1
- package/dist/esm/DateRangePicker/dateRangePickerUtils.js +0 -535
- package/dist/esm/DateRangePicker/index.d.ts +0 -3
- package/dist/esm/DateRangePicker/index.d.ts.map +0 -1
- package/dist/esm/DateRangePicker/index.js +0 -2
- package/dist/esm/PieChart.d.ts +0 -59
- package/dist/esm/PieChart.d.ts.map +0 -1
- package/dist/esm/PieChart.js +0 -533
- package/dist/esm/QuillProvider.d.ts +0 -58
- package/dist/esm/QuillProvider.d.ts.map +0 -1
- package/dist/esm/QuillProvider.js +0 -31
- package/dist/esm/ReportBuilder.d.ts +0 -41
- package/dist/esm/ReportBuilder.d.ts.map +0 -1
- package/dist/esm/ReportBuilder.js +0 -996
- package/dist/esm/SQLEditor.d.ts +0 -54
- package/dist/esm/SQLEditor.d.ts.map +0 -1
- package/dist/esm/SQLEditor.js +0 -494
- package/dist/esm/TableChart.d.ts +0 -15
- package/dist/esm/TableChart.d.ts.map +0 -1
- package/dist/esm/TableChart.js +0 -290
- package/dist/esm/assets/ArrowDownHeadIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowDownHeadIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowDownHeadIcon.js +0 -3
- package/dist/esm/assets/ArrowDownIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowDownIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowDownIcon.js +0 -3
- package/dist/esm/assets/ArrowDownRightIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowDownRightIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowDownRightIcon.js +0 -3
- package/dist/esm/assets/ArrowLeftHeadIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowLeftHeadIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowLeftHeadIcon.js +0 -3
- package/dist/esm/assets/ArrowRightHeadIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowRightHeadIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowRightHeadIcon.js +0 -3
- package/dist/esm/assets/ArrowRightIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowRightIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowRightIcon.js +0 -3
- package/dist/esm/assets/ArrowUpHeadIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowUpHeadIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowUpHeadIcon.js +0 -3
- package/dist/esm/assets/ArrowUpIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowUpIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowUpIcon.js +0 -3
- package/dist/esm/assets/ArrowUpRightIcon.d.ts +0 -5
- package/dist/esm/assets/ArrowUpRightIcon.d.ts.map +0 -1
- package/dist/esm/assets/ArrowUpRightIcon.js +0 -3
- package/dist/esm/assets/CalendarIcon.d.ts +0 -5
- package/dist/esm/assets/CalendarIcon.d.ts.map +0 -1
- package/dist/esm/assets/CalendarIcon.js +0 -3
- package/dist/esm/assets/CalendarNormalIcon.d.ts +0 -5
- package/dist/esm/assets/CalendarNormalIcon.d.ts.map +0 -1
- package/dist/esm/assets/CalendarNormalIcon.js +0 -3
- package/dist/esm/assets/DoubleArrowLeftHeadIcon.d.ts +0 -5
- package/dist/esm/assets/DoubleArrowLeftHeadIcon.d.ts.map +0 -1
- package/dist/esm/assets/DoubleArrowLeftHeadIcon.js +0 -3
- package/dist/esm/assets/DoubleArrowRightHeadIcon.d.ts +0 -5
- package/dist/esm/assets/DoubleArrowRightHeadIcon.d.ts.map +0 -1
- package/dist/esm/assets/DoubleArrowRightHeadIcon.js +0 -3
- package/dist/esm/assets/ExclamationFilledIcon.d.ts +0 -5
- package/dist/esm/assets/ExclamationFilledIcon.d.ts.map +0 -1
- package/dist/esm/assets/ExclamationFilledIcon.js +0 -3
- package/dist/esm/assets/FilterIcon.d.ts +0 -5
- package/dist/esm/assets/FilterIcon.d.ts.map +0 -1
- package/dist/esm/assets/FilterIcon.js +0 -3
- package/dist/esm/assets/LoadingSpinner.d.ts +0 -5
- package/dist/esm/assets/LoadingSpinner.d.ts.map +0 -1
- package/dist/esm/assets/LoadingSpinner.js +0 -3
- package/dist/esm/assets/RefreshIcon.d.ts +0 -5
- package/dist/esm/assets/RefreshIcon.d.ts.map +0 -1
- package/dist/esm/assets/RefreshIcon.js +0 -3
- package/dist/esm/assets/SearchIcon.d.ts +0 -5
- package/dist/esm/assets/SearchIcon.d.ts.map +0 -1
- package/dist/esm/assets/SearchIcon.js +0 -3
- package/dist/esm/assets/UpLeftArrowsIcon.d.ts +0 -5
- package/dist/esm/assets/UpLeftArrowsIcon.d.ts.map +0 -1
- package/dist/esm/assets/UpLeftArrowsIcon.js +0 -3
- package/dist/esm/assets/XCircleIcon.d.ts +0 -5
- package/dist/esm/assets/XCircleIcon.d.ts.map +0 -1
- package/dist/esm/assets/XCircleIcon.js +0 -3
- package/dist/esm/assets/XIcon.d.ts +0 -5
- package/dist/esm/assets/XIcon.d.ts.map +0 -1
- package/dist/esm/assets/XIcon.js +0 -3
- package/dist/esm/assets/index.d.ts +0 -22
- package/dist/esm/assets/index.d.ts.map +0 -1
- package/dist/esm/assets/index.js +0 -21
- package/dist/esm/components/Banner/index.d.ts +0 -3
- package/dist/esm/components/Banner/index.d.ts.map +0 -1
- package/dist/esm/components/Banner/index.js +0 -24
- package/dist/esm/components/BigModal/BigModal.d.ts +0 -15
- package/dist/esm/components/BigModal/BigModal.d.ts.map +0 -1
- package/dist/esm/components/BigModal/BigModal.js +0 -62
- package/dist/esm/components/Chart/BarChart.d.ts +0 -18
- package/dist/esm/components/Chart/BarChart.d.ts.map +0 -1
- package/dist/esm/components/Chart/BarChart.js +0 -75
- package/dist/esm/components/Chart/ChartError.d.ts +0 -3
- package/dist/esm/components/Chart/ChartError.d.ts.map +0 -1
- package/dist/esm/components/Chart/ChartError.js +0 -26
- package/dist/esm/components/Chart/ChartSkeleton.d.ts +0 -6
- package/dist/esm/components/Chart/ChartSkeleton.d.ts.map +0 -1
- package/dist/esm/components/Chart/ChartSkeleton.js +0 -17
- package/dist/esm/components/Chart/ChartTooltip.d.ts +0 -29
- package/dist/esm/components/Chart/ChartTooltip.d.ts.map +0 -1
- package/dist/esm/components/Chart/ChartTooltip.js +0 -229
- package/dist/esm/components/Chart/ChartTooltipFrame.d.ts +0 -6
- package/dist/esm/components/Chart/ChartTooltipFrame.d.ts.map +0 -1
- package/dist/esm/components/Chart/ChartTooltipFrame.js +0 -13
- package/dist/esm/components/Chart/ChartTooltipGroup.d.ts +0 -11
- package/dist/esm/components/Chart/ChartTooltipGroup.d.ts.map +0 -1
- package/dist/esm/components/Chart/ChartTooltipGroup.js +0 -23
- package/dist/esm/components/Chart/ChartTooltipRow.d.ts +0 -8
- package/dist/esm/components/Chart/ChartTooltipRow.d.ts.map +0 -1
- package/dist/esm/components/Chart/ChartTooltipRow.js +0 -41
- package/dist/esm/components/Chart/LineChart.d.ts +0 -16
- package/dist/esm/components/Chart/LineChart.d.ts.map +0 -1
- package/dist/esm/components/Chart/LineChart.js +0 -91
- package/dist/esm/components/Dashboard/ChartComponent.d.ts +0 -3
- package/dist/esm/components/Dashboard/ChartComponent.d.ts.map +0 -1
- package/dist/esm/components/Dashboard/ChartComponent.js +0 -61
- package/dist/esm/components/Dashboard/DashboardSection.d.ts +0 -3
- package/dist/esm/components/Dashboard/DashboardSection.d.ts.map +0 -1
- package/dist/esm/components/Dashboard/DashboardSection.js +0 -14
- package/dist/esm/components/Dashboard/DashboardSectionContainer.d.ts +0 -3
- package/dist/esm/components/Dashboard/DashboardSectionContainer.d.ts.map +0 -1
- package/dist/esm/components/Dashboard/DashboardSectionContainer.js +0 -10
- package/dist/esm/components/Dashboard/DataLoader.d.ts +0 -3
- package/dist/esm/components/Dashboard/DataLoader.d.ts.map +0 -1
- package/dist/esm/components/Dashboard/DataLoader.js +0 -71
- package/dist/esm/components/Dashboard/MetricComponent.d.ts +0 -3
- package/dist/esm/components/Dashboard/MetricComponent.d.ts.map +0 -1
- package/dist/esm/components/Dashboard/MetricComponent.js +0 -62
- package/dist/esm/components/Dashboard/TableComponent.d.ts +0 -3
- package/dist/esm/components/Dashboard/TableComponent.d.ts.map +0 -1
- package/dist/esm/components/Dashboard/TableComponent.js +0 -29
- package/dist/esm/components/Dropdown/Dropdown.d.ts +0 -14
- package/dist/esm/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/Dropdown.js +0 -71
- package/dist/esm/components/Dropdown/DropdownItem.d.ts +0 -11
- package/dist/esm/components/Dropdown/DropdownItem.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/DropdownItem.js +0 -42
- package/dist/esm/components/Dropdown/index.d.ts +0 -3
- package/dist/esm/components/Dropdown/index.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/index.js +0 -2
- package/dist/esm/components/Modal/Modal.d.ts +0 -15
- package/dist/esm/components/Modal/Modal.d.ts.map +0 -1
- package/dist/esm/components/Modal/Modal.js +0 -65
- package/dist/esm/components/Modal/index.d.ts +0 -2
- package/dist/esm/components/Modal/index.d.ts.map +0 -1
- package/dist/esm/components/Modal/index.js +0 -1
- package/dist/esm/components/QuillCard.d.ts +0 -14
- package/dist/esm/components/QuillCard.d.ts.map +0 -1
- package/dist/esm/components/QuillCard.js +0 -52
- package/dist/esm/components/QuillSelect.d.ts +0 -3
- package/dist/esm/components/QuillSelect.d.ts.map +0 -1
- package/dist/esm/components/QuillSelect.js +0 -124
- package/dist/esm/components/QuillTable.d.ts +0 -3
- package/dist/esm/components/QuillTable.d.ts.map +0 -1
- package/dist/esm/components/QuillTable.js +0 -252
- package/dist/esm/components/UiComponents.d.ts +0 -130
- package/dist/esm/components/UiComponents.d.ts.map +0 -1
- package/dist/esm/components/UiComponents.js +0 -248
- package/dist/esm/components/selectUtils.d.ts +0 -10
- package/dist/esm/components/selectUtils.d.ts.map +0 -1
- package/dist/esm/components/selectUtils.js +0 -37
- package/dist/esm/contexts/BaseColorContext.d.ts +0 -4
- package/dist/esm/contexts/BaseColorContext.d.ts.map +0 -1
- package/dist/esm/contexts/BaseColorContext.js +0 -3
- package/dist/esm/contexts/HoveredValueContext.d.ts +0 -8
- package/dist/esm/contexts/HoveredValueContext.d.ts.map +0 -1
- package/dist/esm/contexts/HoveredValueContext.js +0 -5
- package/dist/esm/contexts/RootStylesContext.d.ts +0 -4
- package/dist/esm/contexts/RootStylesContext.d.ts.map +0 -1
- package/dist/esm/contexts/RootStylesContext.js +0 -3
- package/dist/esm/contexts/SelectedValueContext.d.ts +0 -8
- package/dist/esm/contexts/SelectedValueContext.d.ts.map +0 -1
- package/dist/esm/contexts/SelectedValueContext.js +0 -6
- package/dist/esm/contexts/index.d.ts +0 -5
- package/dist/esm/contexts/index.d.ts.map +0 -1
- package/dist/esm/contexts/index.js +0 -4
- package/dist/esm/hooks/index.d.ts +0 -5
- package/dist/esm/hooks/index.d.ts.map +0 -1
- package/dist/esm/hooks/index.js +0 -4
- package/dist/esm/hooks/useDashboard.d.ts +0 -7
- package/dist/esm/hooks/useDashboard.d.ts.map +0 -1
- package/dist/esm/hooks/useDashboard.js +0 -50
- package/dist/esm/hooks/useExport.d.ts +0 -15
- package/dist/esm/hooks/useExport.d.ts.map +0 -1
- package/dist/esm/hooks/useExport.js +0 -27
- package/dist/esm/hooks/useFormat.d.ts +0 -6
- package/dist/esm/hooks/useFormat.d.ts.map +0 -1
- package/dist/esm/hooks/useFormat.js +0 -21
- package/dist/esm/hooks/useInternalState.d.ts +0 -4
- package/dist/esm/hooks/useInternalState.d.ts.map +0 -1
- package/dist/esm/hooks/useInternalState.js +0 -14
- package/dist/esm/hooks/useOnClickOutside.d.ts +0 -3
- package/dist/esm/hooks/useOnClickOutside.d.ts.map +0 -1
- package/dist/esm/hooks/useOnClickOutside.js +0 -18
- package/dist/esm/hooks/useOnWindowResize.d.ts +0 -5
- package/dist/esm/hooks/useOnWindowResize.d.ts.map +0 -1
- package/dist/esm/hooks/useOnWindowResize.js +0 -14
- package/dist/esm/hooks/useQuill.d.ts +0 -46
- package/dist/esm/hooks/useQuill.d.ts.map +0 -1
- package/dist/esm/hooks/useQuill.js +0 -90
- package/dist/esm/hooks/useSelectOnKeyDown.d.ts +0 -3
- package/dist/esm/hooks/useSelectOnKeyDown.d.ts.map +0 -1
- package/dist/esm/hooks/useSelectOnKeyDown.js +0 -63
- package/dist/esm/index.d.ts +0 -19
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -16
- package/dist/esm/internals/ReportBuilder/PivotList.d.ts +0 -34
- package/dist/esm/internals/ReportBuilder/PivotList.d.ts.map +0 -1
- package/dist/esm/internals/ReportBuilder/PivotList.js +0 -56
- package/dist/esm/internals/ReportBuilder/PivotModal.d.ts +0 -62
- package/dist/esm/internals/ReportBuilder/PivotModal.d.ts.map +0 -1
- package/dist/esm/internals/ReportBuilder/PivotModal.js +0 -909
- package/dist/esm/internals/ReportBuilder/PivotModal.spec.d.ts +0 -2
- package/dist/esm/internals/ReportBuilder/PivotModal.spec.d.ts.map +0 -1
- package/dist/esm/internals/ReportBuilder/PivotModal.spec.js +0 -211
- package/dist/esm/lib/font.d.ts +0 -14
- package/dist/esm/lib/font.d.ts.map +0 -1
- package/dist/esm/lib/font.js +0 -13
- package/dist/esm/lib/index.d.ts +0 -4
- package/dist/esm/lib/index.d.ts.map +0 -1
- package/dist/esm/lib/index.js +0 -3
- package/dist/esm/lib/inputTypes.d.ts +0 -21
- package/dist/esm/lib/inputTypes.d.ts.map +0 -1
- package/dist/esm/lib/inputTypes.js +0 -55
- package/dist/esm/lib/utils.d.ts +0 -10
- package/dist/esm/lib/utils.d.ts.map +0 -1
- package/dist/esm/lib/utils.js +0 -35
- package/dist/esm/utils/aggregate.d.ts +0 -4
- package/dist/esm/utils/aggregate.d.ts.map +0 -1
- package/dist/esm/utils/aggregate.js +0 -423
- package/dist/esm/utils/axisFormatter.d.ts +0 -20
- package/dist/esm/utils/axisFormatter.d.ts.map +0 -1
- package/dist/esm/utils/axisFormatter.js +0 -190
- package/dist/esm/utils/color.d.ts +0 -13
- package/dist/esm/utils/color.d.ts.map +0 -1
- package/dist/esm/utils/color.js +0 -247
- package/dist/esm/utils/crypto.d.ts +0 -2
- package/dist/esm/utils/crypto.d.ts.map +0 -1
- package/dist/esm/utils/crypto.js +0 -6
- package/dist/esm/utils/csv.d.ts +0 -6
- package/dist/esm/utils/csv.d.ts.map +0 -1
- package/dist/esm/utils/csv.js +0 -76
- package/dist/esm/utils/dashboard.d.ts +0 -12
- package/dist/esm/utils/dashboard.d.ts.map +0 -1
- package/dist/esm/utils/dashboard.js +0 -170
- package/dist/esm/utils/dataFetcher.d.ts +0 -3
- package/dist/esm/utils/dataFetcher.d.ts.map +0 -1
- package/dist/esm/utils/dataFetcher.js +0 -66
- package/dist/esm/utils/dates.d.ts +0 -10
- package/dist/esm/utils/dates.d.ts.map +0 -1
- package/dist/esm/utils/dates.js +0 -32
- package/dist/esm/utils/getDomain.d.ts +0 -8
- package/dist/esm/utils/getDomain.d.ts.map +0 -1
- package/dist/esm/utils/getDomain.js +0 -28
- package/dist/esm/utils/merge.d.ts +0 -2
- package/dist/esm/utils/merge.d.ts.map +0 -1
- package/dist/esm/utils/merge.js +0 -45
- package/dist/esm/utils/styles.d.ts +0 -17
- package/dist/esm/utils/styles.d.ts.map +0 -1
- package/dist/esm/utils/styles.js +0 -16
- package/dist/esm/utils/valueFormatter.d.ts +0 -27
- package/dist/esm/utils/valueFormatter.d.ts.map +0 -1
- package/dist/esm/utils/valueFormatter.js +0 -246
- package/dist/esm/utils/valueFormatterCSV.d.ts +0 -17
- package/dist/esm/utils/valueFormatterCSV.d.ts.map +0 -1
- package/dist/esm/utils/valueFormatterCSV.js +0 -95
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const XCircleIcon = ({ ...props }) => (_jsx("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", children: _jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default XCircleIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"XIcon.d.ts","sourceRoot":"","sources":["../../../src/assets/XIcon.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,KAAK;;6CAcV,CAAC;AACF,eAAe,KAAK,CAAC"}
|
package/dist/esm/assets/XIcon.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const XIcon = ({ ...props }) => (_jsx("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", height: "20", width: "20", children: _jsx("path", { fillRule: "evenodd", d: "M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default XIcon;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { default as ArrowDownHeadIcon } from './ArrowDownHeadIcon';
|
|
2
|
-
export { default as ArrowDownRightIcon } from './ArrowDownRightIcon';
|
|
3
|
-
export { default as ArrowDownIcon } from './ArrowDownIcon';
|
|
4
|
-
export { default as ArrowRightIcon } from './ArrowRightIcon';
|
|
5
|
-
export { default as ArrowRightHeadIcon } from './ArrowRightHeadIcon';
|
|
6
|
-
export { default as ArrowLeftHeadIcon } from './ArrowLeftHeadIcon';
|
|
7
|
-
export { default as DoubleArrowLeftHeadIcon } from './DoubleArrowLeftHeadIcon';
|
|
8
|
-
export { default as DoubleArrowRightHeadIcon } from './DoubleArrowRightHeadIcon';
|
|
9
|
-
export { default as ArrowUpHeadIcon } from './ArrowUpHeadIcon';
|
|
10
|
-
export { default as ArrowUpIcon } from './ArrowUpIcon';
|
|
11
|
-
export { default as ArrowUpRightIcon } from './ArrowUpRightIcon';
|
|
12
|
-
export { default as CalendarIcon } from './CalendarIcon';
|
|
13
|
-
export { default as CalendarNormalIcon } from './CalendarNormalIcon';
|
|
14
|
-
export { default as ExclamationFilledIcon } from './ExclamationFilledIcon';
|
|
15
|
-
export { default as LoadingSpinner } from './LoadingSpinner';
|
|
16
|
-
export { default as SearchIcon } from './SearchIcon';
|
|
17
|
-
export { default as XCircleIcon } from './XCircleIcon';
|
|
18
|
-
export { default as RefreshIcon } from './RefreshIcon';
|
|
19
|
-
export { default as FilterIcon } from './FilterIcon';
|
|
20
|
-
export { default as UpLeftArrowsIcon } from './UpLeftArrowsIcon';
|
|
21
|
-
export { default as XIcon } from './XIcon';
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/esm/assets/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { default as ArrowDownHeadIcon } from './ArrowDownHeadIcon';
|
|
2
|
-
export { default as ArrowDownRightIcon } from './ArrowDownRightIcon';
|
|
3
|
-
export { default as ArrowDownIcon } from './ArrowDownIcon';
|
|
4
|
-
export { default as ArrowRightIcon } from './ArrowRightIcon';
|
|
5
|
-
export { default as ArrowRightHeadIcon } from './ArrowRightHeadIcon';
|
|
6
|
-
export { default as ArrowLeftHeadIcon } from './ArrowLeftHeadIcon';
|
|
7
|
-
export { default as DoubleArrowLeftHeadIcon } from './DoubleArrowLeftHeadIcon';
|
|
8
|
-
export { default as DoubleArrowRightHeadIcon } from './DoubleArrowRightHeadIcon';
|
|
9
|
-
export { default as ArrowUpHeadIcon } from './ArrowUpHeadIcon';
|
|
10
|
-
export { default as ArrowUpIcon } from './ArrowUpIcon';
|
|
11
|
-
export { default as ArrowUpRightIcon } from './ArrowUpRightIcon';
|
|
12
|
-
export { default as CalendarIcon } from './CalendarIcon';
|
|
13
|
-
export { default as CalendarNormalIcon } from './CalendarNormalIcon';
|
|
14
|
-
export { default as ExclamationFilledIcon } from './ExclamationFilledIcon';
|
|
15
|
-
export { default as LoadingSpinner } from './LoadingSpinner';
|
|
16
|
-
export { default as SearchIcon } from './SearchIcon';
|
|
17
|
-
export { default as XCircleIcon } from './XCircleIcon';
|
|
18
|
-
export { default as RefreshIcon } from './RefreshIcon';
|
|
19
|
-
export { default as FilterIcon } from './FilterIcon';
|
|
20
|
-
export { default as UpLeftArrowsIcon } from './UpLeftArrowsIcon';
|
|
21
|
-
export { default as XIcon } from './XIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Banner/index.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,iBAAiB,EACjB,aAAa,EACb,MAAM,EACN,KAAK,GACN,EAAE,GAAG,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CA4D1B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export default function Banner({ dashboardItemName, dashboardName, onExit, style, }) {
|
|
3
|
-
return (_jsx("div", { id: "quill-edit-banner", style: {
|
|
4
|
-
zIndex: 100,
|
|
5
|
-
display: 'flex',
|
|
6
|
-
paddingTop: '0.625rem',
|
|
7
|
-
paddingBottom: '0.625rem',
|
|
8
|
-
paddingLeft: '24px',
|
|
9
|
-
paddingRight: '24px',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
backgroundColor: '#111827',
|
|
12
|
-
...style,
|
|
13
|
-
}, children: _jsxs("p", { style: {
|
|
14
|
-
fontSize: '14px',
|
|
15
|
-
color: '#ffffff',
|
|
16
|
-
}, children: [_jsx("strong", { style: { fontWeight: 600 }, children: "Edit Mode" }), _jsx("svg", { viewBox: "0 0 2 2", style: {
|
|
17
|
-
display: 'inline',
|
|
18
|
-
marginLeft: '8px',
|
|
19
|
-
marginRight: '8px',
|
|
20
|
-
width: '2px',
|
|
21
|
-
height: '2px',
|
|
22
|
-
fill: 'currentColor',
|
|
23
|
-
}, "aria-hidden": "true", children: _jsx("circle", { cx: 1, cy: 1, r: 1 }) }), `You are currently editing `, _jsx("strong", { style: { fontWeight: 600 }, children: dashboardItemName }), ` on the `, _jsx("strong", { style: { fontWeight: 600 }, children: dashboardName }), ` dashboard.`] }) }));
|
|
24
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { HorizontalPosition } from '../../lib/inputTypes';
|
|
3
|
-
export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
showModal: boolean;
|
|
5
|
-
setShowModal: React.Dispatch<React.SetStateAction<boolean>> | ((nextState: boolean) => void);
|
|
6
|
-
parentRef?: React.RefObject<HTMLElement>;
|
|
7
|
-
width?: number;
|
|
8
|
-
maxHeight?: string;
|
|
9
|
-
anchorPosition?: HorizontalPosition;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
theme: any;
|
|
12
|
-
}
|
|
13
|
-
declare const BigModal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export default BigModal;
|
|
15
|
-
//# sourceMappingURL=BigModal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BigModal.d.ts","sourceRoot":"","sources":["../../../../src/components/BigModal/BigModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EACR,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAC7C,CAAC,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,QAAA,MAAM,QAAQ,mFAoFZ,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/* eslint-disable react/display-name */
|
|
4
|
-
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
5
|
-
import { useOnClickOutside, useOnWindowResize } from '../../hooks';
|
|
6
|
-
import { mergeRefs } from '../../lib';
|
|
7
|
-
const BigModal = React.forwardRef((props, ref) => {
|
|
8
|
-
const { showModal, setShowModal, parentRef, width, maxHeight = '18rem', children, className, theme, ...other } = props;
|
|
9
|
-
const [modalExceedsWindow, setModalExceedsWindow] = useState(false);
|
|
10
|
-
const modalRef = useRef(null);
|
|
11
|
-
const checkModalExceedsWindow = useCallback((modalWidth, windowWidth) => {
|
|
12
|
-
if (!parentRef.current) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
const modalBoundingRight = parentRef.current.getBoundingClientRect().left + modalWidth;
|
|
16
|
-
return windowWidth - modalBoundingRight < 0;
|
|
17
|
-
}, [parentRef]);
|
|
18
|
-
const getAbsoluteSpacing = () => {
|
|
19
|
-
return modalExceedsWindow ? '0' : '0';
|
|
20
|
-
};
|
|
21
|
-
useOnClickOutside(modalRef, e => {
|
|
22
|
-
// Exclude click on trigger button (e.g. Dropdown Button) from outside click handler
|
|
23
|
-
const isTriggerElem = parentRef
|
|
24
|
-
? parentRef.current?.contains(e.target)
|
|
25
|
-
: false;
|
|
26
|
-
if (!isTriggerElem) {
|
|
27
|
-
setShowModal(false);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
// Execute only when modal is of absolute size
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
if (width) {
|
|
33
|
-
setModalExceedsWindow(checkModalExceedsWindow(width, window.innerWidth));
|
|
34
|
-
}
|
|
35
|
-
}, [checkModalExceedsWindow, parentRef, width]);
|
|
36
|
-
useOnWindowResize(() => {
|
|
37
|
-
if (width) {
|
|
38
|
-
setModalExceedsWindow(checkModalExceedsWindow(width, window.innerWidth));
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
return showModal ? (_jsx("div", { ref: mergeRefs([modalRef, ref]), style: {
|
|
42
|
-
position: 'absolute',
|
|
43
|
-
zIndex: 10,
|
|
44
|
-
overflowY: 'auto',
|
|
45
|
-
backgroundColor: theme?.backgroundColor || 'white',
|
|
46
|
-
borderColor: theme?.borderColor || '#E5E7EB',
|
|
47
|
-
borderTopStyle: 'solid',
|
|
48
|
-
borderBottomStyle: 'solid',
|
|
49
|
-
borderLeftStyle: 'solid',
|
|
50
|
-
borderRightStyle: 'solid',
|
|
51
|
-
borderTopWidth: 1,
|
|
52
|
-
borderBottomWidth: 1,
|
|
53
|
-
borderLeftWidth: 1,
|
|
54
|
-
borderRightWidth: 1,
|
|
55
|
-
borderRadius: '0.375rem',
|
|
56
|
-
boxShadow: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
|
|
57
|
-
top: '50%',
|
|
58
|
-
left: '50%',
|
|
59
|
-
transform: 'translate(-50%, -50%)',
|
|
60
|
-
}, ...other, children: children })) : null;
|
|
61
|
-
});
|
|
62
|
-
export default BigModal;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export default function BarChart({ colors, yAxisFields, data, containerStyle, xAxisField, xAxisFormat, theme, comparison, isStacked, isAnimationActive, hideXAxis, hideYAxis, hideCartesianGrid, }: {
|
|
3
|
-
colors: string[];
|
|
4
|
-
yAxisFields: any[];
|
|
5
|
-
data: any[];
|
|
6
|
-
containerStyle?: React.CSSProperties;
|
|
7
|
-
xAxisField: string;
|
|
8
|
-
xAxisLabel: string;
|
|
9
|
-
xAxisFormat: string;
|
|
10
|
-
theme: any;
|
|
11
|
-
comparison: boolean;
|
|
12
|
-
isStacked: boolean;
|
|
13
|
-
isAnimationActive: boolean;
|
|
14
|
-
hideXAxis: boolean;
|
|
15
|
-
hideYAxis: boolean;
|
|
16
|
-
hideCartesianGrid: boolean;
|
|
17
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/BarChart.tsx"],"names":[],"mappings":";AAiBA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,MAAM,EACN,WAAW,EACX,IAAI,EACJ,cAAc,EACd,UAAU,EACV,WAAW,EACX,KAAK,EACL,UAAU,EACV,SAAS,EACT,iBAAwB,EACxB,SAAiB,EACjB,SAAiB,EACjB,iBAAyB,GAC1B,EAAE;IACD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC5B,2CAkKA"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis, Bar, BarChart as ReChartsBarChart, } from 'recharts';
|
|
4
|
-
import { valueFormatter } from '../../utils/valueFormatter';
|
|
5
|
-
import { axisFormatter } from '../../utils/axisFormatter';
|
|
6
|
-
import { selectColor } from '../../utils/color';
|
|
7
|
-
import ChartTooltip from '../../components/Chart/ChartTooltip';
|
|
8
|
-
import getDomain from '../../utils/getDomain';
|
|
9
|
-
import { useEffect, useState } from 'react';
|
|
10
|
-
export default function BarChart({ colors, yAxisFields, data, containerStyle, xAxisField, xAxisFormat, theme, comparison, isStacked, isAnimationActive = true, hideXAxis = false, hideYAxis = false, hideCartesianGrid = false, }) {
|
|
11
|
-
const [formattedData, setFormattedData] = useState([]);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
if (!data || data.length === 0) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const curData = data.map((d) => {
|
|
17
|
-
const formatted = { ...d };
|
|
18
|
-
// NEED TO FORMAT FOR BIG QUERY
|
|
19
|
-
if (d[xAxisField] && typeof d[xAxisField] === 'object') {
|
|
20
|
-
formatted[xAxisField] = d[xAxisField].value;
|
|
21
|
-
}
|
|
22
|
-
return formatted;
|
|
23
|
-
});
|
|
24
|
-
setFormattedData(curData);
|
|
25
|
-
}, [data]);
|
|
26
|
-
if (!data || data.length === 0) {
|
|
27
|
-
return (_jsx("div", { style: {
|
|
28
|
-
display: 'flex',
|
|
29
|
-
flex: '1 0 auto',
|
|
30
|
-
height: '100%',
|
|
31
|
-
margin: 'auto',
|
|
32
|
-
justifyContent: 'center',
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
fontSize: 13,
|
|
35
|
-
color: theme.secondaryTextColor,
|
|
36
|
-
}, children: "No results found for specified time period." }));
|
|
37
|
-
}
|
|
38
|
-
return (_jsx("div", { style: {
|
|
39
|
-
...containerStyle,
|
|
40
|
-
boxSizing: 'content-box',
|
|
41
|
-
}, children: _jsx(ResponsiveContainer, { width: "100%", height: '100%', children: _jsxs(ReChartsBarChart, { data: formattedData, layout: 'horizontal', children: [!hideCartesianGrid && (_jsx(CartesianGrid, { horizontal: true, vertical: false, stroke: "#e5e7eb" })), _jsx(YAxis, { width: 44, hide: hideYAxis, axisLine: false, tickLine: false, type: "number", domain: getDomain(data, yAxisFields), tick: { transform: 'translate(-3, 0)' }, style: {
|
|
42
|
-
fontSize: '12px',
|
|
43
|
-
fontFamily: theme.chartLabelFontFamily,
|
|
44
|
-
}, tickFormatter: (tick) => axisFormatter({
|
|
45
|
-
value: tick,
|
|
46
|
-
field: yAxisFields[0].field || 'what',
|
|
47
|
-
fields: yAxisFields,
|
|
48
|
-
}) }), _jsx(XAxis, { hide: hideXAxis, dataKey: xAxisField, tick: { transform: 'translate(0, 6)' }, style: {
|
|
49
|
-
fontSize: '12px',
|
|
50
|
-
fontFamily: theme.chartLabelFontFamily,
|
|
51
|
-
marginTop: '20px',
|
|
52
|
-
}, tickLine: false, axisLine: false, tickFormatter: (tick) => axisFormatter({
|
|
53
|
-
value: tick,
|
|
54
|
-
field: xAxisField,
|
|
55
|
-
fields: [{ field: xAxisField, format: xAxisFormat }],
|
|
56
|
-
}) }), _jsx(Tooltip, { wrapperStyle: { outline: 'none', zIndex: 2 }, isAnimationActive: false, cursor: { fill: '#d1d5db', opacity: '0.15' }, content: ({ active, payload, label }) => {
|
|
57
|
-
let label2;
|
|
58
|
-
if (comparison &&
|
|
59
|
-
payload?.length > 1 &&
|
|
60
|
-
payload[0].payload[xAxisField + '2']) {
|
|
61
|
-
label2 = payload[0].payload[xAxisField + '2'];
|
|
62
|
-
}
|
|
63
|
-
return (_jsx(ChartTooltip, { theme: theme, active: active, payload: payload, label: label, label2: label2, dateFormatter: (value) => valueFormatter({
|
|
64
|
-
value,
|
|
65
|
-
field: xAxisField,
|
|
66
|
-
fields: [{ field: xAxisField, format: xAxisFormat }],
|
|
67
|
-
}), valueFormatter: (value) => valueFormatter({
|
|
68
|
-
value,
|
|
69
|
-
field: payload[0].dataKey,
|
|
70
|
-
fields: yAxisFields,
|
|
71
|
-
}), xAxisFormat: xAxisFormat, xAxisField: xAxisField, colors: colors }));
|
|
72
|
-
}, position: { y: 0 } }), yAxisFields.map((elem) => (_jsx(Bar, { name: elem.label, dataKey: elem.field, stackId: isStacked &&
|
|
73
|
-
(elem.field?.replace('comparison_', '') ??
|
|
74
|
-
'unknown'), type: "linear", fill: selectColor(elem, colors, yAxisFields.findIndex((field) => field.field === elem.field?.replace('comparison_', ''))), isAnimationActive: isAnimationActive }, elem.field)))] }) }) }));
|
|
75
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartError.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/ChartError.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,cAAc,EAAE,EAAE,GAAG,GAAG,GAAG,CAAC,OAAO,CAoCvE"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useContext } from 'react';
|
|
3
|
-
import { ThemeContext } from '../../Context';
|
|
4
|
-
export default function ChartError({ containerStyle }) {
|
|
5
|
-
const [theme] = useContext(ThemeContext);
|
|
6
|
-
return (_jsx("div", { style: {
|
|
7
|
-
...containerStyle,
|
|
8
|
-
boxSizing: 'content-box',
|
|
9
|
-
height: '100%',
|
|
10
|
-
}, children: _jsx("div", { style: {
|
|
11
|
-
height: containerStyle?.height,
|
|
12
|
-
width: '100%',
|
|
13
|
-
boxSizing: 'content-box',
|
|
14
|
-
borderRadius: 8,
|
|
15
|
-
overflow: 'hidden',
|
|
16
|
-
}, children: _jsx("div", { style: {
|
|
17
|
-
paddingTop: '60px',
|
|
18
|
-
display: 'flex',
|
|
19
|
-
flex: '1 0 auto',
|
|
20
|
-
margin: 'auto',
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
alignItems: 'center',
|
|
23
|
-
fontSize: 13,
|
|
24
|
-
color: theme?.secondaryTextColor || 'rgb(55, 65, 81)',
|
|
25
|
-
}, children: "Failed to fetch data." }) }) }));
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/ChartSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,aAAa,EAAE,MAAM,OAAO,CAAC;AAGlD,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,cAAc,EAAE,EAAE,GAAG,GAAG,GAAG,CAAC,OAAO,CAyE1E"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useContext } from 'react';
|
|
3
|
-
import { ThemeContext } from '../../Context';
|
|
4
|
-
export default function ChartSkeleton({ containerStyle }) {
|
|
5
|
-
const [theme] = useContext(ThemeContext);
|
|
6
|
-
return (_jsx("div", { style: {
|
|
7
|
-
...containerStyle,
|
|
8
|
-
boxSizing: 'content-box',
|
|
9
|
-
height: '100%',
|
|
10
|
-
}, children: _jsx("div", { style: {
|
|
11
|
-
height: containerStyle?.height,
|
|
12
|
-
width: '100%',
|
|
13
|
-
boxSizing: 'content-box',
|
|
14
|
-
borderRadius: 8,
|
|
15
|
-
overflow: 'hidden',
|
|
16
|
-
}, children: _jsxs("svg", { width: "100%", height: "100%", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", children: [_jsx("rect", { width: "100%", height: "100%", fill: theme?.loadingStateBackgroundColor || '#F9F9FA' }), _jsx("defs", { fill: theme?.loadingStateBackgroundColor || '#F9F9FA', children: _jsxs("linearGradient", { id: "skeletonGradient", x1: "0%", y1: "0%", x2: "10%", y2: "0%", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0%", stopColor: "rgba(255,255,255,0)" }), _jsx("stop", { offset: "50%", stopColor: "#FEFEFE" }), _jsx("stop", { offset: "100%", stopColor: "rgba(255,255,255,0)" }), _jsx("animate", { attributeName: "x1", from: "-100%", to: "100%", dur: "2s", repeatCount: "indefinite" }), _jsx("animate", { attributeName: "x2", from: "-50%", to: "150%", dur: "2s", repeatCount: "indefinite" })] }) }), _jsx("rect", { width: "50%", height: "100%", fill: "url(#skeletonGradient)", children: _jsx("animate", { attributeName: "x", from: "-100%", to: "100%", dur: "2s", repeatCount: "indefinite" }) })] }) }) }));
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface ChartTooltipProps {
|
|
2
|
-
active: boolean | undefined;
|
|
3
|
-
payload: PayloadItem[];
|
|
4
|
-
label: string;
|
|
5
|
-
label2?: string;
|
|
6
|
-
colors: string[];
|
|
7
|
-
valueFormatter: any;
|
|
8
|
-
dateFormatter: any;
|
|
9
|
-
xAxisFormat: string;
|
|
10
|
-
xAxisField: string;
|
|
11
|
-
theme: any;
|
|
12
|
-
}
|
|
13
|
-
type PayloadItem = {
|
|
14
|
-
chartType: string | undefined;
|
|
15
|
-
color: string;
|
|
16
|
-
dataKey: string;
|
|
17
|
-
fill: string;
|
|
18
|
-
formatter: () => void;
|
|
19
|
-
name: string;
|
|
20
|
-
payload: {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
};
|
|
23
|
-
type: string;
|
|
24
|
-
unit: string;
|
|
25
|
-
value: any;
|
|
26
|
-
};
|
|
27
|
-
export default function ChartTooltip(props: ChartTooltipProps): import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=ChartTooltip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/ChartTooltip.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,GAAG,CAAC;IACpB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAoUF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,kDAM5D"}
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { format, subDays } from 'date-fns';
|
|
3
|
-
import ChartTooltipFrame from './ChartTooltipFrame';
|
|
4
|
-
import ChartTooltipRow from './ChartTooltipRow';
|
|
5
|
-
import { useComparisonRange, useDateFilter } from '../../Context';
|
|
6
|
-
import ChartTooltipGroup from './ChartTooltipGroup';
|
|
7
|
-
import { convertComparisonRange, isDateFormat } from '../../utils/dates';
|
|
8
|
-
// The chart tooltip to display for primary labels (ie. not label2).
|
|
9
|
-
const ChartTooltipPrimary = (props) => (_jsxs(ChartTooltipFrame, { theme: props.theme, children: [_jsx("div", { style: {
|
|
10
|
-
borderStyle: 'solid',
|
|
11
|
-
borderBottomColor: props.theme?.borderColor || '#E5E7EB',
|
|
12
|
-
background: props.theme?.backgroundColor || 'white',
|
|
13
|
-
borderTop: 'none',
|
|
14
|
-
borderLeft: 'none',
|
|
15
|
-
borderRight: 'none',
|
|
16
|
-
borderBottomWidth: 1,
|
|
17
|
-
display: 'flex',
|
|
18
|
-
flexDirection: 'column',
|
|
19
|
-
paddingLeft: '16px',
|
|
20
|
-
paddingRight: '16px',
|
|
21
|
-
paddingTop: '8px',
|
|
22
|
-
paddingBottom: '8px',
|
|
23
|
-
}, children: _jsx("p", { style: {
|
|
24
|
-
textAlign: 'left',
|
|
25
|
-
marginTop: 0,
|
|
26
|
-
marginBottom: 0,
|
|
27
|
-
fontFamily: props.theme?.fontFamily,
|
|
28
|
-
color: props.theme?.primaryTextColor,
|
|
29
|
-
fontSize: props.theme?.fontSizeSmall || '14px',
|
|
30
|
-
fontWeight: props.theme?.boldFontWeight || '500',
|
|
31
|
-
paddingTop: 2,
|
|
32
|
-
paddingBottom: 2,
|
|
33
|
-
}, children: !isNaN(new Date(props.label)) && props.dateFormatter
|
|
34
|
-
? props.dateFormatter(props.label)
|
|
35
|
-
: !isNaN(new Date(props.label))
|
|
36
|
-
? format(new Date(props.label), 'MMM yyyy')
|
|
37
|
-
: props.label }) }), _jsx("div", { style: {
|
|
38
|
-
paddingRight: '16px',
|
|
39
|
-
paddingLeft: '16px',
|
|
40
|
-
paddingTop: '8px',
|
|
41
|
-
paddingBottom: '8px',
|
|
42
|
-
}, children: props.payload.map(({ color, value, name }, idx) => (_jsx(ChartTooltipRow, { value: props.valueFormatter(value), name: name, color: color, theme: props.theme }, `id-${idx}`))) })] }));
|
|
43
|
-
// The chart tooltip to display for secondary labels (ie. label2).
|
|
44
|
-
const ChartTooltipSecondary = (props) => (_jsx(ChartTooltipFrame, { theme: props.theme, children: props.payload.map(({ color, value, name }, idx) => (_jsxs(_Fragment, { children: [idx === 0 && (_jsx("div", { style: {
|
|
45
|
-
borderStyle: 'solid',
|
|
46
|
-
borderBottomColor: props.theme?.borderColor || '#E5E7EB',
|
|
47
|
-
background: props.theme?.backgroundColor || 'white',
|
|
48
|
-
borderTop: 'none',
|
|
49
|
-
borderLeft: 'none',
|
|
50
|
-
borderRight: 'none',
|
|
51
|
-
borderBottomWidth: 1,
|
|
52
|
-
display: 'flex',
|
|
53
|
-
flexDirection: 'column',
|
|
54
|
-
paddingLeft: '16px',
|
|
55
|
-
paddingRight: '16px',
|
|
56
|
-
paddingTop: '8px',
|
|
57
|
-
paddingBottom: '8px',
|
|
58
|
-
}, children: _jsx("p", { style: {
|
|
59
|
-
textAlign: 'left',
|
|
60
|
-
marginTop: 0,
|
|
61
|
-
marginBottom: 0,
|
|
62
|
-
fontFamily: props.theme?.fontFamily,
|
|
63
|
-
color: props.theme?.primaryTextColor,
|
|
64
|
-
fontSize: props.theme?.fontSizeSmall || '14px',
|
|
65
|
-
fontWeight: props.theme?.boldFontWeight || '500',
|
|
66
|
-
paddingTop: 2,
|
|
67
|
-
paddingBottom: 2,
|
|
68
|
-
}, children: name }) })), _jsx("div", { style: {
|
|
69
|
-
paddingRight: '16px',
|
|
70
|
-
paddingLeft: '16px',
|
|
71
|
-
paddingBottom: '8px',
|
|
72
|
-
...(idx === 0 && { paddingTop: '8px' }),
|
|
73
|
-
}, children: _jsx(ChartTooltipRow, { name: props.valueFormatter(value), value: !isNaN(new Date(idx === 0 ? props.label : props.label2)) &&
|
|
74
|
-
props.dateFormatter
|
|
75
|
-
? props.dateFormatter(idx === 0 ? props.label : props.label2)
|
|
76
|
-
: !isNaN(new Date(idx === 0 ? props.label : props.label2))
|
|
77
|
-
? format(new Date(idx === 0 ? props.label : props.label2), 'MMM yyyy')
|
|
78
|
-
: idx === 0
|
|
79
|
-
? props.label
|
|
80
|
-
: props.label2, color: color, theme: props.theme }, `id-${idx}`) })] }))) }));
|
|
81
|
-
const LABEL_TO_DAYS = {
|
|
82
|
-
'This week': 7,
|
|
83
|
-
'This month': 30,
|
|
84
|
-
'This year': 365,
|
|
85
|
-
'Last 7 days': 7,
|
|
86
|
-
'Last 30 days': 30,
|
|
87
|
-
'Last 90 days': 90,
|
|
88
|
-
'Last 6 months': 180,
|
|
89
|
-
'All time': 0,
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* Transforms a list of payload items where some payload items have a dataKey
|
|
93
|
-
* prefixed with "comparison_" into an object where the keys are the grouped
|
|
94
|
-
* data keys (ie. "Fuel" and "comparison_Fuel" both map to the key "Fuel") and
|
|
95
|
-
* the values are a list of chart tooltip row items for that key.
|
|
96
|
-
*
|
|
97
|
-
* For example:
|
|
98
|
-
* [
|
|
99
|
-
* { dataKey: "Fuel", value: 178 }
|
|
100
|
-
* { dataKey: "Food", value: 58 }
|
|
101
|
-
* { dataKey: "comparison_Fuel", value: 145 }
|
|
102
|
-
* { dataKey: "comparison_Food", value: 72 }
|
|
103
|
-
* ]
|
|
104
|
-
*
|
|
105
|
-
* transforms into this
|
|
106
|
-
* {
|
|
107
|
-
* "Fuel": [
|
|
108
|
-
* { color: "blue", value: 178, name: "Last 6 months" }
|
|
109
|
-
* { color: "blue", value: 145, name: "Previous Period" }
|
|
110
|
-
* ]
|
|
111
|
-
* "Food": [
|
|
112
|
-
* { color: "red", value: 58, name: "Last 6 months" }
|
|
113
|
-
* { color: "red", value: 72, name: "Previous Period" }
|
|
114
|
-
* ]
|
|
115
|
-
* }
|
|
116
|
-
*/
|
|
117
|
-
function reformatComparisonPayload(props, primaryLabel, comparisonLabel) {
|
|
118
|
-
const columnsByKey = {};
|
|
119
|
-
const isDateXAxis = isDateFormat(props.xAxisFormat);
|
|
120
|
-
// When there is exactly one pair of entries for a comparison, we don't group
|
|
121
|
-
// them by section, and we flip things around so the label goes on top and the
|
|
122
|
-
// name of each colored tag is the date if the xAxis is a date format.
|
|
123
|
-
if (props.payload.length <= 2 && isDateXAxis) {
|
|
124
|
-
for (const item of props.payload) {
|
|
125
|
-
const isComparison = item.dataKey.includes('comparison_');
|
|
126
|
-
const nameKey = isComparison
|
|
127
|
-
? `comparison_${props.xAxisField}`
|
|
128
|
-
: props.xAxisField;
|
|
129
|
-
const days = LABEL_TO_DAYS[primaryLabel] ?? 0;
|
|
130
|
-
const primaryDate = item.payload[props.xAxisField] ?? 0;
|
|
131
|
-
const compDate = subDays(new Date(primaryDate), days + 1);
|
|
132
|
-
const date = item.payload[nameKey] ?? format(compDate, props.xAxisFormat);
|
|
133
|
-
const name = props.dateFormatter(date);
|
|
134
|
-
const color = item.color;
|
|
135
|
-
const value = props.valueFormatter(item.value);
|
|
136
|
-
if (!columnsByKey['']) {
|
|
137
|
-
columnsByKey[''] = [];
|
|
138
|
-
}
|
|
139
|
-
columnsByKey[''].push({ color, name, value });
|
|
140
|
-
}
|
|
141
|
-
return columnsByKey;
|
|
142
|
-
}
|
|
143
|
-
// When there are more than one pair of entries in payload, we group them
|
|
144
|
-
// by the dataKey and use that key as the key in our map.
|
|
145
|
-
for (const item of props.payload) {
|
|
146
|
-
const key = item.dataKey.replace('comparison_', '');
|
|
147
|
-
const isComparison = item.dataKey.includes('comparison_');
|
|
148
|
-
const name = isComparison ? comparisonLabel : primaryLabel;
|
|
149
|
-
const color = item.color;
|
|
150
|
-
const value = props.valueFormatter(item.value);
|
|
151
|
-
if (!columnsByKey[key]) {
|
|
152
|
-
columnsByKey[key] = [];
|
|
153
|
-
}
|
|
154
|
-
columnsByKey[key].push({ color, name, value });
|
|
155
|
-
}
|
|
156
|
-
return columnsByKey;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Returns the label for the chart tooltip.
|
|
160
|
-
*/
|
|
161
|
-
function getTooltipLabel(props, altTooltipLabel, isDateXAxis) {
|
|
162
|
-
// TODO: clean me
|
|
163
|
-
return props.payload.length <= 2 && altTooltipLabel && isDateXAxis
|
|
164
|
-
? !isNaN(new Date(altTooltipLabel)) && props.dateFormatter
|
|
165
|
-
? props.dateFormatter(altTooltipLabel)
|
|
166
|
-
: !isNaN(new Date(altTooltipLabel))
|
|
167
|
-
? format(new Date(altTooltipLabel), 'MMM yyyy')
|
|
168
|
-
: altTooltipLabel
|
|
169
|
-
: !isNaN(new Date(props.label)) && props.dateFormatter
|
|
170
|
-
? props.dateFormatter(props.label)
|
|
171
|
-
: !isNaN(new Date(props.label))
|
|
172
|
-
? format(new Date(props.label), 'MMM yyyy')
|
|
173
|
-
: props.label;
|
|
174
|
-
}
|
|
175
|
-
// The chart tooltip to display for comparison labels (eg. "previous period").
|
|
176
|
-
function ChartTooltipComparison(props) {
|
|
177
|
-
const { comparisonRange } = useComparisonRange();
|
|
178
|
-
const { dateFilter } = useDateFilter();
|
|
179
|
-
const isDateXAxis = isDateFormat(props.xAxisFormat);
|
|
180
|
-
const altTooltipLabel = props.payload[0]?.dataKey
|
|
181
|
-
.replace('comparison_', '')
|
|
182
|
-
.replaceAll('_', ' ')
|
|
183
|
-
.toLowerCase();
|
|
184
|
-
const newRows = reformatComparisonPayload(props, dateFilter, convertComparisonRange(dateFilter, comparisonRange.text));
|
|
185
|
-
return (_jsxs(ChartTooltipFrame, { theme: props.theme, children: [_jsx("div", { style: {
|
|
186
|
-
borderStyle: 'solid',
|
|
187
|
-
borderBottomColor: props.theme?.borderColor || '#E5E7EB',
|
|
188
|
-
background: props.theme?.backgroundColor || 'white',
|
|
189
|
-
borderTop: 'none',
|
|
190
|
-
borderLeft: 'none',
|
|
191
|
-
borderRight: 'none',
|
|
192
|
-
borderBottomWidth: 1,
|
|
193
|
-
display: 'flex',
|
|
194
|
-
flexDirection: 'column',
|
|
195
|
-
paddingLeft: '16px',
|
|
196
|
-
paddingRight: '16px',
|
|
197
|
-
paddingTop: '8px',
|
|
198
|
-
paddingBottom: '8px',
|
|
199
|
-
}, children: _jsx("p", { style: {
|
|
200
|
-
textAlign: 'left',
|
|
201
|
-
marginTop: 0,
|
|
202
|
-
marginBottom: 0,
|
|
203
|
-
fontFamily: props.theme?.fontFamily,
|
|
204
|
-
color: props.theme?.primaryTextColor,
|
|
205
|
-
fontSize: props.theme?.fontSizeSmall || '14px',
|
|
206
|
-
fontWeight: props.theme?.boldFontWeight || '500',
|
|
207
|
-
textTransform: 'capitalize',
|
|
208
|
-
paddingTop: 2,
|
|
209
|
-
paddingBottom: 2,
|
|
210
|
-
}, children: getTooltipLabel(props, altTooltipLabel ?? "", isDateXAxis) }) }), _jsx("div", { style: {
|
|
211
|
-
paddingRight: '16px',
|
|
212
|
-
paddingLeft: '16px',
|
|
213
|
-
paddingTop: '8px',
|
|
214
|
-
paddingBottom: '8px',
|
|
215
|
-
display: 'flex',
|
|
216
|
-
flexDirection: 'column',
|
|
217
|
-
gap: 4,
|
|
218
|
-
}, children: Object.entries(newRows).map(([key, value], index) => (_jsx(ChartTooltipGroup, { name: key, items: value, theme: props.theme }, `id_${index}`))) })] }));
|
|
219
|
-
}
|
|
220
|
-
export default function ChartTooltip(props) {
|
|
221
|
-
const { comparisonRange } = useComparisonRange();
|
|
222
|
-
if (!props.active || !props.payload)
|
|
223
|
-
return null;
|
|
224
|
-
if (comparisonRange)
|
|
225
|
-
return _jsx(ChartTooltipComparison, { ...props });
|
|
226
|
-
if (props.label2)
|
|
227
|
-
return _jsx(ChartTooltipSecondary, { ...props });
|
|
228
|
-
return _jsx(ChartTooltipPrimary, { ...props });
|
|
229
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTooltipFrame.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/ChartTooltipFrame.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;CACZ,2CAkBA"}
|