@quillsql/react 2.12.37 → 2.12.39
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/cjs/ChartBuilder.d.ts.map +1 -1
- package/dist/cjs/ChartBuilder.js +2 -2
- package/dist/cjs/Context.d.ts.map +1 -1
- package/dist/cjs/Context.js +2 -0
- package/dist/cjs/Dashboard.d.ts.map +1 -1
- package/dist/cjs/Dashboard.js +3 -1
- package/dist/cjs/utils/constants.d.ts +1 -0
- package/dist/cjs/utils/constants.d.ts.map +1 -1
- package/dist/cjs/utils/constants.js +2 -1
- package/dist/cjs/utils/pivotProcessing.d.ts.map +1 -1
- package/dist/cjs/utils/pivotProcessing.js +5 -2
- package/dist/cjs/utils/schema.d.ts.map +1 -1
- package/dist/cjs/utils/schema.js +5 -2
- package/dist/cjs/utils/tableProcessing.d.ts.map +1 -1
- package/dist/cjs/utils/tableProcessing.js +2 -1
- package/dist/esm/Chart.d.ts +204 -0
- package/dist/esm/Chart.d.ts.map +1 -0
- package/dist/esm/Chart.js +431 -0
- package/dist/esm/ChartBuilder.d.ts +339 -0
- package/dist/esm/ChartBuilder.d.ts.map +1 -0
- package/dist/esm/ChartBuilder.js +1312 -0
- package/dist/esm/ChartEditor.d.ts +209 -0
- package/dist/esm/ChartEditor.d.ts.map +1 -0
- package/dist/esm/ChartEditor.js +182 -0
- package/dist/esm/Context.d.ts +14 -0
- package/dist/esm/Context.d.ts.map +1 -0
- package/dist/esm/Context.js +271 -0
- package/dist/esm/Dashboard.d.ts +279 -0
- package/dist/esm/Dashboard.d.ts.map +1 -0
- package/dist/esm/Dashboard.js +662 -0
- package/dist/esm/DateRangePicker/Calendar.d.ts +17 -0
- package/dist/esm/DateRangePicker/Calendar.d.ts.map +1 -0
- package/dist/esm/DateRangePicker/Calendar.js +164 -0
- package/dist/esm/DateRangePicker/DateRangePicker.d.ts +39 -0
- package/dist/esm/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/esm/DateRangePicker/DateRangePicker.js +95 -0
- package/dist/esm/DateRangePicker/DateRangePickerButton.d.ts +22 -0
- package/dist/esm/DateRangePicker/DateRangePickerButton.d.ts.map +1 -0
- package/dist/esm/DateRangePicker/DateRangePickerButton.js +134 -0
- package/dist/esm/DateRangePicker/QuillDateRangePicker.d.ts +25 -0
- package/dist/esm/DateRangePicker/QuillDateRangePicker.d.ts.map +1 -0
- package/dist/esm/DateRangePicker/QuillDateRangePicker.js +260 -0
- package/dist/esm/DateRangePicker/dateRangePickerUtils.d.ts +80 -0
- package/dist/esm/DateRangePicker/dateRangePickerUtils.d.ts.map +1 -0
- package/dist/esm/DateRangePicker/dateRangePickerUtils.js +521 -0
- package/dist/esm/DateRangePicker/index.d.ts +3 -0
- package/dist/esm/DateRangePicker/index.d.ts.map +1 -0
- package/dist/esm/DateRangePicker/index.js +2 -0
- package/dist/esm/QuillProvider.d.ts +163 -0
- package/dist/esm/QuillProvider.d.ts.map +1 -0
- package/dist/esm/QuillProvider.js +104 -0
- package/dist/esm/ReportBuilder.d.ts +318 -0
- package/dist/esm/ReportBuilder.d.ts.map +1 -0
- package/dist/esm/ReportBuilder.js +3279 -0
- package/dist/esm/SQLEditor.d.ts +272 -0
- package/dist/esm/SQLEditor.d.ts.map +1 -0
- package/dist/esm/SQLEditor.js +510 -0
- package/dist/esm/Table.d.ts +167 -0
- package/dist/esm/Table.d.ts.map +1 -0
- package/dist/esm/Table.js +215 -0
- package/dist/esm/TableChart.d.ts +15 -0
- package/dist/esm/TableChart.d.ts.map +1 -0
- package/dist/esm/TableChart.js +95 -0
- package/dist/esm/assets/ArrowDownHeadIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowDownHeadIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowDownHeadIcon.js +3 -0
- package/dist/esm/assets/ArrowDownIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowDownIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowDownIcon.js +3 -0
- package/dist/esm/assets/ArrowDownRightIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowDownRightIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowDownRightIcon.js +3 -0
- package/dist/esm/assets/ArrowLeftHeadIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowLeftHeadIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowLeftHeadIcon.js +3 -0
- package/dist/esm/assets/ArrowRightHeadIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowRightHeadIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowRightHeadIcon.js +3 -0
- package/dist/esm/assets/ArrowRightIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowRightIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowRightIcon.js +3 -0
- package/dist/esm/assets/ArrowUpHeadIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowUpHeadIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowUpHeadIcon.js +3 -0
- package/dist/esm/assets/ArrowUpIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowUpIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowUpIcon.js +3 -0
- package/dist/esm/assets/ArrowUpRightIcon.d.ts +5 -0
- package/dist/esm/assets/ArrowUpRightIcon.d.ts.map +1 -0
- package/dist/esm/assets/ArrowUpRightIcon.js +3 -0
- package/dist/esm/assets/CalendarIcon.d.ts +5 -0
- package/dist/esm/assets/CalendarIcon.d.ts.map +1 -0
- package/dist/esm/assets/CalendarIcon.js +3 -0
- package/dist/esm/assets/CalendarNormalIcon.d.ts +5 -0
- package/dist/esm/assets/CalendarNormalIcon.d.ts.map +1 -0
- package/dist/esm/assets/CalendarNormalIcon.js +3 -0
- package/dist/esm/assets/DoubleArrowLeftHeadIcon.d.ts +5 -0
- package/dist/esm/assets/DoubleArrowLeftHeadIcon.d.ts.map +1 -0
- package/dist/esm/assets/DoubleArrowLeftHeadIcon.js +3 -0
- package/dist/esm/assets/DoubleArrowRightHeadIcon.d.ts +5 -0
- package/dist/esm/assets/DoubleArrowRightHeadIcon.d.ts.map +1 -0
- package/dist/esm/assets/DoubleArrowRightHeadIcon.js +3 -0
- package/dist/esm/assets/ExclamationFilledIcon.d.ts +5 -0
- package/dist/esm/assets/ExclamationFilledIcon.d.ts.map +1 -0
- package/dist/esm/assets/ExclamationFilledIcon.js +3 -0
- package/dist/esm/assets/FilterIcon.d.ts +5 -0
- package/dist/esm/assets/FilterIcon.d.ts.map +1 -0
- package/dist/esm/assets/FilterIcon.js +3 -0
- package/dist/esm/assets/LoadingSpinner.d.ts +5 -0
- package/dist/esm/assets/LoadingSpinner.d.ts.map +1 -0
- package/dist/esm/assets/LoadingSpinner.js +3 -0
- package/dist/esm/assets/RefreshIcon.d.ts +5 -0
- package/dist/esm/assets/RefreshIcon.d.ts.map +1 -0
- package/dist/esm/assets/RefreshIcon.js +3 -0
- package/dist/esm/assets/SearchIcon.d.ts +5 -0
- package/dist/esm/assets/SearchIcon.d.ts.map +1 -0
- package/dist/esm/assets/SearchIcon.js +3 -0
- package/dist/esm/assets/UpLeftArrowsIcon.d.ts +5 -0
- package/dist/esm/assets/UpLeftArrowsIcon.d.ts.map +1 -0
- package/dist/esm/assets/UpLeftArrowsIcon.js +3 -0
- package/dist/esm/assets/XCircleIcon.d.ts +5 -0
- package/dist/esm/assets/XCircleIcon.d.ts.map +1 -0
- package/dist/esm/assets/XCircleIcon.js +3 -0
- package/dist/esm/assets/XIcon.d.ts +5 -0
- package/dist/esm/assets/XIcon.d.ts.map +1 -0
- package/dist/esm/assets/XIcon.js +3 -0
- package/dist/esm/assets/index.d.ts +22 -0
- package/dist/esm/assets/index.d.ts.map +1 -0
- package/dist/esm/assets/index.js +21 -0
- package/dist/esm/components/Banner/index.d.ts +3 -0
- package/dist/esm/components/Banner/index.d.ts.map +1 -0
- package/dist/esm/components/Banner/index.js +24 -0
- package/dist/esm/components/BigModal/BigModal.d.ts +15 -0
- package/dist/esm/components/BigModal/BigModal.d.ts.map +1 -0
- package/dist/esm/components/BigModal/BigModal.js +56 -0
- package/dist/esm/components/Chart/BarChart.d.ts +23 -0
- package/dist/esm/components/Chart/BarChart.d.ts.map +1 -0
- package/dist/esm/components/Chart/BarChart.js +110 -0
- package/dist/esm/components/Chart/BarList.d.ts +27 -0
- package/dist/esm/components/Chart/BarList.d.ts.map +1 -0
- package/dist/esm/components/Chart/BarList.js +148 -0
- package/dist/esm/components/Chart/ChartError.d.ts +10 -0
- package/dist/esm/components/Chart/ChartError.d.ts.map +1 -0
- package/dist/esm/components/Chart/ChartError.js +65 -0
- package/dist/esm/components/Chart/ChartSkeleton.d.ts +8 -0
- package/dist/esm/components/Chart/ChartSkeleton.d.ts.map +1 -0
- package/dist/esm/components/Chart/ChartSkeleton.js +19 -0
- package/dist/esm/components/Chart/ChartTooltip.d.ts +31 -0
- package/dist/esm/components/Chart/ChartTooltip.d.ts.map +1 -0
- package/dist/esm/components/Chart/ChartTooltip.js +234 -0
- package/dist/esm/components/Chart/ChartTooltipFrame.d.ts +6 -0
- package/dist/esm/components/Chart/ChartTooltipFrame.d.ts.map +1 -0
- package/dist/esm/components/Chart/ChartTooltipFrame.js +14 -0
- package/dist/esm/components/Chart/ChartTooltipGroup.d.ts +11 -0
- package/dist/esm/components/Chart/ChartTooltipGroup.d.ts.map +1 -0
- package/dist/esm/components/Chart/ChartTooltipGroup.js +23 -0
- package/dist/esm/components/Chart/ChartTooltipRow.d.ts +8 -0
- package/dist/esm/components/Chart/ChartTooltipRow.d.ts.map +1 -0
- package/dist/esm/components/Chart/ChartTooltipRow.js +41 -0
- package/dist/esm/components/Chart/LineChart.d.ts +29 -0
- package/dist/esm/components/Chart/LineChart.d.ts.map +1 -0
- package/dist/esm/components/Chart/LineChart.js +163 -0
- package/dist/esm/components/Chart/PieChart.d.ts +62 -0
- package/dist/esm/components/Chart/PieChart.d.ts.map +1 -0
- package/dist/esm/components/Chart/PieChart.js +195 -0
- package/dist/esm/components/Dashboard/ChartComponent.d.ts +4 -0
- package/dist/esm/components/Dashboard/ChartComponent.d.ts.map +1 -0
- package/dist/esm/components/Dashboard/ChartComponent.js +60 -0
- package/dist/esm/components/Dashboard/DashboardFilter.d.ts +38 -0
- package/dist/esm/components/Dashboard/DashboardFilter.d.ts.map +1 -0
- package/dist/esm/components/Dashboard/DashboardFilter.js +89 -0
- package/dist/esm/components/Dashboard/DashboardSection.d.ts +7 -0
- package/dist/esm/components/Dashboard/DashboardSection.d.ts.map +1 -0
- package/dist/esm/components/Dashboard/DashboardSection.js +22 -0
- package/dist/esm/components/Dashboard/DashboardSectionContainer.d.ts +3 -0
- package/dist/esm/components/Dashboard/DashboardSectionContainer.d.ts.map +1 -0
- package/dist/esm/components/Dashboard/DashboardSectionContainer.js +10 -0
- package/dist/esm/components/Dashboard/DataLoader.d.ts +44 -0
- package/dist/esm/components/Dashboard/DataLoader.d.ts.map +1 -0
- package/dist/esm/components/Dashboard/DataLoader.js +190 -0
- package/dist/esm/components/Dashboard/MetricComponent.d.ts +4 -0
- package/dist/esm/components/Dashboard/MetricComponent.d.ts.map +1 -0
- package/dist/esm/components/Dashboard/MetricComponent.js +133 -0
- package/dist/esm/components/Dashboard/TableComponent.d.ts +15 -0
- package/dist/esm/components/Dashboard/TableComponent.d.ts.map +1 -0
- package/dist/esm/components/Dashboard/TableComponent.js +62 -0
- package/dist/esm/components/Dropdown/Dropdown.d.ts +14 -0
- package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/esm/components/Dropdown/Dropdown.js +69 -0
- package/dist/esm/components/Dropdown/DropdownItem.d.ts +11 -0
- package/dist/esm/components/Dropdown/DropdownItem.d.ts.map +1 -0
- package/dist/esm/components/Dropdown/DropdownItem.js +37 -0
- package/dist/esm/components/Dropdown/index.d.ts +3 -0
- package/dist/esm/components/Dropdown/index.d.ts.map +1 -0
- package/dist/esm/components/Dropdown/index.js +2 -0
- package/dist/esm/components/Modal/Modal.d.ts +15 -0
- package/dist/esm/components/Modal/Modal.d.ts.map +1 -0
- package/dist/esm/components/Modal/Modal.js +64 -0
- package/dist/esm/components/Modal/index.d.ts +2 -0
- package/dist/esm/components/Modal/index.d.ts.map +1 -0
- package/dist/esm/components/Modal/index.js +1 -0
- package/dist/esm/components/QuillCard.d.ts +9 -0
- package/dist/esm/components/QuillCard.d.ts.map +1 -0
- package/dist/esm/components/QuillCard.js +56 -0
- package/dist/esm/components/QuillMultiSelect.d.ts +11 -0
- package/dist/esm/components/QuillMultiSelect.d.ts.map +1 -0
- package/dist/esm/components/QuillMultiSelect.js +193 -0
- package/dist/esm/components/QuillMultiSelectWithCombo.d.ts +11 -0
- package/dist/esm/components/QuillMultiSelectWithCombo.d.ts.map +1 -0
- package/dist/esm/components/QuillMultiSelectWithCombo.js +215 -0
- package/dist/esm/components/QuillSelect.d.ts +6 -0
- package/dist/esm/components/QuillSelect.d.ts.map +1 -0
- package/dist/esm/components/QuillSelect.js +136 -0
- package/dist/esm/components/QuillSelectWithCombo.d.ts +6 -0
- package/dist/esm/components/QuillSelectWithCombo.d.ts.map +1 -0
- package/dist/esm/components/QuillSelectWithCombo.js +163 -0
- package/dist/esm/components/QuillTable.d.ts +31 -0
- package/dist/esm/components/QuillTable.d.ts.map +1 -0
- package/dist/esm/components/QuillTable.js +261 -0
- package/dist/esm/components/ReportBuilder/AddColumnModal.d.ts +34 -0
- package/dist/esm/components/ReportBuilder/AddColumnModal.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/AddColumnModal.js +145 -0
- package/dist/esm/components/ReportBuilder/AddLimitPopover.d.ts +26 -0
- package/dist/esm/components/ReportBuilder/AddLimitPopover.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/AddLimitPopover.js +36 -0
- package/dist/esm/components/ReportBuilder/AddSortPopover.d.ts +23 -0
- package/dist/esm/components/ReportBuilder/AddSortPopover.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/AddSortPopover.js +73 -0
- package/dist/esm/components/ReportBuilder/FilterModal.d.ts +30 -0
- package/dist/esm/components/ReportBuilder/FilterModal.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/FilterModal.js +576 -0
- package/dist/esm/components/ReportBuilder/ast.d.ts +523 -0
- package/dist/esm/components/ReportBuilder/ast.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/ast.js +230 -0
- package/dist/esm/components/ReportBuilder/bigDateMap.d.ts +7 -0
- package/dist/esm/components/ReportBuilder/bigDateMap.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/bigDateMap.js +687 -0
- package/dist/esm/components/ReportBuilder/constants.d.ts +117 -0
- package/dist/esm/components/ReportBuilder/constants.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/constants.js +161 -0
- package/dist/esm/components/ReportBuilder/convert.d.ts +65 -0
- package/dist/esm/components/ReportBuilder/convert.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/convert.js +717 -0
- package/dist/esm/components/ReportBuilder/operators.d.ts +462 -0
- package/dist/esm/components/ReportBuilder/operators.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/operators.js +581 -0
- package/dist/esm/components/ReportBuilder/pivot.d.ts +16 -0
- package/dist/esm/components/ReportBuilder/pivot.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/pivot.js +1 -0
- package/dist/esm/components/ReportBuilder/postgres.d.ts +150 -0
- package/dist/esm/components/ReportBuilder/postgres.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/postgres.js +355 -0
- package/dist/esm/components/ReportBuilder/schema.d.ts +23 -0
- package/dist/esm/components/ReportBuilder/schema.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/schema.js +1 -0
- package/dist/esm/components/ReportBuilder/ui.d.ts +119 -0
- package/dist/esm/components/ReportBuilder/ui.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/ui.js +382 -0
- package/dist/esm/components/ReportBuilder/util.d.ts +76 -0
- package/dist/esm/components/ReportBuilder/util.d.ts.map +1 -0
- package/dist/esm/components/ReportBuilder/util.js +729 -0
- package/dist/esm/components/UiComponents.d.ts +221 -0
- package/dist/esm/components/UiComponents.d.ts.map +1 -0
- package/dist/esm/components/UiComponents.js +571 -0
- package/dist/esm/components/selectUtils.d.ts +9 -0
- package/dist/esm/components/selectUtils.d.ts.map +1 -0
- package/dist/esm/components/selectUtils.js +17 -0
- package/dist/esm/contexts/BaseColorContext.d.ts +4 -0
- package/dist/esm/contexts/BaseColorContext.d.ts.map +1 -0
- package/dist/esm/contexts/BaseColorContext.js +3 -0
- package/dist/esm/contexts/HoveredValueContext.d.ts +8 -0
- package/dist/esm/contexts/HoveredValueContext.d.ts.map +1 -0
- package/dist/esm/contexts/HoveredValueContext.js +5 -0
- package/dist/esm/contexts/RootStylesContext.d.ts +4 -0
- package/dist/esm/contexts/RootStylesContext.d.ts.map +1 -0
- package/dist/esm/contexts/RootStylesContext.js +3 -0
- package/dist/esm/contexts/SelectedValueContext.d.ts +8 -0
- package/dist/esm/contexts/SelectedValueContext.d.ts.map +1 -0
- package/dist/esm/contexts/SelectedValueContext.js +6 -0
- package/dist/esm/contexts/index.d.ts +5 -0
- package/dist/esm/contexts/index.d.ts.map +1 -0
- package/dist/esm/contexts/index.js +4 -0
- package/dist/esm/hooks/index.d.ts +6 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/index.js +5 -0
- package/dist/esm/hooks/useAstToFilterTree.d.ts +11 -0
- package/dist/esm/hooks/useAstToFilterTree.d.ts.map +1 -0
- package/dist/esm/hooks/useAstToFilterTree.js +24 -0
- package/dist/esm/hooks/useDashboard.d.ts +7 -0
- package/dist/esm/hooks/useDashboard.d.ts.map +1 -0
- package/dist/esm/hooks/useDashboard.js +69 -0
- package/dist/esm/hooks/useExport.d.ts +6 -0
- package/dist/esm/hooks/useExport.d.ts.map +1 -0
- package/dist/esm/hooks/useExport.js +125 -0
- package/dist/esm/hooks/useFormat.d.ts +5 -0
- package/dist/esm/hooks/useFormat.d.ts.map +1 -0
- package/dist/esm/hooks/useFormat.js +25 -0
- package/dist/esm/hooks/useInternalState.d.ts +4 -0
- package/dist/esm/hooks/useInternalState.d.ts.map +1 -0
- package/dist/esm/hooks/useInternalState.js +14 -0
- package/dist/esm/hooks/useOnClickOutside.d.ts +3 -0
- package/dist/esm/hooks/useOnClickOutside.d.ts.map +1 -0
- package/dist/esm/hooks/useOnClickOutside.js +18 -0
- package/dist/esm/hooks/useOnWindowResize.d.ts +5 -0
- package/dist/esm/hooks/useOnWindowResize.d.ts.map +1 -0
- package/dist/esm/hooks/useOnWindowResize.js +14 -0
- package/dist/esm/hooks/useQuill.d.ts +37 -0
- package/dist/esm/hooks/useQuill.d.ts.map +1 -0
- package/dist/esm/hooks/useQuill.js +182 -0
- package/dist/esm/hooks/useSelectOnKeyDown.d.ts +3 -0
- package/dist/esm/hooks/useSelectOnKeyDown.d.ts.map +1 -0
- package/dist/esm/hooks/useSelectOnKeyDown.js +63 -0
- package/dist/esm/hooks/useTheme.d.ts +7 -0
- package/dist/esm/hooks/useTheme.d.ts.map +1 -0
- package/dist/esm/hooks/useTheme.js +10 -0
- package/dist/esm/index.d.ts +29 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/internals/ReportBuilder/PivotForm.d.ts +28 -0
- package/dist/esm/internals/ReportBuilder/PivotForm.d.ts.map +1 -0
- package/dist/esm/internals/ReportBuilder/PivotForm.js +62 -0
- package/dist/esm/internals/ReportBuilder/PivotList.d.ts +39 -0
- package/dist/esm/internals/ReportBuilder/PivotList.d.ts.map +1 -0
- package/dist/esm/internals/ReportBuilder/PivotList.js +89 -0
- package/dist/esm/internals/ReportBuilder/PivotModal.d.ts +146 -0
- package/dist/esm/internals/ReportBuilder/PivotModal.d.ts.map +1 -0
- package/dist/esm/internals/ReportBuilder/PivotModal.js +1210 -0
- package/dist/esm/lib/font.d.ts +14 -0
- package/dist/esm/lib/font.d.ts.map +1 -0
- package/dist/esm/lib/font.js +13 -0
- package/dist/esm/lib/index.d.ts +4 -0
- package/dist/esm/lib/index.d.ts.map +1 -0
- package/dist/esm/lib/index.js +3 -0
- package/dist/esm/lib/inputTypes.d.ts +21 -0
- package/dist/esm/lib/inputTypes.d.ts.map +1 -0
- package/dist/esm/lib/inputTypes.js +55 -0
- package/dist/esm/lib/utils.d.ts +10 -0
- package/dist/esm/lib/utils.d.ts.map +1 -0
- package/dist/esm/lib/utils.js +35 -0
- package/dist/esm/models/Columns.d.ts +12 -0
- package/dist/esm/models/Columns.d.ts.map +1 -0
- package/dist/esm/models/Columns.js +1 -0
- package/dist/esm/models/Filter.d.ts +118 -0
- package/dist/esm/models/Filter.d.ts.map +1 -0
- package/dist/esm/models/Filter.js +98 -0
- package/dist/esm/models/Pagination.d.ts +10 -0
- package/dist/esm/models/Pagination.d.ts.map +1 -0
- package/dist/esm/models/Pagination.js +1 -0
- package/dist/esm/models/Pivots.d.ts +2 -0
- package/dist/esm/models/Pivots.d.ts.map +1 -0
- package/dist/esm/models/Pivots.js +1 -0
- package/dist/esm/models/Report.d.ts +103 -0
- package/dist/esm/models/Report.d.ts.map +1 -0
- package/dist/esm/models/Report.js +1 -0
- package/dist/esm/models/Tables.d.ts +8 -0
- package/dist/esm/models/Tables.d.ts.map +1 -0
- package/dist/esm/models/Tables.js +1 -0
- package/dist/esm/utils/aggregate.d.ts +4 -0
- package/dist/esm/utils/aggregate.d.ts.map +1 -0
- package/dist/esm/utils/aggregate.js +422 -0
- package/dist/esm/utils/astFilterProcessing.d.ts +36 -0
- package/dist/esm/utils/astFilterProcessing.d.ts.map +1 -0
- package/dist/esm/utils/astFilterProcessing.js +8084 -0
- package/dist/esm/utils/astProcessing.d.ts +26 -0
- package/dist/esm/utils/astProcessing.d.ts.map +1 -0
- package/dist/esm/utils/astProcessing.js +254 -0
- package/dist/esm/utils/axisFormatter.d.ts +20 -0
- package/dist/esm/utils/axisFormatter.d.ts.map +1 -0
- package/dist/esm/utils/axisFormatter.js +179 -0
- package/dist/esm/utils/color.d.ts +44 -0
- package/dist/esm/utils/color.d.ts.map +1 -0
- package/dist/esm/utils/color.js +425 -0
- package/dist/esm/utils/columnProcessing.d.ts +13 -0
- package/dist/esm/utils/columnProcessing.d.ts.map +1 -0
- package/dist/esm/utils/columnProcessing.js +260 -0
- package/dist/esm/utils/constants.d.ts +3 -0
- package/dist/esm/utils/constants.d.ts.map +1 -0
- package/dist/esm/utils/constants.js +2 -0
- package/dist/esm/utils/crypto.d.ts +2 -0
- package/dist/esm/utils/crypto.d.ts.map +1 -0
- package/dist/esm/utils/crypto.js +10 -0
- package/dist/esm/utils/csv.d.ts +6 -0
- package/dist/esm/utils/csv.d.ts.map +1 -0
- package/dist/esm/utils/csv.js +78 -0
- package/dist/esm/utils/dashboard.d.ts +13 -0
- package/dist/esm/utils/dashboard.d.ts.map +1 -0
- package/dist/esm/utils/dashboard.js +171 -0
- package/dist/esm/utils/dataFetcher.d.ts +3 -0
- package/dist/esm/utils/dataFetcher.d.ts.map +1 -0
- package/dist/esm/utils/dataFetcher.js +205 -0
- package/dist/esm/utils/dataProcessing.d.ts +11 -0
- package/dist/esm/utils/dataProcessing.d.ts.map +1 -0
- package/dist/esm/utils/dataProcessing.js +162 -0
- package/dist/esm/utils/dates.d.ts +20 -0
- package/dist/esm/utils/dates.d.ts.map +1 -0
- package/dist/esm/utils/dates.js +95 -0
- package/dist/esm/utils/error.d.ts +5 -0
- package/dist/esm/utils/error.d.ts.map +1 -0
- package/dist/esm/utils/error.js +8 -0
- package/dist/esm/utils/errorProcessing.d.ts +2 -0
- package/dist/esm/utils/errorProcessing.d.ts.map +1 -0
- package/dist/esm/utils/errorProcessing.js +5 -0
- package/dist/esm/utils/filterConstants.d.ts +34 -0
- package/dist/esm/utils/filterConstants.d.ts.map +1 -0
- package/dist/esm/utils/filterConstants.js +33 -0
- package/dist/esm/utils/filterProcessing.d.ts +10 -0
- package/dist/esm/utils/filterProcessing.d.ts.map +1 -0
- package/dist/esm/utils/filterProcessing.js +232 -0
- package/dist/esm/utils/getDomain.d.ts +8 -0
- package/dist/esm/utils/getDomain.d.ts.map +1 -0
- package/dist/esm/utils/getDomain.js +52 -0
- package/dist/esm/utils/logging.d.ts +2 -0
- package/dist/esm/utils/logging.d.ts.map +1 -0
- package/dist/esm/utils/logging.js +7 -0
- package/dist/esm/utils/merge.d.ts +2 -0
- package/dist/esm/utils/merge.d.ts.map +1 -0
- package/dist/esm/utils/merge.js +18 -0
- package/dist/esm/utils/monacoConfig.d.ts +21 -0
- package/dist/esm/utils/monacoConfig.d.ts.map +1 -0
- package/dist/esm/utils/monacoConfig.js +319 -0
- package/dist/esm/utils/paginationProcessing.d.ts +5 -0
- package/dist/esm/utils/paginationProcessing.d.ts.map +1 -0
- package/dist/esm/utils/paginationProcessing.js +25 -0
- package/dist/esm/utils/parserBigQuery.d.ts +6 -0
- package/dist/esm/utils/parserBigQuery.d.ts.map +1 -0
- package/dist/esm/utils/parserBigQuery.js +52 -0
- package/dist/esm/utils/parserPostgres.d.ts +3 -0
- package/dist/esm/utils/parserPostgres.d.ts.map +1 -0
- package/dist/esm/utils/parserPostgres.js +37 -0
- package/dist/esm/utils/pivotConstructor.d.ts +7 -0
- package/dist/esm/utils/pivotConstructor.d.ts.map +1 -0
- package/dist/esm/utils/pivotConstructor.js +151 -0
- package/dist/esm/utils/pivotProcessing.d.ts +17 -0
- package/dist/esm/utils/pivotProcessing.d.ts.map +1 -0
- package/dist/esm/utils/pivotProcessing.js +135 -0
- package/dist/esm/utils/queryConstructor.d.ts +7 -0
- package/dist/esm/utils/queryConstructor.d.ts.map +1 -0
- package/dist/esm/utils/queryConstructor.js +226 -0
- package/dist/esm/utils/report.d.ts +10 -0
- package/dist/esm/utils/report.d.ts.map +1 -0
- package/dist/esm/utils/report.js +186 -0
- package/dist/esm/utils/schema.d.ts +6 -0
- package/dist/esm/utils/schema.d.ts.map +1 -0
- package/dist/esm/utils/schema.js +156 -0
- package/dist/esm/utils/styles.d.ts +17 -0
- package/dist/esm/utils/styles.d.ts.map +1 -0
- package/dist/esm/utils/styles.js +16 -0
- package/dist/esm/utils/tableProcessing.d.ts +45 -0
- package/dist/esm/utils/tableProcessing.d.ts.map +1 -0
- package/dist/esm/utils/tableProcessing.js +301 -0
- package/dist/esm/utils/textProcessing.d.ts +6 -0
- package/dist/esm/utils/textProcessing.d.ts.map +1 -0
- package/dist/esm/utils/textProcessing.js +49 -0
- package/dist/esm/utils/validation.d.ts +9 -0
- package/dist/esm/utils/validation.d.ts.map +1 -0
- package/dist/esm/utils/validation.js +20 -0
- package/dist/esm/utils/valueFormatter.d.ts +29 -0
- package/dist/esm/utils/valueFormatter.d.ts.map +1 -0
- package/dist/esm/utils/valueFormatter.js +342 -0
- package/dist/esm/utils/width.d.ts +12 -0
- package/dist/esm/utils/width.d.ts.map +1 -0
- package/dist/esm/utils/width.js +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useContext, useEffect, useRef, useState, } from 'react';
|
|
3
|
+
import { XIcon } from '../assets';
|
|
4
|
+
import { ThemeContext } from '../Context';
|
|
5
|
+
import { useTheme } from '../hooks';
|
|
6
|
+
import QuillTable from './QuillTable';
|
|
7
|
+
import ChartSkeleton, { QuillLoadingSkeleton } from './Chart/ChartSkeleton';
|
|
8
|
+
/**
|
|
9
|
+
* The fallback TextInput element for Quill.
|
|
10
|
+
*/
|
|
11
|
+
export const QuillTextInput = ({ id, value, width, label, placeholder, onChange, }) => {
|
|
12
|
+
const [theme] = useContext(ThemeContext);
|
|
13
|
+
return (_jsxs("label", { style: {
|
|
14
|
+
position: 'relative',
|
|
15
|
+
borderRadius: '6px',
|
|
16
|
+
width: width,
|
|
17
|
+
minWidth: width,
|
|
18
|
+
}, children: [label && (_jsx("div", { style: {
|
|
19
|
+
fontSize: 14,
|
|
20
|
+
color: theme.secondaryTextColor,
|
|
21
|
+
fontFamily: theme.fontFamily,
|
|
22
|
+
paddingBottom: 5,
|
|
23
|
+
fontWeight: 600,
|
|
24
|
+
}, children: label })), _jsx("input", { style: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
height: 40,
|
|
27
|
+
minHeight: 40,
|
|
28
|
+
maxHeight: 40,
|
|
29
|
+
borderRadius: 6,
|
|
30
|
+
border: '1px solid #E7E7E7',
|
|
31
|
+
fontSize: 14,
|
|
32
|
+
boxSizing: 'border-box',
|
|
33
|
+
paddingLeft: 13,
|
|
34
|
+
backgroundColor: theme?.backgroundColor,
|
|
35
|
+
color: theme?.primaryTextColor,
|
|
36
|
+
fontFamily: theme?.fontFamily,
|
|
37
|
+
width: width,
|
|
38
|
+
minWidth: width,
|
|
39
|
+
}, id: id, value: value, placeholder: placeholder, onChange: onChange })] }));
|
|
40
|
+
};
|
|
41
|
+
export const MemoizedButton = ({ label, onClick, disabled, icon, }) => {
|
|
42
|
+
const [theme] = useContext(ThemeContext);
|
|
43
|
+
return (_jsxs("button", { className: "quill-button", onClick: onClick, disabled: disabled, style: {
|
|
44
|
+
fontFamily: theme?.fontFamily,
|
|
45
|
+
fontSize: '14px',
|
|
46
|
+
display: 'flex',
|
|
47
|
+
flexDirection: 'row',
|
|
48
|
+
whiteSpace: 'nowrap',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
gap: 6,
|
|
51
|
+
borderRadius: 6,
|
|
52
|
+
color: 'white',
|
|
53
|
+
height: 38,
|
|
54
|
+
border: '1px solid transparent',
|
|
55
|
+
fontWeight: theme.buttonFontWeight ?? 600,
|
|
56
|
+
boxSizing: 'content-box',
|
|
57
|
+
paddingLeft: 16,
|
|
58
|
+
paddingRight: 16,
|
|
59
|
+
cursor: 'pointer',
|
|
60
|
+
}, children: [_jsx("style", { children: `
|
|
61
|
+
.quill-button {
|
|
62
|
+
background-color: #212121;
|
|
63
|
+
}
|
|
64
|
+
.quill-button:hover {
|
|
65
|
+
background-color: rgba(56, 65, 81, 0.9);
|
|
66
|
+
}` }), icon, label] }));
|
|
67
|
+
};
|
|
68
|
+
export const MemoizedSecondaryButton = ({ label, onClick, icon, }) => {
|
|
69
|
+
const theme = useTheme();
|
|
70
|
+
return (_jsxs("button", { className: "quill-secondary-button", onClick: onClick, style: {
|
|
71
|
+
fontFamily: theme?.fontFamily,
|
|
72
|
+
color: theme?.primaryTextColor,
|
|
73
|
+
height: '38px', // 40px - 2px for top and bottom border
|
|
74
|
+
border: '1px solid #E7E7E7',
|
|
75
|
+
fontWeight: 500,
|
|
76
|
+
borderRadius: '6px',
|
|
77
|
+
paddingLeft: '16px',
|
|
78
|
+
paddingRight: '16px',
|
|
79
|
+
boxSizing: 'content-box',
|
|
80
|
+
fontSize: '14px',
|
|
81
|
+
cursor: 'pointer',
|
|
82
|
+
whiteSpace: 'nowrap',
|
|
83
|
+
display: 'flex',
|
|
84
|
+
flexDirection: 'row',
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
gap: 6,
|
|
87
|
+
}, children: [_jsx("style", { children: `
|
|
88
|
+
.quill-secondary-button {
|
|
89
|
+
background-color: white;
|
|
90
|
+
}
|
|
91
|
+
.quill-secondary-button:hover {
|
|
92
|
+
background-color: #F4F4F5;
|
|
93
|
+
}` }), icon, label] }));
|
|
94
|
+
};
|
|
95
|
+
export const MemoizedHeader = ({ label }) => {
|
|
96
|
+
const [theme] = useContext(ThemeContext);
|
|
97
|
+
return (_jsx("h1", { style: {
|
|
98
|
+
fontSize: 16,
|
|
99
|
+
fontWeight: 600,
|
|
100
|
+
fontFamily: theme?.fontFamily,
|
|
101
|
+
color: theme?.primaryTextColor || '#384151',
|
|
102
|
+
userSelect: 'none',
|
|
103
|
+
margin: 0,
|
|
104
|
+
paddingBottom: 0,
|
|
105
|
+
}, children: label }));
|
|
106
|
+
};
|
|
107
|
+
export const MemoizedSubHeader = ({ label }) => {
|
|
108
|
+
const theme = useTheme();
|
|
109
|
+
return (_jsx("h2", { style: {
|
|
110
|
+
fontSize: 14,
|
|
111
|
+
fontWeight: 600,
|
|
112
|
+
fontFamily: theme?.fontFamily,
|
|
113
|
+
color: theme?.secondaryTextColor || '#575E6A',
|
|
114
|
+
userSelect: 'none',
|
|
115
|
+
margin: 0,
|
|
116
|
+
paddingTop: 6,
|
|
117
|
+
paddingBottom: 6,
|
|
118
|
+
}, children: label }));
|
|
119
|
+
};
|
|
120
|
+
export const MemoizedLabel = ({ label }) => {
|
|
121
|
+
const [theme] = useContext(ThemeContext);
|
|
122
|
+
return (_jsx("h1", { style: {
|
|
123
|
+
fontSize: 14,
|
|
124
|
+
fontWeight: 600,
|
|
125
|
+
fontFamily: theme?.fontFamily,
|
|
126
|
+
color: theme?.secondaryTextColor || '#575E6A',
|
|
127
|
+
userSelect: 'none',
|
|
128
|
+
margin: 0,
|
|
129
|
+
}, children: label }));
|
|
130
|
+
};
|
|
131
|
+
export const MemoizedCheckbox = ({ isChecked, label, onChange, }) => {
|
|
132
|
+
const theme = useTheme();
|
|
133
|
+
return (_jsxs("label", { style: {
|
|
134
|
+
display: 'flex',
|
|
135
|
+
width: '100%',
|
|
136
|
+
whiteSpace: 'nowrap',
|
|
137
|
+
textOverflow: 'ellipsis',
|
|
138
|
+
overflow: 'hidden',
|
|
139
|
+
gap: 4,
|
|
140
|
+
}, children: [_jsx("input", { type: "checkbox", checked: isChecked, onChange: onChange, style: { width: '14px', height: '14px', margin: 'auto 0' } }), _jsx("span", { style: {
|
|
141
|
+
display: 'block',
|
|
142
|
+
marginTop: 'auto',
|
|
143
|
+
marginBottom: 'auto',
|
|
144
|
+
marginLeft: '6px',
|
|
145
|
+
whiteSpace: 'nowrap',
|
|
146
|
+
textOverflow: 'ellipsis',
|
|
147
|
+
overflow: 'hidden',
|
|
148
|
+
fontFamily: theme?.fontFamily,
|
|
149
|
+
color: theme?.primaryTextColor,
|
|
150
|
+
}, children: label })] }));
|
|
151
|
+
};
|
|
152
|
+
export const DEFAULT_TAB_OPTIONS = [
|
|
153
|
+
{ label: 'or', value: 'OR' },
|
|
154
|
+
{ label: 'and', value: 'AND' },
|
|
155
|
+
];
|
|
156
|
+
export const QuillTabs = ({ options = DEFAULT_TAB_OPTIONS, value, onChange, }) => (_jsx("div", { style: {
|
|
157
|
+
flexDirection: 'row',
|
|
158
|
+
alignItems: 'center',
|
|
159
|
+
borderRadius: '0.25rem',
|
|
160
|
+
outlineStyle: 'none',
|
|
161
|
+
background: '#F9FAFB',
|
|
162
|
+
padding: '5px',
|
|
163
|
+
}, children: options.map((option, index) => (_jsx("button", { onClick: () => {
|
|
164
|
+
// Manually create a synthetic ChangeEvent and pass it to callback
|
|
165
|
+
const changeEvent = { target: { value: option.value } };
|
|
166
|
+
onChange(changeEvent);
|
|
167
|
+
}, style: {
|
|
168
|
+
borderRadius: '0.25rem',
|
|
169
|
+
borderWidth: '1px',
|
|
170
|
+
outlineStyle: 'none',
|
|
171
|
+
transitionProperty: 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform',
|
|
172
|
+
transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
173
|
+
transitionDuration: '300ms',
|
|
174
|
+
margin: '0px',
|
|
175
|
+
paddingTop: '0.375rem',
|
|
176
|
+
paddingBottom: '0.375rem',
|
|
177
|
+
paddingLeft: '0.75rem',
|
|
178
|
+
paddingRight: '0.75rem',
|
|
179
|
+
...(option.value === value
|
|
180
|
+
? {
|
|
181
|
+
fontWeight: 700,
|
|
182
|
+
backgroundColor: '#ffffff',
|
|
183
|
+
boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
184
|
+
color: '#212121',
|
|
185
|
+
borderColor: '#e7e7e7',
|
|
186
|
+
}
|
|
187
|
+
: {
|
|
188
|
+
borderColor: 'transparent',
|
|
189
|
+
fontWeight: 500,
|
|
190
|
+
backgroundColor: 'transparent',
|
|
191
|
+
color: '#606572',
|
|
192
|
+
}),
|
|
193
|
+
}, children: option.label }, index))) }));
|
|
194
|
+
export const MemoizedText = ({ label }) => {
|
|
195
|
+
const [theme] = useContext(ThemeContext);
|
|
196
|
+
return (_jsx("p", { style: {
|
|
197
|
+
fontSize: 12,
|
|
198
|
+
fontWeight: 400,
|
|
199
|
+
margin: 0,
|
|
200
|
+
color: '#575E6A',
|
|
201
|
+
userSelect: 'none',
|
|
202
|
+
fontFamily: theme?.fontFamily,
|
|
203
|
+
whiteSpace: 'nowrap',
|
|
204
|
+
textOverflow: 'ellipsis',
|
|
205
|
+
overflow: 'hidden',
|
|
206
|
+
}, children: label }));
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* The one, true Quill popover component.
|
|
210
|
+
*/
|
|
211
|
+
export const MemoizedPopover = ({ isOpen, setIsOpen, triggerLabel, popoverTitle = undefined, popoverChildren, containerStyle, }) => {
|
|
212
|
+
const [theme] = useContext(ThemeContext);
|
|
213
|
+
const [rightAlignment, setRightAlignment] = useState('auto');
|
|
214
|
+
const modalRef = useRef(null);
|
|
215
|
+
const popoverRef = useRef(null);
|
|
216
|
+
useEffect(() => {
|
|
217
|
+
const listener = (event) => {
|
|
218
|
+
if (modalRef?.current && !modalRef?.current?.contains(event.target)) {
|
|
219
|
+
if (setIsOpen)
|
|
220
|
+
setIsOpen(false);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
document.addEventListener('mousedown', listener);
|
|
224
|
+
return () => {
|
|
225
|
+
document.removeEventListener('mousedown', listener);
|
|
226
|
+
};
|
|
227
|
+
}, [modalRef, setIsOpen]);
|
|
228
|
+
useEffect(() => {
|
|
229
|
+
updatePopoverPosition();
|
|
230
|
+
window.addEventListener('resize', updatePopoverPosition);
|
|
231
|
+
return () => {
|
|
232
|
+
window.removeEventListener('resize', updatePopoverPosition);
|
|
233
|
+
};
|
|
234
|
+
}, [popoverRef.current, rightAlignment]);
|
|
235
|
+
const updatePopoverPosition = () => {
|
|
236
|
+
if (popoverRef.current && modalRef.current) {
|
|
237
|
+
const popoverRect = popoverRef.current.getBoundingClientRect();
|
|
238
|
+
const modalRect = modalRef.current.getBoundingClientRect();
|
|
239
|
+
if (rightAlignment === 'auto' &&
|
|
240
|
+
window.innerWidth - popoverRect.right < 1 &&
|
|
241
|
+
popoverRect.left > popoverRect.width // need enough space on left too
|
|
242
|
+
) {
|
|
243
|
+
setRightAlignment(0);
|
|
244
|
+
}
|
|
245
|
+
else if (rightAlignment === 0 &&
|
|
246
|
+
window.innerWidth - popoverRect.right + modalRect.width >
|
|
247
|
+
popoverRect.width) {
|
|
248
|
+
setRightAlignment('auto');
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
return (_jsxs("div", { style: containerStyle, children: [triggerLabel, isOpen && (_jsx("div", { id: "quill-popover-modal", ref: modalRef, style: { position: 'relative' }, children: _jsxs("div", { ref: popoverRef, style: {
|
|
253
|
+
background: theme?.backgroundColor || 'white',
|
|
254
|
+
position: 'absolute',
|
|
255
|
+
boxShadow: '0px 1px 12px 0px #E7E7E705',
|
|
256
|
+
border: theme
|
|
257
|
+
? `${theme.borderWidth || 1}px solid ${theme.borderColor || '#E7E7E7'}`
|
|
258
|
+
: '1px solid #E7E7E7',
|
|
259
|
+
boxSizing: 'content-box',
|
|
260
|
+
zIndex: 999,
|
|
261
|
+
// top: 12,
|
|
262
|
+
borderRadius: 6,
|
|
263
|
+
padding: 20,
|
|
264
|
+
right: rightAlignment,
|
|
265
|
+
}, children: [popoverTitle && (_jsx("h1", { style: {
|
|
266
|
+
fontWeight: '600',
|
|
267
|
+
fontSize: 18,
|
|
268
|
+
margin: 0,
|
|
269
|
+
textAlign: 'left',
|
|
270
|
+
marginBottom: 5,
|
|
271
|
+
color: theme?.primaryTextColor,
|
|
272
|
+
fontFamily: theme?.fontFamily,
|
|
273
|
+
}, children: popoverTitle })), popoverChildren] }) }))] }));
|
|
274
|
+
};
|
|
275
|
+
export function MemoizedModal({ isOpen, setIsOpen, title, children, width, height, }) {
|
|
276
|
+
const [theme] = useContext(ThemeContext);
|
|
277
|
+
if (!isOpen) {
|
|
278
|
+
// @ts-ignore
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
281
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { style: {
|
|
282
|
+
position: 'fixed',
|
|
283
|
+
top: '0',
|
|
284
|
+
right: '0',
|
|
285
|
+
bottom: '0',
|
|
286
|
+
left: '0',
|
|
287
|
+
zIndex: '50',
|
|
288
|
+
backgroundColor: 'rgba(255, 255, 255, 0.8)',
|
|
289
|
+
backdropFilter: 'blur(5px)',
|
|
290
|
+
}, onClick: () => setIsOpen(false) }), _jsx("div", { style: {
|
|
291
|
+
position: 'fixed',
|
|
292
|
+
left: '50%',
|
|
293
|
+
top: '50%',
|
|
294
|
+
zIndex: '50',
|
|
295
|
+
display: 'flex',
|
|
296
|
+
justifyContent: 'center',
|
|
297
|
+
alignItems: 'center',
|
|
298
|
+
transform: 'translateX(-50%) translateY(-50%)',
|
|
299
|
+
background: 'white',
|
|
300
|
+
borderRadius: 8,
|
|
301
|
+
borderStyle: 'solid',
|
|
302
|
+
borderWidth: 1,
|
|
303
|
+
borderColor: '#E7E7E7',
|
|
304
|
+
overflow: 'scroll',
|
|
305
|
+
width: width ?? 'auto',
|
|
306
|
+
height: height ?? 'auto',
|
|
307
|
+
maxWidth: 'calc(100vw - 82px)',
|
|
308
|
+
maxHeight: 'calc(100vh - 82px)',
|
|
309
|
+
}, children: _jsxs("div", { style: {
|
|
310
|
+
width: '100%',
|
|
311
|
+
height: '100%',
|
|
312
|
+
overflowY: 'scroll',
|
|
313
|
+
backgroundColor: '#ffffff',
|
|
314
|
+
display: 'flex',
|
|
315
|
+
flexDirection: 'column',
|
|
316
|
+
position: 'relative',
|
|
317
|
+
fontFamily: theme?.fontFamily,
|
|
318
|
+
}, children: [_jsxs("div", { id: "quill-modal-header", style: {
|
|
319
|
+
boxSizing: 'border-box',
|
|
320
|
+
display: 'flex',
|
|
321
|
+
flexDirection: 'row',
|
|
322
|
+
width: '100%',
|
|
323
|
+
justifyContent: 'space-between',
|
|
324
|
+
alignItems: 'center',
|
|
325
|
+
padding: 10,
|
|
326
|
+
}, children: [_jsx("h2", { style: {
|
|
327
|
+
fontSize: 18,
|
|
328
|
+
fontWeight: '600',
|
|
329
|
+
// width: '90%',
|
|
330
|
+
textAlign: 'left',
|
|
331
|
+
paddingLeft: 10,
|
|
332
|
+
color: theme?.primaryTextColor,
|
|
333
|
+
}, children: title }), _jsx(MemoizedDeleteButton, { onClick: () => setIsOpen(false) })] }), _jsx("div", { style: {
|
|
334
|
+
height: 'calc(100% - 60px)', // full height minus title
|
|
335
|
+
width: '100%', // full width minus margin
|
|
336
|
+
}, children: children })] }) })] }));
|
|
337
|
+
}
|
|
338
|
+
export const MemoizedDeleteButton = ({ onClick, }) => (_jsxs("button", { className: "quill-delete-button", type: "button", onClick: onClick, style: {
|
|
339
|
+
height: 40,
|
|
340
|
+
width: 40,
|
|
341
|
+
border: 'none',
|
|
342
|
+
cursor: 'pointer',
|
|
343
|
+
display: 'flex',
|
|
344
|
+
alignItems: 'center',
|
|
345
|
+
justifyContent: 'center',
|
|
346
|
+
borderRadius: 6,
|
|
347
|
+
}, children: [_jsx("style", { children: `
|
|
348
|
+
.quill-delete-button {
|
|
349
|
+
background-color: white;
|
|
350
|
+
}
|
|
351
|
+
.quill-delete-button:hover {
|
|
352
|
+
background-color: #F4F4F5;
|
|
353
|
+
}` }), _jsx(XIcon, { height: "20", width: "20", fill: "#6C727F" })] }));
|
|
354
|
+
export const LoadingSpinner = () => (_jsx("div", { style: {
|
|
355
|
+
height: '100%',
|
|
356
|
+
width: '100%',
|
|
357
|
+
display: 'flex',
|
|
358
|
+
flexDirection: 'column',
|
|
359
|
+
justifyContent: 'center',
|
|
360
|
+
alignItems: 'center',
|
|
361
|
+
}, children: _jsxs("svg", { width: "24", height: "24", children: [_jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 6)", stroke: "#364153", fill: "none", transform: "rotate(-90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "-180 12 12", to: "180 12 12", dur: "0.8s", repeatCount: "indefinite" }) }), _jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 1 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", stroke: '#ADB1B9', fill: "none", transform: "rotate(90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 12 12", to: "360 12 12", dur: "0.8s", repeatCount: "indefinite" }) })] }) }));
|
|
362
|
+
export const QuillTableSQLEditorComponent = ({ rows, columns, isLoading = false, rowCount, onPageChange, onSortChange, }) => {
|
|
363
|
+
const [sort, setSort] = useState({ field: '', direction: '' });
|
|
364
|
+
const [page, setPage] = useState(0);
|
|
365
|
+
if (isLoading) {
|
|
366
|
+
return (_jsx("div", { style: {
|
|
367
|
+
display: 'flex',
|
|
368
|
+
flexDirection: 'column',
|
|
369
|
+
margin: 'auto',
|
|
370
|
+
width: '100%',
|
|
371
|
+
height: '100%',
|
|
372
|
+
}, children: _jsx(LoadingSpinner, {}) }));
|
|
373
|
+
}
|
|
374
|
+
return (_jsx(QuillTable, { rows: rows, columns: columns, rowsPerPage: 20, rowCount: rowCount, onPageChange: (page) => {
|
|
375
|
+
setPage(page);
|
|
376
|
+
onPageChange && onPageChange(page);
|
|
377
|
+
}, onSortChange: (sort) => {
|
|
378
|
+
setSort(sort);
|
|
379
|
+
setPage(0);
|
|
380
|
+
onSortChange && onSortChange(sort);
|
|
381
|
+
}, sort: sort, currentPage: page, isLoading: isLoading }));
|
|
382
|
+
};
|
|
383
|
+
export const QuillTableComponent = ({ rows, columns, isLoading = false, rowCount, onPageChange, onSortChange, }) => {
|
|
384
|
+
const [sort, setSort] = useState({ field: '', direction: '' });
|
|
385
|
+
const [page, setPage] = useState(0);
|
|
386
|
+
const [initialLoad, setInitialLoad] = useState(true);
|
|
387
|
+
useEffect(() => {
|
|
388
|
+
if (initialLoad && !isLoading) {
|
|
389
|
+
setInitialLoad(false);
|
|
390
|
+
}
|
|
391
|
+
}, [isLoading]);
|
|
392
|
+
if (initialLoad) {
|
|
393
|
+
return (_jsx("div", { style: {
|
|
394
|
+
display: 'flex',
|
|
395
|
+
flexDirection: 'column',
|
|
396
|
+
margin: 'auto',
|
|
397
|
+
width: '100%',
|
|
398
|
+
height: '100%',
|
|
399
|
+
}, children: _jsx(ChartSkeleton, {}) }));
|
|
400
|
+
}
|
|
401
|
+
return (_jsx(QuillTable, { rows: rows, columns: columns, rowsPerPage: 20, rowCount: rowCount, onPageChange: (page) => {
|
|
402
|
+
setPage(page);
|
|
403
|
+
onPageChange && onPageChange(page);
|
|
404
|
+
}, onSortChange: (sort) => {
|
|
405
|
+
setSort(sort);
|
|
406
|
+
setPage(0);
|
|
407
|
+
onSortChange && onSortChange(sort);
|
|
408
|
+
}, sort: sort, currentPage: page, isLoading: isLoading }));
|
|
409
|
+
};
|
|
410
|
+
export const QuillEmptyDashboardComponent = () => _jsx("div", {});
|
|
411
|
+
const defaultFilterContainerStyles = {
|
|
412
|
+
display: 'flex',
|
|
413
|
+
width: '100%',
|
|
414
|
+
marginBottom: 25,
|
|
415
|
+
height: 66,
|
|
416
|
+
};
|
|
417
|
+
export const QuillLoadingDashboardComponent = ({ containerStyle, chartContainerStyle, LoadingComponent = QuillLoadingSkeleton, }) => {
|
|
418
|
+
return (_jsxs("div", { style: { ...containerStyle, overflow: 'hidden' }, children: [_jsx("div", { style: defaultFilterContainerStyles, children: _jsx(LoadingComponent, {}) }), _jsx("div", { style: {
|
|
419
|
+
display: 'grid',
|
|
420
|
+
gridTemplateColumns: 'repeat(auto-fill,minmax(400px, 1fr))',
|
|
421
|
+
gridTemplateRows: `repeat(${170}px)`,
|
|
422
|
+
gap: 40,
|
|
423
|
+
}, children: Array.from({ length: 4 }).map((_, index) => (_jsx("div", { style: chartContainerStyle, children: _jsx(LoadingComponent, {}, index) }, index))) })] }));
|
|
424
|
+
};
|
|
425
|
+
export const QuillChartBuilderInputRowContainer = ({ children, }) => {
|
|
426
|
+
return (_jsx("div", { style: {
|
|
427
|
+
display: 'flex',
|
|
428
|
+
flexDirection: 'row',
|
|
429
|
+
gap: 12,
|
|
430
|
+
}, children: children }));
|
|
431
|
+
};
|
|
432
|
+
export const QuillChartBuilderInputColumnContainer = ({ children, }) => {
|
|
433
|
+
return (_jsx("div", { style: {
|
|
434
|
+
display: 'flex',
|
|
435
|
+
flexDirection: 'column',
|
|
436
|
+
gap: 10,
|
|
437
|
+
}, children: children }));
|
|
438
|
+
};
|
|
439
|
+
export const QuillPivotRowContainer = ({ children, }) => {
|
|
440
|
+
return (_jsx("div", { style: {
|
|
441
|
+
display: 'flex',
|
|
442
|
+
flexDirection: 'row',
|
|
443
|
+
gap: 16,
|
|
444
|
+
}, children: children }));
|
|
445
|
+
};
|
|
446
|
+
export const QuillPivotColumnContainer = ({ children, }) => {
|
|
447
|
+
return (_jsx("div", { style: {
|
|
448
|
+
display: 'flex',
|
|
449
|
+
flexDirection: 'column',
|
|
450
|
+
gap: 16,
|
|
451
|
+
}, children: children }));
|
|
452
|
+
};
|
|
453
|
+
export const QuillFilterContainerComponent = ({ children, }) => {
|
|
454
|
+
return (_jsx("div", { style: {
|
|
455
|
+
width: '100%',
|
|
456
|
+
marginBottom: 25,
|
|
457
|
+
display: 'flex',
|
|
458
|
+
flexDirection: 'row',
|
|
459
|
+
alignItems: 'flex-end',
|
|
460
|
+
flexWrap: 'wrap',
|
|
461
|
+
gap: 12,
|
|
462
|
+
}, children: children }));
|
|
463
|
+
};
|
|
464
|
+
export const QuillUserFilterModalComponent = ({ isOpen, setIsOpen, children, triggerLabel, title, }) => {
|
|
465
|
+
const [theme] = useContext(ThemeContext);
|
|
466
|
+
const [rightAlignment, setRightAlignment] = useState('auto');
|
|
467
|
+
const modalRef = useRef(null);
|
|
468
|
+
const popoverRef = useRef(null);
|
|
469
|
+
useEffect(() => {
|
|
470
|
+
const listener = (event) => {
|
|
471
|
+
if (modalRef?.current && !modalRef?.current?.contains(event.target)) {
|
|
472
|
+
if (setIsOpen)
|
|
473
|
+
setIsOpen(false);
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
document.addEventListener('mousedown', listener);
|
|
477
|
+
return () => {
|
|
478
|
+
document.removeEventListener('mousedown', listener);
|
|
479
|
+
};
|
|
480
|
+
}, [modalRef, setIsOpen]);
|
|
481
|
+
useEffect(() => {
|
|
482
|
+
updatePopoverPosition();
|
|
483
|
+
window.addEventListener('resize', updatePopoverPosition);
|
|
484
|
+
return () => {
|
|
485
|
+
window.removeEventListener('resize', updatePopoverPosition);
|
|
486
|
+
};
|
|
487
|
+
}, [popoverRef.current, rightAlignment]);
|
|
488
|
+
const updatePopoverPosition = () => {
|
|
489
|
+
if (popoverRef.current && modalRef.current) {
|
|
490
|
+
const popoverRect = popoverRef.current.getBoundingClientRect();
|
|
491
|
+
const modalRect = modalRef.current.getBoundingClientRect();
|
|
492
|
+
if (rightAlignment === 'auto' &&
|
|
493
|
+
window.innerWidth - popoverRect.right < 1 &&
|
|
494
|
+
popoverRect.left > popoverRect.width // need enough space on left too
|
|
495
|
+
) {
|
|
496
|
+
setRightAlignment(0);
|
|
497
|
+
}
|
|
498
|
+
else if (rightAlignment === 0 &&
|
|
499
|
+
window.innerWidth - popoverRect.right + modalRect.width >
|
|
500
|
+
popoverRect.width) {
|
|
501
|
+
setRightAlignment('auto');
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
return (_jsxs("div", { style: { position: 'relative', marginLeft: 10 }, children: [_jsx(MemoizedSecondaryButton, { onClick: () => setIsOpen(true), label: triggerLabel || '' }), isOpen && (_jsx("div", { id: "quill-popover-modal", ref: modalRef, style: { position: 'relative', top: 10 }, children: _jsxs("div", { ref: popoverRef, style: {
|
|
506
|
+
background: theme?.backgroundColor || 'white',
|
|
507
|
+
position: 'absolute',
|
|
508
|
+
boxShadow: '0px 1px 12px 0px #E7E7E705',
|
|
509
|
+
border: theme
|
|
510
|
+
? `${theme.borderWidth || 1}px solid ${theme.borderColor || '#E7E7E7'}`
|
|
511
|
+
: '1px solid #E7E7E7',
|
|
512
|
+
boxSizing: 'content-box',
|
|
513
|
+
zIndex: 999,
|
|
514
|
+
// top: 12,
|
|
515
|
+
borderRadius: 6,
|
|
516
|
+
padding: 15,
|
|
517
|
+
right: rightAlignment,
|
|
518
|
+
}, children: [_jsx("h1", { style: {
|
|
519
|
+
fontWeight: '600',
|
|
520
|
+
fontSize: 18,
|
|
521
|
+
margin: 0,
|
|
522
|
+
textAlign: 'left',
|
|
523
|
+
marginBottom: 5,
|
|
524
|
+
color: theme?.primaryTextColor,
|
|
525
|
+
fontFamily: theme?.fontFamily,
|
|
526
|
+
}, children: title }), children] }) }))] }));
|
|
527
|
+
};
|
|
528
|
+
export const QuillChartBuilderFormContainer = ({ children, }) => {
|
|
529
|
+
return (_jsx("div", { style: {
|
|
530
|
+
display: 'flex',
|
|
531
|
+
flexDirection: 'column',
|
|
532
|
+
gap: 24,
|
|
533
|
+
overflow: 'auto',
|
|
534
|
+
// paddingTop: 8, // material only
|
|
535
|
+
}, children: children }));
|
|
536
|
+
};
|
|
537
|
+
export const QuillErrorMessageComponent = ({ errorMessage, containerStyle, }) => {
|
|
538
|
+
const theme = useTheme();
|
|
539
|
+
return (_jsx("div", { style: {
|
|
540
|
+
borderRadius: 8,
|
|
541
|
+
backgroundColor: '#FF9494',
|
|
542
|
+
paddingLeft: '12px',
|
|
543
|
+
paddingRight: '8px',
|
|
544
|
+
height: 30,
|
|
545
|
+
display: 'flex',
|
|
546
|
+
alignItems: 'center',
|
|
547
|
+
fontSize: 13,
|
|
548
|
+
fontWeight: 'bold',
|
|
549
|
+
fontFamily: theme?.fontFamily,
|
|
550
|
+
color: 'white',
|
|
551
|
+
...containerStyle,
|
|
552
|
+
}, children: errorMessage }));
|
|
553
|
+
};
|
|
554
|
+
export const QuillColumnSearchEmptyState = () => {
|
|
555
|
+
const theme = useTheme();
|
|
556
|
+
return _jsx("div", { style: { fontFamily: theme?.fontFamily }, children: "No results found" });
|
|
557
|
+
};
|
|
558
|
+
export const QuillLoadingComponent = () => {
|
|
559
|
+
const theme = useTheme();
|
|
560
|
+
return (_jsxs("div", { style: {
|
|
561
|
+
width: 250,
|
|
562
|
+
minWidth: 250,
|
|
563
|
+
height: '100%',
|
|
564
|
+
paddingLeft: 20,
|
|
565
|
+
paddingRight: 30,
|
|
566
|
+
paddingTop: 40,
|
|
567
|
+
display: 'flex',
|
|
568
|
+
margin: '0px auto',
|
|
569
|
+
justifyContent: 'center',
|
|
570
|
+
}, children: [_jsx("div", { style: { height: 100 } }), _jsxs("svg", { width: "24", height: "24", children: [_jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 6)", stroke: theme?.primaryTextColor || '#364153', fill: "none", transform: "rotate(-90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "-180 12 12", to: "180 12 12", dur: "0.8s", repeatCount: "indefinite" }) }), _jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 1 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", stroke: '#ADB1B9', fill: "none", transform: "rotate(90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 12 12", to: "360 12 12", dur: "0.8s", repeatCount: "indefinite" }) })] })] }));
|
|
571
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SelectItemProps {
|
|
3
|
+
value: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function constructValueToNameMapping(children: React.ReactElement[] | React.ReactElement): Map<string, string>;
|
|
7
|
+
export declare function getFilteredOptions(searchQuery: string, options: SelectItemProps[]): SelectItemProps[];
|
|
8
|
+
export declare const hasValue: (value: string | null | undefined) => boolean;
|
|
9
|
+
//# sourceMappingURL=selectUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectUtils.d.ts","sourceRoot":"","sources":["../../../src/components/selectUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,GAAG,KAAK,CAAC,YAAY,uBAUpD;AAED,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,eAAe,EAAE,GACzB,eAAe,EAAE,CAOnB;AAED,eAAO,MAAM,QAAQ,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,YACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export function constructValueToNameMapping(children) {
|
|
3
|
+
const valueToNameMapping = new Map();
|
|
4
|
+
React.Children.map(children, (child) => {
|
|
5
|
+
valueToNameMapping.set(child.props.value, child.props.text ?? child.props.value);
|
|
6
|
+
});
|
|
7
|
+
return valueToNameMapping;
|
|
8
|
+
}
|
|
9
|
+
export function getFilteredOptions(searchQuery, options) {
|
|
10
|
+
return searchQuery === ''
|
|
11
|
+
? options
|
|
12
|
+
: options.filter((option) => {
|
|
13
|
+
const optionText = option.text ?? option.value;
|
|
14
|
+
return optionText.toLowerCase().includes(searchQuery.toLowerCase());
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export const hasValue = (value) => value !== null && value !== undefined && value !== '';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseColorContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/BaseColorContext.tsx"],"names":[],"mappings":";AAEA,QAAA,MAAM,gBAAgB,iCAAgC,CAAC;AAEvD,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
export interface HoveredValueContextValue {
|
|
3
|
+
hoveredValue: any | undefined;
|
|
4
|
+
setHoveredValue?: Dispatch<SetStateAction<any>>;
|
|
5
|
+
}
|
|
6
|
+
declare const HoveredValueContext: import("react").Context<HoveredValueContextValue>;
|
|
7
|
+
export default HoveredValueContext;
|
|
8
|
+
//# sourceMappingURL=HoveredValueContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HoveredValueContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/HoveredValueContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAEhE,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,GAAG,GAAG,SAAS,CAAC;IAC9B,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;CACjD;AAED,QAAA,MAAM,mBAAmB,mDAEvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RootStylesContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/RootStylesContext.tsx"],"names":[],"mappings":";AAEA,QAAA,MAAM,iBAAiB,6CAA+C,CAAC;AAEvE,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SelectedValueContextValue {
|
|
3
|
+
selectedValue: any;
|
|
4
|
+
handleValueChange: ((value: any) => void) | undefined;
|
|
5
|
+
}
|
|
6
|
+
declare const SelectedValueContext: import("react").Context<SelectedValueContextValue>;
|
|
7
|
+
export default SelectedValueContext;
|
|
8
|
+
//# sourceMappingURL=SelectedValueContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectedValueContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/SelectedValueContext.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,GAAG,CAAC;IACnB,iBAAiB,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACvD;AAED,QAAA,MAAM,oBAAoB,oDAGxB,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
|