@j2-health/design-system 0.5.0 → 0.5.2
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/_virtual/_rolldown/runtime.cjs +35 -0
- package/dist/_virtual/_rolldown/runtime.js +27 -0
- package/dist/index.cjs +118 -113
- package/dist/index.js +22 -81
- package/dist/src/AppConfigProvider.cjs +22 -11
- package/dist/src/AppConfigProvider.cjs.map +1 -1
- package/dist/src/AppConfigProvider.js +19 -10
- package/dist/src/AppConfigProvider.js.map +1 -1
- package/dist/src/appTheme.cjs +239 -266
- package/dist/src/appTheme.cjs.map +1 -1
- package/dist/src/appTheme.js +240 -267
- package/dist/src/appTheme.js.map +1 -1
- package/dist/src/components/alert/Alert.cjs +81 -103
- package/dist/src/components/alert/Alert.cjs.map +1 -1
- package/dist/src/components/alert/Alert.js +78 -86
- package/dist/src/components/alert/Alert.js.map +1 -1
- package/dist/src/components/alert/Alert.module.css.cjs +7 -8
- package/dist/src/components/alert/Alert.module.css.cjs.map +1 -1
- package/dist/src/components/alert/Alert.module.css.js +7 -9
- package/dist/src/components/alert/Alert.module.css.js.map +1 -1
- package/dist/src/components/barchart/BarChart.cjs +123 -151
- package/dist/src/components/barchart/BarChart.cjs.map +1 -1
- package/dist/src/components/barchart/BarChart.d.ts +1 -1
- package/dist/src/components/barchart/BarChart.js +121 -149
- package/dist/src/components/barchart/BarChart.js.map +1 -1
- package/dist/src/components/barchart/chart.module.css.cjs +7 -8
- package/dist/src/components/barchart/chart.module.css.cjs.map +1 -1
- package/dist/src/components/barchart/chart.module.css.js +7 -9
- package/dist/src/components/barchart/chart.module.css.js.map +1 -1
- package/dist/src/components/barchart/index.js +3 -0
- package/dist/src/components/breadcrumb/Breadcrumb.cjs +23 -36
- package/dist/src/components/breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/src/components/breadcrumb/Breadcrumb.js +20 -19
- package/dist/src/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/src/components/bulkActionBar/BulkActionBar.cjs +66 -79
- package/dist/src/components/bulkActionBar/BulkActionBar.cjs.map +1 -1
- package/dist/src/components/bulkActionBar/BulkActionBar.d.ts +1 -1
- package/dist/src/components/bulkActionBar/BulkActionBar.js +63 -78
- package/dist/src/components/bulkActionBar/BulkActionBar.js.map +1 -1
- package/dist/src/components/button/Button.cjs +16 -18
- package/dist/src/components/button/Button.cjs.map +1 -1
- package/dist/src/components/button/Button.d.ts +1 -1
- package/dist/src/components/button/Button.js +17 -19
- package/dist/src/components/button/Button.js.map +1 -1
- package/dist/src/components/card/Card.cjs +19 -33
- package/dist/src/components/card/Card.cjs.map +1 -1
- package/dist/src/components/card/Card.d.ts +1 -1
- package/dist/src/components/card/Card.js +17 -33
- package/dist/src/components/card/Card.js.map +1 -1
- package/dist/src/components/checkbox/Checkbox.cjs +8 -7
- package/dist/src/components/checkbox/Checkbox.cjs.map +1 -1
- package/dist/src/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/src/components/checkbox/Checkbox.js +9 -8
- package/dist/src/components/checkbox/Checkbox.js.map +1 -1
- package/dist/src/components/checkboxTree/CheckboxTree.cjs +112 -138
- package/dist/src/components/checkboxTree/CheckboxTree.cjs.map +1 -1
- package/dist/src/components/checkboxTree/CheckboxTree.js +110 -138
- package/dist/src/components/checkboxTree/CheckboxTree.js.map +1 -1
- package/dist/src/components/checkboxTree/TreeNode.cjs +57 -90
- package/dist/src/components/checkboxTree/TreeNode.cjs.map +1 -1
- package/dist/src/components/checkboxTree/TreeNode.d.ts +1 -1
- package/dist/src/components/checkboxTree/TreeNode.js +57 -90
- package/dist/src/components/checkboxTree/TreeNode.js.map +1 -1
- package/dist/src/components/checkboxTree/utils.cjs +46 -51
- package/dist/src/components/checkboxTree/utils.cjs.map +1 -1
- package/dist/src/components/checkboxTree/utils.js +47 -55
- package/dist/src/components/checkboxTree/utils.js.map +1 -1
- package/dist/src/components/collapse/Collapse.cjs +54 -78
- package/dist/src/components/collapse/Collapse.cjs.map +1 -1
- package/dist/src/components/collapse/Collapse.js +51 -61
- package/dist/src/components/collapse/Collapse.js.map +1 -1
- package/dist/src/components/collapse/Collapse.module.css.cjs +11 -10
- package/dist/src/components/collapse/Collapse.module.css.cjs.map +1 -1
- package/dist/src/components/collapse/Collapse.module.css.js +11 -12
- package/dist/src/components/collapse/Collapse.module.css.js.map +1 -1
- package/dist/src/components/drawer/Drawer.cjs +26 -38
- package/dist/src/components/drawer/Drawer.cjs.map +1 -1
- package/dist/src/components/drawer/Drawer.d.ts +1 -1
- package/dist/src/components/drawer/Drawer.js +27 -39
- package/dist/src/components/drawer/Drawer.js.map +1 -1
- package/dist/src/components/dropdown/Dropdown.cjs +54 -54
- package/dist/src/components/dropdown/Dropdown.cjs.map +1 -1
- package/dist/src/components/dropdown/Dropdown.d.ts +1 -1
- package/dist/src/components/dropdown/Dropdown.js +53 -55
- package/dist/src/components/dropdown/Dropdown.js.map +1 -1
- package/dist/src/components/filterform/FilterGroup.cjs +41 -62
- package/dist/src/components/filterform/FilterGroup.cjs.map +1 -1
- package/dist/src/components/filterform/FilterGroup.d.ts +1 -1
- package/dist/src/components/filterform/FilterGroup.js +38 -61
- package/dist/src/components/filterform/FilterGroup.js.map +1 -1
- package/dist/src/components/filterform/FilterInput.cjs +169 -233
- package/dist/src/components/filterform/FilterInput.cjs.map +1 -1
- package/dist/src/components/filterform/FilterInput.js +164 -216
- package/dist/src/components/filterform/FilterInput.js.map +1 -1
- package/dist/src/components/filterform/FiltersForm.cjs +144 -178
- package/dist/src/components/filterform/FiltersForm.cjs.map +1 -1
- package/dist/src/components/filterform/FiltersForm.d.ts +1 -1
- package/dist/src/components/filterform/FiltersForm.js +140 -176
- package/dist/src/components/filterform/FiltersForm.js.map +1 -1
- package/dist/src/components/filterform/FiltersForm.module.css.cjs +16 -15
- package/dist/src/components/filterform/FiltersForm.module.css.cjs.map +1 -1
- package/dist/src/components/filterform/FiltersForm.module.css.js +16 -20
- package/dist/src/components/filterform/FiltersForm.module.css.js.map +1 -1
- package/dist/src/components/filterform/filterHelpers.cjs +50 -59
- package/dist/src/components/filterform/filterHelpers.cjs.map +1 -1
- package/dist/src/components/filterform/filterHelpers.js +51 -66
- package/dist/src/components/filterform/filterHelpers.js.map +1 -1
- package/dist/src/components/filterform/useFilterField.cjs +268 -236
- package/dist/src/components/filterform/useFilterField.cjs.map +1 -1
- package/dist/src/components/filterform/useFilterField.js +265 -222
- package/dist/src/components/filterform/useFilterField.js.map +1 -1
- package/dist/src/components/filterform/useFiltersForm.cjs +120 -154
- package/dist/src/components/filterform/useFiltersForm.cjs.map +1 -1
- package/dist/src/components/filterform/useFiltersForm.js +117 -153
- package/dist/src/components/filterform/useFiltersForm.js.map +1 -1
- package/dist/src/components/form/Form.cjs +23 -25
- package/dist/src/components/form/Form.cjs.map +1 -1
- package/dist/src/components/form/Form.d.ts +2 -2
- package/dist/src/components/form/Form.js +23 -25
- package/dist/src/components/form/Form.js.map +1 -1
- package/dist/src/components/form/FormItem.cjs +35 -40
- package/dist/src/components/form/FormItem.cjs.map +1 -1
- package/dist/src/components/form/FormItem.d.ts +1 -1
- package/dist/src/components/form/FormItem.js +35 -40
- package/dist/src/components/form/FormItem.js.map +1 -1
- package/dist/src/components/form/FormItemFieldContext.cjs +5 -7
- package/dist/src/components/form/FormItemFieldContext.cjs.map +1 -1
- package/dist/src/components/form/FormItemFieldContext.js +6 -7
- package/dist/src/components/form/FormItemFieldContext.js.map +1 -1
- package/dist/src/components/form/FormikField.cjs +15 -18
- package/dist/src/components/form/FormikField.cjs.map +1 -1
- package/dist/src/components/form/FormikField.d.ts +1 -1
- package/dist/src/components/form/FormikField.js +14 -17
- package/dist/src/components/form/FormikField.js.map +1 -1
- package/dist/src/components/icons/index.cjs +21 -26
- package/dist/src/components/icons/index.cjs.map +1 -1
- package/dist/src/components/icons/index.js +9 -2
- package/dist/src/components/icons/index.js.map +1 -1
- package/dist/src/components/input/AntdInput.cjs +14 -11
- package/dist/src/components/input/AntdInput.cjs.map +1 -1
- package/dist/src/components/input/AntdInput.js +13 -10
- package/dist/src/components/input/AntdInput.js.map +1 -1
- package/dist/src/components/input/AntdSearchInput.cjs +14 -11
- package/dist/src/components/input/AntdSearchInput.cjs.map +1 -1
- package/dist/src/components/input/AntdSearchInput.js +13 -10
- package/dist/src/components/input/AntdSearchInput.js.map +1 -1
- package/dist/src/components/input/Input.cjs +28 -33
- package/dist/src/components/input/Input.cjs.map +1 -1
- package/dist/src/components/input/Input.d.ts +1 -1
- package/dist/src/components/input/Input.js +28 -33
- package/dist/src/components/input/Input.js.map +1 -1
- package/dist/src/components/inputnumber/InputNumber.cjs +45 -45
- package/dist/src/components/inputnumber/InputNumber.cjs.map +1 -1
- package/dist/src/components/inputnumber/InputNumber.d.ts +1 -1
- package/dist/src/components/inputnumber/InputNumber.js +42 -44
- package/dist/src/components/inputnumber/InputNumber.js.map +1 -1
- package/dist/src/components/inputnumber/InputNumber.module.css.cjs +7 -8
- package/dist/src/components/inputnumber/InputNumber.module.css.cjs.map +1 -1
- package/dist/src/components/inputnumber/InputNumber.module.css.js +7 -9
- package/dist/src/components/inputnumber/InputNumber.module.css.js.map +1 -1
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.cjs +72 -50
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.cjs.map +1 -1
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.js +69 -49
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.js.map +1 -1
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.cjs +43 -33
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.cjs.map +1 -1
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.js +40 -47
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.js.map +1 -1
- package/dist/src/components/legacyNavMenu/UserProfile.cjs +76 -76
- package/dist/src/components/legacyNavMenu/UserProfile.cjs.map +1 -1
- package/dist/src/components/legacyNavMenu/UserProfile.js +74 -76
- package/dist/src/components/legacyNavMenu/UserProfile.js.map +1 -1
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.cjs +33 -29
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.cjs.map +1 -1
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.js +32 -41
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.js.map +1 -1
- package/dist/src/components/listpopover/ListPopover.cjs +89 -120
- package/dist/src/components/listpopover/ListPopover.cjs.map +1 -1
- package/dist/src/components/listpopover/ListPopover.d.ts +1 -1
- package/dist/src/components/listpopover/ListPopover.js +86 -119
- package/dist/src/components/listpopover/ListPopover.js.map +1 -1
- package/dist/src/components/listpopover/ListPopover.module.css.cjs +7 -8
- package/dist/src/components/listpopover/ListPopover.module.css.cjs.map +1 -1
- package/dist/src/components/listpopover/ListPopover.module.css.js +7 -9
- package/dist/src/components/listpopover/ListPopover.module.css.js.map +1 -1
- package/dist/src/components/manageColumns/ManageColumnsItem.cjs +53 -74
- package/dist/src/components/manageColumns/ManageColumnsItem.cjs.map +1 -1
- package/dist/src/components/manageColumns/ManageColumnsItem.js +48 -71
- package/dist/src/components/manageColumns/ManageColumnsItem.js.map +1 -1
- package/dist/src/components/manageColumns/ManageColumnsPanel.cjs +66 -77
- package/dist/src/components/manageColumns/ManageColumnsPanel.cjs.map +1 -1
- package/dist/src/components/manageColumns/ManageColumnsPanel.d.ts +1 -1
- package/dist/src/components/manageColumns/ManageColumnsPanel.js +65 -76
- package/dist/src/components/manageColumns/ManageColumnsPanel.js.map +1 -1
- package/dist/src/components/manageColumns/SelectAll.cjs +31 -24
- package/dist/src/components/manageColumns/SelectAll.cjs.map +1 -1
- package/dist/src/components/manageColumns/SelectAll.d.ts +1 -1
- package/dist/src/components/manageColumns/SelectAll.js +31 -24
- package/dist/src/components/manageColumns/SelectAll.js.map +1 -1
- package/dist/src/components/menu/Menu.cjs +16 -16
- package/dist/src/components/menu/Menu.cjs.map +1 -1
- package/dist/src/components/menu/Menu.d.ts +1 -1
- package/dist/src/components/menu/Menu.js +13 -15
- package/dist/src/components/menu/Menu.js.map +1 -1
- package/dist/src/components/menu/Menu.module.css.cjs +10 -9
- package/dist/src/components/menu/Menu.module.css.cjs.map +1 -1
- package/dist/src/components/menu/Menu.module.css.js +10 -11
- package/dist/src/components/menu/Menu.module.css.js.map +1 -1
- package/dist/src/components/message/Message.module.css.cjs +7 -8
- package/dist/src/components/message/Message.module.css.cjs.map +1 -1
- package/dist/src/components/message/Message.module.css.js +7 -9
- package/dist/src/components/message/Message.module.css.js.map +1 -1
- package/dist/src/components/message/useMessage.cjs +46 -52
- package/dist/src/components/message/useMessage.cjs.map +1 -1
- package/dist/src/components/message/useMessage.js +43 -51
- package/dist/src/components/message/useMessage.js.map +1 -1
- package/dist/src/components/modal/Modal.cjs +27 -28
- package/dist/src/components/modal/Modal.cjs.map +1 -1
- package/dist/src/components/modal/Modal.d.ts +1 -1
- package/dist/src/components/modal/Modal.js +25 -28
- package/dist/src/components/modal/Modal.js.map +1 -1
- package/dist/src/components/navMenu/NavMenu.cjs +75 -130
- package/dist/src/components/navMenu/NavMenu.cjs.map +1 -1
- package/dist/src/components/navMenu/NavMenu.js +68 -110
- package/dist/src/components/navMenu/NavMenu.js.map +1 -1
- package/dist/src/components/navMenu/NavMenu.module.css.cjs +14 -13
- package/dist/src/components/navMenu/NavMenu.module.css.cjs.map +1 -1
- package/dist/src/components/navMenu/NavMenu.module.css.js +14 -17
- package/dist/src/components/navMenu/NavMenu.module.css.js.map +1 -1
- package/dist/src/components/notification/Notification.module.css.cjs +7 -8
- package/dist/src/components/notification/Notification.module.css.cjs.map +1 -1
- package/dist/src/components/notification/Notification.module.css.js +7 -9
- package/dist/src/components/notification/Notification.module.css.js.map +1 -1
- package/dist/src/components/notification/useNotification.cjs +61 -52
- package/dist/src/components/notification/useNotification.cjs.map +1 -1
- package/dist/src/components/notification/useNotification.js +57 -51
- package/dist/src/components/notification/useNotification.js.map +1 -1
- package/dist/src/components/notificationModal/NotifcationModal.module.css.cjs +16 -15
- package/dist/src/components/notificationModal/NotifcationModal.module.css.cjs.map +1 -1
- package/dist/src/components/notificationModal/NotifcationModal.module.css.js +16 -20
- package/dist/src/components/notificationModal/NotifcationModal.module.css.js.map +1 -1
- package/dist/src/components/notificationModal/NotificationModal.cjs +56 -54
- package/dist/src/components/notificationModal/NotificationModal.cjs.map +1 -1
- package/dist/src/components/notificationModal/NotificationModal.d.ts +1 -1
- package/dist/src/components/notificationModal/NotificationModal.js +56 -54
- package/dist/src/components/notificationModal/NotificationModal.js.map +1 -1
- package/dist/src/components/pagination/Pagination.cjs +66 -61
- package/dist/src/components/pagination/Pagination.cjs.map +1 -1
- package/dist/src/components/pagination/Pagination.d.ts +1 -1
- package/dist/src/components/pagination/Pagination.js +63 -61
- package/dist/src/components/pagination/Pagination.js.map +1 -1
- package/dist/src/components/pagination/Pagination.module.css.cjs +6 -6
- package/dist/src/components/pagination/Pagination.module.css.cjs.map +1 -1
- package/dist/src/components/pagination/Pagination.module.css.js +6 -7
- package/dist/src/components/pagination/Pagination.module.css.js.map +1 -1
- package/dist/src/components/popover/Popover.cjs +22 -41
- package/dist/src/components/popover/Popover.cjs.map +1 -1
- package/dist/src/components/popover/Popover.d.ts +1 -1
- package/dist/src/components/popover/Popover.js +19 -40
- package/dist/src/components/popover/Popover.js.map +1 -1
- package/dist/src/components/popover/Popover.module.css.cjs +24 -23
- package/dist/src/components/popover/Popover.module.css.cjs.map +1 -1
- package/dist/src/components/popover/Popover.module.css.js +24 -32
- package/dist/src/components/popover/Popover.module.css.js.map +1 -1
- package/dist/src/components/progress/Progress.cjs +8 -7
- package/dist/src/components/progress/Progress.cjs.map +1 -1
- package/dist/src/components/progress/Progress.d.ts +1 -1
- package/dist/src/components/progress/Progress.js +8 -7
- package/dist/src/components/progress/Progress.js.map +1 -1
- package/dist/src/components/radio/Radio.cjs +14 -20
- package/dist/src/components/radio/Radio.cjs.map +1 -1
- package/dist/src/components/radio/Radio.d.ts +2 -2
- package/dist/src/components/radio/Radio.js +14 -21
- package/dist/src/components/radio/Radio.js.map +1 -1
- package/dist/src/components/rate/Rate.cjs +17 -19
- package/dist/src/components/rate/Rate.cjs.map +1 -1
- package/dist/src/components/rate/Rate.d.ts +1 -1
- package/dist/src/components/rate/Rate.js +18 -20
- package/dist/src/components/rate/Rate.js.map +1 -1
- package/dist/src/components/select/AntdSelect.cjs +57 -74
- package/dist/src/components/select/AntdSelect.cjs.map +1 -1
- package/dist/src/components/select/AntdSelect.js +53 -56
- package/dist/src/components/select/AntdSelect.js.map +1 -1
- package/dist/src/components/select/Select.cjs +119 -120
- package/dist/src/components/select/Select.cjs.map +1 -1
- package/dist/src/components/select/Select.js +117 -120
- package/dist/src/components/select/Select.js.map +1 -1
- package/dist/src/components/select/SummarizedSelect.cjs +384 -450
- package/dist/src/components/select/SummarizedSelect.cjs.map +1 -1
- package/dist/src/components/select/SummarizedSelect.d.ts +1 -1
- package/dist/src/components/select/SummarizedSelect.js +382 -450
- package/dist/src/components/select/SummarizedSelect.js.map +1 -1
- package/dist/src/components/select/SummarizedSelect.module.css.cjs +22 -21
- package/dist/src/components/select/SummarizedSelect.module.css.cjs.map +1 -1
- package/dist/src/components/select/SummarizedSelect.module.css.js +22 -29
- package/dist/src/components/select/SummarizedSelect.module.css.js.map +1 -1
- package/dist/src/components/skeleton/Skeleton.cjs +8 -7
- package/dist/src/components/skeleton/Skeleton.cjs.map +1 -1
- package/dist/src/components/skeleton/Skeleton.d.ts +1 -1
- package/dist/src/components/skeleton/Skeleton.js +13 -12
- package/dist/src/components/skeleton/Skeleton.js.map +1 -1
- package/dist/src/components/spinner/Spinner.cjs +27 -17
- package/dist/src/components/spinner/Spinner.cjs.map +1 -1
- package/dist/src/components/spinner/Spinner.d.ts +1 -1
- package/dist/src/components/spinner/Spinner.js +24 -16
- package/dist/src/components/spinner/Spinner.js.map +1 -1
- package/dist/src/components/steps/Steps.cjs +40 -57
- package/dist/src/components/steps/Steps.cjs.map +1 -1
- package/dist/src/components/steps/Steps.d.ts +1 -1
- package/dist/src/components/steps/Steps.js +37 -56
- package/dist/src/components/steps/Steps.js.map +1 -1
- package/dist/src/components/steps/useSteps.cjs +35 -54
- package/dist/src/components/steps/useSteps.cjs.map +1 -1
- package/dist/src/components/steps/useSteps.js +36 -55
- package/dist/src/components/steps/useSteps.js.map +1 -1
- package/dist/src/components/switch/Switch.cjs +16 -25
- package/dist/src/components/switch/Switch.cjs.map +1 -1
- package/dist/src/components/switch/Switch.d.ts +1 -1
- package/dist/src/components/switch/Switch.js +17 -26
- package/dist/src/components/switch/Switch.js.map +1 -1
- package/dist/src/components/table/Table.cjs +103 -109
- package/dist/src/components/table/Table.cjs.map +1 -1
- package/dist/src/components/table/Table.d.ts +3 -3
- package/dist/src/components/table/Table.js +102 -111
- package/dist/src/components/table/Table.js.map +1 -1
- package/dist/src/components/table/Table.module.css.cjs +10 -9
- package/dist/src/components/table/Table.module.css.cjs.map +1 -1
- package/dist/src/components/table/Table.module.css.js +10 -11
- package/dist/src/components/table/Table.module.css.js.map +1 -1
- package/dist/src/components/tabs/Tabs.cjs +12 -8
- package/dist/src/components/tabs/Tabs.cjs.map +1 -1
- package/dist/src/components/tabs/Tabs.d.ts +1 -1
- package/dist/src/components/tabs/Tabs.js +12 -8
- package/dist/src/components/tabs/Tabs.js.map +1 -1
- package/dist/src/components/tag/Tag.cjs +53 -73
- package/dist/src/components/tag/Tag.cjs.map +1 -1
- package/dist/src/components/tag/Tag.js +49 -56
- package/dist/src/components/tag/Tag.js.map +1 -1
- package/dist/src/components/tooltip/Tooltip.cjs +13 -12
- package/dist/src/components/tooltip/Tooltip.cjs.map +1 -1
- package/dist/src/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/tooltip/Tooltip.js +13 -12
- package/dist/src/components/tooltip/Tooltip.js.map +1 -1
- package/dist/src/components/vennDiagram/VennDiagram.cjs +39 -50
- package/dist/src/components/vennDiagram/VennDiagram.cjs.map +1 -1
- package/dist/src/components/vennDiagram/VennDiagram.d.ts +1 -1
- package/dist/src/components/vennDiagram/VennDiagram.js +38 -49
- package/dist/src/components/vennDiagram/VennDiagram.js.map +1 -1
- package/dist/src/index.d.ts +5 -4
- package/dist/src/svgs/ProgressCircle.svg.cjs +38 -22
- package/dist/src/svgs/ProgressCircle.svg.cjs.map +1 -1
- package/dist/src/svgs/ProgressCircle.svg.js +36 -6
- package/dist/src/svgs/ProgressCircle.svg.js.map +1 -1
- package/dist/src/svgs/j2-logo-menu-collapse.svg.cjs +24 -22
- package/dist/src/svgs/j2-logo-menu-collapse.svg.cjs.map +1 -1
- package/dist/src/svgs/j2-logo-menu-collapse.svg.js +22 -6
- package/dist/src/svgs/j2-logo-menu-collapse.svg.js.map +1 -1
- package/dist/src/svgs/j2-logo-menu.svg.cjs +55 -22
- package/dist/src/svgs/j2-logo-menu.svg.cjs.map +1 -1
- package/dist/src/svgs/j2-logo-menu.svg.js +53 -6
- package/dist/src/svgs/j2-logo-menu.svg.js.map +1 -1
- package/dist/src/svgs/menu-sidebar-collapse.svg.cjs +78 -22
- package/dist/src/svgs/menu-sidebar-collapse.svg.cjs.map +1 -1
- package/dist/src/svgs/menu-sidebar-collapse.svg.js +76 -6
- package/dist/src/svgs/menu-sidebar-collapse.svg.js.map +1 -1
- package/dist/src/svgs/menu-sidebar-expand.svg.cjs +78 -22
- package/dist/src/svgs/menu-sidebar-expand.svg.cjs.map +1 -1
- package/dist/src/svgs/menu-sidebar-expand.svg.js +76 -6
- package/dist/src/svgs/menu-sidebar-expand.svg.js.map +1 -1
- package/dist/style.css +649 -624
- package/dist/tailwind.cjs +159 -175
- package/dist/tailwind.cjs.map +1 -1
- package/dist/tailwind.js +155 -176
- package/dist/tailwind.js.map +1 -1
- package/package.json +18 -18
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,155 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const react = require("@highcharts/react");
|
|
1
|
+
const require_chart_module = require("./chart.module.css.cjs");
|
|
2
|
+
let antd = require("antd");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let _highcharts_react = require("@highcharts/react");
|
|
6
5
|
require("@highcharts/react/modules/Accessibility.js");
|
|
7
6
|
require("@highcharts/react/modules/Exporting.js");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
color: s.color || "var(--j2-blue-11)",
|
|
125
|
-
states: {
|
|
126
|
-
hover: {
|
|
127
|
-
color: s.hoverColor || token.colorPrimaryTextHover
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
})),
|
|
131
|
-
tooltip: {
|
|
132
|
-
useHTML: true,
|
|
133
|
-
outside: true,
|
|
134
|
-
backgroundColor: "transparent",
|
|
135
|
-
shadow: false,
|
|
136
|
-
padding: 0,
|
|
137
|
-
style: { zIndex: 9999 },
|
|
138
|
-
formatter: function() {
|
|
139
|
-
return server.renderToString(
|
|
140
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: chart_module.default.tooltip, children: tooltip(this.key, this.y, this.series.name) })
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
-
react.Chart,
|
|
147
|
-
{
|
|
148
|
-
ref: chartRef,
|
|
149
|
-
options,
|
|
150
|
-
containerProps: { className: "highcharts-light" }
|
|
151
|
-
}
|
|
152
|
-
);
|
|
7
|
+
let react_dom_server = require("react-dom/server");
|
|
8
|
+
//#region src/components/barchart/BarChart.tsx
|
|
9
|
+
var BarChart = ({ categories, series, min, max, tickInterval, tickFormat, xAxisTitle, yAxisTitle, gridLineColor, gridLineDashStyle, xAxisLabelMaxLines, tooltip, exporting, chartRef, height, width, maxBars = 50, barsWidth = void 0 }) => {
|
|
10
|
+
const limitedCategories = categories.slice(0, maxBars);
|
|
11
|
+
const limitedSeries = series.map((s) => ({
|
|
12
|
+
...s,
|
|
13
|
+
data: s.data.slice(0, maxBars)
|
|
14
|
+
}));
|
|
15
|
+
const { token } = antd.theme.useToken();
|
|
16
|
+
const baseFont = {
|
|
17
|
+
fontSize: `${token.fontSize}px`,
|
|
18
|
+
fontFamily: token.fontFamily,
|
|
19
|
+
color: token.colorText
|
|
20
|
+
};
|
|
21
|
+
const options = {
|
|
22
|
+
credits: { enabled: false },
|
|
23
|
+
chart: {
|
|
24
|
+
type: "column",
|
|
25
|
+
...height ? { height } : {},
|
|
26
|
+
...width ? { width } : {}
|
|
27
|
+
},
|
|
28
|
+
plotOptions: { column: {
|
|
29
|
+
borderRadius: series[0].data.length > 5 ? "20%" : "15%",
|
|
30
|
+
...barsWidth !== void 0 ? { pointWidth: barsWidth } : {}
|
|
31
|
+
} },
|
|
32
|
+
exporting: {
|
|
33
|
+
...exporting,
|
|
34
|
+
enabled: false,
|
|
35
|
+
chartOptions: {
|
|
36
|
+
...exporting?.chartOptions,
|
|
37
|
+
title: {
|
|
38
|
+
align: "left",
|
|
39
|
+
text: exporting?.chartOptions?.title?.text,
|
|
40
|
+
style: {
|
|
41
|
+
fontSize: `${token.fontSize}px`,
|
|
42
|
+
fontFamily: "sans-serif",
|
|
43
|
+
color: token.colorText,
|
|
44
|
+
...exporting?.chartOptions?.title?.style
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
series: limitedSeries.map((s) => ({
|
|
48
|
+
type: "column",
|
|
49
|
+
color: s.color ? s.color : "#253761"
|
|
50
|
+
})),
|
|
51
|
+
legend: exporting?.chartOptions?.legend || { enabled: false }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
title: { text: "" },
|
|
55
|
+
xAxis: {
|
|
56
|
+
categories: limitedCategories,
|
|
57
|
+
title: xAxisTitle ? {
|
|
58
|
+
text: xAxisTitle,
|
|
59
|
+
style: {
|
|
60
|
+
...baseFont,
|
|
61
|
+
color: token.colorTextDescription
|
|
62
|
+
}
|
|
63
|
+
} : void 0,
|
|
64
|
+
labels: {
|
|
65
|
+
y: 30,
|
|
66
|
+
style: baseFont,
|
|
67
|
+
...xAxisLabelMaxLines ? {
|
|
68
|
+
useHTML: true,
|
|
69
|
+
formatter: function() {
|
|
70
|
+
return `<div style="overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: ${xAxisLabelMaxLines}; -webkit-box-orient: vertical; text-align: center;">${this.value}</div>`;
|
|
71
|
+
}
|
|
72
|
+
} : {}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
yAxis: {
|
|
76
|
+
min,
|
|
77
|
+
max,
|
|
78
|
+
endOnTick: true,
|
|
79
|
+
gridLineDashStyle: gridLineDashStyle || "Dot",
|
|
80
|
+
gridLineColor: gridLineColor || "white",
|
|
81
|
+
title: yAxisTitle ? {
|
|
82
|
+
text: yAxisTitle,
|
|
83
|
+
style: {
|
|
84
|
+
...baseFont,
|
|
85
|
+
color: token.colorTextDescription
|
|
86
|
+
},
|
|
87
|
+
x: -10
|
|
88
|
+
} : void 0,
|
|
89
|
+
tickInterval,
|
|
90
|
+
labels: {
|
|
91
|
+
formatter: tickFormat ? ({ value }) => tickFormat(value) : void 0,
|
|
92
|
+
style: baseFont
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
legend: { enabled: false },
|
|
96
|
+
series: limitedSeries.map((s) => ({
|
|
97
|
+
data: s.data,
|
|
98
|
+
name: s.name,
|
|
99
|
+
type: "column",
|
|
100
|
+
color: s.color || "var(--j2-blue-11)",
|
|
101
|
+
states: { hover: { color: s.hoverColor || token.colorPrimaryTextHover } }
|
|
102
|
+
})),
|
|
103
|
+
tooltip: {
|
|
104
|
+
useHTML: true,
|
|
105
|
+
outside: true,
|
|
106
|
+
backgroundColor: "transparent",
|
|
107
|
+
shadow: false,
|
|
108
|
+
padding: 0,
|
|
109
|
+
style: { zIndex: 9999 },
|
|
110
|
+
formatter: function() {
|
|
111
|
+
return (0, react_dom_server.renderToString)(/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
112
|
+
className: require_chart_module.default.tooltip,
|
|
113
|
+
children: tooltip(this.key, this.y, this.series.name)
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_highcharts_react.Chart, {
|
|
119
|
+
ref: chartRef,
|
|
120
|
+
options,
|
|
121
|
+
containerProps: { className: "highcharts-light" }
|
|
122
|
+
});
|
|
153
123
|
};
|
|
124
|
+
//#endregion
|
|
154
125
|
exports.BarChart = BarChart;
|
|
155
|
-
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=BarChart.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChart.cjs","sources":["../../../../src/components/barchart/BarChart.tsx"],"sourcesContent":["import { theme } from 'antd'\nimport type * as Highcharts from 'highcharts'\nimport {\n Chart as HighchartsReact,\n type HighchartsReactRefObject,\n} from '@highcharts/react'\n// `modules/`, not `options/`. @highcharts/react 5 moved the module entry\n// points and left the old `options/` files in the package still importing\n// `highcharts/esm/…`, while the Chart component now loads\n// `highcharts/es-modules/masters/…`. Those are two different Highcharts\n// instances, so the old path composes the module onto one the chart never\n// uses: no error, no missing export, the module just stops taking effect.\nimport '@highcharts/react/modules/Accessibility.js'\nimport '@highcharts/react/modules/Exporting.js'\nimport styles from './chart.module.css'\nimport { renderToString } from 'react-dom/server'\n\ntype Series = {\n name?: string\n data: Highcharts.PointOptionsObject[] | number[]\n color?: string\n hoverColor?: string\n}\n\ntype BarChartProps = {\n categories: string[]\n series: Series[]\n min: number\n max: number | undefined | null\n tickInterval: number | undefined\n tickFormat?: (value: number) => string\n xAxisTitle?: string\n yAxisTitle?: string\n gridLineColor?: string\n gridLineDashStyle?: Highcharts.DashStyleValue\n xAxisLabelMaxLines?: number\n tooltip: (\n category: string | number | undefined,\n value: number | null | undefined,\n seriesName: string | undefined\n ) => React.ReactNode\n chartRef?: React.RefObject<HighchartsReactRefObject>\n exporting?: Highcharts.ExportingOptions\n maxBars?: number\n barsWidth?: number\n height?: number\n width?: number\n}\n\nconst BarChart = ({\n categories,\n series,\n min,\n max,\n tickInterval,\n tickFormat,\n xAxisTitle,\n yAxisTitle,\n gridLineColor,\n gridLineDashStyle,\n xAxisLabelMaxLines,\n tooltip,\n exporting,\n chartRef,\n height,\n width,\n maxBars = 50,\n barsWidth = undefined,\n}: BarChartProps) => {\n const limitedCategories = categories.slice(0, maxBars)\n const limitedSeries = series.map((s) => ({\n ...s,\n data: s.data.slice(0, maxBars),\n }))\n\n const { token } = theme.useToken()\n\n const baseFont: Highcharts.CSSObject = {\n fontSize: `${token.fontSize}px`,\n fontFamily: token.fontFamily,\n color: token.colorText,\n }\n\n const options: Highcharts.Options = {\n credits: {\n enabled: false,\n },\n chart: {\n type: 'column',\n ...(height ? { height } : {}),\n ...(width ? { width } : {}),\n },\n plotOptions: {\n column: {\n borderRadius: series[0].data.length > 5 ? '20%' : '15%',\n ...(barsWidth !== undefined ? { pointWidth: barsWidth } : {}),\n },\n },\n exporting: {\n ...exporting,\n enabled: false,\n chartOptions: {\n ...exporting?.chartOptions,\n title: {\n align: 'left',\n text: exporting?.chartOptions?.title?.text,\n style: {\n fontSize: `${token.fontSize}px`,\n fontFamily: 'sans-serif',\n color: token.colorText,\n ...exporting?.chartOptions?.title?.style,\n },\n },\n series: limitedSeries.map((s) => ({\n type: 'column',\n color: s.color ? s.color : '#253761', // --j2-blue-9\n })),\n legend: exporting?.chartOptions?.legend || { enabled: false },\n },\n },\n title: {\n text: '',\n },\n xAxis: {\n categories: limitedCategories,\n title: xAxisTitle\n ? {\n text: xAxisTitle,\n style: { ...baseFont, color: token.colorTextDescription },\n }\n : undefined,\n labels: {\n y: 30,\n style: baseFont,\n ...(xAxisLabelMaxLines\n ? {\n useHTML: true,\n formatter: function (\n this: Highcharts.AxisLabelsFormatterContextObject\n ) {\n return `<div style=\"overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: ${xAxisLabelMaxLines}; -webkit-box-orient: vertical; text-align: center;\">${this.value}</div>`\n },\n }\n : {}),\n },\n },\n yAxis: {\n min: min,\n max: max,\n endOnTick: true,\n gridLineDashStyle: gridLineDashStyle || 'Dot',\n gridLineColor: gridLineColor || 'white',\n title: yAxisTitle\n ? {\n text: yAxisTitle,\n style: { ...baseFont, color: token.colorTextDescription },\n x: -10,\n }\n : undefined,\n tickInterval: tickInterval,\n labels: {\n formatter: tickFormat\n ? ({ value }) => tickFormat(value as number)\n : undefined,\n style: baseFont,\n },\n },\n legend: {\n enabled: false,\n },\n series: limitedSeries.map((s) => ({\n data: s.data,\n name: s.name,\n type: 'column',\n color: s.color || 'var(--j2-blue-11)',\n states: {\n hover: {\n color: s.hoverColor || token.colorPrimaryTextHover,\n },\n },\n })),\n tooltip: {\n useHTML: true,\n outside: true,\n backgroundColor: 'transparent',\n shadow: false,\n padding: 0,\n style: { zIndex: 9999 },\n formatter: function (this) {\n return renderToString(\n <div className={styles.tooltip}>\n {tooltip(this.key, this.y, this.series.name)}\n </div>\n )\n },\n },\n }\n\n return (\n <HighchartsReact\n ref={chartRef}\n options={options}\n containerProps={{ className: 'highcharts-light' }}\n />\n )\n}\n\nexport { BarChart }\n"],"
|
|
1
|
+
{"version":3,"file":"BarChart.cjs","names":["theme","renderToString","styles","HighchartsReact"],"sources":["../../../../src/components/barchart/BarChart.tsx"],"sourcesContent":["import { theme } from 'antd'\nimport type * as Highcharts from 'highcharts'\nimport {\n Chart as HighchartsReact,\n type HighchartsReactRefObject,\n} from '@highcharts/react'\n// `modules/`, not `options/`. @highcharts/react 5 moved the module entry\n// points and left the old `options/` files in the package still importing\n// `highcharts/esm/…`, while the Chart component now loads\n// `highcharts/es-modules/masters/…`. Those are two different Highcharts\n// instances, so the old path composes the module onto one the chart never\n// uses: no error, no missing export, the module just stops taking effect.\nimport '@highcharts/react/modules/Accessibility.js'\nimport '@highcharts/react/modules/Exporting.js'\nimport styles from './chart.module.css'\nimport { renderToString } from 'react-dom/server'\n\ntype Series = {\n name?: string\n data: Highcharts.PointOptionsObject[] | number[]\n color?: string\n hoverColor?: string\n}\n\ntype BarChartProps = {\n categories: string[]\n series: Series[]\n min: number\n max: number | undefined | null\n tickInterval: number | undefined\n tickFormat?: (value: number) => string\n xAxisTitle?: string\n yAxisTitle?: string\n gridLineColor?: string\n gridLineDashStyle?: Highcharts.DashStyleValue\n xAxisLabelMaxLines?: number\n tooltip: (\n category: string | number | undefined,\n value: number | null | undefined,\n seriesName: string | undefined\n ) => React.ReactNode\n chartRef?: React.RefObject<HighchartsReactRefObject>\n exporting?: Highcharts.ExportingOptions\n maxBars?: number\n barsWidth?: number\n height?: number\n width?: number\n}\n\nconst BarChart = ({\n categories,\n series,\n min,\n max,\n tickInterval,\n tickFormat,\n xAxisTitle,\n yAxisTitle,\n gridLineColor,\n gridLineDashStyle,\n xAxisLabelMaxLines,\n tooltip,\n exporting,\n chartRef,\n height,\n width,\n maxBars = 50,\n barsWidth = undefined,\n}: BarChartProps) => {\n const limitedCategories = categories.slice(0, maxBars)\n const limitedSeries = series.map((s) => ({\n ...s,\n data: s.data.slice(0, maxBars),\n }))\n\n const { token } = theme.useToken()\n\n const baseFont: Highcharts.CSSObject = {\n fontSize: `${token.fontSize}px`,\n fontFamily: token.fontFamily,\n color: token.colorText,\n }\n\n const options: Highcharts.Options = {\n credits: {\n enabled: false,\n },\n chart: {\n type: 'column',\n ...(height ? { height } : {}),\n ...(width ? { width } : {}),\n },\n plotOptions: {\n column: {\n borderRadius: series[0].data.length > 5 ? '20%' : '15%',\n ...(barsWidth !== undefined ? { pointWidth: barsWidth } : {}),\n },\n },\n exporting: {\n ...exporting,\n enabled: false,\n chartOptions: {\n ...exporting?.chartOptions,\n title: {\n align: 'left',\n text: exporting?.chartOptions?.title?.text,\n style: {\n fontSize: `${token.fontSize}px`,\n fontFamily: 'sans-serif',\n color: token.colorText,\n ...exporting?.chartOptions?.title?.style,\n },\n },\n series: limitedSeries.map((s) => ({\n type: 'column',\n color: s.color ? s.color : '#253761', // --j2-blue-9\n })),\n legend: exporting?.chartOptions?.legend || { enabled: false },\n },\n },\n title: {\n text: '',\n },\n xAxis: {\n categories: limitedCategories,\n title: xAxisTitle\n ? {\n text: xAxisTitle,\n style: { ...baseFont, color: token.colorTextDescription },\n }\n : undefined,\n labels: {\n y: 30,\n style: baseFont,\n ...(xAxisLabelMaxLines\n ? {\n useHTML: true,\n formatter: function (\n this: Highcharts.AxisLabelsFormatterContextObject\n ) {\n return `<div style=\"overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: ${xAxisLabelMaxLines}; -webkit-box-orient: vertical; text-align: center;\">${this.value}</div>`\n },\n }\n : {}),\n },\n },\n yAxis: {\n min: min,\n max: max,\n endOnTick: true,\n gridLineDashStyle: gridLineDashStyle || 'Dot',\n gridLineColor: gridLineColor || 'white',\n title: yAxisTitle\n ? {\n text: yAxisTitle,\n style: { ...baseFont, color: token.colorTextDescription },\n x: -10,\n }\n : undefined,\n tickInterval: tickInterval,\n labels: {\n formatter: tickFormat\n ? ({ value }) => tickFormat(value as number)\n : undefined,\n style: baseFont,\n },\n },\n legend: {\n enabled: false,\n },\n series: limitedSeries.map((s) => ({\n data: s.data,\n name: s.name,\n type: 'column',\n color: s.color || 'var(--j2-blue-11)',\n states: {\n hover: {\n color: s.hoverColor || token.colorPrimaryTextHover,\n },\n },\n })),\n tooltip: {\n useHTML: true,\n outside: true,\n backgroundColor: 'transparent',\n shadow: false,\n padding: 0,\n style: { zIndex: 9999 },\n formatter: function (this) {\n return renderToString(\n <div className={styles.tooltip}>\n {tooltip(this.key, this.y, this.series.name)}\n </div>\n )\n },\n },\n }\n\n return (\n <HighchartsReact\n ref={chartRef}\n options={options}\n containerProps={{ className: 'highcharts-light' }}\n />\n )\n}\n\nexport { BarChart }\n"],"mappings":"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"}
|
|
@@ -26,5 +26,5 @@ type BarChartProps = {
|
|
|
26
26
|
height?: number;
|
|
27
27
|
width?: number;
|
|
28
28
|
};
|
|
29
|
-
declare const BarChart: ({ categories, series, min, max, tickInterval, tickFormat, xAxisTitle, yAxisTitle, gridLineColor, gridLineDashStyle, xAxisLabelMaxLines, tooltip, exporting, chartRef, height, width, maxBars, barsWidth, }: BarChartProps) => import(
|
|
29
|
+
declare const BarChart: ({ categories, series, min, max, tickInterval, tickFormat, xAxisTitle, yAxisTitle, gridLineColor, gridLineDashStyle, xAxisLabelMaxLines, tooltip, exporting, chartRef, height, width, maxBars, barsWidth, }: BarChartProps) => import('react').JSX.Element;
|
|
30
30
|
export { BarChart };
|
|
@@ -1,155 +1,127 @@
|
|
|
1
|
-
import
|
|
1
|
+
import chart_module_default from "./chart.module.css.js";
|
|
2
2
|
import { theme } from "antd";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Chart } from "@highcharts/react";
|
|
4
5
|
import "@highcharts/react/modules/Accessibility.js";
|
|
5
6
|
import "@highcharts/react/modules/Exporting.js";
|
|
6
|
-
import styles from "./chart.module.css.js";
|
|
7
7
|
import { renderToString } from "react-dom/server";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
states: {
|
|
124
|
-
hover: {
|
|
125
|
-
color: s.hoverColor || token.colorPrimaryTextHover
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
})),
|
|
129
|
-
tooltip: {
|
|
130
|
-
useHTML: true,
|
|
131
|
-
outside: true,
|
|
132
|
-
backgroundColor: "transparent",
|
|
133
|
-
shadow: false,
|
|
134
|
-
padding: 0,
|
|
135
|
-
style: { zIndex: 9999 },
|
|
136
|
-
formatter: function() {
|
|
137
|
-
return renderToString(
|
|
138
|
-
/* @__PURE__ */ jsx("div", { className: styles.tooltip, children: tooltip(this.key, this.y, this.series.name) })
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
return /* @__PURE__ */ jsx(
|
|
144
|
-
Chart,
|
|
145
|
-
{
|
|
146
|
-
ref: chartRef,
|
|
147
|
-
options,
|
|
148
|
-
containerProps: { className: "highcharts-light" }
|
|
149
|
-
}
|
|
150
|
-
);
|
|
151
|
-
};
|
|
152
|
-
export {
|
|
153
|
-
BarChart
|
|
8
|
+
//#region src/components/barchart/BarChart.tsx
|
|
9
|
+
var BarChart = ({ categories, series, min, max, tickInterval, tickFormat, xAxisTitle, yAxisTitle, gridLineColor, gridLineDashStyle, xAxisLabelMaxLines, tooltip, exporting, chartRef, height, width, maxBars = 50, barsWidth = void 0 }) => {
|
|
10
|
+
const limitedCategories = categories.slice(0, maxBars);
|
|
11
|
+
const limitedSeries = series.map((s) => ({
|
|
12
|
+
...s,
|
|
13
|
+
data: s.data.slice(0, maxBars)
|
|
14
|
+
}));
|
|
15
|
+
const { token } = theme.useToken();
|
|
16
|
+
const baseFont = {
|
|
17
|
+
fontSize: `${token.fontSize}px`,
|
|
18
|
+
fontFamily: token.fontFamily,
|
|
19
|
+
color: token.colorText
|
|
20
|
+
};
|
|
21
|
+
const options = {
|
|
22
|
+
credits: { enabled: false },
|
|
23
|
+
chart: {
|
|
24
|
+
type: "column",
|
|
25
|
+
...height ? { height } : {},
|
|
26
|
+
...width ? { width } : {}
|
|
27
|
+
},
|
|
28
|
+
plotOptions: { column: {
|
|
29
|
+
borderRadius: series[0].data.length > 5 ? "20%" : "15%",
|
|
30
|
+
...barsWidth !== void 0 ? { pointWidth: barsWidth } : {}
|
|
31
|
+
} },
|
|
32
|
+
exporting: {
|
|
33
|
+
...exporting,
|
|
34
|
+
enabled: false,
|
|
35
|
+
chartOptions: {
|
|
36
|
+
...exporting?.chartOptions,
|
|
37
|
+
title: {
|
|
38
|
+
align: "left",
|
|
39
|
+
text: exporting?.chartOptions?.title?.text,
|
|
40
|
+
style: {
|
|
41
|
+
fontSize: `${token.fontSize}px`,
|
|
42
|
+
fontFamily: "sans-serif",
|
|
43
|
+
color: token.colorText,
|
|
44
|
+
...exporting?.chartOptions?.title?.style
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
series: limitedSeries.map((s) => ({
|
|
48
|
+
type: "column",
|
|
49
|
+
color: s.color ? s.color : "#253761"
|
|
50
|
+
})),
|
|
51
|
+
legend: exporting?.chartOptions?.legend || { enabled: false }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
title: { text: "" },
|
|
55
|
+
xAxis: {
|
|
56
|
+
categories: limitedCategories,
|
|
57
|
+
title: xAxisTitle ? {
|
|
58
|
+
text: xAxisTitle,
|
|
59
|
+
style: {
|
|
60
|
+
...baseFont,
|
|
61
|
+
color: token.colorTextDescription
|
|
62
|
+
}
|
|
63
|
+
} : void 0,
|
|
64
|
+
labels: {
|
|
65
|
+
y: 30,
|
|
66
|
+
style: baseFont,
|
|
67
|
+
...xAxisLabelMaxLines ? {
|
|
68
|
+
useHTML: true,
|
|
69
|
+
formatter: function() {
|
|
70
|
+
return `<div style="overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: ${xAxisLabelMaxLines}; -webkit-box-orient: vertical; text-align: center;">${this.value}</div>`;
|
|
71
|
+
}
|
|
72
|
+
} : {}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
yAxis: {
|
|
76
|
+
min,
|
|
77
|
+
max,
|
|
78
|
+
endOnTick: true,
|
|
79
|
+
gridLineDashStyle: gridLineDashStyle || "Dot",
|
|
80
|
+
gridLineColor: gridLineColor || "white",
|
|
81
|
+
title: yAxisTitle ? {
|
|
82
|
+
text: yAxisTitle,
|
|
83
|
+
style: {
|
|
84
|
+
...baseFont,
|
|
85
|
+
color: token.colorTextDescription
|
|
86
|
+
},
|
|
87
|
+
x: -10
|
|
88
|
+
} : void 0,
|
|
89
|
+
tickInterval,
|
|
90
|
+
labels: {
|
|
91
|
+
formatter: tickFormat ? ({ value }) => tickFormat(value) : void 0,
|
|
92
|
+
style: baseFont
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
legend: { enabled: false },
|
|
96
|
+
series: limitedSeries.map((s) => ({
|
|
97
|
+
data: s.data,
|
|
98
|
+
name: s.name,
|
|
99
|
+
type: "column",
|
|
100
|
+
color: s.color || "var(--j2-blue-11)",
|
|
101
|
+
states: { hover: { color: s.hoverColor || token.colorPrimaryTextHover } }
|
|
102
|
+
})),
|
|
103
|
+
tooltip: {
|
|
104
|
+
useHTML: true,
|
|
105
|
+
outside: true,
|
|
106
|
+
backgroundColor: "transparent",
|
|
107
|
+
shadow: false,
|
|
108
|
+
padding: 0,
|
|
109
|
+
style: { zIndex: 9999 },
|
|
110
|
+
formatter: function() {
|
|
111
|
+
return renderToString(/* @__PURE__ */ jsx("div", {
|
|
112
|
+
className: chart_module_default.tooltip,
|
|
113
|
+
children: tooltip(this.key, this.y, this.series.name)
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
return /* @__PURE__ */ jsx(Chart, {
|
|
119
|
+
ref: chartRef,
|
|
120
|
+
options,
|
|
121
|
+
containerProps: { className: "highcharts-light" }
|
|
122
|
+
});
|
|
154
123
|
};
|
|
155
|
-
//#
|
|
124
|
+
//#endregion
|
|
125
|
+
export { BarChart };
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=BarChart.js.map
|