@pagamio/frontend-commons-lib 0.8.175 → 0.8.183
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/lib/api/client.d.ts +88 -0
- package/lib/api/client.js +339 -0
- package/lib/api/context.d.ts +112 -0
- package/lib/api/context.js +105 -0
- package/lib/api/index.d.ts +4 -0
- package/lib/api/index.js +4 -0
- package/lib/api/swr.d.ts +46 -0
- package/lib/api/swr.js +124 -0
- package/lib/api/types.d.ts +145 -0
- package/lib/api/types.js +10 -0
- package/lib/auth/authenticators/AuthenticatorFactory.d.ts +25 -0
- package/lib/auth/authenticators/AuthenticatorFactory.js +32 -0
- package/lib/auth/authenticators/index.d.ts +7 -0
- package/lib/auth/authenticators/index.js +7 -0
- package/lib/auth/authenticators/processors/DefaultAuthenticatorProcessor.d.ts +21 -0
- package/lib/auth/authenticators/processors/DefaultAuthenticatorProcessor.js +26 -0
- package/lib/auth/authenticators/processors/StrapiAuthenticatorProcessor.d.ts +74 -0
- package/lib/auth/authenticators/processors/StrapiAuthenticatorProcessor.js +99 -0
- package/lib/auth/authenticators/types.d.ts +26 -0
- package/lib/auth/authenticators/types.js +9 -0
- package/lib/auth/components/AppBanner.d.ts +7 -0
- package/lib/auth/components/AppBanner.js +9 -0
- package/lib/auth/components/AuthCard.d.ts +8 -0
- package/lib/auth/components/AuthCard.js +14 -0
- package/lib/auth/components/AuthFormUtils.d.ts +58 -0
- package/lib/auth/components/AuthFormUtils.js +52 -0
- package/lib/auth/components/AuthPageLayout.d.ts +45 -0
- package/lib/auth/components/AuthPageLayout.js +12 -0
- package/lib/auth/components/ChangePasswordPage.d.ts +12 -0
- package/lib/auth/components/ChangePasswordPage.js +59 -0
- package/lib/auth/components/CustomerRegistrationPage.d.ts +50 -0
- package/lib/auth/components/CustomerRegistrationPage.js +140 -0
- package/lib/auth/components/ForgotPasswordPage.d.ts +38 -0
- package/lib/auth/components/ForgotPasswordPage.js +76 -0
- package/lib/auth/components/LoginPage.d.ts +73 -0
- package/lib/auth/components/LoginPage.js +115 -0
- package/lib/auth/components/LogoutButton.d.ts +30 -0
- package/lib/auth/components/LogoutButton.js +47 -0
- package/lib/auth/components/ResetPasswordPage.d.ts +42 -0
- package/lib/auth/components/ResetPasswordPage.js +88 -0
- package/lib/auth/components/hooks/useChangeUserPassword.d.ts +26 -0
- package/lib/auth/components/hooks/useChangeUserPassword.js +63 -0
- package/lib/auth/components/index.d.ts +8 -0
- package/lib/auth/components/index.js +7 -0
- package/lib/auth/context/AuthContext.d.ts +65 -0
- package/lib/auth/context/AuthContext.js +150 -0
- package/lib/auth/context/index.d.ts +1 -0
- package/lib/auth/context/index.js +1 -0
- package/lib/auth/index.d.ts +7 -0
- package/lib/auth/index.js +7 -0
- package/lib/auth/services/AuthService.d.ts +230 -0
- package/lib/auth/services/AuthService.js +475 -0
- package/lib/auth/services/LogoutService.d.ts +27 -0
- package/lib/auth/services/LogoutService.js +98 -0
- package/lib/auth/services/index.d.ts +2 -0
- package/lib/auth/services/index.js +2 -0
- package/lib/auth/shared/index.d.ts +1 -0
- package/lib/auth/shared/index.js +1 -0
- package/lib/auth/shared/layout/AuthPageLayout.d.ts +10 -0
- package/lib/auth/shared/layout/AuthPageLayout.js +16 -0
- package/lib/auth/shared/layout/index.d.ts +1 -0
- package/lib/auth/shared/layout/index.js +1 -0
- package/lib/auth/types/auth.types.d.ts +234 -0
- package/lib/auth/types/auth.types.js +14 -0
- package/lib/auth/types/index.d.ts +1 -0
- package/lib/auth/types/index.js +1 -0
- package/lib/auth/utils/TokenManager.d.ts +43 -0
- package/lib/auth/utils/TokenManager.js +171 -0
- package/lib/auth/utils/Transformers.d.ts +158 -0
- package/lib/auth/utils/Transformers.js +263 -0
- package/lib/auth/utils/errorDetection.d.ts +22 -0
- package/lib/auth/utils/errorDetection.js +190 -0
- package/lib/auth/utils/index.d.ts +3 -0
- package/lib/auth/utils/index.js +3 -0
- package/lib/components/charts/LineGraph.d.ts +15 -0
- package/lib/components/charts/LineGraph.js +131 -0
- package/lib/components/icons/Icon.d.ts +8 -0
- package/lib/components/icons/Icon.js +13 -0
- package/lib/components/icons/index.d.ts +2 -0
- package/lib/components/icons/index.js +2 -0
- package/lib/components/icons/types.d.ts +26 -0
- package/lib/components/icons/types.js +33 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.js +3 -0
- package/lib/components/layout/AppLayout.d.ts +34 -0
- package/lib/components/layout/AppLayout.js +19 -0
- package/lib/components/layout/AuthPageLayout.d.ts +13 -0
- package/lib/components/layout/AuthPageLayout.js +15 -0
- package/lib/components/layout/BreadcrumbNav.d.ts +2 -0
- package/lib/components/layout/BreadcrumbNav.js +10 -0
- package/lib/components/layout/LayoutContent.d.ts +6 -0
- package/lib/components/layout/LayoutContent.js +10 -0
- package/lib/components/layout/Navbar.d.ts +106 -0
- package/lib/components/layout/Navbar.js +66 -0
- package/lib/components/layout/PageHeader.d.ts +8 -0
- package/lib/components/layout/PageHeader.js +7 -0
- package/lib/components/layout/SessionExpiryModal.d.ts +10 -0
- package/lib/components/layout/SessionExpiryModal.js +9 -0
- package/lib/components/layout/Sidebar.d.ts +6 -0
- package/lib/components/layout/Sidebar.js +87 -0
- package/lib/components/layout/VerticalTabsLayout.d.ts +12 -0
- package/lib/components/layout/VerticalTabsLayout.js +14 -0
- package/lib/components/layout/index.d.ts +9 -0
- package/lib/components/layout/index.js +9 -0
- package/lib/components/ui/Avatar.d.ts +6 -0
- package/lib/components/ui/Avatar.js +11 -0
- package/lib/components/ui/AvatarIcon.d.ts +4 -0
- package/lib/components/ui/AvatarIcon.js +6 -0
- package/lib/components/ui/Button.d.ts +14 -0
- package/lib/components/ui/Button.js +30 -0
- package/lib/components/ui/Calendar.d.ts +9 -0
- package/lib/components/ui/Calendar.js +35 -0
- package/lib/components/ui/Card.d.ts +16 -0
- package/lib/components/ui/Card.js +6 -0
- package/lib/components/ui/Chart.d.ts +2 -0
- package/lib/components/ui/Chart.js +16 -0
- package/lib/components/ui/Checkbox.d.ts +4 -0
- package/lib/components/ui/Checkbox.js +8 -0
- package/lib/components/ui/Command.d.ts +80 -0
- package/lib/components/ui/Command.js +28 -0
- package/lib/components/ui/ContainedTab.d.ts +21 -0
- package/lib/components/ui/ContainedTab.js +37 -0
- package/lib/components/ui/DateFormat.d.ts +6 -0
- package/lib/components/ui/DateFormat.js +8 -0
- package/lib/components/ui/DatePicker.d.ts +14 -0
- package/lib/components/ui/DatePicker.js +91 -0
- package/lib/components/ui/DateRangeModal.d.ts +38 -0
- package/lib/components/ui/DateRangeModal.js +89 -0
- package/lib/components/ui/DetailsCard.d.ts +16 -0
- package/lib/components/ui/DetailsCard.js +14 -0
- package/lib/components/ui/DetailsPage.d.ts +36 -0
- package/lib/components/ui/DetailsPage.js +50 -0
- package/lib/components/ui/Dialog.d.ts +19 -0
- package/lib/components/ui/Dialog.js +22 -0
- package/lib/components/ui/EmptyState.d.ts +6 -0
- package/lib/components/ui/EmptyState.js +6 -0
- package/lib/components/ui/FilterComponent.d.ts +30 -0
- package/lib/components/ui/FilterComponent.js +80 -0
- package/lib/components/ui/FilterList.d.ts +52 -0
- package/lib/components/ui/FilterList.js +62 -0
- package/lib/components/ui/FilterSection.d.ts +31 -0
- package/lib/components/ui/FilterSection.js +21 -0
- package/lib/components/ui/FilterWrapper.d.ts +6 -0
- package/lib/components/ui/FilterWrapper.js +7 -0
- package/lib/components/ui/Form.d.ts +23 -0
- package/lib/components/ui/Form.js +62 -0
- package/lib/components/ui/HoverableValue.d.ts +7 -0
- package/lib/components/ui/HoverableValue.js +8 -0
- package/lib/components/ui/IconButton.d.ts +10 -0
- package/lib/components/ui/IconButton.js +10 -0
- package/lib/components/ui/ImageComponent.d.ts +8 -0
- package/lib/components/ui/ImageComponent.js +5 -0
- package/lib/components/ui/ImageUploader.d.ts +17 -0
- package/lib/components/ui/ImageUploader.js +144 -0
- package/lib/components/ui/Input.d.ts +4 -0
- package/lib/components/ui/Input.js +8 -0
- package/lib/components/ui/Label.d.ts +5 -0
- package/lib/components/ui/Label.js +9 -0
- package/lib/components/ui/Loader.d.ts +10 -0
- package/lib/components/ui/Loader.js +7 -0
- package/lib/components/ui/Modal.d.ts +72 -0
- package/lib/components/ui/Modal.js +31 -0
- package/lib/components/ui/MultiSelect.d.ts +16 -0
- package/lib/components/ui/MultiSelect.js +59 -0
- package/lib/components/ui/NotificationModal.d.ts +18 -0
- package/lib/components/ui/NotificationModal.js +40 -0
- package/lib/components/ui/PhoneInput.d.ts +12 -0
- package/lib/components/ui/PhoneInput.js +58 -0
- package/lib/components/ui/Popover.d.ts +7 -0
- package/lib/components/ui/Popover.js +10 -0
- package/lib/components/ui/Progress.d.ts +7 -0
- package/lib/components/ui/Progress.js +7 -0
- package/lib/components/ui/Radio.d.ts +5 -0
- package/lib/components/ui/Radio.js +14 -0
- package/lib/components/ui/RangeDatePicker.d.ts +78 -0
- package/lib/components/ui/RangeDatePicker.js +68 -0
- package/lib/components/ui/Select.d.ts +13 -0
- package/lib/components/ui/Select.js +57 -0
- package/lib/components/ui/Separator.d.ts +4 -0
- package/lib/components/ui/Separator.js +7 -0
- package/lib/components/ui/Sheet.d.ts +26 -0
- package/lib/components/ui/Sheet.js +37 -0
- package/lib/components/ui/StatusCell.d.ts +9 -0
- package/lib/components/ui/StatusCell.js +6 -0
- package/lib/components/ui/Switch.d.ts +10 -0
- package/lib/components/ui/Switch.js +22 -0
- package/lib/components/ui/Tab.d.ts +15 -0
- package/lib/components/ui/Tab.js +13 -0
- package/lib/components/ui/TableDownload.d.ts +11 -0
- package/lib/components/ui/TableDownload.js +82 -0
- package/lib/components/ui/TailwindIndicator.d.ts +1 -0
- package/lib/components/ui/TailwindIndicator.js +6 -0
- package/lib/components/ui/TextField.d.ts +60 -0
- package/lib/components/ui/TextField.js +42 -0
- package/lib/components/ui/Textarea.d.ts +5 -0
- package/lib/components/ui/Textarea.js +8 -0
- package/lib/components/ui/Toast.d.ts +12 -0
- package/lib/components/ui/Toast.js +25 -0
- package/lib/components/ui/UploadField.d.ts +15 -0
- package/lib/components/ui/UploadField.js +45 -0
- package/lib/components/ui/VerticalTab.d.ts +16 -0
- package/lib/components/ui/VerticalTab.js +13 -0
- package/lib/components/ui/index.d.ts +49 -0
- package/lib/components/ui/index.js +47 -0
- package/lib/context/BreadcrumbContext.d.ts +28 -0
- package/lib/context/BreadcrumbContext.js +238 -0
- package/lib/context/FormEngineDrawerProvider.d.ts +21 -0
- package/lib/context/FormEngineDrawerProvider.js +38 -0
- package/lib/context/MultiFormEngineDrawerProvider.d.ts +25 -0
- package/lib/context/MultiFormEngineDrawerProvider.js +89 -0
- package/lib/context/SidebarContext.d.ts +65 -0
- package/lib/context/SidebarContext.js +47 -0
- package/lib/context/ToastContext.d.ts +17 -0
- package/lib/context/ToastContext.js +29 -0
- package/lib/context/index.d.ts +5 -0
- package/lib/context/index.js +5 -0
- package/lib/dashboard-visuals/components/BaseChart.d.ts +55 -0
- package/lib/dashboard-visuals/components/BaseChart.js +201 -0
- package/lib/dashboard-visuals/components/CardWrapper.d.ts +10 -0
- package/lib/dashboard-visuals/components/CardWrapper.js +13 -0
- package/lib/dashboard-visuals/components/ChartDetailsModal.d.ts +57 -0
- package/lib/dashboard-visuals/components/ChartDetailsModal.js +27 -0
- package/lib/dashboard-visuals/components/ChartDetailsModalWrapper.d.ts +29 -0
- package/lib/dashboard-visuals/components/ChartDetailsModalWrapper.js +4 -0
- package/lib/dashboard-visuals/components/ChartFormatter.d.ts +22 -0
- package/lib/dashboard-visuals/components/ChartFormatter.js +46 -0
- package/lib/dashboard-visuals/components/ChartWrapper.d.ts +11 -0
- package/lib/dashboard-visuals/components/ChartWrapper.js +14 -0
- package/lib/dashboard-visuals/components/DashboardFilter.d.ts +8 -0
- package/lib/dashboard-visuals/components/DashboardFilter.js +17 -0
- package/lib/dashboard-visuals/components/DataTable.d.ts +3 -0
- package/lib/dashboard-visuals/components/DataTable.js +57 -0
- package/lib/dashboard-visuals/components/EmptyState.d.ts +6 -0
- package/lib/dashboard-visuals/components/EmptyState.js +6 -0
- package/lib/dashboard-visuals/components/ErrorState.d.ts +7 -0
- package/lib/dashboard-visuals/components/ErrorState.js +5 -0
- package/lib/dashboard-visuals/components/FilterComponentSkeleton.d.ts +3 -0
- package/lib/dashboard-visuals/components/FilterComponentSkeleton.js +11 -0
- package/lib/dashboard-visuals/components/Pagination.d.ts +10 -0
- package/lib/dashboard-visuals/components/Pagination.js +7 -0
- package/lib/dashboard-visuals/components/Switch.d.ts +8 -0
- package/lib/dashboard-visuals/components/Switch.js +10 -0
- package/lib/dashboard-visuals/components/TileSkeleton.d.ts +2 -0
- package/lib/dashboard-visuals/components/TileSkeleton.js +5 -0
- package/lib/dashboard-visuals/components/molecules/Analytics.d.ts +11 -0
- package/lib/dashboard-visuals/components/molecules/Analytics.js +9 -0
- package/lib/dashboard-visuals/components/molecules/DataGrid.d.ts +15 -0
- package/lib/dashboard-visuals/components/molecules/DataGrid.js +124 -0
- package/lib/dashboard-visuals/components/molecules/NoChartData.d.ts +6 -0
- package/lib/dashboard-visuals/components/molecules/NoChartData.js +6 -0
- package/lib/dashboard-visuals/components/molecules/VisualChart.d.ts +16 -0
- package/lib/dashboard-visuals/components/molecules/VisualChart.js +8 -0
- package/lib/dashboard-visuals/components/types.d.ts +62 -0
- package/lib/dashboard-visuals/components/types.js +1 -0
- package/lib/dashboard-visuals/hooks/useChartData.d.ts +15 -0
- package/lib/dashboard-visuals/hooks/useChartData.js +82 -0
- package/lib/dashboard-visuals/hooks/useTooltipFormatter.d.ts +13 -0
- package/lib/dashboard-visuals/hooks/useTooltipFormatter.js +10 -0
- package/lib/dashboard-visuals/index.d.ts +39 -0
- package/lib/dashboard-visuals/index.js +168 -0
- package/lib/dashboard-visuals/types/index.d.ts +83 -0
- package/lib/dashboard-visuals/types/index.js +1 -0
- package/lib/dashboard-visuals/types/metricDetailData.d.ts +25 -0
- package/lib/dashboard-visuals/types/metricDetailData.js +1 -0
- package/lib/dashboard-visuals/utils/api.d.ts +5 -0
- package/lib/dashboard-visuals/utils/api.js +6 -0
- package/lib/dashboard-visuals/utils/chartOptions.d.ts +481 -0
- package/lib/dashboard-visuals/utils/chartOptions.js +393 -0
- package/lib/dashboard-visuals/utils/chunkArray.d.ts +1 -0
- package/lib/dashboard-visuals/utils/chunkArray.js +7 -0
- package/lib/dashboard-visuals/utils/defaultColors.d.ts +1 -0
- package/lib/dashboard-visuals/utils/defaultColors.js +1 -0
- package/lib/dashboard-visuals/utils/formatUtil.d.ts +203 -0
- package/lib/dashboard-visuals/utils/formatUtil.js +472 -0
- package/lib/dashboard-visuals/utils/gridUtil.d.ts +11 -0
- package/lib/dashboard-visuals/utils/gridUtil.js +32 -0
- package/lib/dashboard-visuals/utils/index.d.ts +6 -0
- package/lib/dashboard-visuals/utils/index.js +6 -0
- package/lib/dashboard-visuals/utils/tooltipUtils.d.ts +11 -0
- package/lib/dashboard-visuals/utils/tooltipUtils.js +180 -0
- package/lib/dashboard-visuals/visualRegistry.d.ts +4 -0
- package/lib/dashboard-visuals/visualRegistry.js +41 -0
- package/lib/dashboard-visuals/visuals/BarChart.d.ts +58 -0
- package/lib/dashboard-visuals/visuals/BarChart.js +95 -0
- package/lib/dashboard-visuals/visuals/BarLineHybridChart.d.ts +33 -0
- package/lib/dashboard-visuals/visuals/BarLineHybridChart.js +60 -0
- package/lib/dashboard-visuals/visuals/BubbleChart.d.ts +25 -0
- package/lib/dashboard-visuals/visuals/BubbleChart.js +101 -0
- package/lib/dashboard-visuals/visuals/DistributionChart.d.ts +11 -0
- package/lib/dashboard-visuals/visuals/DistributionChart.js +48 -0
- package/lib/dashboard-visuals/visuals/DonutChart.d.ts +50 -0
- package/lib/dashboard-visuals/visuals/DonutChart.js +105 -0
- package/lib/dashboard-visuals/visuals/GaugeChart.d.ts +32 -0
- package/lib/dashboard-visuals/visuals/GaugeChart.js +53 -0
- package/lib/dashboard-visuals/visuals/GroupedBarChart.d.ts +47 -0
- package/lib/dashboard-visuals/visuals/GroupedBarChart.js +131 -0
- package/lib/dashboard-visuals/visuals/HeatmapChart.d.ts +79 -0
- package/lib/dashboard-visuals/visuals/HeatmapChart.js +146 -0
- package/lib/dashboard-visuals/visuals/HorizontalBarChart.d.ts +50 -0
- package/lib/dashboard-visuals/visuals/HorizontalBarChart.js +131 -0
- package/lib/dashboard-visuals/visuals/ItemPerformanceCard.d.ts +30 -0
- package/lib/dashboard-visuals/visuals/ItemPerformanceCard.js +31 -0
- package/lib/dashboard-visuals/visuals/LineChart.d.ts +56 -0
- package/lib/dashboard-visuals/visuals/LineChart.js +80 -0
- package/lib/dashboard-visuals/visuals/LineGraph.d.ts +50 -0
- package/lib/dashboard-visuals/visuals/LineGraph.js +189 -0
- package/lib/dashboard-visuals/visuals/MetricSummaryCard.d.ts +14 -0
- package/lib/dashboard-visuals/visuals/MetricSummaryCard.js +8 -0
- package/lib/dashboard-visuals/visuals/MultiGaugeChart.d.ts +39 -0
- package/lib/dashboard-visuals/visuals/MultiGaugeChart.js +119 -0
- package/lib/dashboard-visuals/visuals/PieChart.d.ts +59 -0
- package/lib/dashboard-visuals/visuals/PieChart.js +194 -0
- package/lib/dashboard-visuals/visuals/SelectedEventTile.d.ts +14 -0
- package/lib/dashboard-visuals/visuals/SelectedEventTile.js +35 -0
- package/lib/dashboard-visuals/visuals/SpeedometerChart.d.ts +53 -0
- package/lib/dashboard-visuals/visuals/SpeedometerChart.js +94 -0
- package/lib/dashboard-visuals/visuals/Table.d.ts +26 -0
- package/lib/dashboard-visuals/visuals/Table.js +113 -0
- package/lib/dashboard-visuals/visuals/Tile.d.ts +16 -0
- package/lib/dashboard-visuals/visuals/Tile.js +16 -0
- package/lib/dashboard-visuals/visuals/TreeMap.d.ts +25 -0
- package/lib/dashboard-visuals/visuals/TreeMap.js +45 -0
- package/lib/dashboard-visuals/visuals/WaterfallChart.d.ts +52 -0
- package/lib/dashboard-visuals/visuals/WaterfallChart.js +266 -0
- package/lib/form-engine/Form.d.ts +4 -0
- package/lib/form-engine/Form.js +14 -0
- package/lib/form-engine/FormEngine.d.ts +3 -0
- package/lib/form-engine/FormEngine.js +121 -0
- package/lib/form-engine/components/FieldWrapper.d.ts +18 -0
- package/lib/form-engine/components/FieldWrapper.js +63 -0
- package/lib/form-engine/components/index.d.ts +2 -0
- package/lib/form-engine/components/index.js +2 -0
- package/lib/form-engine/components/inputs/card-expiry-input/CardExpiryInput.d.ts +16 -0
- package/lib/form-engine/components/inputs/card-expiry-input/CardExpiryInput.js +48 -0
- package/lib/form-engine/components/inputs/checkbox-input/CheckboxInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/checkbox-input/CheckboxInput.js +5 -0
- package/lib/form-engine/components/inputs/credit-card-input/CreditCardInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/credit-card-input/CreditCardInput.js +82 -0
- package/lib/form-engine/components/inputs/date-input/DateInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/date-input/DateInput.js +7 -0
- package/lib/form-engine/components/inputs/date-input/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/date-input/index.js +1 -0
- package/lib/form-engine/components/inputs/email-input/EmailInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/email-input/EmailInput.js +5 -0
- package/lib/form-engine/components/inputs/email-input/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/email-input/index.js +1 -0
- package/lib/form-engine/components/inputs/index.d.ts +13 -0
- package/lib/form-engine/components/inputs/index.js +13 -0
- package/lib/form-engine/components/inputs/label-input/LabelInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/label-input/LabelInput.js +7 -0
- package/lib/form-engine/components/inputs/label-input/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/label-input/index.js +1 -0
- package/lib/form-engine/components/inputs/multi-select-input/MultiSelectInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/multi-select-input/MultiSelectInput.js +5 -0
- package/lib/form-engine/components/inputs/number-input/NumberInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/number-input/NumberInput.js +5 -0
- package/lib/form-engine/components/inputs/number-input/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/number-input/index.js +1 -0
- package/lib/form-engine/components/inputs/password-input/PasswordInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/password-input/PasswordInput.js +9 -0
- package/lib/form-engine/components/inputs/password-input/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/password-input/index.js +1 -0
- package/lib/form-engine/components/inputs/radio-button/RadioInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/radio-button/RadioInput.js +6 -0
- package/lib/form-engine/components/inputs/radio-button/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/radio-button/index.js +1 -0
- package/lib/form-engine/components/inputs/select/SelectInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/select/SelectInput.js +6 -0
- package/lib/form-engine/components/inputs/select/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/select/index.js +1 -0
- package/lib/form-engine/components/inputs/textarea-input/TextareaInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/textarea-input/TextareaInput.js +5 -0
- package/lib/form-engine/components/inputs/textarea-input/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/textarea-input/index.js +1 -0
- package/lib/form-engine/components/inputs/time-input/TimeInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/time-input/TimeInput.js +5 -0
- package/lib/form-engine/components/inputs/time-input/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/time-input/index.js +1 -0
- package/lib/form-engine/components/inputs/toggle-switch-input/ToggleSwitchInput.d.ts +4 -0
- package/lib/form-engine/components/inputs/toggle-switch-input/ToggleSwitchInput.js +7 -0
- package/lib/form-engine/components/inputs/toggle-switch-input/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/toggle-switch-input/index.js +1 -0
- package/lib/form-engine/components/inputs/upload-field/UploadFieldForm.d.ts +4 -0
- package/lib/form-engine/components/inputs/upload-field/UploadFieldForm.js +59 -0
- package/lib/form-engine/components/inputs/upload-field/index.d.ts +1 -0
- package/lib/form-engine/components/inputs/upload-field/index.js +1 -0
- package/lib/form-engine/hooks/useFormPersistence.d.ts +11 -0
- package/lib/form-engine/hooks/useFormPersistence.js +46 -0
- package/lib/form-engine/index.d.ts +5 -0
- package/lib/form-engine/index.js +5 -0
- package/lib/form-engine/registry/RegisterComponents.d.ts +1 -0
- package/lib/form-engine/registry/RegisterComponents.js +35 -0
- package/lib/form-engine/registry/Registry.d.ts +5 -0
- package/lib/form-engine/registry/Registry.js +13 -0
- package/lib/form-engine/registry/index.d.ts +2 -0
- package/lib/form-engine/registry/index.js +2 -0
- package/lib/form-engine/types/index.d.ts +311 -0
- package/lib/form-engine/types/index.js +1 -0
- package/lib/helpers/index.d.ts +2 -0
- package/lib/helpers/index.js +2 -0
- package/lib/helpers/utils.d.ts +37 -0
- package/lib/helpers/utils.js +77 -0
- package/lib/helpers/validations.d.ts +80 -0
- package/lib/helpers/validations.js +39 -0
- package/lib/index.d.ts +21 -0
- package/lib/index.js +30 -0
- package/lib/mocks/mockApiRequestsConfig.d.ts +2 -0
- package/lib/mocks/mockApiRequestsConfig.js +343 -0
- package/lib/pagamio-drawer/TopUpWalletDrawer/TopUpWalletContent.d.ts +14 -0
- package/lib/pagamio-drawer/TopUpWalletDrawer/TopUpWalletContent.js +40 -0
- package/lib/pagamio-drawer/TopUpWalletDrawer/index.d.ts +11 -0
- package/lib/pagamio-drawer/TopUpWalletDrawer/index.js +7 -0
- package/lib/pagamio-drawer/components/BaseDrawer.d.ts +11 -0
- package/lib/pagamio-drawer/components/BaseDrawer.js +10 -0
- package/lib/pagamio-drawer/components/DrawerContent.d.ts +27 -0
- package/lib/pagamio-drawer/components/DrawerContent.js +237 -0
- package/lib/pagamio-drawer/index.d.ts +22 -0
- package/lib/pagamio-drawer/index.js +133 -0
- package/lib/pagamio-table/data-table/ExportButton.d.ts +57 -0
- package/lib/pagamio-table/data-table/ExportButton.js +96 -0
- package/lib/pagamio-table/data-table/MantineCoreTable.d.ts +44 -0
- package/lib/pagamio-table/data-table/MantineCoreTable.js +129 -0
- package/lib/pagamio-table/data-table/Pagination.d.ts +10 -0
- package/lib/pagamio-table/data-table/Pagination.js +5 -0
- package/lib/pagamio-table/data-table/TableDownload.d.ts +8 -0
- package/lib/pagamio-table/data-table/TableDownload.js +81 -0
- package/lib/pagamio-table/data-table/TableToolbar.d.ts +3 -0
- package/lib/pagamio-table/data-table/TableToolbar.js +16 -0
- package/lib/pagamio-table/data-table/exportUtils.d.ts +42 -0
- package/lib/pagamio-table/data-table/exportUtils.js +782 -0
- package/lib/pagamio-table/data-table/index.d.ts +5 -0
- package/lib/pagamio-table/data-table/index.js +11 -0
- package/lib/pagamio-table/data-table/pdfExportUtils.d.ts +111 -0
- package/lib/pagamio-table/data-table/pdfExportUtils.js +113 -0
- package/lib/pagamio-table/data-table/types.d.ts +169 -0
- package/lib/pagamio-table/data-table/types.js +1 -0
- package/lib/pagamio-table/index.d.ts +4 -0
- package/lib/pagamio-table/index.js +4 -0
- package/lib/pagamio-table/utils/functionHelper.d.ts +12 -0
- package/lib/pagamio-table/utils/functionHelper.js +24 -0
- package/lib/pagamio-table/utils/index.d.ts +1 -0
- package/lib/pagamio-table/utils/index.js +1 -0
- package/lib/rbac/hooks.d.ts +39 -0
- package/lib/rbac/hooks.js +51 -0
- package/lib/rbac/index.d.ts +8 -0
- package/lib/rbac/index.js +11 -0
- package/lib/rbac/store.d.ts +24 -0
- package/lib/rbac/store.js +37 -0
- package/lib/rbac/types.d.ts +39 -0
- package/lib/rbac/types.js +4 -0
- package/lib/rbac/utils.d.ts +44 -0
- package/lib/rbac/utils.js +117 -0
- package/lib/shared/constants/index.d.ts +2 -0
- package/lib/shared/constants/index.js +2 -0
- package/lib/shared/hooks/index.d.ts +4 -0
- package/lib/shared/hooks/index.js +4 -0
- package/lib/shared/hooks/useAnyDrawerOpen.d.ts +4 -0
- package/lib/shared/hooks/useAnyDrawerOpen.js +18 -0
- package/lib/shared/hooks/useContainerWidth.d.ts +2 -0
- package/lib/shared/hooks/useContainerWidth.js +18 -0
- package/lib/shared/hooks/useImageUpload.d.ts +15 -0
- package/lib/shared/hooks/useImageUpload.js +66 -0
- package/lib/shared/hooks/useMediaQueries.d.ts +5 -0
- package/lib/shared/hooks/useMediaQueries.js +35 -0
- package/lib/shared/hooks/usePagamioTable.d.ts +158 -0
- package/lib/shared/hooks/usePagamioTable.js +475 -0
- package/lib/shared/hooks/useSessionTimer.d.ts +33 -0
- package/lib/shared/hooks/useSessionTimer.js +96 -0
- package/lib/shared/index.d.ts +4 -0
- package/lib/shared/index.js +4 -0
- package/lib/shared/types/index.d.ts +1 -0
- package/lib/shared/types/index.js +1 -0
- package/lib/shared/url/index.d.ts +9 -0
- package/lib/shared/url/index.js +20 -0
- package/lib/shared/utils/filterUtils.d.ts +5 -0
- package/lib/shared/utils/filterUtils.js +31 -0
- package/lib/shared/utils/functionHelper.d.ts +27 -0
- package/lib/shared/utils/functionHelper.js +124 -0
- package/lib/shared/utils/index.d.ts +2 -0
- package/lib/shared/utils/index.js +2 -0
- package/lib/shared/utils/localStorage.d.ts +53 -0
- package/lib/shared/utils/localStorage.js +139 -0
- package/lib/styles.css +6247 -0
- package/lib/translations/components/LocaleSwitcher.d.ts +7 -0
- package/lib/translations/components/LocaleSwitcher.js +18 -0
- package/lib/translations/components/index.d.ts +1 -0
- package/lib/translations/components/index.js +1 -0
- package/lib/translations/context/TranslationContext.d.ts +5 -0
- package/lib/translations/context/TranslationContext.js +151 -0
- package/lib/translations/context/index.d.ts +1 -0
- package/lib/translations/context/index.js +1 -0
- package/lib/translations/hooks/index.d.ts +2 -0
- package/lib/translations/hooks/index.js +2 -0
- package/lib/translations/hooks/useLibTranslations.d.ts +7 -0
- package/lib/translations/hooks/useLibTranslations.js +46 -0
- package/lib/translations/hooks/useTranslation.d.ts +7 -0
- package/lib/translations/hooks/useTranslation.js +11 -0
- package/lib/translations/index.d.ts +91 -0
- package/lib/translations/index.js +11 -0
- package/lib/translations/locales/en.json +21 -0
- package/lib/translations/locales/es.json +21 -0
- package/lib/translations/locales/fr.json +21 -0
- package/lib/translations/locales/pt.json +21 -0
- package/lib/translations/types/index.d.ts +24 -0
- package/lib/translations/types/index.js +1 -0
- package/lib/translations/utils/index.d.ts +6 -0
- package/lib/translations/utils/index.js +25 -0
- package/package.json +9 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { MRT_ColumnDef } from 'mantine-react-table';
|
|
2
|
+
import type { QueryProps } from 'src/shared/types';
|
|
3
|
+
export interface MetricData {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export type ChartToolTipProps<T = any> = {
|
|
7
|
+
[key: string]: T;
|
|
8
|
+
};
|
|
9
|
+
export interface TableColumn<TData extends Record<string, any>> extends MRT_ColumnDef<TData> {
|
|
10
|
+
header: string;
|
|
11
|
+
accessor: keyof TData;
|
|
12
|
+
enableCopy?: boolean;
|
|
13
|
+
formattedCellElement?: (value: string | number) => React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface DistributionChartTooltip {
|
|
16
|
+
treeMapSegmentLabel: string;
|
|
17
|
+
tooltipValueFormat: string;
|
|
18
|
+
tooltipTitle: string;
|
|
19
|
+
tooltipUnit: string;
|
|
20
|
+
tooltipAdditionalFields: (string | TooltipField)[];
|
|
21
|
+
}
|
|
22
|
+
export type ChartOptionsProps<TData> = {
|
|
23
|
+
tooltip?: {
|
|
24
|
+
trigger: string;
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
legend?: {
|
|
28
|
+
orient?: string;
|
|
29
|
+
top?: number | string;
|
|
30
|
+
left?: string;
|
|
31
|
+
padding?: number[];
|
|
32
|
+
type?: string;
|
|
33
|
+
textStyle?: {
|
|
34
|
+
fontSize: number;
|
|
35
|
+
};
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
color?: string[];
|
|
39
|
+
series?: Array<{
|
|
40
|
+
name?: string;
|
|
41
|
+
type?: string;
|
|
42
|
+
radius?: string[];
|
|
43
|
+
center?: string[];
|
|
44
|
+
data?: TData[];
|
|
45
|
+
emphasis?: {
|
|
46
|
+
itemStyle?: {
|
|
47
|
+
shadowBlur?: number;
|
|
48
|
+
shadowOffsetX?: number;
|
|
49
|
+
shadowColor?: string;
|
|
50
|
+
[key: string]: unknown;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
}>;
|
|
55
|
+
grid?: {
|
|
56
|
+
containLabel: boolean;
|
|
57
|
+
};
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
export type StatisticsQueryProps = {
|
|
61
|
+
title: string;
|
|
62
|
+
format: string;
|
|
63
|
+
valueKey: string;
|
|
64
|
+
previousValueKey?: string;
|
|
65
|
+
changeKey: string;
|
|
66
|
+
query: QueryProps;
|
|
67
|
+
};
|
|
68
|
+
export type DistributionQueryProps = {
|
|
69
|
+
title: string;
|
|
70
|
+
query: QueryProps;
|
|
71
|
+
seriesDataValueKey: string;
|
|
72
|
+
xAxisDataValueKey: string;
|
|
73
|
+
chartToolTip?: ChartToolTipProps;
|
|
74
|
+
};
|
|
75
|
+
export interface TooltipField {
|
|
76
|
+
toolTipkey: string;
|
|
77
|
+
valueKey: string;
|
|
78
|
+
nameKey: string;
|
|
79
|
+
label?: string;
|
|
80
|
+
suffix?: string;
|
|
81
|
+
format?: string;
|
|
82
|
+
formatter?: (value: any, currency?: string, displaySymbol?: string) => string;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChartToolTipProps, DistributionChartTooltip, DistributionQueryProps, StatisticsQueryProps, TableColumn } from '.';
|
|
2
|
+
export interface MetricDetailData<TData extends {
|
|
3
|
+
id: string | number;
|
|
4
|
+
}> {
|
|
5
|
+
statisticsUrl?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
topFiveChartTitle: string;
|
|
8
|
+
bottomFiveChartTitle: string;
|
|
9
|
+
itemStatisticsQuery: StatisticsQueryProps;
|
|
10
|
+
valueMetricsQuery: StatisticsQueryProps;
|
|
11
|
+
averageMetricsQuery: StatisticsQueryProps;
|
|
12
|
+
distributionMetricsQuery: DistributionQueryProps;
|
|
13
|
+
yAxisDataNameKey: string;
|
|
14
|
+
xAxisNameKey: string;
|
|
15
|
+
xAxisLabel: string;
|
|
16
|
+
yAxisLabel: string;
|
|
17
|
+
nameKey: string;
|
|
18
|
+
valueKey: string;
|
|
19
|
+
dataGridSearchKey: string;
|
|
20
|
+
dataGridColumns: TableColumn<TData>[];
|
|
21
|
+
dataSearchInputPlaceHolder: string;
|
|
22
|
+
chartToolTip?: ChartToolTipProps;
|
|
23
|
+
detailsTableTitle?: string;
|
|
24
|
+
distributionChartTooltip: DistributionChartTooltip;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import type { MetricData } from '../types';
|
|
2
|
+
interface ChartBarOptions {
|
|
3
|
+
title?: string;
|
|
4
|
+
colorScheme?: string[];
|
|
5
|
+
yAxisDataNameKey: string;
|
|
6
|
+
xAxisNameKey: string;
|
|
7
|
+
xAxisLabel?: string;
|
|
8
|
+
yAxisLabel?: string;
|
|
9
|
+
chartToolTip?: any;
|
|
10
|
+
}
|
|
11
|
+
interface GroupedChartOptions {
|
|
12
|
+
xAxisLabel: string;
|
|
13
|
+
xAxisValueKey: string;
|
|
14
|
+
rightYAxisValueKey: string;
|
|
15
|
+
leftYAxisValueKey: string;
|
|
16
|
+
chartToolTip?: any;
|
|
17
|
+
data: MetricData[];
|
|
18
|
+
yAxisLabelFormatter?: (value: number) => string;
|
|
19
|
+
}
|
|
20
|
+
interface GetLineGraphOptionsProp {
|
|
21
|
+
title: string;
|
|
22
|
+
yAxisLabel: string;
|
|
23
|
+
chartToolTip?: any;
|
|
24
|
+
data: MetricData[];
|
|
25
|
+
yAxisLabelFormatter?: (value: number) => string;
|
|
26
|
+
}
|
|
27
|
+
interface GetDonutChartOptionsProps {
|
|
28
|
+
data: {
|
|
29
|
+
legendData: any[];
|
|
30
|
+
seriesData: Record<string, any>[];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
interface LargeDatasetChartOptions extends GetDonutChartOptionsProps {
|
|
34
|
+
labelFormatter?: (params: any) => string;
|
|
35
|
+
tooltipFormatter?: any;
|
|
36
|
+
}
|
|
37
|
+
export interface CreateDistributionMetricOptionsProps {
|
|
38
|
+
distributionChartTooltip: {
|
|
39
|
+
tooltipValueFormat: string;
|
|
40
|
+
tooltipTitle: string;
|
|
41
|
+
tooltipUnit: string;
|
|
42
|
+
treeMapSegmentLabel: string;
|
|
43
|
+
};
|
|
44
|
+
distributionData: any[];
|
|
45
|
+
processedTooltipFields: any[];
|
|
46
|
+
xAxisDataValueKey: string;
|
|
47
|
+
seriesDataValueKey: string;
|
|
48
|
+
displaySymbol?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare const createDistributionMetricOptions: ({ distributionChartTooltip, distributionData, processedTooltipFields, xAxisDataValueKey, seriesDataValueKey, displaySymbol, }: CreateDistributionMetricOptionsProps) => {
|
|
51
|
+
tooltip: {
|
|
52
|
+
trigger: string;
|
|
53
|
+
formatter: any;
|
|
54
|
+
};
|
|
55
|
+
toolbox: {
|
|
56
|
+
show: boolean;
|
|
57
|
+
feature: {
|
|
58
|
+
dataView: {
|
|
59
|
+
show: boolean;
|
|
60
|
+
title: string;
|
|
61
|
+
readOnly: boolean;
|
|
62
|
+
lang: string[];
|
|
63
|
+
};
|
|
64
|
+
saveAsImage: {
|
|
65
|
+
show: boolean;
|
|
66
|
+
title: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
right: string;
|
|
70
|
+
top: number;
|
|
71
|
+
};
|
|
72
|
+
grid: {
|
|
73
|
+
left: string;
|
|
74
|
+
right: string;
|
|
75
|
+
bottom: string;
|
|
76
|
+
containLabel: boolean;
|
|
77
|
+
};
|
|
78
|
+
series: {
|
|
79
|
+
type: string;
|
|
80
|
+
data: Record<string, any>[];
|
|
81
|
+
label: {
|
|
82
|
+
show: boolean;
|
|
83
|
+
formatter: ((params: any) => string) | undefined;
|
|
84
|
+
position: string;
|
|
85
|
+
};
|
|
86
|
+
breadcrumb: {
|
|
87
|
+
show: boolean;
|
|
88
|
+
};
|
|
89
|
+
roam: string;
|
|
90
|
+
nodeClick: boolean;
|
|
91
|
+
animation: boolean;
|
|
92
|
+
height: string;
|
|
93
|
+
itemStyle: {
|
|
94
|
+
borderColor: string;
|
|
95
|
+
borderWidth: number;
|
|
96
|
+
gapWidth: number;
|
|
97
|
+
};
|
|
98
|
+
emphasis: {
|
|
99
|
+
itemStyle: {
|
|
100
|
+
shadowBlur: number;
|
|
101
|
+
shadowOffsetX: number;
|
|
102
|
+
shadowColor: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
levels: {
|
|
106
|
+
itemStyle: {
|
|
107
|
+
borderColor: string;
|
|
108
|
+
borderWidth: number;
|
|
109
|
+
gapWidth: number;
|
|
110
|
+
};
|
|
111
|
+
upperLabel: {
|
|
112
|
+
show: boolean;
|
|
113
|
+
};
|
|
114
|
+
}[];
|
|
115
|
+
}[];
|
|
116
|
+
dataZoom: {
|
|
117
|
+
type: string;
|
|
118
|
+
show: boolean;
|
|
119
|
+
start: number;
|
|
120
|
+
end: number;
|
|
121
|
+
height: number;
|
|
122
|
+
bottom: number;
|
|
123
|
+
left: string;
|
|
124
|
+
right: string;
|
|
125
|
+
zoomLock: boolean;
|
|
126
|
+
showDetail: boolean;
|
|
127
|
+
borderColor: string;
|
|
128
|
+
borderRadius: number;
|
|
129
|
+
backgroundColor: string;
|
|
130
|
+
fillerColor: string;
|
|
131
|
+
handleIcon: string;
|
|
132
|
+
handleSize: string;
|
|
133
|
+
handleStyle: {
|
|
134
|
+
color: string;
|
|
135
|
+
shadowBlur: number;
|
|
136
|
+
shadowColor: string;
|
|
137
|
+
shadowOffsetX: number;
|
|
138
|
+
shadowOffsetY: number;
|
|
139
|
+
};
|
|
140
|
+
}[];
|
|
141
|
+
};
|
|
142
|
+
export declare const getGroupedChartOptions: ({ xAxisLabel, xAxisValueKey, rightYAxisValueKey, leftYAxisValueKey, chartToolTip, data, yAxisLabelFormatter, }: GroupedChartOptions) => {
|
|
143
|
+
tooltip: any;
|
|
144
|
+
legend: {
|
|
145
|
+
data: string[];
|
|
146
|
+
top: number;
|
|
147
|
+
textStyle: {
|
|
148
|
+
fontSize: number;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
grid: {
|
|
152
|
+
left: string;
|
|
153
|
+
right: string;
|
|
154
|
+
bottom: string;
|
|
155
|
+
containLabel: boolean;
|
|
156
|
+
};
|
|
157
|
+
xAxis: {
|
|
158
|
+
type: string;
|
|
159
|
+
name: string;
|
|
160
|
+
data: any[];
|
|
161
|
+
axisLabel: {
|
|
162
|
+
interval: number;
|
|
163
|
+
rotate: number;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
yAxis: ({
|
|
167
|
+
type: string;
|
|
168
|
+
name: string;
|
|
169
|
+
position: string;
|
|
170
|
+
axisLine: {
|
|
171
|
+
show: boolean;
|
|
172
|
+
lineStyle: {
|
|
173
|
+
color: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
axisLabel: {
|
|
177
|
+
formatter: (value: number) => string;
|
|
178
|
+
};
|
|
179
|
+
} | {
|
|
180
|
+
type: string;
|
|
181
|
+
name: string;
|
|
182
|
+
position: string;
|
|
183
|
+
axisLine: {
|
|
184
|
+
show: boolean;
|
|
185
|
+
lineStyle: {
|
|
186
|
+
color: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
axisLabel?: undefined;
|
|
190
|
+
})[];
|
|
191
|
+
series: ({
|
|
192
|
+
name: string;
|
|
193
|
+
type: string;
|
|
194
|
+
data: any[];
|
|
195
|
+
itemStyle: {
|
|
196
|
+
color: string;
|
|
197
|
+
};
|
|
198
|
+
yAxisIndex?: undefined;
|
|
199
|
+
} | {
|
|
200
|
+
name: string;
|
|
201
|
+
type: string;
|
|
202
|
+
yAxisIndex: number;
|
|
203
|
+
data: any[];
|
|
204
|
+
itemStyle: {
|
|
205
|
+
color: string;
|
|
206
|
+
};
|
|
207
|
+
})[];
|
|
208
|
+
dataZoom: {
|
|
209
|
+
type: string;
|
|
210
|
+
start: number;
|
|
211
|
+
end: number;
|
|
212
|
+
}[];
|
|
213
|
+
responsive: boolean;
|
|
214
|
+
maintainAspectRatio: boolean;
|
|
215
|
+
};
|
|
216
|
+
export declare const getLineGraphOptions: ({ title, yAxisLabel, chartToolTip, data, yAxisLabelFormatter, }: GetLineGraphOptionsProp) => {
|
|
217
|
+
tooltip?: undefined;
|
|
218
|
+
legend?: undefined;
|
|
219
|
+
grid?: undefined;
|
|
220
|
+
xAxis?: undefined;
|
|
221
|
+
yAxis?: undefined;
|
|
222
|
+
series?: undefined;
|
|
223
|
+
} | {
|
|
224
|
+
tooltip: any;
|
|
225
|
+
legend: {
|
|
226
|
+
data: any[];
|
|
227
|
+
bottom: number;
|
|
228
|
+
};
|
|
229
|
+
grid: {
|
|
230
|
+
left: string;
|
|
231
|
+
right: string;
|
|
232
|
+
bottom: string;
|
|
233
|
+
top: string;
|
|
234
|
+
containLabel: boolean;
|
|
235
|
+
};
|
|
236
|
+
xAxis: {
|
|
237
|
+
type: string;
|
|
238
|
+
axisLabel: {
|
|
239
|
+
formatter: (value: number) => string;
|
|
240
|
+
name: string;
|
|
241
|
+
hideOverlap: boolean;
|
|
242
|
+
};
|
|
243
|
+
splitLine: {
|
|
244
|
+
show: boolean;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
yAxis: {
|
|
248
|
+
type: string;
|
|
249
|
+
name: string;
|
|
250
|
+
axisLabel: {
|
|
251
|
+
formatter: (value: number) => string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
series: {
|
|
255
|
+
type: string;
|
|
256
|
+
name: any;
|
|
257
|
+
data: any;
|
|
258
|
+
showSymbol: boolean;
|
|
259
|
+
}[];
|
|
260
|
+
};
|
|
261
|
+
export declare const getChartBarOptions: ({ title, colorScheme, yAxisDataNameKey, xAxisNameKey, xAxisLabel, yAxisLabel, chartToolTip, data, }: ChartBarOptions & {
|
|
262
|
+
data: MetricData[];
|
|
263
|
+
}) => {
|
|
264
|
+
tooltip: any;
|
|
265
|
+
grid: {
|
|
266
|
+
left: string;
|
|
267
|
+
right: string;
|
|
268
|
+
bottom: string;
|
|
269
|
+
top: string;
|
|
270
|
+
containLabel: boolean;
|
|
271
|
+
};
|
|
272
|
+
xAxis: {
|
|
273
|
+
type: string;
|
|
274
|
+
name: string;
|
|
275
|
+
axisLine: {
|
|
276
|
+
show: boolean;
|
|
277
|
+
};
|
|
278
|
+
axisTick: {
|
|
279
|
+
show: boolean;
|
|
280
|
+
};
|
|
281
|
+
splitLine: {
|
|
282
|
+
show: boolean;
|
|
283
|
+
lineStyle: {
|
|
284
|
+
color: string;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
yAxis: {
|
|
289
|
+
type: string;
|
|
290
|
+
name: string;
|
|
291
|
+
data: any[];
|
|
292
|
+
axisLabel: {
|
|
293
|
+
formatter: (value: string) => string;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
series: {
|
|
297
|
+
name: string;
|
|
298
|
+
type: string;
|
|
299
|
+
data: any[];
|
|
300
|
+
itemStyle: {
|
|
301
|
+
color: {
|
|
302
|
+
type: string;
|
|
303
|
+
x: number;
|
|
304
|
+
y: number;
|
|
305
|
+
x2: number;
|
|
306
|
+
y2: number;
|
|
307
|
+
colorStops: {
|
|
308
|
+
offset: number;
|
|
309
|
+
color: string;
|
|
310
|
+
}[];
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
barWidth: string;
|
|
314
|
+
emphasis: {
|
|
315
|
+
itemStyle: {
|
|
316
|
+
opacity: number;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
}[];
|
|
320
|
+
aria: {
|
|
321
|
+
enabled: boolean;
|
|
322
|
+
};
|
|
323
|
+
animation: boolean;
|
|
324
|
+
animationDuration: number;
|
|
325
|
+
animationEasing: string;
|
|
326
|
+
};
|
|
327
|
+
export declare const getDonutChartOptions: ({ data }: GetDonutChartOptionsProps) => {
|
|
328
|
+
tooltip: {
|
|
329
|
+
trigger: string;
|
|
330
|
+
formatter: string;
|
|
331
|
+
};
|
|
332
|
+
legend: {
|
|
333
|
+
orient: string;
|
|
334
|
+
bottom: number;
|
|
335
|
+
left: string;
|
|
336
|
+
};
|
|
337
|
+
series: {
|
|
338
|
+
name: string;
|
|
339
|
+
type: string;
|
|
340
|
+
radius: string[];
|
|
341
|
+
avoidLabelOverlap: boolean;
|
|
342
|
+
itemStyle: {
|
|
343
|
+
borderRadius: number;
|
|
344
|
+
borderColor: string;
|
|
345
|
+
borderWidth: number;
|
|
346
|
+
};
|
|
347
|
+
label: {
|
|
348
|
+
show: boolean;
|
|
349
|
+
position: string;
|
|
350
|
+
formatter: string;
|
|
351
|
+
fontSize: number;
|
|
352
|
+
lineHeight: number;
|
|
353
|
+
rich: {
|
|
354
|
+
b: {
|
|
355
|
+
fontSize: number;
|
|
356
|
+
lineHeight: number;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
labelLine: {
|
|
361
|
+
show: boolean;
|
|
362
|
+
length: number;
|
|
363
|
+
length2: number;
|
|
364
|
+
};
|
|
365
|
+
emphasis: {
|
|
366
|
+
label: {
|
|
367
|
+
show: boolean;
|
|
368
|
+
fontSize: number;
|
|
369
|
+
fontWeight: string;
|
|
370
|
+
};
|
|
371
|
+
itemStyle: {
|
|
372
|
+
shadowBlur: number;
|
|
373
|
+
shadowOffsetX: number;
|
|
374
|
+
shadowColor: string;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
data: {
|
|
378
|
+
legendData: any[];
|
|
379
|
+
seriesData: Record<string, any>[];
|
|
380
|
+
};
|
|
381
|
+
}[];
|
|
382
|
+
};
|
|
383
|
+
export declare const formatChartLabel: (params: {
|
|
384
|
+
name: string;
|
|
385
|
+
value: number;
|
|
386
|
+
valueLabel: string;
|
|
387
|
+
treeMapPercent?: number;
|
|
388
|
+
}) => string;
|
|
389
|
+
export declare const getLargeDatasetChartOptions: ({ data, labelFormatter, tooltipFormatter }: LargeDatasetChartOptions) => {
|
|
390
|
+
tooltip: {
|
|
391
|
+
trigger: string;
|
|
392
|
+
formatter: any;
|
|
393
|
+
};
|
|
394
|
+
toolbox: {
|
|
395
|
+
show: boolean;
|
|
396
|
+
feature: {
|
|
397
|
+
dataView: {
|
|
398
|
+
show: boolean;
|
|
399
|
+
title: string;
|
|
400
|
+
readOnly: boolean;
|
|
401
|
+
lang: string[];
|
|
402
|
+
};
|
|
403
|
+
saveAsImage: {
|
|
404
|
+
show: boolean;
|
|
405
|
+
title: string;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
right: string;
|
|
409
|
+
top: number;
|
|
410
|
+
};
|
|
411
|
+
grid: {
|
|
412
|
+
left: string;
|
|
413
|
+
right: string;
|
|
414
|
+
bottom: string;
|
|
415
|
+
containLabel: boolean;
|
|
416
|
+
};
|
|
417
|
+
series: {
|
|
418
|
+
type: string;
|
|
419
|
+
data: Record<string, any>[];
|
|
420
|
+
label: {
|
|
421
|
+
show: boolean;
|
|
422
|
+
formatter: ((params: any) => string) | undefined;
|
|
423
|
+
position: string;
|
|
424
|
+
};
|
|
425
|
+
breadcrumb: {
|
|
426
|
+
show: boolean;
|
|
427
|
+
};
|
|
428
|
+
roam: string;
|
|
429
|
+
nodeClick: boolean;
|
|
430
|
+
animation: boolean;
|
|
431
|
+
height: string;
|
|
432
|
+
itemStyle: {
|
|
433
|
+
borderColor: string;
|
|
434
|
+
borderWidth: number;
|
|
435
|
+
gapWidth: number;
|
|
436
|
+
};
|
|
437
|
+
emphasis: {
|
|
438
|
+
itemStyle: {
|
|
439
|
+
shadowBlur: number;
|
|
440
|
+
shadowOffsetX: number;
|
|
441
|
+
shadowColor: string;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
levels: {
|
|
445
|
+
itemStyle: {
|
|
446
|
+
borderColor: string;
|
|
447
|
+
borderWidth: number;
|
|
448
|
+
gapWidth: number;
|
|
449
|
+
};
|
|
450
|
+
upperLabel: {
|
|
451
|
+
show: boolean;
|
|
452
|
+
};
|
|
453
|
+
}[];
|
|
454
|
+
}[];
|
|
455
|
+
dataZoom: {
|
|
456
|
+
type: string;
|
|
457
|
+
show: boolean;
|
|
458
|
+
start: number;
|
|
459
|
+
end: number;
|
|
460
|
+
height: number;
|
|
461
|
+
bottom: number;
|
|
462
|
+
left: string;
|
|
463
|
+
right: string;
|
|
464
|
+
zoomLock: boolean;
|
|
465
|
+
showDetail: boolean;
|
|
466
|
+
borderColor: string;
|
|
467
|
+
borderRadius: number;
|
|
468
|
+
backgroundColor: string;
|
|
469
|
+
fillerColor: string;
|
|
470
|
+
handleIcon: string;
|
|
471
|
+
handleSize: string;
|
|
472
|
+
handleStyle: {
|
|
473
|
+
color: string;
|
|
474
|
+
shadowBlur: number;
|
|
475
|
+
shadowColor: string;
|
|
476
|
+
shadowOffsetX: number;
|
|
477
|
+
shadowOffsetY: number;
|
|
478
|
+
};
|
|
479
|
+
}[];
|
|
480
|
+
};
|
|
481
|
+
export {};
|